bkui-vue 1.0.0 → 1.0.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 (262) hide show
  1. package/dist/index.cjs.js +47 -47
  2. package/dist/index.esm.js +10405 -10394
  3. package/dist/index.umd.js +47 -47
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/index.d.ts +57 -111
  15. package/lib/affix/index.js +19 -19
  16. package/lib/alert/alert.d.ts +1 -1
  17. package/lib/alert/index.d.ts +82 -132
  18. package/lib/alert/index.js +20 -20
  19. package/lib/animate-number/index.d.ts +33 -96
  20. package/lib/backtop/index.d.ts +69 -117
  21. package/lib/badge/badge.d.ts +1 -1
  22. package/lib/badge/index.d.ts +120 -153
  23. package/lib/badge/index.js +19 -19
  24. package/lib/breadcrumb/index.d.ts +67 -119
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.d.ts +2 -2
  27. package/lib/button/index.d.ts +119 -155
  28. package/lib/button/index.js +19 -20
  29. package/lib/card/card.d.ts +1 -1
  30. package/lib/card/index.d.ts +129 -158
  31. package/lib/card/index.js +20 -22
  32. package/lib/cascader/cascader.d.ts +3 -3
  33. package/lib/cascader/index.d.ts +393 -354
  34. package/lib/cascader/index.js +233 -234
  35. package/lib/checkbox/checkbox.d.ts +1 -1
  36. package/lib/checkbox/index.d.ts +119 -161
  37. package/lib/checkbox/index.js +39 -41
  38. package/lib/code-diff/index.d.ts +65 -82
  39. package/lib/code-diff/index.js +381 -438
  40. package/lib/collapse/index.d.ts +144 -168
  41. package/lib/collapse/index.js +21 -21
  42. package/lib/collapse-transition/index.d.ts +19 -94
  43. package/lib/color-picker/color-picker.d.ts +1 -1
  44. package/lib/color-picker/index.d.ts +128 -154
  45. package/lib/color-picker/index.js +25 -28
  46. package/lib/config-provider/config-provider.d.ts +9 -0
  47. package/lib/config-provider/index.d.ts +168 -223
  48. package/lib/config-provider/index.js +19 -19
  49. package/lib/config-provider/token.d.ts +3 -0
  50. package/lib/container/container.d.ts +1 -1
  51. package/lib/container/index.d.ts +74 -85
  52. package/lib/container/index.js +19 -19
  53. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  54. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  55. package/lib/date-picker/date-picker.d.ts +3 -3
  56. package/lib/date-picker/index.d.ts +384 -351
  57. package/lib/date-picker/index.js +92 -104
  58. package/lib/date-picker/panel/date-range.d.ts +1 -1
  59. package/lib/date-picker/panel/date.d.ts +1 -1
  60. package/lib/date-picker/panel/time-range.d.ts +2 -2
  61. package/lib/date-picker/panel/time.d.ts +1 -1
  62. package/lib/date-picker/time-picker.d.ts +3 -3
  63. package/lib/dialog/index.d.ts +355 -309
  64. package/lib/dialog/index.js +227 -228
  65. package/lib/directives/index.js +27 -27
  66. package/lib/divider/index.d.ts +57 -111
  67. package/lib/dropdown/dropdown.d.ts +1 -1
  68. package/lib/dropdown/index.d.ts +94 -136
  69. package/lib/dropdown/index.js +17 -17
  70. package/lib/exception/index.d.ts +41 -102
  71. package/lib/exception/index.js +18 -19
  72. package/lib/fixed-navbar/index.d.ts +59 -113
  73. package/lib/form/form.css +3 -0
  74. package/lib/form/form.d.ts +1 -1
  75. package/lib/form/form.less +3 -0
  76. package/lib/form/form.variable.css +3 -0
  77. package/lib/form/index.d.ts +80 -132
  78. package/lib/form/index.js +29 -27
  79. package/lib/icon/angle-double-down-line.js +21 -21
  80. package/lib/icon/angle-double-left-line.js +21 -21
  81. package/lib/icon/angle-double-left.js +21 -21
  82. package/lib/icon/angle-double-right-line.js +21 -21
  83. package/lib/icon/angle-double-right.js +21 -21
  84. package/lib/icon/angle-double-up-line.js +21 -21
  85. package/lib/icon/angle-down-fill.js +21 -21
  86. package/lib/icon/angle-down-line.js +21 -21
  87. package/lib/icon/angle-down.js +21 -21
  88. package/lib/icon/angle-left.js +21 -21
  89. package/lib/icon/angle-right.js +21 -21
  90. package/lib/icon/angle-up-fill.js +21 -21
  91. package/lib/icon/angle-up.js +21 -21
  92. package/lib/icon/archive-fill.js +21 -21
  93. package/lib/icon/arrows-left.js +21 -21
  94. package/lib/icon/arrows-right.js +21 -21
  95. package/lib/icon/assistant.js +21 -21
  96. package/lib/icon/audio-fill.js +21 -21
  97. package/lib/icon/bk.js +21 -21
  98. package/lib/icon/circle.js +21 -21
  99. package/lib/icon/close-line.js +21 -21
  100. package/lib/icon/close.js +21 -21
  101. package/lib/icon/code.js +21 -21
  102. package/lib/icon/cog-shape.js +21 -21
  103. package/lib/icon/collapse-left.js +21 -21
  104. package/lib/icon/copy-shape.js +21 -21
  105. package/lib/icon/copy.js +21 -21
  106. package/lib/icon/data-shape.js +21 -21
  107. package/lib/icon/del.js +21 -21
  108. package/lib/icon/doc-fill.js +21 -21
  109. package/lib/icon/done.js +21 -21
  110. package/lib/icon/down-shape.js +21 -21
  111. package/lib/icon/down-small.js +21 -21
  112. package/lib/icon/edit-line.js +21 -21
  113. package/lib/icon/ellipsis.js +21 -21
  114. package/lib/icon/enlarge-line.js +21 -21
  115. package/lib/icon/error.js +21 -21
  116. package/lib/icon/excel-fill.js +21 -21
  117. package/lib/icon/exclamation-circle-shape.js +21 -21
  118. package/lib/icon/eye.js +21 -21
  119. package/lib/icon/filliscreen-line.js +21 -21
  120. package/lib/icon/fix-line.js +21 -21
  121. package/lib/icon/fix-shape.js +21 -21
  122. package/lib/icon/folder-open.js +21 -21
  123. package/lib/icon/folder-shape-open.js +21 -21
  124. package/lib/icon/folder-shape.js +21 -21
  125. package/lib/icon/folder.js +21 -21
  126. package/lib/icon/funnel.js +21 -21
  127. package/lib/icon/grag-fill.js +21 -21
  128. package/lib/icon/help-document-fill.js +21 -21
  129. package/lib/icon/help-fill.js +21 -21
  130. package/lib/icon/help.js +21 -21
  131. package/lib/icon/image-fill.js +22 -22
  132. package/lib/icon/img-error.js +22 -22
  133. package/lib/icon/img-placehoulder.js +22 -22
  134. package/lib/icon/index.js +192 -192
  135. package/lib/icon/info-line.js +22 -22
  136. package/lib/icon/info.js +22 -22
  137. package/lib/icon/left-shape.js +22 -22
  138. package/lib/icon/left-turn-line.js +22 -22
  139. package/lib/icon/loading.js +22 -22
  140. package/lib/icon/narrow-line.js +22 -22
  141. package/lib/icon/original.js +22 -22
  142. package/lib/icon/pdf-fill.js +22 -22
  143. package/lib/icon/play-shape.js +22 -22
  144. package/lib/icon/plus.js +22 -22
  145. package/lib/icon/ppt-fill.js +22 -22
  146. package/lib/icon/qq.js +22 -22
  147. package/lib/icon/right-shape.js +22 -22
  148. package/lib/icon/right-turn-line.js +22 -22
  149. package/lib/icon/search.js +22 -22
  150. package/lib/icon/share.js +22 -22
  151. package/lib/icon/spinner.js +22 -22
  152. package/lib/icon/success.js +22 -22
  153. package/lib/icon/switcher-loading.js +22 -22
  154. package/lib/icon/text-file.js +22 -22
  155. package/lib/icon/text-fill.js +22 -22
  156. package/lib/icon/transfer.js +22 -22
  157. package/lib/icon/tree-application-shape.js +22 -22
  158. package/lib/icon/unfull-screen.js +22 -22
  159. package/lib/icon/unvisible.js +22 -22
  160. package/lib/icon/up-shape.js +22 -22
  161. package/lib/icon/upload.js +22 -22
  162. package/lib/icon/video-fill.js +22 -22
  163. package/lib/icon/warn.js +22 -22
  164. package/lib/icon/weixin-pro.js +22 -22
  165. package/lib/icon/weixin.js +22 -22
  166. package/lib/image/index.d.ts +113 -149
  167. package/lib/image/index.js +19 -19
  168. package/lib/info-box/index.js +231 -232
  169. package/lib/input/index.d.ts +326 -293
  170. package/lib/input/index.js +256 -258
  171. package/lib/link/index.d.ts +73 -122
  172. package/lib/loading/index.d.ts +132 -158
  173. package/lib/loading/index.js +23 -25
  174. package/lib/loading/loading.d.ts +4 -4
  175. package/lib/locale/index.js +8 -12
  176. package/lib/locale/lang/en.d.ts +3 -0
  177. package/lib/menu/index.d.ts +51 -112
  178. package/lib/menu/index.js +25 -25
  179. package/lib/message/index.js +28 -30
  180. package/lib/message/messageConstructor.d.ts +5 -5
  181. package/lib/modal/index.d.ts +261 -249
  182. package/lib/modal/index.js +492 -33
  183. package/lib/navigation/index.d.ts +152 -188
  184. package/lib/notify/index.js +22 -24
  185. package/lib/notify/notifyConstructor.d.ts +1 -1
  186. package/lib/overflow-title/index.d.ts +314 -242
  187. package/lib/overflow-title/index.js +1 -1
  188. package/lib/pagination/index.d.ts +194 -205
  189. package/lib/pagination/index.js +49 -56
  190. package/lib/plugin-popover/index.js +192 -98
  191. package/lib/pop-confirm/index.d.ts +126 -159
  192. package/lib/pop-confirm/index.js +0 -1
  193. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  194. package/lib/popover/content.d.ts +1 -1
  195. package/lib/popover/index.d.ts +374 -330
  196. package/lib/popover/index.js +192 -98
  197. package/lib/popover2/index.d.ts +8 -83
  198. package/lib/preset.d.ts +287 -2
  199. package/lib/preset.js +3 -1
  200. package/lib/process/index.d.ts +93 -137
  201. package/lib/process/index.js +225 -226
  202. package/lib/progress/index.d.ts +178 -187
  203. package/lib/progress/index.js +19 -19
  204. package/lib/progress/progress.d.ts +2 -2
  205. package/lib/radio/index.d.ts +83 -135
  206. package/lib/radio/index.js +41 -43
  207. package/lib/rate/index.d.ts +55 -112
  208. package/lib/rate/index.js +19 -20
  209. package/lib/resize-layout/index.d.ts +156 -185
  210. package/lib/resize-layout/index.js +20 -21
  211. package/lib/resize-layout/resize-layout.d.ts +2 -2
  212. package/lib/search-select/index.d.ts +292 -327
  213. package/lib/search-select/index.js +239 -240
  214. package/lib/search-select/input.d.ts +2 -2
  215. package/lib/search-select/search-select.d.ts +3 -3
  216. package/lib/search-select/selected.d.ts +2 -2
  217. package/lib/select/index.d.ts +1234 -1135
  218. package/lib/select/index.js +259 -262
  219. package/lib/select/select.d.ts +121 -161
  220. package/lib/select/selectTagInput.d.ts +2 -2
  221. package/lib/shared/helper.d.ts +4 -0
  222. package/lib/shared/index.js +81 -63
  223. package/lib/sideslider/index.d.ts +247 -233
  224. package/lib/sideslider/index.js +241 -247
  225. package/lib/slider/index.d.ts +204 -204
  226. package/lib/slider/index.js +208 -209
  227. package/lib/steps/index.d.ts +114 -150
  228. package/lib/steps/index.js +227 -228
  229. package/lib/swiper/index.d.ts +81 -127
  230. package/lib/swiper/index.js +18 -18
  231. package/lib/switcher/index.d.ts +152 -174
  232. package/lib/switcher/index.js +20 -22
  233. package/lib/tab/index.d.ts +199 -211
  234. package/lib/tab/index.js +23 -25
  235. package/lib/table/components/table-column.d.ts +2 -2
  236. package/lib/table/index.d.ts +605 -593
  237. package/lib/table/index.js +81 -95
  238. package/lib/table/plugins/use-pagination.d.ts +1 -1
  239. package/lib/table/table.d.ts +1 -1
  240. package/lib/table/use-common.d.ts +67 -34
  241. package/lib/table-column/index.d.ts +207 -243
  242. package/lib/table-column/index.js +18 -19
  243. package/lib/tag/index.d.ts +95 -142
  244. package/lib/tag/index.js +19 -19
  245. package/lib/tag-input/index.d.ts +690 -498
  246. package/lib/tag-input/index.js +54 -62
  247. package/lib/tag-input/tag-input.d.ts +5 -5
  248. package/lib/time-picker/index.d.ts +442 -385
  249. package/lib/timeline/index.d.ts +50 -109
  250. package/lib/timeline/index.js +6 -6
  251. package/lib/transfer/index.d.ts +191 -206
  252. package/lib/tree/index.d.ts +322 -288
  253. package/lib/tree/index.js +36 -39
  254. package/lib/tree/tree.d.ts +1 -1
  255. package/lib/tree/use-tree-init.d.ts +1 -1
  256. package/lib/upload/index.d.ts +281 -254
  257. package/lib/upload/index.js +254 -257
  258. package/lib/upload/upload.d.ts +2 -2
  259. package/lib/virtual-render/index.d.ts +337 -242
  260. package/lib/virtual-render/index.js +30 -30
  261. package/lib/virtual-render/virtual-render.d.ts +1 -1
  262. package/package.json +7 -13
