kui-vue 3.6.5 → 3.6.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 (186) hide show
  1. package/components/alert/alert.jsx +26 -7
  2. package/components/alert/demo/basic.md +4 -4
  3. package/components/alert/demo/icon.md +15 -6
  4. package/components/alert/styles/index.less +42 -14
  5. package/components/avatar/styles/index.less +4 -4
  6. package/components/backtop/styles/index.less +10 -14
  7. package/components/badge/styles/index.less +7 -13
  8. package/components/breadcrumb/index.md +7 -6
  9. package/components/breadcrumb/styles/index.less +7 -21
  10. package/components/button/demo/color.md +0 -1
  11. package/components/button/demo/disabled.md +6 -0
  12. package/components/button/demo/light.md +1 -1
  13. package/components/button/styles/index.less +165 -111
  14. package/components/card/card.jsx +1 -1
  15. package/components/card/demo/basic.md +1 -1
  16. package/components/card/demo/border.md +1 -1
  17. package/components/card/demo/notitle.md +1 -1
  18. package/components/card/styles/index.less +5 -4
  19. package/components/carousel/carousel.jsx +186 -175
  20. package/components/carousel/styles/index.less +11 -16
  21. package/components/checkbox/checkbox.jsx +2 -2
  22. package/components/checkbox/styles/index.less +21 -29
  23. package/components/collapse/styles/index.less +7 -11
  24. package/components/colorPicker/styles/index.less +83 -71
  25. package/components/config/context.js +21 -0
  26. package/components/config/index.js +10 -2
  27. package/components/datePicker/datepicker.jsx +6 -2
  28. package/components/datePicker/styles/index.less +54 -57
  29. package/components/descriptions/styles/index.less +8 -17
  30. package/components/divider/styles/index.less +20 -18
  31. package/components/drawer/styles/animal.less +0 -1
  32. package/components/drawer/styles/index.less +8 -11
  33. package/components/dropdown/styles/index.less +26 -34
  34. package/components/empty/index.md +3 -2
  35. package/components/empty/styles/index.less +2 -2
  36. package/components/flex/demo/align.md +1 -1
  37. package/components/flex/demo/basic.md +1 -2
  38. package/components/flex/index.md +1 -1
  39. package/components/form/demo/dynamicvalid.md +1 -3
  40. package/components/form/demo/info.md +22 -12
  41. package/components/form/demo/valid.md +6 -6
  42. package/components/form/demo/withmodal.md +2 -2
  43. package/components/form/styles/index.less +10 -11
  44. package/components/grid/index.md +4 -1
  45. package/components/grid/styles/index.less +1 -1
  46. package/components/icon/demo/search.vue +44 -21
  47. package/components/icon/index.md +1 -1
  48. package/components/icon/styles/index.less +7 -8
  49. package/components/image/index.md +7 -1
  50. package/components/image/preview.jsx +17 -4
  51. package/components/image/styles/index.less +36 -42
  52. package/components/index.js +9 -9
  53. package/components/input/demo/icon.md +0 -1
  54. package/components/input/demo/suffix.md +2 -7
  55. package/components/input/input.jsx +31 -29
  56. package/components/input/inputBox.jsx +13 -0
  57. package/components/input/inputGroup.jsx +2 -0
  58. package/components/input/styles/index.less +47 -53
  59. package/components/input/textarea.jsx +1 -1
  60. package/components/inputNumber/demo/basic.md +3 -3
  61. package/components/inputNumber/demo/ffix.md +2 -2
  62. package/components/inputNumber/inputNumber.jsx +2 -2
  63. package/components/inputNumber/styles/index.less +36 -42
  64. package/components/layout/demo/basic.md +5 -5
  65. package/components/layout/demo/info.md +1 -34
  66. package/components/layout/demo/layout1.md +7 -7
  67. package/components/layout/demo/layout2.md +6 -7
  68. package/components/layout/demo/layout3.md +5 -5
  69. package/components/layout/demo/layout4.md +12 -8
  70. package/components/layout/demo/layout5.md +6 -2
  71. package/components/layout/styles/index.less +1 -18
  72. package/components/loading/demo/info.md +3 -3
  73. package/components/loading/styles/index.less +31 -31
  74. package/components/menu/index.md +14 -3
  75. package/components/menu/menu.jsx +1 -1
  76. package/components/menu/recursiveMenu.jsx +1 -0
  77. package/components/menu/styles/index.less +43 -55
  78. package/components/message/demo/basic.md +0 -7
  79. package/components/message/index.js +0 -4
  80. package/components/message/index.md +0 -1
  81. package/components/message/inner.jsx +15 -2
  82. package/components/message/styles/index.less +12 -17
  83. package/components/modal/demo/confirm.md +6 -6
  84. package/components/modal/demo/global.md +0 -15
  85. package/components/modal/demo/info.md +0 -1
  86. package/components/modal/index.js +5 -34
  87. package/components/modal/index.md +1 -2
  88. package/components/modal/modal.jsx +2 -1
  89. package/components/modal/styles/index.less +14 -21
  90. package/components/notice/demo/basic.md +0 -9
  91. package/components/notice/demo/close.md +4 -0
  92. package/components/notice/demo/types.md +1 -2
  93. package/components/notice/index.js +1 -19
  94. package/components/notice/styles/index.less +16 -22
  95. package/components/page/page.jsx +5 -4
  96. package/components/page/styles/index.less +49 -50
  97. package/components/popconfirm/demo/basic.md +11 -18
  98. package/components/popconfirm/demo/info.md +3 -1
  99. package/components/popconfirm/demo/local.md +14 -20
  100. package/components/popconfirm/demo/placement.md +3 -9
  101. package/components/popconfirm/index.md +3 -2
  102. package/components/popconfirm/styles/index.less +9 -15
  103. package/components/poptip/styles/index.less +44 -49
  104. package/components/progress/styles/index.less +13 -13
  105. package/components/radio/index.md +7 -7
  106. package/components/radio/radio.jsx +5 -1
  107. package/components/radio/styles/index.less +26 -32
  108. package/components/rate/index.md +11 -11
  109. package/components/rate/styles/index.less +4 -7
  110. package/components/select/select.jsx +1 -1
  111. package/components/select/styles/index.less +37 -50
  112. package/components/skeleton/index.md +5 -1
  113. package/components/skeleton/styles/index.less +21 -19
  114. package/components/slider/slider.jsx +25 -13
  115. package/components/slider/styles/index.less +13 -12
  116. package/components/space/space.jsx +2 -1
  117. package/components/spin/styles/index.less +25 -40
  118. package/components/statCard/demo/card.md +18 -4
  119. package/components/statCard/index.md +5 -5
  120. package/components/statCard/statCard.jsx +4 -1
  121. package/components/statCard/styles/index.less +9 -6
  122. package/components/styles/less-css-var.less +305 -0
  123. package/components/styles/less-var.less +296 -0
  124. package/components/styles/sys.less +19 -15
  125. package/components/switch/styles/index.less +9 -24
  126. package/components/table/index.md +1 -1
  127. package/components/table/styles/index.less +63 -59
  128. package/components/table/table.jsx +1 -1
  129. package/components/tabs/styles/index.less +22 -24
  130. package/components/tag/demo/basic.md +0 -8
  131. package/components/tag/index.md +2 -1
  132. package/components/tag/styles/index.less +40 -41
  133. package/components/tag/tag.jsx +2 -2
  134. package/components/timeline/styles/index.less +8 -14
  135. package/components/tooltip/styles/index.less +35 -40
  136. package/components/tree/index.md +15 -15
  137. package/components/tree/styles/index.less +36 -56
  138. package/components/tree/tree.jsx +1 -0
  139. package/components/treeselect/index.md +1 -1
  140. package/components/treeselect/styles/index.less +26 -32
  141. package/components/treeselect/treeselect.jsx +1 -1
  142. package/components/upload/demo/forms.md +0 -1
  143. package/components/upload/fileList.jsx +6 -3
  144. package/components/upload/styles/index.less +33 -29
  145. package/components/upload/upload.jsx +5 -1
  146. package/components/utils/vue.js +4 -2
  147. package/dist/k-ui.cjs.js +2 -2
  148. package/dist/k-ui.css +2 -2
  149. package/dist/k-ui.d.ts +109 -94
  150. package/dist/k-ui.esm.js +2 -2
  151. package/dist/k-ui.umd.js +2 -2
  152. package/dist/locale/de.js +1 -1
  153. package/dist/locale/el.js +1 -1
  154. package/dist/locale/en.js +1 -1
  155. package/dist/locale/fr.js +1 -1
  156. package/dist/locale/it.js +1 -1
  157. package/dist/locale/ja.js +1 -1
  158. package/dist/locale/ko.js +1 -1
  159. package/dist/locale/ru.js +1 -1
  160. package/dist/locale/th.js +1 -1
  161. package/dist/locale/uk.js +1 -1
  162. package/dist/locale/vi.js +1 -1
  163. package/dist/locale/zh-CN.js +1 -1
  164. package/dist/locale/zh-TW.js +1 -1
  165. package/package.json +14 -16
  166. package/types/alert/Alert.d.ts +2 -0
  167. package/types/card/Card.d.ts +1 -1
  168. package/types/checkbox/Checkbox.d.ts +1 -0
  169. package/types/datePicker/DatePicker.d.ts +1 -0
  170. package/types/index.d.ts +10 -10
  171. package/types/input/Input.d.ts +1 -0
  172. package/types/input/InputGroup.d.ts +2 -0
  173. package/types/input/TextArea.d.ts +1 -0
  174. package/types/inputNumber/InputNumber.d.ts +1 -0
  175. package/types/page/Page.d.ts +1 -0
  176. package/types/select/Select.d.ts +1 -0
  177. package/types/statCard/StatCard.d.ts +2 -0
  178. package/types/table/Table.d.ts +1 -1
  179. package/types/tag/Tag.d.ts +1 -0
  180. package/types/treeselect/TreeSelect.d.ts +1 -0
  181. package/components/dropdown/demo/custom.md +0 -31
  182. package/components/icon/lib/dist.json +0 -1
  183. package/components/icon/lib/kui-icons.js +0 -1
  184. package/components/icon/lib/sprite.svg +0 -1
  185. package/components/styles/color.less +0 -209
  186. package/components/styles/var.less +0 -207
