kui-vue 3.4.6 → 3.4.7

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 (102) hide show
  1. package/components/_tool/clone.js +1 -0
  2. package/components/avatar/demo/base.md +13 -15
  3. package/components/avatar/demo/change.md +2 -2
  4. package/components/avatar/demo/index.vue +1 -8
  5. package/components/avatar/demo/types.md +2 -2
  6. package/components/badge/badge.jsx +1 -0
  7. package/components/badge/demo/base.md +5 -5
  8. package/components/badge/demo/dot.md +1 -12
  9. package/components/badge/demo/dynamic.md +0 -11
  10. package/components/badge/demo/index.vue +14 -2
  11. package/components/badge/demo/mark.md +3 -3
  12. package/components/badge/demo/max.md +0 -12
  13. package/components/badge/demo/status.md +0 -5
  14. package/components/badge/styles/index.less +29 -2
  15. package/components/base/input.jsx +53 -27
  16. package/components/button/styles/index.less +4 -1
  17. package/components/checkbox/checkbox.jsx +1 -1
  18. package/components/checkbox/styles/index.less +13 -1
  19. package/components/colorPicker/colorpicker.jsx +59 -35
  20. package/components/colorPicker/demo/shape.md +1 -0
  21. package/components/colorPicker/index.md +1 -0
  22. package/components/colorPicker/styles/index.less +68 -56
  23. package/components/datePicker/datepicker.jsx +2 -1
  24. package/components/datePicker/demo/base.md +0 -3
  25. package/components/drawer/drawer.jsx +1 -1
  26. package/components/form/demo/base.md +19 -2
  27. package/components/form/demo/length.md +1 -1
  28. package/components/form/demo/valid.md +21 -6
  29. package/components/form/form.jsx +4 -2
  30. package/components/form/formitem.jsx +3 -1
  31. package/components/form/styles/index.less +4 -2
  32. package/components/index.js +2 -0
  33. package/components/input/demo/base.md +2 -2
  34. package/components/input/demo/event.md +2 -2
  35. package/components/input/demo/group.md +20 -3
  36. package/components/input/demo/icon.md +8 -2
  37. package/components/input/demo/index.vue +1 -15
  38. package/components/input/demo/size.md +2 -2
  39. package/components/input/demo/suffix.md +63 -29
  40. package/components/input/demo/textarea.md +2 -2
  41. package/components/input/demo/theme.md +2 -4
  42. package/components/input/index.md +20 -10
  43. package/components/input/input.jsx +3 -0
  44. package/components/input/inputGroup.jsx +7 -4
  45. package/components/input/styles/index.less +104 -2
  46. package/components/input/textarea.jsx +1 -0
  47. package/components/inputNumber/demo/base.md +6 -12
  48. package/components/inputNumber/demo/ffix.md +3 -9
  49. package/components/inputNumber/inputNumber.jsx +9 -5
  50. package/components/inputNumber/styles/index.less +34 -20
  51. package/components/menu/styles/index.less +1 -1
  52. package/components/message/demo/index.vue +1 -10
  53. package/components/message/demo/types.md +3 -3
  54. package/components/modal/demo/base.md +2 -2
  55. package/components/modal/demo/confrim.md +2 -2
  56. package/components/modal/demo/custom.md +2 -2
  57. package/components/modal/demo/global.md +2 -2
  58. package/components/modal/demo/index.vue +1 -10
  59. package/components/modal/demo/more.md +2 -2
  60. package/components/notice/demo/close.md +2 -2
  61. package/components/notice/demo/icon.md +2 -2
  62. package/components/notice/demo/index.vue +1 -10
  63. package/components/notice/demo/types.md +4 -4
  64. package/components/popconfirm/demo/index.vue +1 -10
  65. package/components/popconfirm/demo/local.md +17 -15
  66. package/components/popconfirm/demo/placement.md +50 -46
  67. package/components/poptip/demo/base.md +16 -14
  68. package/components/poptip/demo/index.vue +1 -10
  69. package/components/poptip/demo/placement.md +99 -94
  70. package/components/poptip/demo/trigger.md +16 -14
  71. package/components/rate/demo/base.md +2 -5
  72. package/components/rate/demo/character.md +2 -4
  73. package/components/rate/demo/clear.md +2 -3
  74. package/components/rate/demo/custom.md +3 -5
  75. package/components/rate/demo/disabled.md +4 -8
  76. package/components/rate/demo/tips.md +2 -2
  77. package/components/select/styles/index.less +5 -1
  78. package/components/space/demo/compact.md +23 -6
  79. package/components/space/space.jsx +21 -24
  80. package/components/space/styles/index.less +5 -0
  81. package/components/styles/index.less +1 -0
  82. package/components/tooltip/demo/index.vue +1 -14
  83. package/components/tooltip/demo/placement.md +50 -46
  84. package/components/tree/demo/checkable.md +5 -1
  85. package/components/tree/demo/directory.md +27 -31
  86. package/components/tree/index.md +22 -15
  87. package/components/tree/node.jsx +43 -23
  88. package/components/tree/styles/index.less +257 -215
  89. package/components/tree/tree.jsx +39 -6
  90. package/components/treeselect/demo/base.md +59 -0
  91. package/components/treeselect/demo/checkable.md +59 -0
  92. package/components/treeselect/demo/index.vue +30 -0
  93. package/components/treeselect/demo/info.md +7 -0
  94. package/components/treeselect/demo/multiple.md +59 -0
  95. package/components/treeselect/demo/sync.md +38 -0
  96. package/components/treeselect/index.md +38 -0
  97. package/components/treeselect/styles/index.less +579 -27
  98. package/components/treeselect/treeselect.jsx +508 -0
  99. package/dist/k-ui.css +2 -2
  100. package/dist/k-ui.js +2 -2
  101. package/package.json +2 -1
  102. package/components/treeselect/treeselect.vue +0 -200