@@ -1,139 +1,7 @@
1
1
  import RadioButton from './radio-button';
2
2
  import RadioGroup from './radio-group';
3
3
  declare const BkRadio: {
4
- new (...args: any[]): {
5
- $: import("vue").ComponentInternalInstance;
6
- $data: {};
7
- $props: {
8
- name?: string;
9
- disabled?: boolean;
10
- modelValue?: string | number | boolean;
11
- checked?: boolean;
12
- class?: unknown;
13
- readonly label: string | number | boolean;
14
- style?: unknown;
15
- onChange?: (value: any) => any;
16
- ref?: import("vue").VNodeRef;
17
- key?: string | number | symbol;
18
- ref_for?: boolean;
19
- ref_key?: string;
20
- onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
- [key: string]: any;
22
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
- [key: string]: any;
24
- }>) => void)[];
25
- onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
- [key: string]: any;
27
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
- [key: string]: any;
29
- }>) => void)[];
30
- onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
31
- [key: string]: any;
32
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
- [key: string]: any;
34
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
- [key: string]: any;
36
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
- [key: string]: any;
38
- }>) => void)[];
39
- onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
- [key: string]: any;
41
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
- [key: string]: any;
45
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
- [key: string]: any;
47
- }>) => void)[];
48
- onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
- [key: string]: any;
50
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
- [key: string]: any;
52
- }>) => void)[];
53
- onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
- [key: string]: any;
55
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
- [key: string]: any;
57
- }>) => void)[];
58
- "onUpdate:modelValue"?: (value: any) => any;
59
- };
60
- $attrs: {
61
- [x: string]: unknown;
62
- };
63
- $refs: {
64
- [x: string]: unknown;
65
- };
66
- $slots: Readonly<{
67
- [name: string]: import("vue").Slot<any>;
68
- }>;
69
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
70
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
71
- $emit: ((event: "change", value: any) => void) & ((event: "update:modelValue", value: any) => void);
72
- $el: any;
73
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
74
- name: import("vue-types").VueTypeValidableDef<string> & {
75
- default: string;
76
- } & {
77
- default: string;
78
- };
79
- label: import("vue-types").VueTypeDef<string | number | boolean> & {
80
- required: true;
81
- };
82
- modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
83
- default: string | number | boolean;
84
- };
85
- checked: import("vue-types").VueTypeValidableDef<boolean> & {
86
- default: boolean;
87
- } & {
88
- default: boolean;
89
- };
90
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
91
- default: boolean;
92
- } & {
93
- default: boolean;
94
- };
95
- }>> & {
96
- onChange?: (value: any) => any;
97
- "onUpdate:modelValue"?: (value: any) => any;
98
- }, {
99
- size: import("vue").Ref<string>;
100
- isFocused: import("vue").Ref<boolean>;
101
- isChecked: import("vue").Ref<boolean>;
102
- isDisabled: import("vue").ComputedRef<boolean>;
103
- setChecked: (value?: boolean) => void;
104
- handleBlur: () => void;
105
- handleFocus: () => void;
106
- handleChange: (event: Event) => void;
107
- resolveClassName: (cls: string) => string;
108
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
109
- 'update:modelValue': (value: any) => boolean;
110
- change: (value: any) => boolean;
111
- }, string, {
112
- name: string;
113
- disabled: boolean;
114
- modelValue: string | number | boolean;
115
- checked: boolean;
116
- }, {}, string, {}> & {
117
- beforeCreate?: (() => void) | (() => void)[];
118
- created?: (() => void) | (() => void)[];
119
- beforeMount?: (() => void) | (() => void)[];
120
- mounted?: (() => void) | (() => void)[];
121
- beforeUpdate?: (() => void) | (() => void)[];
122
- updated?: (() => void) | (() => void)[];
123
- activated?: (() => void) | (() => void)[];
124
- deactivated?: (() => void) | (() => void)[];
125
- beforeDestroy?: (() => void) | (() => void)[];
126
- beforeUnmount?: (() => void) | (() => void)[];
127
- destroyed?: (() => void) | (() => void)[];
128
- unmounted?: (() => void) | (() => void)[];
129
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
130
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
131
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
132
- };
133
- $forceUpdate: () => void;
134
- $nextTick: typeof import("vue").nextTick;
135
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
136
- } & Readonly<import("vue").ExtractPropTypes<{
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
137
5
  name: import("vue-types").VueTypeValidableDef<string> & {
138
6
  default: string;
139
7
  } & {
@@ -158,7 +26,7 @@ declare const BkRadio: {
158
26
  }>> & {
159
27
  onChange?: (value: any) => any;
160
28
  "onUpdate:modelValue"?: (value: any) => any;
161
- } & import("vue").ShallowUnwrapRef<{
29
+ }, {
162
30
  size: import("vue").Ref<string>;
163
31
  isFocused: import("vue").Ref<boolean>;
164
32
  isChecked: import("vue").Ref<boolean>;
@@ -168,7 +36,87 @@ declare const BkRadio: {
168
36
  handleFocus: () => void;
169
37
  handleChange: (event: Event) => void;
170
38
  resolveClassName: (cls: string) => string;
171
- }> & {} & import("vue").ComponentCustomProperties & {};
39
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ 'update:modelValue': (value: any) => boolean;
41
+ change: (value: any) => boolean;
42
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
43
+ name: import("vue-types").VueTypeValidableDef<string> & {
44
+ default: string;
45
+ } & {
46
+ default: string;
47
+ };
48
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
49
+ required: true;
50
+ };
51
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
52
+ default: string | number | boolean;
53
+ };
54
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
55
+ default: boolean;
56
+ } & {
57
+ default: boolean;
58
+ };
59
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
60
+ default: boolean;
61
+ } & {
62
+ default: boolean;
63
+ };
64
+ }>> & {
65
+ onChange?: (value: any) => any;
66
+ "onUpdate:modelValue"?: (value: any) => any;
67
+ }, {
68
+ name: string;
69
+ disabled: boolean;
70
+ modelValue: string | number | boolean;
71
+ checked: boolean;
72
+ }, true, {}, {}, {
73
+ P: {};
74
+ B: {};
75
+ D: {};
76
+ C: {};
77
+ M: {};
78
+ Defaults: {};
79
+ }, Readonly<import("vue").ExtractPropTypes<{
80
+ name: import("vue-types").VueTypeValidableDef<string> & {
81
+ default: string;
82
+ } & {
83
+ default: string;
84
+ };
85
+ label: import("vue-types").VueTypeDef<string | number | boolean> & {
86
+ required: true;
87
+ };
88
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
89
+ default: string | number | boolean;
90
+ };
91
+ checked: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
96
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
97
+ default: boolean;
98
+ } & {
99
+ default: boolean;
100
+ };
101
+ }>> & {
102
+ onChange?: (value: any) => any;
103
+ "onUpdate:modelValue"?: (value: any) => any;
104
+ }, {
105
+ size: import("vue").Ref<string>;
106
+ isFocused: import("vue").Ref<boolean>;
107
+ isChecked: import("vue").Ref<boolean>;
108
+ isDisabled: import("vue").ComputedRef<boolean>;
109
+ setChecked: (value?: boolean) => void;
110
+ handleBlur: () => void;
111
+ handleFocus: () => void;
112
+ handleChange: (event: Event) => void;
113
+ resolveClassName: (cls: string) => string;
114
+ }, {}, {}, {}, {
115
+ name: string;
116
+ disabled: boolean;
117
+ modelValue: string | number | boolean;
118
+ checked: boolean;
119
+ }>;
172
120
  __isFragment?: never;