@@ -1,7 +1,7 @@
1
- @import "../../styles/var.less";
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-page {
4
- color: var(--kui-color-font);
4
+ color: var(--kui-color-text);
5
5
  font-size: 14px;
6
6
  -webkit-user-select: none;
7
7
  user-select: none;
@@ -17,7 +17,7 @@
17
17
  }
18
18
  .k-pager-item {
19
19
  background: transparent;
20
- color: var(--kui-color-font);
20
+ color: var(--kui-color-text);
21
21
  min-width: 32px;
22
22
  height: 32px;
23
23
  line-height: 1;
@@ -28,8 +28,6 @@
28
28
  align-items: center;
29
29
  justify-content: center;
30
30
  box-sizing: border-box;
31
- // border: 1px solid var(--kui-color-border);
32
- // transition: all 0.2s ease-in-out 0s;
33
31
  margin-left: -1px;
34
32
  font-size: 14px;
35
33
  position: relative;
@@ -45,22 +43,18 @@
45
43
  }
46
44
 
47
45
  .k-pager-item-active {
48
- border: 1px solid var(--kui-color-main);
49
- color: var(--kui-color-main);
46
+ // border: 1px solid var(--kui-color-primary);
47
+ // color: var(--kui-color-primary);
50
48
 
51
- &:hover {
52
- background: none;
53
- color: var(--kui-color-main-hover);
54
- }
49
+ // &:hover {
50
+ // background: none;
51
+ // color: var(--kui-color-primary-hover);
52
+ // }
55
53
  }
