Commit 05b5dd7b8dfcc30e6e2af46323343a77503913e9

Authored by 梁灏
1 parent 9ec927b1

update Cascader

update Cascader
src/components/cascader/cascader.vue
... ... @@ -77,7 +77,7 @@
77 77 },
78 78 renderFormat: {
79 79 type: Function,
80   - default (label, selectedData) {
  80 + default (label) {
81 81 return label.join(' / ');
82 82 }
83 83 }
... ... @@ -96,7 +96,8 @@
96 96 `${prefixCls}`,
97 97 {
98 98 [`${prefixCls}-show-clear`]: this.showCloseIcon,
99   - [`${prefixCls}-visible`]: this.visible
  99 + [`${prefixCls}-visible`]: this.visible,
  100 + [`${prefixCls}-disabled`]: this.disabled
100 101 }
101 102 ]
102 103 },
... ...
src/styles/components/cascader.less
... ... @@ -8,6 +8,9 @@
8 8 display: block;
9 9 cursor: pointer;
10 10 }
  11 + &-disabled .@{css-prefix}input{
  12 + cursor: @cursor-disabled;
  13 + }
11 14  
12 15 .@{cascader-prefix-cls}-arrow:nth-of-type(1) {
13 16 display: none;
... ...