kui-vue 3.4.6 → 3.4.8
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.
- package/components/_tool/clone.js +1 -0
- package/components/avatar/demo/base.md +13 -15
- package/components/avatar/demo/change.md +2 -2
- package/components/avatar/demo/index.vue +1 -8
- package/components/avatar/demo/types.md +2 -2
- package/components/badge/badge.jsx +1 -0
- package/components/badge/demo/base.md +5 -5
- package/components/badge/demo/dot.md +1 -12
- package/components/badge/demo/dynamic.md +0 -11
- package/components/badge/demo/index.vue +14 -2
- package/components/badge/demo/mark.md +3 -3
- package/components/badge/demo/max.md +0 -12
- package/components/badge/demo/status.md +0 -5
- package/components/badge/styles/index.less +29 -2
- package/components/base/input.jsx +53 -27
- package/components/button/styles/index.less +4 -1
- package/components/checkbox/checkbox.jsx +1 -1
- package/components/checkbox/styles/index.less +13 -1
- package/components/colorPicker/colorpicker.jsx +59 -35
- package/components/colorPicker/demo/shape.md +1 -0
- package/components/colorPicker/index.md +1 -0
- package/components/colorPicker/styles/index.less +68 -56
- package/components/datePicker/datepicker.jsx +2 -1
- package/components/datePicker/demo/base.md +0 -3
- package/components/datePicker/styles/datepicker.less +1 -0
- package/components/drawer/drawer.jsx +1 -1
- package/components/dropdown/styles/index.less +4 -1
- package/components/form/demo/base.md +19 -2
- package/components/form/demo/length.md +1 -1
- package/components/form/demo/valid.md +21 -6
- package/components/form/form.jsx +4 -2
- package/components/form/formitem.jsx +3 -1
- package/components/form/styles/index.less +4 -2
- package/components/index.js +2 -0
- package/components/input/demo/base.md +2 -2
- package/components/input/demo/event.md +2 -2
- package/components/input/demo/group.md +20 -3
- package/components/input/demo/icon.md +8 -2
- package/components/input/demo/index.vue +1 -15
- package/components/input/demo/size.md +2 -2
- package/components/input/demo/suffix.md +63 -29
- package/components/input/demo/textarea.md +2 -2
- package/components/input/demo/theme.md +2 -4
- package/components/input/index.md +20 -10
- package/components/input/input.jsx +3 -0
- package/components/input/inputGroup.jsx +7 -4
- package/components/input/styles/index.less +104 -2
- package/components/input/textarea.jsx +1 -0
- package/components/inputNumber/demo/base.md +6 -12
- package/components/inputNumber/demo/ffix.md +3 -9
- package/components/inputNumber/inputNumber.jsx +9 -5
- package/components/inputNumber/styles/index.less +34 -20
- package/components/menu/styles/index.less +1 -1
- package/components/message/demo/close.md +2 -2
- package/components/message/demo/icon.md +2 -2
- package/components/message/demo/index.vue +1 -10
- package/components/message/demo/types.md +3 -3
- package/components/modal/demo/base.md +2 -2
- package/components/modal/demo/confrim.md +2 -2
- package/components/modal/demo/custom.md +2 -2
- package/components/modal/demo/global.md +2 -2
- package/components/modal/demo/index.vue +1 -10
- package/components/modal/demo/more.md +2 -2
- package/components/notice/demo/close.md +2 -2
- package/components/notice/demo/icon.md +2 -2
- package/components/notice/demo/index.vue +1 -10
- package/components/notice/demo/types.md +4 -4
- package/components/popconfirm/demo/index.vue +1 -10
- package/components/popconfirm/demo/local.md +17 -15
- package/components/popconfirm/demo/placement.md +50 -46
- package/components/poptip/demo/base.md +16 -14
- package/components/poptip/demo/index.vue +1 -10
- package/components/poptip/demo/placement.md +99 -94
- package/components/poptip/demo/trigger.md +16 -14
- package/components/poptip/styles/index.less +16 -0
- package/components/rate/demo/base.md +2 -5
- package/components/rate/demo/character.md +2 -4
- package/components/rate/demo/clear.md +2 -3
- package/components/rate/demo/custom.md +3 -5
- package/components/rate/demo/disabled.md +4 -8
- package/components/rate/demo/tips.md +2 -2
- package/components/select/styles/index.less +5 -1
- package/components/slider/styles/index.less +3 -3
- package/components/space/demo/compact.md +23 -6
- package/components/space/space.jsx +21 -24
- package/components/space/styles/index.less +5 -0
- package/components/styles/index.less +1 -0
- package/components/tooltip/demo/index.vue +1 -14
- package/components/tooltip/demo/placement.md +50 -46
- package/components/tree/demo/checkable.md +5 -1
- package/components/tree/demo/directory.md +27 -31
- package/components/tree/index.md +22 -15
- package/components/tree/node.jsx +43 -23
- package/components/tree/styles/index.less +257 -215
- package/components/tree/tree.jsx +39 -6
- package/components/treeselect/demo/base.md +59 -0
- package/components/treeselect/demo/checkable.md +59 -0
- package/components/treeselect/demo/index.vue +30 -0
- package/components/treeselect/demo/info.md +7 -0
- package/components/treeselect/demo/multiple.md +59 -0
- package/components/treeselect/demo/sync.md +38 -0
- package/components/treeselect/index.md +38 -0
- package/components/treeselect/styles/index.less +580 -27
- package/components/treeselect/treeselect.jsx +508 -0
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/package.json +2 -1
- package/components/treeselect/treeselect.vue +0 -200
|
@@ -5,56 +5,60 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
8
|
+
<Flex style="width:300px" vertical align="center">
|
|
9
|
+
<Space compact>
|
|
10
|
+
<Popconfirm :title="title" placement="top-left">
|
|
11
|
+
<Button>TL</Button>
|
|
12
|
+
</Popconfirm>
|
|
13
|
+
<Popconfirm :title="title" placement="top">
|
|
14
|
+
<Button>Top</Button>
|
|
15
|
+
</Popconfirm>
|
|
16
|
+
<Popconfirm :title="title" placement="top-right">
|
|
17
|
+
<Button>TR</Button>
|
|
18
|
+
</Popconfirm>
|
|
19
|
+
</Space>
|
|
20
|
+
<Flex justify="space-between" style="width:100%;padding:10px 0">
|
|
21
|
+
<Space vertical compact>
|
|
22
|
+
<Popconfirm :title="title" placement="left-top">
|
|
23
|
+
<Button>LT</Button>
|
|
24
|
+
</Popconfirm>
|
|
25
|
+
<Popconfirm :title="title" placement="left">
|
|
26
|
+
<Button>Left</Button>
|
|
27
|
+
</Popconfirm>
|
|
28
|
+
<Popconfirm :title="title" placement="left-bottom">
|
|
29
|
+
<Button>LB</Button>
|
|
30
|
+
</Popconfirm>
|
|
31
|
+
</Space>
|
|
32
|
+
<Space vertical compact>
|
|
33
|
+
<Popconfirm :title="title" placement="right-top">
|
|
34
|
+
<Button>RT</Button>
|
|
35
|
+
</Popconfirm>
|
|
36
|
+
<Popconfirm :title="title" placement="right">
|
|
37
|
+
<Button>Right</Button>
|
|
38
|
+
</Popconfirm>
|
|
39
|
+
<Popconfirm :title="title" placement="right-bottom">
|
|
40
|
+
<Button>RB</Button>
|
|
41
|
+
</Popconfirm>
|
|
42
|
+
</Space>
|
|
43
|
+
</Flex>
|
|
44
|
+
<Space compact>
|
|
45
|
+
<Popconfirm :title="title" placement="bottom-left">
|
|
46
|
+
<Button>BL</Button>
|
|
47
|
+
</Popconfirm>
|
|
48
|
+
<Popconfirm :title="title" placement="bottom">
|
|
49
|
+
<Button>Bottom</Button>
|
|
50
|
+
</Popconfirm>
|
|
51
|
+
<Popconfirm :title="title" placement="bottom-right">
|
|
52
|
+
<Button>BR</Button>
|
|
53
|
+
</Popconfirm>
|
|
54
|
+
</Space>
|
|
55
|
+
</Flex>
|
|
52
56
|
</template>
|
|
53
57
|
<script>
|
|
54
|
-
export default{
|
|
58
|
+
export default {
|
|
55
59
|
data() {
|
|
56
60
|
return {
|
|
57
|
-
title:'Are you sure to delete this task?',
|
|
61
|
+
title: 'Are you sure to delete this task?',
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -5,19 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
<Space>
|
|
9
|
+
<Poptip title="标题">
|
|
10
|
+
<template slot="content">
|
|
11
|
+
<p>明月几时有,把酒问青天!</p>
|
|
12
|
+
<p>明月几时有,把酒问青天!</p>
|
|
13
|
+
</template>
|
|
14
|
+
<Button type="primary">Hover me</Button>
|
|
15
|
+
</Poptip>
|
|
16
|
+
<Poptip dark>
|
|
17
|
+
<template slot="content">
|
|
18
|
+
<p>明月几时有,把酒问青天!</p>
|
|
19
|
+
<p>明月几时有,把酒问青天!</p>
|
|
20
|
+
</template>
|
|
21
|
+
<Button type="primary">No title</Button>
|
|
22
|
+
</Poptip>
|
|
23
|
+
</Space>
|
|
22
24
|
</template>
|
|
23
25
|
```
|
|
@@ -5,104 +5,109 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
8
|
+
<Flex style="width:300px" vertical align="center">
|
|
9
|
+
<Space compact>
|
|
10
|
+
<Poptip placement="top-left">
|
|
11
|
+
<Button>TL</Button>
|
|
12
|
+
<template slot="content">
|
|
13
|
+
<p>{{ tip }}</p>
|
|
14
|
+
<p>{{ tip }}</p>
|
|
15
|
+
</template>
|
|
16
|
+
</Poptip>
|
|
17
|
+
<Poptip placement="top">
|
|
18
|
+
<Button>Top</Button>
|
|
19
|
+
<template slot="content">
|
|
20
|
+
<p>{{ tip }}</p>
|
|
21
|
+
<p>{{ tip }}</p>
|
|
22
|
+
</template>
|
|
23
|
+
</Poptip>
|
|
24
|
+
<Poptip placement="top-right">
|
|
25
|
+
<Button>TR</Button>
|
|
26
|
+
<template slot="content">
|
|
27
|
+
<p>{{ tip }}</p>
|
|
28
|
+
<p>{{ tip }}</p>
|
|
29
|
+
</template>
|
|
30
|
+
</Poptip>
|
|
31
|
+
</Space>
|
|
32
|
+
<Flex justify="space-between" style="width:100%;padding:10px 0">
|
|
33
|
+
<Space vertical compact>
|
|
34
|
+
<Poptip placement="left-top">
|
|
35
|
+
<Button>LT</Button>
|
|
36
|
+
<template slot="content">
|
|
37
|
+
<p>{{ tip }}</p>
|
|
38
|
+
<p>{{ tip }}</p>
|
|
39
|
+
</template>
|
|
40
|
+
</Poptip>
|
|
41
|
+
<Poptip placement="left">
|
|
42
|
+
<Button>Left</Button>
|
|
43
|
+
<template slot="content">
|
|
44
|
+
<p>{{ tip }}</p>
|
|
45
|
+
<p>{{ tip }}</p>
|
|
46
|
+
</template>
|
|
47
|
+
</Poptip>
|
|
48
|
+
<Poptip placement="left-bottom">
|
|
49
|
+
<Button>LB</Button>
|
|
50
|
+
<template slot="content">
|
|
51
|
+
<p>{{ tip }}</p>
|
|
52
|
+
<p>{{ tip }}</p>
|
|
53
|
+
</template>
|
|
54
|
+
</Poptip>
|
|
55
|
+
</Space>
|
|
56
|
+
|
|
57
|
+
<Space vertical compact>
|
|
58
|
+
<Poptip placement="right-top">
|
|
59
|
+
<Button>RT</Button>
|
|
60
|
+
<template slot="content">
|
|
61
|
+
<p>{{ tip }}</p>
|
|
62
|
+
<p>{{ tip }}</p>
|
|
63
|
+
</template>
|
|
64
|
+
</Poptip>
|
|
65
|
+
<Poptip placement="right">
|
|
66
|
+
<Button>Right</Button>
|
|
67
|
+
<template slot="content">
|
|
68
|
+
<p>{{ tip }}</p>
|
|
69
|
+
<p>{{ tip }}</p>
|
|
70
|
+
</template>
|
|
71
|
+
</Poptip>
|
|
72
|
+
<Poptip placement="right-bottom">
|
|
73
|
+
<Button>RB</Button>
|
|
74
|
+
<template slot="content">
|
|
75
|
+
<p>{{ tip }}</p>
|
|
76
|
+
<p>{{ tip }}</p>
|
|
77
|
+
</template>
|
|
78
|
+
</Poptip>
|
|
79
|
+
</Space>
|
|
80
|
+
</Flex>
|
|
81
|
+
<Space compact>
|
|
82
|
+
<Poptip placement="bottom-left">
|
|
83
|
+
<Button>BL</Button>
|
|
84
|
+
<template slot="content">
|
|
85
|
+
<p>{{ tip }}</p>
|
|
86
|
+
<p>{{ tip }}</p>
|
|
87
|
+
</template>
|
|
88
|
+
</Poptip>
|
|
89
|
+
<Poptip placement="bottom">
|
|
90
|
+
<Button>Bottom</Button>
|
|
91
|
+
<template slot="content">
|
|
92
|
+
<p>{{ tip }}</p>
|
|
93
|
+
<p>{{ tip }}</p>
|
|
94
|
+
</template>
|
|
95
|
+
</Poptip>
|
|
96
|
+
<Poptip placement="bottom-right">
|
|
97
|
+
<Button>BR</Button>
|
|
98
|
+
<template slot="content">
|
|
99
|
+
<p>{{ tip }}</p>
|
|
100
|
+
<p>{{ tip }}</p>
|
|
101
|
+
</template>
|
|
102
|
+
</Poptip>
|
|
103
|
+
</Space>
|
|
104
|
+
</Flex>
|
|
100
105
|
</template>
|
|
101
106
|
<script>
|
|
102
|
-
export default{
|
|
107
|
+
export default {
|
|
103
108
|
data() {
|
|
104
109
|
return {
|
|
105
|
-
tip:'明月几时有,把酒问青天!',
|
|
110
|
+
tip: '明月几时有,把酒问青天!',
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
113
|
}
|
|
@@ -5,19 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
<Space>
|
|
9
|
+
<Poptip title="标题">
|
|
10
|
+
<template slot="content">
|
|
11
|
+
<p>明月几时有,把酒问青天!</p>
|
|
12
|
+
<p>明月几时有,把酒问青天!</p>
|
|
13
|
+
</template>
|
|
14
|
+
<Button type="primary">Hover me</Button>
|
|
15
|
+
</Poptip>
|
|
16
|
+
<Poptip title="标题" trigger="click">
|
|
17
|
+
<template slot="content">
|
|
18
|
+
<p>明月几时有,把酒问青天!</p>
|
|
19
|
+
<p>明月几时有,把酒问青天!</p>
|
|
20
|
+
</template>
|
|
21
|
+
<Button type="primary">Click me</Button>
|
|
22
|
+
</Poptip>
|
|
23
|
+
</Space>
|
|
22
24
|
</template>
|
|
23
25
|
```
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
.k-poptip-arrow {
|
|
17
17
|
bottom: -7px;
|
|
18
18
|
height: 9px;
|
|
19
|
+
|
|
20
|
+
svg {
|
|
21
|
+
filter: drop-shadow(0px 4px 2px rgba(0, 0, 0, .1));
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
.k-poptip-content {
|
|
@@ -47,6 +51,10 @@
|
|
|
47
51
|
top: -7px;
|
|
48
52
|
height: 9px;
|
|
49
53
|
transform: rotate(180deg);
|
|
54
|
+
|
|
55
|
+
svg {
|
|
56
|
+
filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
|
|
57
|
+
}
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
.k-poptip-content {
|
|
@@ -79,6 +87,10 @@
|
|
|
79
87
|
width: 24px;
|
|
80
88
|
height: 7px;
|
|
81
89
|
transform: rotate(-90deg);
|
|
90
|
+
|
|
91
|
+
svg {
|
|
92
|
+
filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
|
|
93
|
+
}
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
.k-poptip-content {
|
|
@@ -111,6 +123,10 @@
|
|
|
111
123
|
width: 24px;
|
|
112
124
|
height: 7px;
|
|
113
125
|
transform: rotate(90deg);
|
|
126
|
+
|
|
127
|
+
svg {
|
|
128
|
+
filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
|
|
129
|
+
}
|
|
114
130
|
}
|
|
115
131
|
|
|
116
132
|
.k-poptip-content {
|
|
@@ -5,15 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
8
|
+
<Space vertical>
|
|
9
9
|
<Rate :size="30" :value="2"/>
|
|
10
|
-
<br/>
|
|
11
10
|
<Rate :value="3"/>
|
|
12
|
-
<br />
|
|
13
11
|
<Rate :icon="Heart" allowHalf color="red" :value="2.5" :size="30"/>
|
|
14
|
-
<br />
|
|
15
12
|
<Rate :icon="Heart" allowHalf color="red" :value="3.5" :size="40"/>
|
|
16
|
-
</
|
|
13
|
+
</Space>
|
|
17
14
|
</template>
|
|
18
15
|
<script>
|
|
19
16
|
import { Heart } from 'kui-icons'
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
8
|
+
<Space vertical>
|
|
9
9
|
<Rate :icon="Heart" allowHalf />
|
|
10
|
-
<br />
|
|
11
10
|
<Rate character="A" allowHalf style="fontSize: 36px" />
|
|
12
|
-
<br />
|
|
13
11
|
<Rate character="龍" allowHalf />
|
|
14
|
-
</
|
|
12
|
+
</Space>
|
|
15
13
|
</template>
|
|
16
14
|
<script>
|
|
17
15
|
import { Heart } from 'kui-icons'
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<Rate :character="(i)=>i+1" :value="2" :count="9"/>
|
|
10
|
-
<br />
|
|
11
|
-
<br />
|
|
8
|
+
<Space vertical>
|
|
9
|
+
<Rate :character="(i)=>i+1" :value="2" :count="9"/>
|
|
12
10
|
<Rate :icon="(i)=> icons[i]" :value="3"/>
|
|
13
|
-
</
|
|
11
|
+
</Space>
|
|
14
12
|
</template>
|
|
15
13
|
<script>
|
|
16
14
|
import { VolumeOff, VolumeLow, VolumeMedium, VolumeHigh, VolumeMute } from "kui-icons";
|
|
@@ -5,15 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<Rate disabled :value="2.5" allowHalf />
|
|
10
|
-
<
|
|
11
|
-
<br />
|
|
12
|
-
<Rate disabled :value="3.3" show-score :icon="Heart"/>
|
|
13
|
-
<br />
|
|
14
|
-
<br />
|
|
8
|
+
<Space vertical>
|
|
9
|
+
<Rate disabled :value="2.5" allowHalf />
|
|
10
|
+
<Rate disabled :value="3.3" show-score :icon="Heart"/>
|
|
15
11
|
<Rate disabled :value="8.7" show-score :count="10"/>
|
|
16
|
-
</
|
|
12
|
+
</Space>
|
|
17
13
|
</template>
|
|
18
14
|
<script>
|
|
19
15
|
import { Heart } from 'kui-icons'
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.k-select {
|
|
4
4
|
display: inline-flex;
|
|
5
|
+
min-width: 0;
|
|
5
6
|
min-width: 80px;
|
|
6
7
|
box-sizing: border-box;
|
|
7
8
|
vertical-align: middle;
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
position: relative;
|
|
11
12
|
outline: none;
|
|
12
13
|
box-sizing: border-box;
|
|
13
|
-
flex-shrink: 0;
|
|
14
|
+
// flex-shrink: 0;
|
|
14
15
|
align-items: center;
|
|
15
16
|
background-color: var(--kui-color-back);
|
|
16
17
|
border-radius: var(--kui-border-radius);
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
padding-left: 8px;
|
|
19
20
|
transition: border .3s ease-in-out;
|
|
20
21
|
line-height: 1.571;
|
|
22
|
+
// max-width: 100%;
|
|
21
23
|
|
|
22
24
|
&:hover {
|
|
23
25
|
border-color: var(--kui-color-main);
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
.k-select-tag {
|
|
83
85
|
padding: 2px 22px 2px 5px;
|
|
84
86
|
border: 1px solid var(--kui-color-border);
|
|
87
|
+
background-color: var(--kui-color-border);
|
|
85
88
|
border-radius: var(--kui-border-radius);
|
|
86
89
|
display: inline-flex;
|
|
87
90
|
align-items: center;
|
|
@@ -257,6 +260,7 @@
|
|
|
257
260
|
z-index: 1003;
|
|
258
261
|
padding: 5px;
|
|
259
262
|
box-sizing: border-box;
|
|
263
|
+
border: 1px solid var(--kui-color-gray-80);
|
|
260
264
|
|
|
261
265
|
ul {
|
|
262
266
|
padding: 0;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
border-radius: 50%;
|
|
30
30
|
position: absolute;
|
|
31
31
|
cursor: grab;
|
|
32
|
-
background:
|
|
33
|
-
border: 1px solid
|
|
32
|
+
background: var(--kui-color-back);
|
|
33
|
+
border: 1px solid var(--kui-color-border);
|
|
34
34
|
top: 50%;
|
|
35
35
|
transform: translateX(-50%) translateY(-50%);
|
|
36
36
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
height: 4px;
|
|
87
87
|
width: 4px;
|
|
88
88
|
border: 2px solid var(--kui-color-border);
|
|
89
|
-
background:
|
|
89
|
+
background: var(--kui-color-back);
|
|
90
90
|
border-radius: 50%;
|
|
91
91
|
transform: translateX(-50%);
|
|
92
92
|
pointer-events: none;
|