56
54
 
57
55
  .k-pager-more {
58
56
  font-size: 20px;
59
57
  border-color: transparent;
60
-
61
- &:hover {
62
- border-color: transparent;
63
- }
64
58
  }
65
59
 
66
60
  .k-pager-prev {
@@ -78,30 +72,20 @@
78
72
  }
79
73
 
80
74
  .k-pager-item-disabled {
81
- border-color: var(--kui-color-disable-border);
75
+ border-color: var(--kui-color-border-disabled);
82
76
  cursor: not-allowed;
83
77
 
84
78
  .k-icon {
85
- color: var(--kui-color-disabled);
86
- }
87
-
88
- &:hover {
89
- // border-color: var(--kui-color-disable-border);
90
- background: none;
91
-
92
- .k-icon {
93
- color: var(--kui-color-disabled);
94
- }
79
+ color: var(--kui-color-text-disabled);
95
80
  }
96
81
  }
97
82
 
98
83
  .k-pager-more {
99
- color: var(--kui-color-gray);
84
+ color: var(--kui-color-text-placeholder);
100
85
  }
101
86
 
102
87
  .k-page-sizer {
103
88
  display: inline-block;
104
- // width: 90px;
105
89
  }
106
90
 
107
91
  .k-page-number {
@@ -130,41 +114,56 @@
130
114
  }
