kui-vue 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/components/base/input.jsx +6 -5
  2. package/components/button/demo/group.md +22 -17
  3. package/components/button/styles/index.less +1 -0
  4. package/components/checkbox/demo/base.md +3 -5
  5. package/components/checkbox/demo/group-vertical.md +10 -10
  6. package/components/checkbox/demo/group.md +9 -7
  7. package/components/checkbox/demo/options.md +2 -2
  8. package/components/checkbox/styles/index.less +7 -3
  9. package/components/colorPicker/styles/index.less +8 -0
  10. package/components/datePicker/datepicker.jsx +78 -62
  11. package/components/datePicker/demo/theme.md +1 -1
  12. package/components/datePicker/index.md +0 -1
  13. package/components/datePicker/styles/datepicker.less +1 -0
  14. package/components/descriptions/styles/index.less +41 -6
  15. package/components/drawer/demo/custom.md +2 -2
  16. package/components/drawer/demo/form.md +4 -2
  17. package/components/drawer/demo/target.md +1 -1
  18. package/components/drawer/styles/index.less +10 -3
  19. package/components/dropdown/index.md +0 -1
  20. package/components/form/demo/base.md +1 -1
  21. package/components/form/demo/info.md +23 -1
  22. package/components/image/demo/errors.md +2 -2
  23. package/components/image/demo/globle.md +2 -2
  24. package/components/image/demo/index.vue +1 -0
  25. package/components/image/image.jsx +3 -1
  26. package/components/image/preview.jsx +12 -2
  27. package/components/image/styles/index.less +25 -0
  28. package/components/input/demo/theme.md +1 -1
  29. package/components/input/styles/index.less +30 -18
  30. package/components/inputNumber/demo/format.md +1 -1
  31. package/components/inputNumber/inputNumber.jsx +2 -1
  32. package/components/inputNumber/styles/index.less +4 -3
  33. package/components/locale/lang/de.js +3 -0
  34. package/components/locale/lang/el.js +3 -0
  35. package/components/locale/lang/en.js +3 -0
  36. package/components/locale/lang/fr.js +3 -0
  37. package/components/locale/lang/it.js +3 -0
  38. package/components/locale/lang/ja.js +3 -0
  39. package/components/locale/lang/ko.js +3 -0
  40. package/components/locale/lang/ru.js +3 -0
  41. package/components/locale/lang/th.js +3 -0
  42. package/components/locale/lang/ua.js +3 -0
  43. package/components/locale/lang/vi.js +3 -0
  44. package/components/locale/lang/zh-CN.js +3 -0
  45. package/components/locale/lang/zh-TW.js +3 -0
  46. package/components/menu/demo/inline.md +4 -4
  47. package/components/menu/styles/index.less +9 -2
  48. package/components/modal/styles/index.less +3 -0
  49. package/components/page/demo/base.md +10 -1
  50. package/components/page/demo/elevator.md +10 -1
  51. package/components/page/demo/more.md +10 -1
  52. package/components/page/demo/size.md +13 -4
  53. package/components/page/demo/sizer.md +4 -3
  54. package/components/page/page.jsx +13 -0
  55. package/components/popconfirm/index.md +0 -1
  56. package/components/popconfirm/styles/index.less +4 -2
  57. package/components/poptip/index.md +1 -2
  58. package/components/poptip/styles/index.less +10 -5
  59. package/components/radio/demo/base.md +3 -5
  60. package/components/radio/demo/disabled.md +2 -4
  61. package/components/radio/demo/group-vertical.md +8 -11
  62. package/components/radio/demo/group.md +10 -9
  63. package/components/radio/demo/options.md +2 -2
  64. package/components/radio/styles/index.less +23 -4
  65. package/components/select/demo/clearable.md +30 -22
  66. package/components/select/demo/icon.md +6 -4
  67. package/components/select/demo/theme.md +4 -4
  68. package/components/select/index.md +0 -1
  69. package/components/select/select.jsx +1 -1
  70. package/components/select/styles/index.less +15 -90
  71. package/components/styles/color.less +17 -12
  72. package/components/styles/var.less +7 -0
  73. package/components/switch/demo/base.md +4 -4
  74. package/components/switch/demo/disabled.md +7 -9
  75. package/components/switch/demo/index.vue +1 -6
  76. package/components/switch/demo/text.md +2 -8
  77. package/components/table/demo/base-render.md +3 -3
  78. package/components/table/demo/base.md +3 -1
  79. package/components/table/demo/custom-header.md +5 -1
  80. package/components/table/demo/edit.md +34 -12
  81. package/components/table/demo/expand.md +3 -1
  82. package/components/table/demo/selection.md +9 -5
  83. package/components/table/demo/size.md +3 -1
  84. package/components/table/styles/index.less +100 -51
  85. package/components/table/table.jsx +1 -1
  86. package/components/tooltip/index.md +1 -4
  87. package/components/tooltip/styles/index.less +4 -2
  88. package/components/tree/styles/index.less +2 -1
  89. package/components/upload/demo/accept.md +2 -2
  90. package/components/upload/demo/custom.md +3 -3
  91. package/components/upload/demo/transform.md +3 -1
  92. package/components/upload/upload.jsx +12 -1
  93. package/dist/k-ui.css +2 -2
  94. package/dist/k-ui.js +2 -2
  95. package/dist/locale/de.js +2 -2
  96. package/dist/locale/el.js +2 -2
  97. package/dist/locale/en.js +2 -2
  98. package/dist/locale/fr.js +2 -2
  99. package/dist/locale/it.js +2 -2
  100. package/dist/locale/ja.js +2 -2
  101. package/dist/locale/ko.js +2 -2
  102. package/dist/locale/ru.js +2 -2
  103. package/dist/locale/th.js +2 -2
  104. package/dist/locale/ua.js +2 -2
  105. package/dist/locale/vi.js +2 -2
  106. package/dist/locale/zhCN.js +2 -2
  107. package/dist/locale/zhTW.js +2 -2
  108. package/package.json +1 -1