173
121
  __isTeleport?: never;
174
122
  __isSuspense?: never;
@@ -39,38 +39,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
39
39
  var y = x => () => x
40
40
  const shared_namespaceObject = x({ ["EMPTY_OBJ"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.EMPTY_OBJ, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["isEmptyObj"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isEmptyObj, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
41
41
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
42
- function _typeof(obj) {
42
+ function _typeof(o) {
43
43
  "@babel/helpers - typeof";
44
44
 
45
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
46
- return typeof obj;
47
- } : function (obj) {
48
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
49
- }, _typeof(obj);
45
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
46
+ return typeof o;
47
+ } : function (o) {
48
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
49
+ }, _typeof(o);
50
50
  }
51
51
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
52
52
 
53
- function _toPrimitive(input, hint) {
54
- if (_typeof(input) !== "object" || input === null) return input;
55
- var prim = input[Symbol.toPrimitive];
56
- if (prim !== undefined) {
57
- var res = prim.call(input, hint || "default");
58
- if (_typeof(res) !== "object") return res;
53
+ function toPrimitive(t, r) {
54
+ if ("object" != _typeof(t) || !t) return t;
55
+ var e = t[Symbol.toPrimitive];
56
+ if (void 0 !== e) {
57
+ var i = e.call(t, r || "default");
58
+ if ("object" != _typeof(i)) return i;
59
59
  throw new TypeError("@@toPrimitive must return a primitive value.");
60
60
  }
61
- return (hint === "string" ? String : Number)(input);
61
+ return ("string" === r ? String : Number)(t);
62
62
  }
63
63
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
64
64
 
65
65
 
66
- function _toPropertyKey(arg) {
67
- var key = _toPrimitive(arg, "string");
68
- return _typeof(key) === "symbol" ? key : String(key);
66
+ function toPropertyKey(t) {
67
+ var i = toPrimitive(t, "string");
68
+ return "symbol" == _typeof(i) ? i : String(i);
69
69
  }
70
70
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
71
71
 
72
72
  function _defineProperty(obj, key, value) {
73
- key = _toPropertyKey(key);
73
+ key = toPropertyKey(key);
74
74
  if (key in obj) {
75
75
  Object.defineProperty(obj, key, {
76
76
  value: value,
@@ -88,31 +88,31 @@ function _arrayWithHoles(arr) {
88
88
  if (Array.isArray(arr)) return arr;
89
89
  }
90
90
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
91
- function _iterableToArrayLimit(arr, i) {
92
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
93
- if (null != _i) {
94
- var _s,
95
- _e,
96
- _x,
97
- _r,
98
- _arr = [],
99
- _n = !0,
100
- _d = !1;
91
+ function _iterableToArrayLimit(r, l) {
92
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
93
+ if (null != t) {
94
+ var e,
95
+ n,
96
+ i,
97
+ u,
98
+ a = [],
99
+ f = !0,
100
+ o = !1;
101
101
  try {
102
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
103
- if (Object(_i) !== _i) return;
104
- _n = !1;
105
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
106
- } catch (err) {
107
- _d = !0, _e = err;
102
+ if (i = (t = t.call(r)).next, 0 === l) {
103
+ if (Object(t) !== t) return;
104
+ f = !1;
105
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
106
+ } catch (r) {
107
+ o = !0, n = r;
108
108
  } finally {
109
109
  try {
110
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
110
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
111
111
  } finally {
112
- if (_d) throw _e;
112
+ if (o) throw n;
113
113
  }
114
114
  }
115
- return _arr;
115
+ return a;
116
116
  }
117
117
  }
118
118
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -352,9 +352,8 @@ var radioProps = {
352
352
  };
353
353
  },
354
354
  render: function render() {
355
- var _classes,
356
- _this = this;
357
- var radioClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio')), true), _defineProperty(_classes, "".concat(this.resolveClassName('radio'), "-").concat(this.size), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
355
+ var _this = this;
356
+ var radioClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('radio')), true), "".concat(this.resolveClassName('radio'), "-").concat(this.size), true), 'is-focused', this.isFocused), 'is-disabled', this.isDisabled), 'is-checked', this.isChecked));
358
357
  var renderLabel = function renderLabel() {
359
358
  if (!_this.label && !_this.$slots["default"]) {
360
359
  return null;
@@ -459,9 +458,8 @@ var radioButtonProps = {
459
458
  };
460
459
  },
461
460
  render: function render() {
462
- var _classes,
463
- _this = this;
464
- var radioClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio-button')), true), _defineProperty(_classes, "".concat(this.resolveClassName('radio-button'), "-").concat(this.size), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
461
+ var _this = this;
462
+ var radioClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('radio-button')), true), "".concat(this.resolveClassName('radio-button'), "-").concat(this.size), true), 'is-focused', this.isFocused), 'is-disabled', this.isDisabled), 'is-checked', this.isChecked));
465
463
  var renderLabel = function renderLabel() {
466
464
  if (!_this.label && !_this.$slots["default"]) {
467
465
  return null;
@@ -569,7 +567,7 @@ var radioGroupProps = {
569
567
  }, function () {
570
568
  if (props.withValidate) {
571
569
  var _formItem$validate;
572
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
570
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
573
571
  }
574
572
  });
575
573
  (0,external_vue_namespaceObject.onMounted)(function () {
@@ -1,119 +1,58 @@
1
1
  declare const BkRate: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: {
6
- modelValue?: number;
7
- withValidate?: boolean;
8
- editable?: boolean;
9
- class?: unknown;
10
- style?: unknown;
11
- onChange?: (...args: any[]) => any;
12
- ref?: import("vue").VNodeRef;
13
- key?: string | number | symbol;
14
- ref_for?: boolean;
15
- ref_key?: string;
16
- onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
- [key: string]: any;
18
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
- [key: string]: any;
20
- }>) => void)[];
21
- onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
- [key: string]: any;
23
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
- [key: string]: any;
25
- }>) => void)[];
26
- onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
- [key: string]: any;
28
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
- [key: string]: any;
30
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
31
- [key: string]: any;
32
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
- [key: string]: any;
34
- }>) => void)[];
35
- onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
- [key: string]: any;
37
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
- [key: string]: any;
39
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
- [key: string]: any;
41
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }>) => void)[];
44
- onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
- [key: string]: any;
46
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
- [key: string]: any;
48
- }>) => void)[];
49
- onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
- [key: string]: any;
51
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
- [key: string]: any;
53
- }>) => void)[];
54
- readonly size?: "default" | "small" | "large" | "huge";
55
- "onUpdate:modelValue"?: (...args: any[]) => any;
56
- "onHover-change"?: (...args: any[]) => any;
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
+ modelValue: import("vue-types").VueTypeValidableDef<number> & {
4
+ default: number;
5
+ } & {
6
+ default: number;
7
+ };
8
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
9
+ editable: import("vue-types").VueTypeValidableDef<boolean> & {
10
+ default: boolean;
11
+ } & {
12
+ default: boolean;
57
13
  };