131
115
  }
132
116
 
133
- &:not(.k-page-disabled) .k-pager-item:not(.k-pager-item-disabled) {
134
- cursor: pointer;
117
+ // &:not(.k-page-disabled) .k-pager-item:not(.k-pager-item-disabled) {
118
+ // cursor: pointer;
119
+ // &:hover {
120
+ // background-color: var(--kui-color-hover);
121
+ // .k-icon {
122
+ // color: var(--kui-color-primary-hover);
123
+ // }
124
+ // }
125
+
126
+ // &:active {
127
+ // background-color: var(--kui-color-active);
128
+
129
+ // .k-icon {
130
+ // color: var(--kui-color-main-active);
131
+ // }
132
+ // }
133
+ // }
134
+ }
135
+ .k-page-light:not(.k-page-disabled) {
136
+ .k-pager-item:not(.k-pager-item-disabled, .k-pager-item-active) {
135
137
  &:hover {
136
- background-color: var(--kui-color-hover);
137
- .k-icon {
138
- color: var(--kui-color-main-hover);
139
- }
138
+ background-color: var(--kui-color-item-hover);
140
139
  }
141
-
142
140
  &:active {
143
- background-color: var(--kui-color-active);
144
-
145
- .k-icon {
146
- color: var(--kui-color-main-active);
147
- }
141
+ background-color: var(--kui-color-item-active);
148
142
  }
149
143
  }
150
- }
151
- .k-page-light {
152
144
  .k-pager-item-active {
153
- background-color: var(--kui-color-gray-80);
154
- border-color: transparent;
145
+ background-color: var(--kui-color-item-selected);
146
+ color: var(--kui-color-primary);
147
+ // border-color: transparent;
148
+ }
149
+ .k-pager-more,
150
+ .k-pager-prev,
151
+ .k-pager-next {
152
+ &:not(.k-pager-item-disabled):hover .k-icon {
153
+ color: var(--kui-color-text);
154
+ }
155
155
  }
156
156
  }