@@ -6,7 +6,16 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="demo-page">
9
- <Page :current="10" :total="200" show-elevator/>
9
+ <Page v-model:current="current" :total="200" show-elevator/>
10
10
  </div>
11
11
  </template>
12
+ <script>
13
+ export default{
14
+ data(){
15
+ return {
16
+ current:10
17
+ }
18
+ }
19
+ }
20
+ </script>
12
21
  ```
@@ -6,7 +6,16 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="demo-page">
9
- <Page :current="10" :total="200"/>
9
+ <Page v-model:current="current" :total="200"/>
10
10
  </div>
11
11
  </template>
12
+ <script>
13
+ export default{
14
+ data(){
15
+ return {
16
+ current:10
17
+ }
18
+ }
19
+ }
20
+ </script>
12
21
  ```
@@ -6,10 +6,19 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="demo-page">
9
- <Page :current="1" :total="50" size="small"/>
10
- <Page :current="1" :total="50" size="small" show-sizer/>
11
- <Page :current="1" :total="50" size="small" show-elevator/>
12
- <Page :current="1" :total="50" size="small" show-elevator show-total/>
9
+ <Page :current="current" :total="50" size="small"/>
10
+ <Page :current="current" :total="50" size="small" show-sizer/>
11
+ <Page :current="current" :total="50" size="small" show-elevator/>
12
+ <Page :current="current" :total="50" size="small" show-elevator show-total/>
13
13
  </div>
14
14
  </template>