58
- $attrs: {
59
- [x: string]: unknown;
14
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
15
+ default: boolean;
16
+ } & {
17
+ default: boolean;
18
+ };
19
+ }>> & {
20
+ onChange?: (...args: any[]) => any;
21
+ "onUpdate:modelValue"?: (...args: any[]) => any;
22
+ "onHover-change"?: (...args: any[]) => any;
23
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "hover-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
24
+ modelValue: import("vue-types").VueTypeValidableDef<number> & {
25
+ default: number;
26
+ } & {
27
+ default: number;
60
28
  };
61
- $refs: {
62
- [x: string]: unknown;
29
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
30
+ editable: import("vue-types").VueTypeValidableDef<boolean> & {
31
+ default: boolean;
32
+ } & {
33
+ default: boolean;
63
34
  };
64
- $slots: Readonly<{
65
- [name: string]: import("vue").Slot<any>;
66
- }>;
67
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
68
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
69
- $emit: (event: "change" | "update:modelValue" | "hover-change", ...args: any[]) => void;
70
- $el: any;
71
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
72
- modelValue: import("vue-types").VueTypeValidableDef<number> & {
73
- default: number;
74
- } & {
75
- default: number;
76
- };
77
- size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
78
- editable: import("vue-types").VueTypeValidableDef<boolean> & {
79
- default: boolean;
80
- } & {
81
- default: boolean;
82
- };
83
- withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
84
- default: boolean;
85
- } & {
86
- default: boolean;
87
- };
88
- }>> & {
89
- onChange?: (...args: any[]) => any;
90
- "onUpdate:modelValue"?: (...args: any[]) => any;
91
- "onHover-change"?: (...args: any[]) => any;
92
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "hover-change")[], string, {
93
- modelValue: number;
94
- withValidate: boolean;
95
- editable: boolean;
96
- }, {}, string, {}> & {
97
- beforeCreate?: (() => void) | (() => void)[];
98
- created?: (() => void) | (() => void)[];
99
- beforeMount?: (() => void) | (() => void)[];
100
- mounted?: (() => void) | (() => void)[];
101
- beforeUpdate?: (() => void) | (() => void)[];
102
- updated?: (() => void) | (() => void)[];
103
- activated?: (() => void) | (() => void)[];
104
- deactivated?: (() => void) | (() => void)[];
105
- beforeDestroy?: (() => void) | (() => void)[];
106
- beforeUnmount?: (() => void) | (() => void)[];
107
- destroyed?: (() => void) | (() => void)[];
108
- unmounted?: (() => void) | (() => void)[];
109
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
110
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
111
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
35
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
36
+ default: boolean;
37
+ } & {
38
+ default: boolean;
112
39
  };