157
157
  .k-page-disabled {
158
158
  cursor: not-allowed;
159
+ color: var(--kui-color-text-disabled);
159
160
  .k-pager-item {
160
- color: var(--kui-color-disabled);
161
- border-color: var(--kui-color-disable-border);
161
+ color: var(--kui-color-text-disabled);
162
+ border-color: var(--kui-color-border-disabled);
162
163
  }
163
164
  .k-pager-item-active {
164
- color: var(--kui-color-disabled);
165
- :hover {
166
- color: var(--kui-color-disabled);
167
- }
165
+ background-color: var(--kui-color-item-disabled);
166
+ color: var(--kui-color-text-disabled);
168
167
  }
169
168
  * {
170
169
  cursor: not-allowed;
@@ -5,24 +5,17 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Popconfirm
9
- title="Are you sure delete this task?"
10
- @ok="ok"
11
- @cancel="cancel"
12
- >
8
+ <Popconfirm title="Are you sure delete this task?" @ok="ok" @cancel="cancel">
13
9
  <a type="primary">Delete</a>
14
10
  </Popconfirm>
15
11
  </template>
16
- <script>
17
- export default{
18
- methods:{
19
- ok(){
20
- this.$message.success('Clicked on ok')
21
- },
22
- cancel(){
23
- this.$message.info('Clicked on cancel')
24
- }
25
- }
26
- }
27
- </script>h
28
- ```
12
+ <script setup>
13
+ import { message } from "kui-vue";
14
+ const ok = () => {
15
+ message.success("Clicked on ok");
16
+ };
17
+ const cancel = () => {
18
+ message.info("Clicked on cancel");
19
+ };
20
+ </script>
21
+ ```
@@ -1,9 +1,11 @@
1
1
  # Popconfirm 气泡确认框
2
+
2
3
  点击元素,弹出气泡式的确认框。
3
4
 
4
5
  ## 何时使用
6
+
5
7
  目标元素的操作需要用户进一步的确认时,在目标元素附近弹出浮层提示,询问用户。
6
8
 
7
9
  和 ‘confirm’ 弹出的全屏居中模态对话框相比,交互形式更轻量。
8
10
 
9
- ## 代码演示
11
+ ## 代码演示
@@ -6,33 +6,27 @@
6
6
  ```vue
7
7
  <template>
8
8
  <Space>
9
- <Popconfirm
10
- title="您确认删除这条内容吗?"
11
- @ok="ok"
12
- @cancel="cancel"
13
- >
9
+ <Popconfirm title="您确认删除这条内容吗?" @ok="ok" @cancel="cancel">
14
10
  <Button type="primary">确认</Button>
15
11
  </Popconfirm>
16
- <Popconfirm title="Are you sure delete this task?"
12
+ <Popconfirm
13
+ title="Are you sure delete this task?"
17
14
  ok-text="Yes"
18
15
  cancel-text="No"
19
16
  @ok="ok"
20
17
  @cancel="cancel"
21
- >
18
+ >
22
19
  <Button type="primary">Confirm</Button>
23
20
  </Popconfirm>
24
21
  </Space>
25
22
  </template>
26
- <script>
27
- export default{
28
- methods:{
29
- ok(){
30
- this.$message.success('Clicked on Yes')
31
- },
32
- cancel(){
33
- this.$message.info('Clicked on No')
34
- }
35
- }
36
- }
37
- </script>
38
- ```
23
+ <script setup>
24
+ import { message } from "kui-vue";
25
+ const ok = () => {
26
+ message.success("Clicked on ok");
27
+ };
28
+ const cancel = () => {
29
+ message.info("Clicked on cancel");
30
+ };
31
+ </script>
32
+ ```
@@ -54,13 +54,7 @@
54
54
  </Space>
55
55
  </Flex>
56
56
  </template>
57
- <script>
58
- export default {
59
- data() {
60
- return {
61
- title: 'Are you sure to delete this task?',
62
- }
63
- }
64
- }
57
+ <script setup>
58
+ const title = "Are you sure to delete this task?";
65
59
  </script>
66
- ```
60
+ ```
@@ -1,10 +1,11 @@
1
1
  ## API
2
+
2
3
  | 属性 | 说明 | 类型 | 默认值 |
3
- |-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|--------|
4
+ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------ |
4
5
  | title | 显示的标题 | String,Slots | - |
5
6
  | placement | 提示框出现的位置,可选值为`top`,`top-left`,`top-right`,`bottom`,`bottom-left`,`bottom-right`,`left`,`left-top`,`left-bottom`,`right`,`right-top`,`right-bottom` | String | top |
6
7
  | width | 展示的宽度,默认为内容区域的大小 | String | - |
7
8
  | ok-text | 确定按钮的文字, | String | 确定 |
8
9
  | cancel-text | 取消按钮的文字, | String | 取消 |
9
10
  | cancel | 点击取消的回调, | Function | - |
10
- | ok | 点击确定的回调, | Function | - |
11
+ | ok | 点击确定的回调, | Function | - |
@@ -1,15 +1,13 @@
1
- @import "../../styles/var.less";
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-popconfirm {
4
4
  display: inline-block;
5
- // position: relative;
6
5
  min-width: 200px;
7
- // max-width: 300px;
8
6
  font-size: 12px;
9
7
  line-height: 1.5;
10
8
  position: absolute;
11
9
  z-index: 1001;
12
- color: var(--kui-color-font);
10
+ color: var(--kui-color-text);
13
11
 
14
12
  &[k-placement^="top"] {
15
13
  .k-popconfirm-arrow {
@@ -137,19 +135,16 @@
137
135
  }
138
136
 
139
137
  .k-popconfirm-content {
140
- // .k-popconfirm-inner {
141
- background: var(--kui-color-back-10);
142
- // background: #333;
143
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
144
- border-radius: 12px; //var(--kui-border-radius);
138
+ background: var(--kui-color-bg-pop);
139
+ box-shadow: var(--kui-pop-shadow);
140
+
141
+ border-radius: var(--kui-border-radius-card);
145
142
  position: relative;
146
- // border: 1px solid var(--kui-color-border);
147
- // }
148
- border: 1px solid var(--kui-color-border);
143
+ border: 1px solid var(--kui-color-pop-border);
149
144
 
150
145
  #ot {
151
146
  stroke-width: 0.1em;
152
- stroke: var(--kui-color-border);
147
+ stroke: var(--kui-color-pop-border);
153
148
  }
154
149
 
155
150
  .k-popconfirm-body {
@@ -180,8 +175,7 @@
180
175
  position: absolute;
181
176
  box-sizing: border-box;
182
177
  display: flex;
183
- color: var(--kui-color-back-10);
184
- // color:inherit;
178
+ color: var(--kui-color-bg-pop);
185
179
  width: 23px;
186
180
  height: 9px;
187
181
  }
@@ -1,25 +1,23 @@
1
- @import '../../styles/var.less';
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-poptip {
4
4
  display: inline-block;
5
5
  position: relative;
6
- // max-width: 300px;
7
- // color: #fff;
8
- color: var(--kui-color-font);
6
+ color: var(--kui-color-text);
9
7
  font-size: 12px;
10
8
  line-height: 1.5;
11
9
  position: absolute;
12
10
  z-index: 1001;
13
11
  transform: translateZ(0);
14
12
 
15
- &[k-placement^=top] {
13
+ &[k-placement^="top"] {
16
14
  .k-poptip-arrow {
17
15
  bottom: -7px;
18
16
  height: 9px;
19
17
 
20
- svg {
21
- filter: drop-shadow(0px 4px 2px rgba(0, 0, 0, .1));
22
- }
18
+ // svg {
19
+ // filter: drop-shadow(0px 8px 6px var(--kui-color-shadow));
20
+ // }
23
21
  }
24
22
 
25
23
  .k-poptip-content {
@@ -27,34 +25,34 @@
27
25
  }
28
26
  }
29
27
 
30
- &[k-placement=top] {
28
+ &[k-placement="top"] {
31
29
  .k-poptip-arrow {
32
30
  left: 50%;
33
31
  transform: translateX(-50%);
34
32
  }
35
33
  }
36
34
 
37
- &[k-placement=top-right] {
35
+ &[k-placement="top-right"] {
38
36
  .k-poptip-arrow {
39
37
  right: 12px;
40
38
  }
41
39
  }
42
40
 
43
- &[k-placement=top-left] {
41
+ &[k-placement="top-left"] {
44
42
  .k-poptip-arrow {
45
43
  left: 12px;
46
44
  }
47
45
  }
48
46
 
49
- &[k-placement^=bottom] {
47
+ &[k-placement^="bottom"] {
50
48
  .k-poptip-arrow {
51
49
  top: -7px;
52
50
  height: 9px;
53
51
  transform: rotate(180deg);
54
52
 
55
- svg {
56
- filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
57
- }
53
+ // svg {
54
+ // filter: drop-shadow(0px 8px 6px var(--kui-color-shadow));
55
+ // }
58
56
  }
59
57
 
60
58
  .k-poptip-content {
@@ -62,35 +60,35 @@
62
60
  }
63
61
  }
64
62
 
65
- &[k-placement=bottom] {
63
+ &[k-placement="bottom"] {
66
64
  .k-poptip-arrow {
67
65
  left: 50%;
68
66
  transform: translateX(-50%) rotate(180deg);
69
67
  }
70
68
  }
71
69
 
72
- &[k-placement=bottom-left] {
70
+ &[k-placement="bottom-left"] {
73
71
  .k-poptip-arrow {
74
72
  left: 12px;
75
73
  }
76
74
  }
77
75
 
78
- &[k-placement=bottom-right] {
76
+ &[k-placement="bottom-right"] {
79
77
  .k-poptip-arrow {
80
78
  right: 12px;
81
79
  }
82
80
  }
83
81
 
84
- &[k-placement^=left] {
82
+ &[k-placement^="left"] {
85
83
  .k-poptip-arrow {
86
84
  right: -14px;
87
85
  width: 23px;
88
86
  height: 9px;
89
87
  transform: rotate(-90deg);
90
88
 
91
- svg {
92
- filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
93
- }
89
+ // svg {
90
+ // filter: drop-shadow(0px 8px 6px var(--kui-color-shadow));
91
+ // }
94
92
  }
95
93
 
96
94
  .k-poptip-content {
@@ -98,35 +96,35 @@
98
96
  }
99
97
  }
100
98
 
101
- &[k-placement=left] {
99
+ &[k-placement="left"] {
102
100
  .k-poptip-arrow {
103
101
  top: 50%;
104
102
  transform: translateY(-50%) rotate(-90deg);
105
103
  }
106
104
  }
107
105
 
108
- &[k-placement=left-bottom] {
106
+ &[k-placement="left-bottom"] {
109
107
  .k-poptip-arrow {
110
108
  bottom: 14px;
111
109
  }
112
110
  }
113
111
 
114
- &[k-placement=left-top] {
112
+ &[k-placement="left-top"] {
115
113
  .k-poptip-arrow {
116
114
  top: 14px;
117
115
  }
118
116
  }
119
117
 
120
- &[k-placement^=right] {
118
+ &[k-placement^="right"] {
121
119
  .k-poptip-arrow {
122
120
  left: -14px;
123
121
  width: 23px;
124
122
  height: 9px;
125
123
  transform: rotate(90deg);
126
124
 
127
- svg {
128
- filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
129
- }
125
+ // svg {
126
+ // filter: drop-shadow(0px 8px 6px var(--kui-color-shadow));
127
+ // }
130
128
  }
131
129
 
132
130
  .k-poptip-content {
@@ -134,20 +132,20 @@
134
132
  }
135
133
  }
136
134
 
137
- &[k-placement=right] {
135
+ &[k-placement="right"] {
138
136
  .k-poptip-arrow {
139
137
  top: 50%;
140
138
  transform: translateY(-50%) rotate(90deg);
141
139
  }
142
140
  }
143
141
 
144
- &[k-placement=right-top] {
142
+ &[k-placement="right-top"] {
145
143
  .k-poptip-arrow {
146
144
  top: 14px;
147
145
  }
148
146
  }
149
147
 
150
- &[k-placement=right-bottom] {
148
+ &[k-placement="right-bottom"] {
151
149
  .k-poptip-arrow {
152
150
  bottom: 14px;
153
151
  }
@@ -156,16 +154,17 @@
156
154
 
157
155
  .k-poptip-content {
158
156
  min-width: 200px;
159
- background: var(--kui-color-back-10);
160
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
161
- border-radius: 8px; // var(--kui-border-radius);
157
+ background: var(--kui-color-bg-pop);
158
+ box-shadow: var(--kui-pop-shadow);
159
+
160
+ border-radius:var(--kui-border-radius-card);
162
161
  position: relative;
163
- border: 1px solid var(--kui-color-border);
162
+ border: 1px solid var(--kui-color-pop-border);
164
163
  padding: 12px;
165
164
 
166
165
  #ot {
167
166
  stroke-width: 0.1em;
168
- stroke: var(--kui-color-border);
167
+ stroke: var(--kui-color-pop-border);
169
168
  }
170
169
 
171
170
  .k-poptip-body {
@@ -176,7 +175,7 @@
176
175
  .k-poptip-title {
177
176
  font-size: 16px;
178
177
  font-weight: 500;
179
- color: var(--kui-color-font);
178
+ color: var(--kui-color-text);
180
179
  margin-bottom: 8px;
181
180
  position: relative;
182
181
  text-overflow: ellipsis;
@@ -189,9 +188,7 @@
189
188
  display: flex;
190
189
  width: 24px;
191
190
  height: 9px;
192
- color: var(--kui-color-back-10);
193
- // color: #333;
194
- // color: var(--kui-color-back-10);
191
+ color: var(--kui-color-bg-pop);
195
192
  }
196
193
  }
197
194
 
@@ -201,20 +198,19 @@
201
198
  }
202
199
 
203
200
  .k-poptip-content {
204
- // background: #333;
205
201
  color: #fff;
206
- background-color: @dark-back-color-10;
202
+ background-color: var(--kui-color-bg-pop-dark);
207
203
  }
208
204
 
209
205
  .k-poptip-arrow {
210
- color: @dark-back-color-10;
206
+ color: var(--kui-color-bg-pop-dark);
211
207
  }
212
208
  }
213
209
 
214
210
  @keyframes k-pop-zoom {
215
211
  from {
216
212
  opacity: 0;
217
- transform: scale(.8, .8);
213
+ transform: scale(0.8, 0.8);
218
214
  }
219
215
 
220
216
  to {
@@ -223,13 +219,12 @@
223
219
  }
224
220
  }
225
221
 
226
-
227
222
  .k-poptip-enter-active {
228
223
  // transform-origin: center bottom;
229
- animation: k-pop-zoom .3s;
224
+ animation: k-pop-zoom 0.3s;
230
225
  }
231
226
 
232
227
  .k-poptip-leave-active {
233
228
  // transform-origin: center bottom;
234
- animation: k-pop-zoom .3s reverse;
235
- }
229
+ animation: k-pop-zoom 0.3s reverse;
230
+ }