15
+ <script>
16
+ export default{
17
+ data(){
18
+ return {
19
+ current:1
20
+ }
21
+ }
22
+ }
23
+ </script>
15
24
  ```
@@ -6,15 +6,16 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="demo-page">
9
- <Page :current="3" :total="200" showSizer/>
10
- <Page :current="4" :total="200" showSizer :page-size="20"/>
11
- <Page :current="4" :total="1000" showSizer :page-size="30" :size-data="sizeData"/>
9
+ <Page v-model:current="current" :total="200" showSizer/>
10
+ <Page v-model:current="current" :total="200" showSizer :page-size="20"/>
11
+ <Page v-model:current="current" :total="1000" showSizer :page-size="30" :size-data="sizeData"/>
12
12
  </div>
13
13
  </template>
14
14
  <script>
15
15
  export default{
16
16
  data() {
17
17
  return {
18
+ current: 3,
18
19
  sizeData:[30,50,80,100]
19
20
  }
20
21
  }
@@ -21,6 +21,10 @@ export default {
21
21
  pageSize: { default: 10, type: Number },
22
22
  current: { default: 1, type: Number }
23
23
  },
24
+ model: {
25
+ prop: 'current',
26
+ event: 'input'
27
+ },
24
28
  data() {
25
29
  return {
26
30
  nextPageGroup: false,
@@ -51,6 +55,8 @@ export default {
51
55
  this.pageCount = Math.ceil(this.total / this.defaultPageSize) || 1;
52
56
  if (this.page > this.pageCount) {
53
57
  this.page = this.pageCount
58
+ this.$emit('input', this.page)
59
+ this.$emit('change', this.page)
54
60
  }
55
61
  },
56
62
  renderPage() {
@@ -121,16 +127,19 @@ export default {
121
127
  prePage() {
122
128
  if (this.page > 1) {
123
129
  this.page--;
130
+ this.$emit('input', this.page)
124
131
  this.$emit('change', this.page)
125
132
  }
126
133
  },
127
134
  nextPage() {
128
135
  if (this.page < this.pageCount) {
129
136
  this.page++;
137
+ this.$emit('input', this.page)
130
138
  this.$emit('change', this.page)
131
139
  }
132
140
  },
133
141
  toPage(page) {
142
+ if (page == this.page) return;
134
143
  if (page <= 1) {
135
144
  page = 1
136
145
  this.prevPageGroup = false
@@ -140,6 +149,7 @@ export default {
140
149
  page = this.pageCount
141
150
  }
142
151
  this.page = page
152
+ this.$emit('input', page)
143
153
  this.$emit('change', page)
144
154
  },
145
155
  changeSize({ value }) {
@@ -147,6 +157,8 @@ export default {
147
157
  this.pageCount = Math.ceil(this.total / this.defaultPageSize) || 1;
148
158
  if (this.page > this.pageCount) {
149
159
  this.page = this.pageCount
160
+ this.$emit('input', page)
161
+ this.$emit('change', page)
150
162
  }
151
163
  this.$emit('page-size-change', { current: this.page, pageSize: value })
152
164
  },
@@ -198,6 +210,7 @@ export default {
198
210
 
199
211
  if ((page >= 1 || page <= pageCount) && this.page != page) {
200
212
  this.page = page
213
+ this.$emit('input', page)
201
214
  this.$emit('change', page)
202
215
  }
203
216
  },
@@ -4,7 +4,6 @@
4
4
  | title | 显示的标题 | String,Slots | - |
5
5
  | placement | 提示框出现的位置,可选值为`top`,`top-left`,`top-right`,`bottom`,`bottom-left`,`bottom-right`,`left`,`left-top`,`left-bottom`,`right`,`right-top`,`right-bottom` | String | top |
6
6
  | width | 展示的宽度,默认为内容区域的大小 | String | - |
7
- | transfer | 默认渲染到body 上,如定位有问题,请尝试修改为 false | Boolean | true |
8
7
  | ok-text | 确定按钮的文字, | String | 确定 |
9
8
  | cancel-text | 取消按钮的文字, | String | 取消 |
10
9
  | cancel | 点击取消的回调, | Function | - |
@@ -138,7 +138,8 @@
138
138
 
139
139
  .k-popconfirm-content {
140
140
  // .k-popconfirm-inner {
141
- background: var(--kui-color-control-10);
141
+ // background: var(--kui-color-control-10);
142
+ background: #333;
142
143
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
143
144
  border-radius: 12px; //var(--kui-border-radius);
144
145
  position: relative;
@@ -171,7 +172,8 @@
171
172
  position: absolute;
172
173
  box-sizing: border-box;
173
174
  display: flex;
174
- color: var(--kui-color-control-10);
175
+ // color: var(--kui-color-control-10);
176
+ color: #333;
175
177
  width: 24px;
176
178
  height: 7px;
177
179
  }
@@ -5,5 +5,4 @@
5
5
  | title | 显示的标题 | String | - |
6
6
  | content | 显示的正文内容 | slots | - |
7
7
  | placement | 提示框出现的位置,可选值为`top`,`top-left`,`top-right`,`bottom`,`bottom-left`,`bottom-right`,`left`,`left-top`,`left-bottom`,`right`,`right-top`,`right-bottom` | String | top |
8
- | width | 展示的宽度,默认为内容区域的大小 | String,Number | - |
9
- | transfer | 默认渲染到body 上,如定位有问题,请尝试修改为 false | Boolean | true |
8
+ | width | 展示的宽度,默认为内容区域的大小 | String,Number | - |
@@ -4,7 +4,8 @@
4
4
  display: inline-block;
5
5
  position: relative;
6
6
  // max-width: 300px;
7
- color: var(--kui-color-font);
7
+ color: #fff;
8
+ // color: var(--kui-color-font);
8
9
  font-size: 12px;
9
10
  line-height: 1.5;
10
11
  position: absolute;
@@ -140,7 +141,8 @@
140
141
  .k-poptip-content {
141
142
  min-width: 200px;
142
143
  // .k-poptip-inner {
143
- background: var(--kui-color-control-10);
144
+ // background: var(--kui-color-control-10);
145
+ background: #333; //var(--kui-color-control-10);
144
146
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
145
147
  border-radius: 8px; // var(--kui-border-radius);
146
148
  position: relative;
@@ -155,7 +157,8 @@
155
157
  .k-poptip-title {
156
158
  font-size: 16px;
157
159
  font-weight: 500;
158
- color: var(--kui-color-font);
160
+ // color: var(--kui-color-font);
161
+ color: #fff;
159
162
  margin: 0;
160
163
  padding: 8px 16px;
161
164
  position: relative;
@@ -170,12 +173,14 @@
170
173
  display: flex;
171
174
  width: 24px;
172
175
  height: 7px;
173
- color: var(--kui-color-control-10);
176
+ color: #333;
177
+ // color: var(--kui-color-control-10);
174
178
  }
175
179
  }
176
180
 
177
181
  .k-poptip-dark {
178
- background-color: var(--kui-color-dark);
182
+ background: #333;
183
+ // background-color: var(--kui-color-dark);
179
184
  color: #fff;
180
185
 
181
186
  .k-poptip-title {
@@ -5,14 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
9
- <p>{{checked}}</p>
8
+ <Space>
9
+ {{checked}}
10
10
  <Radio v-model="checked">Radio</Radio>
11
11
  <Button @click="checked=!checked" size="small">{{checked?'Uncheck':'Check'}}</Button>
12
- <br/>
13
- <br/>
14
12
  <Radio label="Radio"/>
15
- </div>
13
+ </Space>
16
14
  </template>
17
15
  <script>
18
16
  export default{
@@ -5,15 +5,13 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Radio disabled>disabled</Radio>
10
10
  <Radio disabled :value="true">disabled</Radio>
11
- <br/>
12
- <br/>
13
11
  <Radio :disabled="disabled" v-model="checked">Radio</Radio>
14
12
  <Button @click="checked=!checked" size="small">{{checked?'Checked':'Uncheck'}}</Button>
15
13
  <Button @click="disabled=!disabled" size="small">{{disabled?'Enable':'Disabled'}}</Button>
16
- </div>
14
+ </Space>
17
15
  </template>
18
16
  <script>
19
17
  export default{
@@ -5,13 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
9
- <p>Selected:{{data}}</p>
10
- <br />
11
- <Button @click="data=''" size="small">Clear</Button>
12
- <Button @click="data='apple'" size="small">Select apple</Button>
13
- <br />
14
- <br />
8
+ <Space vertical align="start">
9
+ <Space>
10
+ Selected:{{data}}</p>
11
+ <Button @click="data=''" size="small">Clear</Button>
12
+ <Button @click="data='apple'" size="small">Select apple</Button>
13
+ </Space>
15
14
  <RadioGroup v-model="data" direction="vertical">
16
15
  <Radio label="Apple" value="apple" />
17
16
  <Radio label="Orange" value="orange" />
@@ -19,11 +18,9 @@
19
18
  <Radio label="Grape" value="grape" disabled/>
20
19
  <Radio label="Pear" value="pear" disabled/>
21
20
  </RadioGroup>
22
- <br/>
23
- <p>{{cities}}</p>
24
- <br/>
21
+ {{cities}}
25
22
  <RadioGroup :options="options" v-model="cities" direction="vertical"/>
26
- </div>
23
+ </Space>
27
24
  </template>
28
25
  <script>
29
26
  export default {
@@ -1,13 +1,17 @@
1
1
  <cn>
2
2
  #### 组合使用
3
3
  组合使用可以直接使用 `RadioGroup` 的 `options` 来赋值,或者结合 `Radio` 来组合使用,通过 `disabled` 可以设置组件是否被禁用
4
- **`RadioGroup` 可以直接使用 `options` 来组合,3.0版本增加**
4
+ > `RadioGroup` 可以直接使用 `options` 来组合,3.0版本增加
5
5
  </cn>
6
6
 
7
7
  ```vue