113
- $forceUpdate: () => void;
114
- $nextTick: typeof import("vue").nextTick;
115
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
116
- } & Readonly<import("vue").ExtractPropTypes<{
40
+ }>> & {
41
+ onChange?: (...args: any[]) => any;
42
+ "onUpdate:modelValue"?: (...args: any[]) => any;
43
+ "onHover-change"?: (...args: any[]) => any;
44
+ }, {
45
+ modelValue: number;
46
+ withValidate: boolean;
47
+ editable: boolean;
48
+ }, true, {}, {}, {
49
+ P: {};
50
+ B: {};
51
+ D: {};
52
+ C: {};
53
+ M: {};
54
+ Defaults: {};
55
+ }, Readonly<import("vue").ExtractPropTypes<{
117
56
  modelValue: import("vue-types").VueTypeValidableDef<number> & {
118
57
  default: number;
119
58
  } & {
@@ -134,7 +73,11 @@ declare const BkRate: {
134
73
  onChange?: (...args: any[]) => any;
135
74
  "onUpdate:modelValue"?: (...args: any[]) => any;
136
75
  "onHover-change"?: (...args: any[]) => any;
137
- } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
76
+ }, () => JSX.Element, {}, {}, {}, {
77
+ modelValue: number;
78
+ withValidate: boolean;
79
+ editable: boolean;
80
+ }>;
138
81
  __isFragment?: never;
139
82
  __isTeleport?: never;
140
83
  __isSuspense?: never;
package/lib/rate/index.js CHANGED
@@ -36,38 +36,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
36
36
  var y = x => () => x
37
37
  const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
38
38
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
39
- function _typeof(obj) {
39
+ function _typeof(o) {
40
40
  "@babel/helpers - typeof";
41
41
 
42
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
43
- return typeof obj;
44
- } : function (obj) {
45
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
46
- }, _typeof(obj);
42
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
43
+ return typeof o;
44
+ } : function (o) {
45
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
46
+ }, _typeof(o);
47
47
  }