@@ -5,8 +5,9 @@
5
5
  display: inline-flex;
6
6
  width: 100%;
7
7
  max-width: 100%;
8
+ min-width: 0;
8
9
  color: var(--kui-color-font);
9
- flex-shrink: 0;
10
+ // flex-shrink: 0;
10
11
  align-items: center;
11
12
  border: 1px solid var(--kui-color-border);
12
13
  border-radius: var(--kui-border-radius);
@@ -35,6 +36,10 @@
35
36
 
36
37
  .k-input-search-icon {
37
38
  cursor: pointer;
39
+
40
+ &:hover {
41
+ color: var(--kui-color-main);
42
+ }
38
43
  }
39
44
 
40
45
  .k-input-password-icon {
@@ -75,6 +80,7 @@
75
80
  &.k-input-focus {
76
81
  border-color: var(--kui-color-main);
77
82
  box-shadow: 0 0 0 2px var(--kui-color-main-90);
83
+ z-index: 1;
78
84
  }
79
85
 
80
86
  .k-input-suffix,
@@ -101,6 +107,18 @@
101
107
  &.k-input-circle {
102
108
  border-radius: 20px;
103
109
  }
110
+
111
+ .k-input-suffix-addon {
112
+ margin-right: -8px;
113
+ margin-top: -1px;
114
+ margin-bottom: -1px;
115
+
116
+ & *:first-child {
117
+ border-top-left-radius: 0;
118
+ border-bottom-left-radius: 0;
119
+ }
120
+ }
121
+
104
122
  }
105
123
 
106
124
  .k-input[single],
@@ -121,7 +139,7 @@
121
139
  position: relative;
122
140
  cursor: text;
123
141
  transition: border .3s ease-in-out;
124
- flex-shrink: 0;
142
+ // flex-shrink: 0;
125
143
  line-height: 1.571;
126
144
 