8
8
  <template>
9
- <div>
10
- <p>Selected:{{data}}</p>
9
+ <Space vertical align="start">
10
+ <Space>
11
+ <Button @click="data=''" size="small">Clear</Button>
12
+ <Button @click="data='apple'" size="small">Select apple</Button>
13
+ Selected: {{data}}
14
+ </Space>
11
15
  <RadioGroup v-model="data">
12
16
  <Radio label="Apple" value="apple" />
13
17
  <Radio label="Orange" value="orange" />
@@ -15,13 +19,10 @@
15
19
  <Radio label="Grape" value="grape" disabled/>
16
20
  <Radio label="Pear" value="pear" disabled/>
17
21
  </RadioGroup>
18
- <Button @click="data=''" size="small">Clear</Button>
19
- <Button @click="data='apple'" size="small">Select apple</Button>
20
- <br/>
21
- <br/>
22
- <p>{{cities}}</p>
22
+
23
+ {{cities}}
23
24
  <RadioGroup :options="options" v-model="cities"/>
24
- </div>
25
+ </Space>
25
26
  </template>
26
27
  <script>
27
28
  export default {
@@ -1,7 +1,7 @@
1
1
  <cn>
2
2
  #### 组合使用Options
3
- - 组合使用可以直接使用 `RadioGroup` 的 `options` 来赋值,
4
- - 或者结合子组件 `Radio` 来组合使用,通过 `disabled` 可以设置组件是否被禁用
3
+ 组合使用可以直接使用 `RadioGroup` 的 `options` 来赋值,
4
+ 或者结合子组件 `Radio` 来组合使用,通过 `disabled` 可以设置组件是否被禁用
5
5
  </cn>
6
6
 
7
7
  ```vue
@@ -59,7 +59,7 @@
59
59
  // }
60
60
  }
61
61
 
62
- .k-radio-cirle {
62
+ .k-radio-cirle:not(.k-radio-group-card) {
63
63
  .k-btn:first-child {
64
64
  border-top-left-radius: 30px;
65
65
  border-bottom-left-radius: 30px;
@@ -90,10 +90,10 @@
90
90
  }
91
91
 
92
92
  .k-radio-inner {
93
- box-sizing: content-box;
93
+ box-sizing: border-box;
94
94
  display: inline-block;
95
- width: 14px;
96
- height: 14px;
95
+ width: 16px;
96
+ height: 16px;
97
97
  position: relative;
98
98
  top: 0;
99
99
  left: 0;
@@ -185,6 +185,11 @@
185
185
  .k-radio-label {
186
186
  font-size: 16px;
187
187
  }
188
+
189
+ .k-radio-inner {
190
+ width: 18px;
191
+ height: 18px;
192
+ }
188
193
  }
189
194
 
190
195
  .k-radio-sm {
@@ -231,9 +236,23 @@
231
236
  .k-btn {
232
237
  border: none;
233
238
  border-radius: var(--kui-border-radius);
239
+ height: 24px;
234
240
 
235
241
  &:disabled {
236
242
  background: 0 0;
237
243
  }
244
+
245
+ &:not(.k-btn-primary) {
246
+ background-color: transparent;
247
+ }
238
248
  }
249
+
250
+ .k-btn-lg {
251
+ height: 32px;
252
+ }
253
+
254
+ .k-btn-sm {
255
+ height: 16px;
256
+ }
257
+
239
258
  }
@@ -5,28 +5,36 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Space vertical>
9
- <Select :width="200" clearable v-model="value1">
10
- <Option value="1" label="Apple" />
11
- <Option value="2" label="Orange" />
12
- <Option value="3" label="Banana"/>
13
- <Option value="4" label="Pear" />
14
- </Select>
15
- {{value1}}
16
- <Select :width="200" size="small" clearable v-model="value2">
17
- <Option value="1" label="Apple" />
18
- <Option value="2" label="Orange" />
19
- <Option value="3" label="Banana" />
20
- <Option value="4" label="Pear" />
21
- </Select>
22
- {{value2}}
23
- <Select :width="200" multiple clearable v-model="value3">
24
- <Option value="1" label="Apple" />
25
- <Option value="2" label="Orange" />
26
- <Option value="3" label="Banana" />
27
- <Option value="4" label="Pear" />
28
- </Select>
29
- {{value3}}
8
+ <Space vertical align="start">
9
+ <Space>
10
+ <Select :width="200" clearable v-model="value1">
11
+ <Option value="1" label="Apple" />
12
+ <Option value="2" label="Orange" />
13
+ <Option value="3" label="Banana"/>
14
+ <Option value="4" label="Pear" />
15
+ </Select>
16
+ {{value1}}
17
+ </Space>
18
+
19
+ <Space>
20
+ <Select :width="200" size="small" clearable v-model="value2">
21
+ <Option value="1" label="Apple" />
22
+ <Option value="2" label="Orange" />
23
+ <Option value="3" label="Banana" />
24
+ <Option value="4" label="Pear" />
25
+ </Select>
26
+ {{value2}}
27
+
28
+ </Space>
29
+ <Space>
30
+ <Select :width="200" multiple clearable v-model="value3">
31
+ <Option value="1" label="Apple" />
32
+ <Option value="2" label="Orange" />
33
+ <Option value="3" label="Banana" />
34
+ <Option value="4" label="Pear" />
35
+ </Select>
36
+ {{value3}}
37
+ </Space>
30
38
  </Space>
31
39
  </template>
32
40
  <script>
@@ -5,10 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Space vertical>
9
- <Select :width="200" :icon="Search" v-model="select" theme="light" :arrow-icon="CaretDown" :options="data"/>
10
- <Button @click="select=''" size="small">Clear</Button>
11
- <Button @click="select=1" size="small">Choose orange</Button>
8
+ <Space vertical align="start">
9
+ <Space>
10
+ <Select :width="200" :icon="Search" v-model="select" theme="light" :arrow-icon="CaretDown" :options="data"/>
11
+ <Button @click="select=''" size="small">Clear</Button>
12
+ <Button @click="select=1" size="small">Choose orange</Button>
13
+ </Space>
12
14
  <Select :width="200" :icon="Location" :arrow-icon="ChevronDownCircleOutline">
13
15
  <Option :value="1" label="Apple" />
14
16
  <Option :value="2" label="Orange" />
@@ -5,12 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Space vertical>
9
- <Checkbox v-model="checked" label="Shape" />
10
- <Select :width="256" :icon="Search" theme="light" :shape="checked?'circle':''" :options="options" />
8
+ <Space vertical align="start">
9
+ <Checkbox v-model="checked" label="Circle" />
10
+ <Select :width="256" clearable :icon="Search" theme="light" :shape="checked?'circle':''" :options="options" />
11
11
  <Select :width="256" clearable filterable theme="light" :shape="checked?'circle':''" :options="options">
12
12
  </Select>
13
- <Select :width="256" :icon="Search" :shape="checked?'circle':''" :options="options" />
13
+ <Select :width="256" clearable :icon="Search" :shape="checked?'circle':''" :options="options" />
14
14
  <Select :width="256" multiple v-model="value" filterable theme="light" :options="options">
15
15
  </Select>
16
16
  </Space>
@@ -12,7 +12,6 @@
12
12
  | clearable | 是否可以清空选项 | Boolean | false |
13
13
  | bordered | 是否显示边框 | Boolean | true |
14
14
  | showArrow | 是否显示下拉按钮 | Boolean | true |
15
- | transfer | 默认渲染到body 上,如定位有问题,请尝试修改为 false | Boolean | true |
16
15
  | change | 在选项状态发生改变时触发,返回选择项{value:xx,label:xx} | Function | - |
17
16
  | open-change | 下拉框展开或收起时触发 | Function | - |
18
17
  | options | options 数据,如果设置则不需要手动构造 Option 节点 | Array <{value,label,disabled}> | [] |
@@ -402,7 +402,7 @@ export default {
402
402
  if (showClear) {
403
403
  iconNodes.push(<Icon class="k-select-clearable" type={CloseCircle} onClick={clear} />)
404
404
  }
405
- console.log(iconNodes)
405
+ // console.log(iconNodes)
406
406
 
407
407
  iconNodes.push(" ")
408
408
  return (