48
48
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
49
49
 
50
- function _toPrimitive(input, hint) {
51
- if (_typeof(input) !== "object" || input === null) return input;
52
- var prim = input[Symbol.toPrimitive];
53
- if (prim !== undefined) {
54
- var res = prim.call(input, hint || "default");
55
- if (_typeof(res) !== "object") return res;
50
+ function toPrimitive(t, r) {
51
+ if ("object" != _typeof(t) || !t) return t;
52
+ var e = t[Symbol.toPrimitive];
53
+ if (void 0 !== e) {
54
+ var i = e.call(t, r || "default");
55
+ if ("object" != _typeof(i)) return i;
56
56
  throw new TypeError("@@toPrimitive must return a primitive value.");
57
57
  }
58
- return (hint === "string" ? String : Number)(input);
58
+ return ("string" === r ? String : Number)(t);
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
61
61
 
62
62
 
63
- function _toPropertyKey(arg) {
64
- var key = _toPrimitive(arg, "string");
65
- return _typeof(key) === "symbol" ? key : String(key);
63
+ function toPropertyKey(t) {
64
+ var i = toPrimitive(t, "string");
65
+ return "symbol" == _typeof(i) ? i : String(i);
66
66
  }
67
67
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
68
68
 
69
69
  function _defineProperty(obj, key, value) {
70
- key = _toPropertyKey(key);
70
+ key = toPropertyKey(key);
71
71
  if (key in obj) {
72
72
  Object.defineProperty(obj, key, {
73
73
  value: value,
@@ -154,8 +154,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
154
154
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
155
155
  resolveClassName = _usePrefix.resolveClassName;
156
156
  var starClass = function starClass(index) {
157
- var _classes;
158
- return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName('is-select')), index < Math.floor(displayRate.value)), _defineProperty(_classes, "".concat(resolveClassName('is-edit')), props.editable), _defineProperty(_classes, "".concat(resolveClassName('rate-star')), true), _classes));
157
+ return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('is-select')), index < Math.floor(displayRate.value)), "".concat(resolveClassName('is-edit')), props.editable), "".concat(resolveClassName('rate-star')), true));
159
158
  };
160
159
  var displayRate = (0,external_vue_namespaceObject.computed)(function () {
161
160
  return props.hoverRate || props.rate;
@@ -295,7 +294,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
295
294
  }, function () {
296
295
  if (props.withValidate) {
297
296
  var _formItem$validate;
298
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
297
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
299
298
  }
300
299
  });
301
300
  return function () {