127
145
  &:focus {
@@ -217,6 +235,7 @@ select:-webkit-autofill:focus {
217
235
  padding: 0 4px;
218
236
  gap: 4px;
219
237
  height: 24px;
238
+ font-size: 12px;
220
239
 
221
240
  .k-input-text {
222
241
  font-size: 12px;
@@ -236,6 +255,12 @@ select:-webkit-autofill:focus {
236
255
  font-size: 12px;
237
256
  }
238
257
  }
258
+
259
+ .k-input-group-suffix,
260
+ .k-input-group-prefix {
261
+ height: 24px;
262
+ font-size: 12px;
263
+ }
239
264
  }
240
265
 
241
266
  .k-input-lg[single] {
@@ -244,6 +269,34 @@ select:-webkit-autofill:focus {
244
269
  font-size: 16px;
245
270
  }
246
271
 
272
+ .k-input-group-suffix,
273
+ .k-input-group-prefix {
274
+ height: 40px;
275
+ font-size: 14px;
276
+
277
+ >[class^="k-"]:not(.k-icon) {
278
+ margin: 0 -1px;
279
+ }
280
+ }
281
+
282
+ .k-input-group-suffix {
283
+ & *:first-child {
284
+ border-top-left-radius: 0;
285
+ border-bottom-left-radius: 0;
286
+ // background-color: red;
287
+ }
288
+ }
289
+
290
+ .k-input-group-prefix {
291
+ & *:last-child {
292
+ border-top-right-radius: 0;
293
+ border-bottom-right-radius: 0;
294
+ // background-color: red;
295
+ }
296
+ }
297
+
298
+
299
+
247
300
  .k-input-lg[mult] {
248
301
  height: 40px;
249
302
 
@@ -308,7 +361,26 @@ select:-webkit-autofill:focus {
308
361
  }
309
362
  }
310
363
 
364
+ .k-input-group-suffix,
365
+ .k-input-group-prefix {
366
+ border: 1px solid var(--kui-color-border);
367
+ display: flex;
368
+ border-radius: @radius;
369
+ flex: 1;
370
+ height: 32px;
371
+ line-height: 1;
372
+ box-sizing: border-box;
373
+ align-items: center;
374
+ font-size: 14px;
375
+ transition: all .3s ease-in-out;
376
+
377
+ >.k-icon {
378
+ margin: 0 8px;
379
+ }
380
+ }
381
+
311
382
  .k-input-group-compact {
383
+ width: 100%;
312
384
  box-sizing: border-box;
313
385
  margin: 0;
314
386
  padding: 0;
@@ -318,6 +390,8 @@ select:-webkit-autofill:focus {
318
390
  border-spacing: 0;
319
391
  align-items: self-start;
320
392
 
393
+
394
+
321
395
  .k-input-group-first-item {
322
396
  border-top-right-radius: 0;
323
397
  border-bottom-right-radius: 0;
@@ -350,4 +424,32 @@ select:-webkit-autofill:focus {
350
424
  z-index: 1;
351
425
  }
352
426
  }
427
+ }
428
+
429
+ .k-input-group-sm {
430
+
431
+ .k-input-group-suffix,
432
+ .k-input-group-prefix {
433
+ height: 24px;
434
+ font-size: 12px;
435
+ }
436
+
437
+ .k-input-number-suffix,
438
+ .k-input-number-prefix {
439
+ font-size: 12px;
440
+ }
441
+ }
442
+
443
+ .k-input-group-lg {
444
+
445
+ .k-input-group-suffix,
446
+ .k-input-group-prefix {
447
+ height: 40px;
448
+ font-size: 16px;
449
+ }
450
+
451
+ .k-input-number-suffix,
452
+ .k-input-number-prefix {
453
+ font-size: 16px;
454
+ }
353
455
  }
@@ -4,6 +4,7 @@ export default {
4
4
  props: {
5
5
  value: [String, Number],
6
6
  theme: String,
7
+ disabled: Boolean,
7
8
  size: {
8
9
  default: 'default',
9
10
  validator(value) {
@@ -5,22 +5,16 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:200px;font-size:12px;">
9
- 简单数字输入框<br/>
8
+ <Space style="width:200px;font-size:12px;" vertical>
9
+ 简单数字输入框
10
10
  <InputNumber v-model="value"/>
11
- <br/>
12
- <br/>
13
- 步长为2<br/>
11
+ 步长为2
14
12
  <InputNumber :step="2" :value="2"/>
15
- <br/>
16
- <br/>
17
- 设置了上下界 min=1,max=10<br/>
13
+ 设置了上下界 min=1,max=10
18
14
  <InputNumber :min="1" :max="10"/>
19
- <br/>
20
- <br/>
21
- 禁用<br/>
15
+ 禁用
22
16
  <InputNumber disabled />
23
- </div>
17
+ </Space>
24
18
  </template>
25
19
  <script>
26
20
  export default{
@@ -5,24 +5,18 @@ suffix,prefix 扩展
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:256px;">
9
- <InputNumber placeholder="请填写您的薪资" :icon="LogoYen" >
8
+ <Space style="width:256px;" vertical>
9
+ <InputNumber placeholder="请填写您的薪资" :icon="LogoYen" size="large">
10
10
  <template slot="suffix">
11
11
  <Tooltip title="此处如果不知道怎么填,请咨询管理员">
12
12
  <Icon :type="Heart" color="red"/>
13
13
  </Tooltip>
14
14
  </template>
15
15
  </InputNumber>
16
- <br/>
17
- <br/>
18
16
  <InputNumber placeholder="请输入金额" suffix="元" prefix="$"/>
19
- <br/>
20
- <br/>
21
17
  <InputNumber placeholder="请输入充值金额" :step="50" suffix="元" prefix="充值"/>
22
- <br/>
23
- <br/>
24
18
  <InputNumber placeholder="请输入金额" suffix=".00"/>
25
- </div>
19
+ </Space>
26
20
  </template>
27
21
  <script>
28
22
  import { Heart, LogoYen } from 'kui-icons'
@@ -9,6 +9,7 @@ export default {
9
9
  max: { type: Number },
10
10
  disabled: Boolean,
11
11
  clearable: Boolean,
12
+ readonly: Boolean,
12
13
  formatter: Function,
13
14
  parser: Function,
14
15
  size: String,
@@ -21,6 +22,10 @@ export default {
21
22
  default: 1,
22
23
  },
23
24
  theme: String,
25
+ placeholder: String,
26
+ icon: [String, Array],
27
+ id: String,
28
+
24
29
  },
25
30
  watch: {
26
31
  value(v) {
@@ -121,20 +126,17 @@ export default {
121
126
  },
122
127
  blurHandle(e) {
123
128
  let v = this.getVal(e.target.value)
124
- // console.log(v)
125
- // console.log(e.target.value)
129
+
126
130
  this.defaultValue = v + ''
127
- // console.log('blur1', v)
128
131
 
129
132
  let output = v
130
133
  if (this.parser) {
131
134
  output = this.parser(output + '')
132
135
  }
133
- // console.log('blur2', output)
136
+
134
137
  if (output !== '') {
135
138
  output = toNumber(output + '')
136
139
  }
137
- // console.log('blur3', output)
138
140
 
139
141
  this.$emit('input', output)
140
142
  this.$emit('blur', e)
@@ -167,6 +169,8 @@ export default {
167
169
  return <BaseInput {...props}>
168
170
  <template slot="suffix">
169
171
  {suffixNode}
172
+ </template>
173
+ <template slot='contorls'>
170
174
  {controls ? <div class="k-input-number-controls">
171
175
  <span class="k-input-number-control" onClick={() => this.setVal(1)}><Icon type={ChevronUp} /></span>
172
176
  <span class="k-input-number-control" onClick={this.setVal}><Icon type={ChevronUp} /></span>
@@ -3,8 +3,10 @@
3
3
  .k-input-number {
4
4
  position: relative;
5
5
  display: inline-flex;
6
- flex-shrink: 0;
6
+ // flex-shrink: 0;
7
7
  max-width: 100%;
8
+ min-width: 0;
9
+ width: 100%;
8
10
  color: var(--kui-color-font);
9
11
  align-items: center;
10
12
  border: 1px solid var(--kui-color-border);
@@ -17,6 +19,10 @@
17
19
 
18
20
  &:hover {
19
21
  border-color: var(--kui-color-main);
22
+
23
+ .k-input-number-controls {
24
+ opacity: 1;
25
+ }
20
26
  }
21
27
 
22
28
  .k-input-number-clearable-hidden {
@@ -33,6 +39,7 @@
33
39
  justify-content: center;
34
40
  align-items: center;
35
41
  height: 30px;
42
+ opacity: 0;
36
43
  }
37
44
 
38
45
  .k-input-number-control {
@@ -47,6 +54,7 @@
47
54
  color: var(--kui-color-main);
48
55
  background-color: var(--kui-color-hover);
49
56
  }
57
+
50
58
  &:active {
51
59
  color: var(--kui-color-main);
52
60
  background-color: var(--kui-color-actived);
@@ -96,29 +104,35 @@
96
104
  box-shadow: 0 0 0 2px var(--kui-color-main-90);
97
105
  }
98
106
 
99
- .k-input-number-suffix,
100
- .k-input-number-prefix {
101
- font-size: 12px;
102
- white-space: nowrap;
103
- line-height: 1;
104
- cursor: pointer;
105
- user-select: none;
106
- transition: all .2s ease-in-out;
107
- display: flex;
108
107
 
109
- &:hover {
110
- color: var(--kui-color-font);
111
- }
112
108
 
113
- .k-icon {
114
- font-size: 16px;
115
- transition: all .2s ease-in-out;
116
- color: var(--kui-color-icon);
117
- }
109
+ .k-input-number-icon {
110
+ font-size: 16px;
111
+ color: var(--kui-color-icon);
118
112
  }
113
+ }
119
114
 
120
- .k-input-number-icon {
115
+ .k-input-number-suffix {
116
+ padding: 0 8px;
117
+ }
118
+
119
+ .k-input-number-suffix,
120
+ .k-input-number-prefix {
121
+ font-size: 14px;
122
+ white-space: nowrap;
123
+ line-height: 1;
124
+ cursor: pointer;
125
+ user-select: none;
126
+ transition: all .2s ease-in-out;
127
+ display: flex;
128
+
129
+ &:hover {
130
+ color: var(--kui-color-font);
131
+ }
132
+
133
+ .k-icon {
121
134
  font-size: 16px;
135
+ transition: all .2s ease-in-out;
122
136
  color: var(--kui-color-icon);
123
137
  }
124
138
  }
@@ -179,7 +193,7 @@
179
193
  }
180
194
 
181
195
  .k-input-number-icon {
182
- font-size: 25px;
196
+ font-size: 20px;
183
197
  }
184
198
 
185
199
  .k-input-number-suffix {
@@ -156,7 +156,7 @@
156
156
  padding: 10px 12px;
157
157
  box-sizing: border-box;
158
158
  border-radius: var(--kui-border-radius);
159
-
159
+ height: 32px;
160
160
  &:hover {
161
161
  background-color: var(--kui-color-hover);
162
162
  }
@@ -19,13 +19,4 @@ export default {
19
19
  )
20
20
  }
21
21
  }
22
- </script>
23
- <style lang="less">
24
- .demo-message {
25
- .k-btn{
26
- margin-right: 10px;
27
- margin-bottom: 10px;
28
- min-width: 70px;
29
- }
30
- }
31
- </style>
22
+ </script>
@@ -5,11 +5,11 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="warning">Warning </Button>
10
10
  <Button @click="success">Success </Button>
11
- <Button @click="error" type="danger">Error</Button>
12
- </div>
11
+ <Button @click="error">Error</Button>
12
+ </Space>
13
13
  </template>
14
14
  <script>
15
15
  export default{
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="visible=true" type="primary">打开弹窗</Button>
10
10
  <Button @click="custom=true" type="primary">自定义</Button>
11
11
  <Button @click="visible1=true" type="primary">点蒙层关闭</Button>
@@ -29,7 +29,7 @@
29
29
  <p>This is the content of a basic modal.</p>
30
30
  <p>More content...</p>
31
31
  </Modal>
32
- </div>
32
+ </Space>
33
33
  </template>
34
34
  <script>
35
35
  export default{
@@ -5,12 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="confirm()">标准调用</Button>
10
10
  <Button @click="custom()">国际化</Button>
11
11
  <Button @click="Async()">异步关闭</Button>
12
12
  <Button @click="closeAll()">Close All</Button>
13
- </div>
13
+ </Space>
14
14
  </template>
15
15
  <script>
16
16
  export default{
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="visible1=true" type="primary">宽300px</Button>
10
10
  <Button @click="visible2=true" type="primary">自定义页脚</Button>
11
11
  <Button @click="visible3=true" type="primary">国际化</Button>
@@ -28,7 +28,7 @@
28
28
  <Modal title="提交表单" v-model="visible4" :loading="loading" @ok="submit" @close="close">
29
29
  <p>Name:<Input placeholder="Please input your name" style="width:200px"/></p>
30
30
  </Modal>
31
- </div>
31
+ </Space>
32
32
  </template>
33
33
  <script>
34
34
  import { Save } from "kui-icons";
@@ -5,13 +5,13 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="show(0)">Success</Button>
10
10
  <Button @click="show(1)" type="danger">Error</Button>
11
11
  <Button @click="show(2)">Warning</Button>
12
12
  <Button @click="show(3)" type="primary">Info</Button>
13
13
  <Button @click="show(4)" :icon="Moon">Custom icon</Button>
14
- </div>
14
+ </Space>
15
15
  </template>
16
16
  <script>
17
17
  import { Moon } from "kui-icons";
@@ -22,13 +22,4 @@ export default {
22
22
  }
23
23
  }
24
24
 
25
- </script>
26
- <style lang="less">
27
- .demo-modal {
28
- .k-btn{
29
- margin-right: 10px;
30
- margin-bottom: 10px;
31
- min-width: 70px;
32
- }
33
- }
34
- </style>
25
+ </script>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="show1=true" type="primary">可以拖动</Button>
10
10
  <Button @click="show2=true" type="primary">居中显示</Button>
11
11
  <Button @click="show3=true" type="primary">顶部 200px</Button>
@@ -36,7 +36,7 @@
36
36
  <Modal title="No footer" v-model="show6" :footer="null" @ok="show6=false">
37
37
  {{text}}
38
38
  </Modal>
39
- </div>
39
+ </Space>
40
40
  </template>
41
41
  <script>
42
42
  export default{
@@ -5,11 +5,11 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="config">10秒后关闭</Button>
10
10
  <Button @click="config2" type="primary">5秒后关闭</Button>
11
11
  <Button @click="config3" type="primary">手动关闭</Button>
12
- </div>
12
+ </Space>
13
13
  </template>
14
14
  <script>
15
15
  export default{
@@ -5,10 +5,10 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Button @click="alipay" :icon="LogoAlipay"></Button>
10
10
  <Button @click="wechat" :icon="LogoWechat"></Button>
11
- </div>
11
+ </Space>
12
12
  </template>
13
13
  <script>
14
14
  import { LogoAlipay, LogoWechat } from "kui-icons";
@@ -19,13 +19,4 @@ export default {
19
19
  )
20
20
  }
21
21
  }
22
- </script>
23
- <style lang="less">
24
- .demo-notice {
25
- .k-btn{
26
- margin-right: 10px;
27
- margin-bottom: 10px;
28
- min-width: 70px;
29
- }
30
- }
31
- </style>
22
+ </script>
@@ -5,12 +5,12 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
9
- <Button @click="notice('info')" type="primary">消息提示 </Button>
8
+ <Space>
9
+ <Button @click="notice('info')">消息提示 </Button>
10
10
  <Button @click="notice('warning')">警告提示 </Button>
11
11
  <Button @click="notice('success')">成功提示 </Button>
12
- <Button @click="notice('error')" type="danger">错误提示 </Button>
13
- </div>
12
+ <Button @click="notice('error')">错误提示 </Button>
13
+ </Space>
14
14
  </template>
15
15
  <script>
16
16
  export default{
@@ -17,13 +17,4 @@ export default {
17
17
  )
18
18
  }
19
19
  }
20
- </script>
21
- <style lang="less">
22
- .demo-popconfirm {
23
- .k-btn{
24
- margin-right: 10px;
25
- margin-bottom: 10px;
26
- min-width: 70px;
27
- }
28
- }
29
- </style>
20
+ </script>
@@ -5,21 +5,23 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Popconfirm
9
- title="您确认删除这条内容吗?"
10
- @ok="ok"
11
- @cancel="cancel"
12
- >
13
- <Button type="primary">确认</Button>
14
- </Popconfirm>
15
- <Popconfirm title="Are you sure delete this task?"
16
- ok-text="Yes"
17
- cancel-text="No"
18
- @ok="ok"
19
- @cancel="cancel"
20
- >
21
- <Button type="primary">Confirm</Button>
22
- </Popconfirm>
8
+ <Space>
9
+ <Popconfirm
10
+ title="您确认删除这条内容吗?"
11
+ @ok="ok"
12
+ @cancel="cancel"
13
+ >
14
+ <Button type="primary">确认</Button>
15
+ </Popconfirm>
16
+ <Popconfirm title="Are you sure delete this task?"
17
+ ok-text="Yes"
18
+ cancel-text="No"
19
+ @ok="ok"
20
+ @cancel="cancel"
21
+ >
22
+ <Button type="primary">Confirm</Button>
23
+ </Popconfirm>
24
+ </Space>
23
25
  </template>
24
26
  <script>
25
27
  export default{