btt-ui 1.0.0
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/README.md +16 -0
- package/es/_virtual/plugin-vue_export-helper.mjs +9 -0
- package/es/assets/ts/colormap.mjs +5073 -0
- package/es/assets/ts/hotMap.mjs +87 -0
- package/es/assets/ts/utils.mjs +46 -0
- package/es/index.mjs +68 -0
- package/es/src/button/index.mjs +7 -0
- package/es/src/button/src/button.mjs +59 -0
- package/es/src/button/src/style/index.css +212 -0
- package/es/src/button/src/style/variable.css +0 -0
- package/es/src/card/index.mjs +7 -0
- package/es/src/card/src/card.mjs +43 -0
- package/es/src/card/src/style/index.css +81 -0
- package/es/src/checkbox/index.mjs +9 -0
- package/es/src/checkbox/src/checkbox-group.mjs +36 -0
- package/es/src/checkbox/src/checkbox.mjs +33 -0
- package/es/src/checkbox/src/checkbox2.mjs +68 -0
- package/es/src/checkbox/src/style/index.css +111 -0
- package/es/src/collapse/index.mjs +9 -0
- package/es/src/collapse/src/collapse-item.mjs +82 -0
- package/es/src/collapse/src/collapse.mjs +13 -0
- package/es/src/collapse/src/collapse2.mjs +33 -0
- package/es/src/collapse/src/style/index.css +58 -0
- package/es/src/collapse-transition/index.mjs +7 -0
- package/es/src/collapse-transition/src/collapse-transition.mjs +41 -0
- package/es/src/collapse-transition/src/collapse-transition.vue_vue_type_style_index_0_lang.mjs +4 -0
- package/es/src/dialog/index.mjs +6 -0
- package/es/src/dialog/src/dialog.mjs +117 -0
- package/es/src/dialog/src/style/index.css +58 -0
- package/es/src/directives/bubble.mjs +48 -0
- package/es/src/directives/drag.mjs +121 -0
- package/es/src/directives/index.mjs +10 -0
- package/es/src/directives/zoomIn.mjs +43 -0
- package/es/src/drag/index.mjs +7 -0
- package/es/src/drag/src/drag.mjs +78 -0
- package/es/src/drag/src/style/index.css +25 -0
- package/es/src/echarts/index.mjs +7 -0
- package/es/src/echarts/src/index.mjs +113 -0
- package/es/src/echarts/src/style/index.css +30 -0
- package/es/src/echarts/src/ts/factory.mjs +281 -0
- package/es/src/hotmap/index.mjs +7 -0
- package/es/src/hotmap/src/index.mjs +67 -0
- package/es/src/hotmap/src/style/index.css +0 -0
- package/es/src/icon/index.mjs +9 -0
- package/es/src/icon/src/icon.mjs +66 -0
- package/es/src/icon/src/icon2.mjs +86 -0
- package/es/src/icon/src/style/index.css +85 -0
- package/es/src/icon/src/svg/alarm.mjs +4 -0
- package/es/src/icon/src/svg/arrow-down.mjs +4 -0
- package/es/src/icon/src/svg/arrow-left.mjs +4 -0
- package/es/src/icon/src/svg/arrow-right.mjs +4 -0
- package/es/src/icon/src/svg/arrow-up.mjs +4 -0
- package/es/src/icon/src/svg/baocun.mjs +4 -0
- package/es/src/icon/src/svg/caogaoxiang.mjs +4 -0
- package/es/src/icon/src/svg/card.mjs +4 -0
- package/es/src/icon/src/svg/caret-right.mjs +4 -0
- package/es/src/icon/src/svg/chakan.mjs +45 -0
- package/es/src/icon/src/svg/change.mjs +4 -0
- package/es/src/icon/src/svg/chongzhi.mjs +18 -0
- package/es/src/icon/src/svg/circle-close.mjs +4 -0
- package/es/src/icon/src/svg/close.mjs +4 -0
- package/es/src/icon/src/svg/delete.mjs +4 -0
- package/es/src/icon/src/svg/detail.mjs +4 -0
- package/es/src/icon/src/svg/dianhua.mjs +22 -0
- package/es/src/icon/src/svg/disabled.mjs +4 -0
- package/es/src/icon/src/svg/down.mjs +4 -0
- package/es/src/icon/src/svg/download.mjs +12 -0
- package/es/src/icon/src/svg/edit.mjs +4 -0
- package/es/src/icon/src/svg/editor.mjs +4 -0
- package/es/src/icon/src/svg/enable.mjs +4 -0
- package/es/src/icon/src/svg/exit.mjs +4 -0
- package/es/src/icon/src/svg/file-open.mjs +4 -0
- package/es/src/icon/src/svg/handle.mjs +4 -0
- package/es/src/icon/src/svg/lahei.mjs +20 -0
- package/es/src/icon/src/svg/max.mjs +4 -0
- package/es/src/icon/src/svg/measure.mjs +4 -0
- package/es/src/icon/src/svg/min.mjs +4 -0
- package/es/src/icon/src/svg/nan.mjs +17 -0
- package/es/src/icon/src/svg/no.mjs +16 -0
- package/es/src/icon/src/svg/nv.mjs +19 -0
- package/es/src/icon/src/svg/people.mjs +4 -0
- package/es/src/icon/src/svg/player.mjs +19 -0
- package/es/src/icon/src/svg/plus.mjs +4 -0
- package/es/src/icon/src/svg/preview.mjs +44 -0
- package/es/src/icon/src/svg/print.mjs +12 -0
- package/es/src/icon/src/svg/printmb.mjs +4 -0
- package/es/src/icon/src/svg/publish.mjs +4 -0
- package/es/src/icon/src/svg/qiye.mjs +4 -0
- package/es/src/icon/src/svg/quxiao.mjs +4 -0
- package/es/src/icon/src/svg/record.mjs +4 -0
- package/es/src/icon/src/svg/refresh.mjs +4 -0
- package/es/src/icon/src/svg/reset.mjs +4 -0
- package/es/src/icon/src/svg/risk.mjs +4 -0
- package/es/src/icon/src/svg/search.mjs +4 -0
- package/es/src/icon/src/svg/set.mjs +4 -0
- package/es/src/icon/src/svg/shenhe.mjs +4 -0
- package/es/src/icon/src/svg/shenqing.mjs +4 -0
- package/es/src/icon/src/svg/tongbu.mjs +18 -0
- package/es/src/icon/src/svg/up.mjs +4 -0
- package/es/src/icon/src/svg/upload.mjs +9 -0
- package/es/src/icon/src/svg/urging.mjs +4 -0
- package/es/src/icon/src/svg/yes.mjs +18 -0
- package/es/src/icon/src/svg/yuyue.mjs +4 -0
- package/es/src/index.mjs +80 -0
- package/es/src/input/index.mjs +7 -0
- package/es/src/input/src/input.mjs +119 -0
- package/es/src/input/src/style/index.css +52 -0
- package/es/src/link/index.mjs +6 -0
- package/es/src/link/link.mjs +30 -0
- package/es/src/link/style/index.css +44 -0
- package/es/src/link/types.mjs +14 -0
- package/es/src/overlay/index.mjs +7 -0
- package/es/src/overlay/src/overlay.mjs +36 -0
- package/es/src/overlay/src/style/index.css +19 -0
- package/es/src/popper/index.mjs +7 -0
- package/es/src/popper/src/forward-ref.mjs +27 -0
- package/es/src/popper/src/popper.mjs +93 -0
- package/es/src/popper/src/popper2.mjs +100 -0
- package/es/src/popper/src/style/index.css +67 -0
- package/es/src/popper/src/trigger.mjs +68 -0
- package/es/src/popper/src/use-floating.mjs +38 -0
- package/es/src/popper/src/use-nowrap.mjs +13 -0
- package/es/src/popper/src/use-popper-container.mjs +14 -0
- package/es/src/scroll/index.mjs +6 -0
- package/es/src/scroll/src/scroll.mjs +88 -0
- package/es/src/scroll/src/style/index.css +46 -0
- package/es/src/select/index.mjs +9 -0
- package/es/src/select/src/option.mjs +30 -0
- package/es/src/select/src/select.mjs +32 -0
- package/es/src/select/src/select2.mjs +89 -0
- package/es/src/select/src/style/index.css +82 -0
- package/es/src/shake/index.mjs +6 -0
- package/es/src/shake/shake.mjs +25 -0
- package/es/src/shake/style/index.css +20 -0
- package/es/src/sign/index.mjs +7 -0
- package/es/src/sign/src/sign.mjs +137 -0
- package/es/src/sign/src/style/index.css +0 -0
- package/es/src/style/common.css +2518 -0
- package/es/src/style/css-variables.css +88 -0
- package/es/src/style/index.min.css +2254 -0
- package/es/src/style/previewimg.css +109 -0
- package/es/src/style/var.css +5 -0
- package/es/src/style/zoomimg.css +36 -0
- package/es/src/switch/index.mjs +7 -0
- package/es/src/switch/src/style/index.css +96 -0
- package/es/src/switch/src/switch.mjs +79 -0
- package/es/src/tableScroll/index.mjs +7 -0
- package/es/src/tableScroll/src/index.mjs +235 -0
- package/es/src/timeline/index.mjs +7 -0
- package/es/src/timeline/src/style/index.css +63 -0
- package/es/src/timeline/src/timeline.mjs +96 -0
- package/es/src/toast/index.mjs +6 -0
- package/es/src/toast/style/index.css +13 -0
- package/es/src/toast/toast.mjs +17 -0
- package/es/src/tooltip/index.mjs +7 -0
- package/es/src/tooltip/src/style/index.css +4 -0
- package/es/src/tooltip/src/tooltip.mjs +50 -0
- package/es/src/tooltip/src/tooltip2.mjs +22 -0
- package/es/src/tree/index.mjs +7 -0
- package/es/src/tree/src/style/index.css +154 -0
- package/es/src/tree/src/tree.mjs +233 -0
- package/es/src/tree/src/tree2.mjs +67 -0
- package/es/src/tree/src/use-drag.mjs +52 -0
- package/es/src/upload/dragger.mjs +51 -0
- package/es/src/upload/index.mjs +6 -0
- package/es/src/upload/style/drag.css +36 -0
- package/es/src/upload/style/index.css +40 -0
- package/es/src/upload/upload.mjs +76 -0
- package/es/src/uploadFile/index.mjs +6 -0
- package/es/src/uploadFile/src/style/index.css +131 -0
- package/es/src/uploadFile/src/uploadFile.mjs +209 -0
- package/es/src/uploadFile/src/uploadFile2.mjs +17 -0
- package/es/src/wheel/index.mjs +6 -0
- package/es/src/wheel/style/index.css +5 -0
- package/es/src/wheel/wheel.mjs +45 -0
- package/es/src/xgplayer/src/style/index.css +6 -0
- package/es/style.css +1 -0
- package/lib/_virtual/plugin-vue_export-helper.js +1 -0
- package/lib/assets/ts/colormap.js +1 -0
- package/lib/assets/ts/hotMap.js +1 -0
- package/lib/assets/ts/utils.js +1 -0
- package/lib/index.js +1 -0
- package/lib/src/button/index.js +1 -0
- package/lib/src/button/src/button.js +1 -0
- package/lib/src/button/src/style/index.css +212 -0
- package/lib/src/button/src/style/variable.css +0 -0
- package/lib/src/card/index.js +1 -0
- package/lib/src/card/src/card.js +1 -0
- package/lib/src/card/src/style/index.css +81 -0
- package/lib/src/checkbox/index.js +1 -0
- package/lib/src/checkbox/src/checkbox-group.js +1 -0
- package/lib/src/checkbox/src/checkbox.js +1 -0
- package/lib/src/checkbox/src/checkbox2.js +1 -0
- package/lib/src/checkbox/src/style/index.css +111 -0
- package/lib/src/collapse/index.js +1 -0
- package/lib/src/collapse/src/collapse-item.js +1 -0
- package/lib/src/collapse/src/collapse.js +1 -0
- package/lib/src/collapse/src/collapse2.js +1 -0
- package/lib/src/collapse/src/style/index.css +58 -0
- package/lib/src/collapse-transition/index.js +1 -0
- package/lib/src/collapse-transition/src/collapse-transition.js +1 -0
- package/lib/src/collapse-transition/src/collapse-transition.vue_vue_type_style_index_0_lang.js +1 -0
- package/lib/src/dialog/index.js +1 -0
- package/lib/src/dialog/src/dialog.js +1 -0
- package/lib/src/dialog/src/style/index.css +58 -0
- package/lib/src/directives/bubble.js +1 -0
- package/lib/src/directives/drag.js +1 -0
- package/lib/src/directives/index.js +1 -0
- package/lib/src/directives/zoomIn.js +1 -0
- package/lib/src/drag/index.js +1 -0
- package/lib/src/drag/src/drag.js +1 -0
- package/lib/src/drag/src/style/index.css +25 -0
- package/lib/src/echarts/index.js +1 -0
- package/lib/src/echarts/src/index.js +1 -0
- package/lib/src/echarts/src/style/index.css +30 -0
- package/lib/src/echarts/src/ts/factory.js +1 -0
- package/lib/src/hotmap/index.js +1 -0
- package/lib/src/hotmap/src/index.js +1 -0
- package/lib/src/hotmap/src/style/index.css +0 -0
- package/lib/src/icon/index.js +1 -0
- package/lib/src/icon/src/icon.js +1 -0
- package/lib/src/icon/src/icon2.js +1 -0
- package/lib/src/icon/src/style/index.css +85 -0
- package/lib/src/icon/src/svg/alarm.js +1 -0
- package/lib/src/icon/src/svg/arrow-down.js +1 -0
- package/lib/src/icon/src/svg/arrow-left.js +1 -0
- package/lib/src/icon/src/svg/arrow-right.js +1 -0
- package/lib/src/icon/src/svg/arrow-up.js +1 -0
- package/lib/src/icon/src/svg/baocun.js +1 -0
- package/lib/src/icon/src/svg/caogaoxiang.js +1 -0
- package/lib/src/icon/src/svg/card.js +1 -0
- package/lib/src/icon/src/svg/caret-right.js +1 -0
- package/lib/src/icon/src/svg/chakan.js +42 -0
- package/lib/src/icon/src/svg/change.js +1 -0
- package/lib/src/icon/src/svg/chongzhi.js +15 -0
- package/lib/src/icon/src/svg/circle-close.js +1 -0
- package/lib/src/icon/src/svg/close.js +1 -0
- package/lib/src/icon/src/svg/delete.js +1 -0
- package/lib/src/icon/src/svg/detail.js +1 -0
- package/lib/src/icon/src/svg/dianhua.js +19 -0
- package/lib/src/icon/src/svg/disabled.js +1 -0
- package/lib/src/icon/src/svg/down.js +1 -0
- package/lib/src/icon/src/svg/download.js +9 -0
- package/lib/src/icon/src/svg/edit.js +1 -0
- package/lib/src/icon/src/svg/editor.js +1 -0
- package/lib/src/icon/src/svg/enable.js +1 -0
- package/lib/src/icon/src/svg/exit.js +1 -0
- package/lib/src/icon/src/svg/file-open.js +1 -0
- package/lib/src/icon/src/svg/handle.js +1 -0
- package/lib/src/icon/src/svg/lahei.js +17 -0
- package/lib/src/icon/src/svg/max.js +1 -0
- package/lib/src/icon/src/svg/measure.js +1 -0
- package/lib/src/icon/src/svg/min.js +1 -0
- package/lib/src/icon/src/svg/nan.js +14 -0
- package/lib/src/icon/src/svg/no.js +13 -0
- package/lib/src/icon/src/svg/nv.js +16 -0
- package/lib/src/icon/src/svg/people.js +1 -0
- package/lib/src/icon/src/svg/player.js +16 -0
- package/lib/src/icon/src/svg/plus.js +1 -0
- package/lib/src/icon/src/svg/preview.js +41 -0
- package/lib/src/icon/src/svg/print.js +9 -0
- package/lib/src/icon/src/svg/printmb.js +1 -0
- package/lib/src/icon/src/svg/publish.js +1 -0
- package/lib/src/icon/src/svg/qiye.js +1 -0
- package/lib/src/icon/src/svg/quxiao.js +1 -0
- package/lib/src/icon/src/svg/record.js +1 -0
- package/lib/src/icon/src/svg/refresh.js +1 -0
- package/lib/src/icon/src/svg/reset.js +1 -0
- package/lib/src/icon/src/svg/risk.js +1 -0
- package/lib/src/icon/src/svg/search.js +1 -0
- package/lib/src/icon/src/svg/set.js +1 -0
- package/lib/src/icon/src/svg/shenhe.js +1 -0
- package/lib/src/icon/src/svg/shenqing.js +1 -0
- package/lib/src/icon/src/svg/tongbu.js +15 -0
- package/lib/src/icon/src/svg/up.js +1 -0
- package/lib/src/icon/src/svg/upload.js +6 -0
- package/lib/src/icon/src/svg/urging.js +1 -0
- package/lib/src/icon/src/svg/yes.js +15 -0
- package/lib/src/icon/src/svg/yuyue.js +1 -0
- package/lib/src/index.js +1 -0
- package/lib/src/input/index.js +1 -0
- package/lib/src/input/src/input.js +1 -0
- package/lib/src/input/src/style/index.css +52 -0
- package/lib/src/link/index.js +1 -0
- package/lib/src/link/link.js +1 -0
- package/lib/src/link/style/index.css +44 -0
- package/lib/src/link/types.js +1 -0
- package/lib/src/overlay/index.js +1 -0
- package/lib/src/overlay/src/overlay.js +1 -0
- package/lib/src/overlay/src/style/index.css +19 -0
- package/lib/src/popper/index.js +1 -0
- package/lib/src/popper/src/forward-ref.js +1 -0
- package/lib/src/popper/src/popper.js +1 -0
- package/lib/src/popper/src/popper2.js +1 -0
- package/lib/src/popper/src/style/index.css +67 -0
- package/lib/src/popper/src/trigger.js +1 -0
- package/lib/src/popper/src/use-floating.js +1 -0
- package/lib/src/popper/src/use-nowrap.js +1 -0
- package/lib/src/popper/src/use-popper-container.js +1 -0
- package/lib/src/scroll/index.js +1 -0
- package/lib/src/scroll/src/scroll.js +1 -0
- package/lib/src/scroll/src/style/index.css +46 -0
- package/lib/src/select/index.js +1 -0
- package/lib/src/select/src/option.js +1 -0
- package/lib/src/select/src/select.js +1 -0
- package/lib/src/select/src/select2.js +1 -0
- package/lib/src/select/src/style/index.css +82 -0
- package/lib/src/shake/index.js +1 -0
- package/lib/src/shake/shake.js +1 -0
- package/lib/src/shake/style/index.css +20 -0
- package/lib/src/sign/index.js +1 -0
- package/lib/src/sign/src/sign.js +1 -0
- package/lib/src/sign/src/style/index.css +0 -0
- package/lib/src/style/common.css +2518 -0
- package/lib/src/style/css-variables.css +88 -0
- package/lib/src/style/index.min.css +2254 -0
- package/lib/src/style/previewimg.css +109 -0
- package/lib/src/style/var.css +5 -0
- package/lib/src/style/zoomimg.css +36 -0
- package/lib/src/switch/index.js +1 -0
- package/lib/src/switch/src/style/index.css +96 -0
- package/lib/src/switch/src/switch.js +1 -0
- package/lib/src/tableScroll/index.js +1 -0
- package/lib/src/tableScroll/src/index.js +1 -0
- package/lib/src/timeline/index.js +1 -0
- package/lib/src/timeline/src/style/index.css +63 -0
- package/lib/src/timeline/src/timeline.js +1 -0
- package/lib/src/toast/index.js +1 -0
- package/lib/src/toast/style/index.css +13 -0
- package/lib/src/toast/toast.js +1 -0
- package/lib/src/tooltip/index.js +1 -0
- package/lib/src/tooltip/src/style/index.css +4 -0
- package/lib/src/tooltip/src/tooltip.js +1 -0
- package/lib/src/tooltip/src/tooltip2.js +1 -0
- package/lib/src/tree/index.js +1 -0
- package/lib/src/tree/src/style/index.css +154 -0
- package/lib/src/tree/src/tree.js +1 -0
- package/lib/src/tree/src/tree2.js +1 -0
- package/lib/src/tree/src/use-drag.js +1 -0
- package/lib/src/upload/dragger.js +1 -0
- package/lib/src/upload/index.js +1 -0
- package/lib/src/upload/style/drag.css +36 -0
- package/lib/src/upload/style/index.css +40 -0
- package/lib/src/upload/upload.js +1 -0
- package/lib/src/uploadFile/index.js +1 -0
- package/lib/src/uploadFile/src/style/index.css +131 -0
- package/lib/src/uploadFile/src/uploadFile.js +1 -0
- package/lib/src/uploadFile/src/uploadFile2.js +1 -0
- package/lib/src/wheel/index.js +1 -0
- package/lib/src/wheel/style/index.css +5 -0
- package/lib/src/wheel/wheel.js +1 -0
- package/lib/src/xgplayer/src/style/index.css +6 -0
- package/package.json +31 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.k-popper {
|
|
2
|
+
--k-arrow-size: 10px;
|
|
3
|
+
--k-popper-content-bg: var(--k-color-white);
|
|
4
|
+
border-radius: var(--k-radius-middle);
|
|
5
|
+
color: var(--k-color-black);
|
|
6
|
+
background-color: var(--k-popper-content-bg);
|
|
7
|
+
padding: 4px 12px;
|
|
8
|
+
border: 1px solid var(--k-border-color);
|
|
9
|
+
position: absolute;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
transition: opacity var(--k-transition-duration);
|
|
12
|
+
font-size: 13px;
|
|
13
|
+
z-index: 1000;
|
|
14
|
+
width: -moz-max-content;
|
|
15
|
+
width: max-content;
|
|
16
|
+
}
|
|
17
|
+
.k-popper.is-light {
|
|
18
|
+
border-left: var(--k-border);
|
|
19
|
+
border-top: var(--k-border);
|
|
20
|
+
}
|
|
21
|
+
.k-popper.is-pure {
|
|
22
|
+
padding: 0px;
|
|
23
|
+
}
|
|
24
|
+
.k-popper.is-dark {
|
|
25
|
+
--k-popper-content-bg: var(--k-color-black);
|
|
26
|
+
color: var(--k-color-white);
|
|
27
|
+
border: none;
|
|
28
|
+
}
|
|
29
|
+
.k-popper.is-dark .k-popper__arrow {
|
|
30
|
+
border-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
.k-popper__arrow {
|
|
33
|
+
position: absolute;
|
|
34
|
+
width: 10px;
|
|
35
|
+
height: 10px;
|
|
36
|
+
background: #fff;
|
|
37
|
+
transform: rotate(45deg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-side^=bottom] .k-popper__arrow {
|
|
41
|
+
top: -5px;
|
|
42
|
+
border-top: var(--k-border);
|
|
43
|
+
border-left: var(--k-border);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-side^=top] .k-popper__arrow {
|
|
47
|
+
bottom: -5px;
|
|
48
|
+
border-bottom: var(--k-border);
|
|
49
|
+
border-right: var(--k-border);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-side^=right] .k-popper__arrow {
|
|
53
|
+
left: -5px;
|
|
54
|
+
border-left: var(--k-border);
|
|
55
|
+
border-bottom: var(--k-border);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-side^=left] .k-popper__arrow {
|
|
59
|
+
right: -5px;
|
|
60
|
+
border-right: var(--k-border);
|
|
61
|
+
border-top: var(--k-border);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.k-popper-fade-enter-from,
|
|
65
|
+
.k-popper-fade-leave-to {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as v, inject as _, watch as $, onBeforeUnmount as F, openBlock as m, createBlock as R, unref as d, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as O, createElementBlock as T, mergeProps as z } from "vue";
|
|
2
|
+
import { composeEventHandlers as n, createNamespace as D } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import { TriggerProps as H, PopperContextKey as K } from "./popper.mjs";
|
|
4
|
+
import N from "./forward-ref.mjs";
|
|
5
|
+
import "./style/index.css";
|
|
6
|
+
const S = v({
|
|
7
|
+
name: "k-popper-trigger"
|
|
8
|
+
}), J = v({
|
|
9
|
+
...S,
|
|
10
|
+
props: H,
|
|
11
|
+
setup(k) {
|
|
12
|
+
const o = k, { n: f } = D("popper"), { onClose: u, onOpen: s, triggerRef: r } = _(K), E = (e) => {
|
|
13
|
+
var t;
|
|
14
|
+
r.value = e, (t = r == null ? void 0 : r.value) == null || t.classList.add(f("trigger"));
|
|
15
|
+
};
|
|
16
|
+
let c = !1;
|
|
17
|
+
const i = () => {
|
|
18
|
+
u(), c = !1;
|
|
19
|
+
}, L = n(o.onBlur, () => {
|
|
20
|
+
o.trigger === "focus" && u();
|
|
21
|
+
}), h = n(o.onFocus, () => {
|
|
22
|
+
o.trigger === "focus" ? s() : c || s();
|
|
23
|
+
}), w = n(o.onClick, (e) => {
|
|
24
|
+
o.trigger === "click" ? (s(), document.addEventListener("mouseup", i, { once: !0 })) : e.detail === 0 && u();
|
|
25
|
+
}), M = n(o.onMouseDown, () => {
|
|
26
|
+
c = !0, o.trigger !== "click" && o.trigger === "hover" && s(), document.addEventListener("mouseup", i, { once: !0 });
|
|
27
|
+
}), B = n(o.onMouseEnter, () => {
|
|
28
|
+
o.trigger === "hover" && s();
|
|
29
|
+
}), C = n(o.onMouseLeave, () => {
|
|
30
|
+
c || o.trigger === "hover" && u();
|
|
31
|
+
}), a = {
|
|
32
|
+
blur: L,
|
|
33
|
+
click: w,
|
|
34
|
+
focus: h,
|
|
35
|
+
mousedown: M,
|
|
36
|
+
mouseenter: B,
|
|
37
|
+
mouseleave: C
|
|
38
|
+
}, p = (e, t, P) => {
|
|
39
|
+
e && (Object.entries(t).forEach(([l, y]) => {
|
|
40
|
+
e[P](l, y);
|
|
41
|
+
}), e.addEventListener("mouseup", (l) => l.stopPropagation()));
|
|
42
|
+
};
|
|
43
|
+
return $(r, (e, t) => {
|
|
44
|
+
p(e, a, "addEventListener"), p(t, a, "removeEventListener");
|
|
45
|
+
}), F(() => {
|
|
46
|
+
p(r.value, a, "removeEventListener"), document.removeEventListener("mouseup", i);
|
|
47
|
+
}), (e, t) => e.nowrap ? (m(), R(d(N), {
|
|
48
|
+
key: 0,
|
|
49
|
+
"set-ref": E,
|
|
50
|
+
"only-child": ""
|
|
51
|
+
}, {
|
|
52
|
+
default: b(() => [
|
|
53
|
+
g(e.$slots, "default", j(O(e.$attrs)))
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
})) : (m(), T("span", z({
|
|
57
|
+
key: 1,
|
|
58
|
+
ref_key: "triggerRef",
|
|
59
|
+
ref: r,
|
|
60
|
+
class: d(f)("trigger")
|
|
61
|
+
}, e.$attrs), [
|
|
62
|
+
g(e.$slots, "default")
|
|
63
|
+
], 16));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
J as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { computePosition as p } from "@floating-ui/dom";
|
|
2
|
+
import { ref as t, onMounted as v, watchEffect as w, unref as a } from "vue";
|
|
3
|
+
const y = ({ middleware: l, placement: c, strategy: r }) => {
|
|
4
|
+
const e = t(), o = t(), s = t(), u = t(), d = t({}), n = {
|
|
5
|
+
x: s,
|
|
6
|
+
y: u,
|
|
7
|
+
placement: c,
|
|
8
|
+
strategy: r,
|
|
9
|
+
middlewareData: d
|
|
10
|
+
};
|
|
11
|
+
async function f() {
|
|
12
|
+
if (!e.value || !o.value)
|
|
13
|
+
return;
|
|
14
|
+
const m = await p(e.value, o.value, {
|
|
15
|
+
middleware: a(l),
|
|
16
|
+
placement: a(c),
|
|
17
|
+
strategy: a(r)
|
|
18
|
+
});
|
|
19
|
+
Object.keys(n).forEach((i) => {
|
|
20
|
+
n[i].value = m[i];
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return v(() => {
|
|
24
|
+
w(() => {
|
|
25
|
+
f();
|
|
26
|
+
});
|
|
27
|
+
}), {
|
|
28
|
+
...n,
|
|
29
|
+
x: s,
|
|
30
|
+
y: u,
|
|
31
|
+
update: f,
|
|
32
|
+
referenceRef: e,
|
|
33
|
+
contentRef: o
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
y as useFloating
|
|
38
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getCurrentInstance as r, computed as o } from "vue";
|
|
2
|
+
const a = () => {
|
|
3
|
+
const t = r();
|
|
4
|
+
return o(() => {
|
|
5
|
+
if (t != null && t.slots.default) {
|
|
6
|
+
const e = t == null ? void 0 : t.slots.default();
|
|
7
|
+
return !(!e[0] || e[0].shapeFlag === 8);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as useNowrap
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { onBeforeMount as t } from "vue";
|
|
2
|
+
let o;
|
|
3
|
+
const n = "k-popper-container-1996", c = () => (t(() => {
|
|
4
|
+
if (!o && !document.querySelector(`#${n}`)) {
|
|
5
|
+
const e = document.createElement("div");
|
|
6
|
+
e.id = n, o = e, document.body.appendChild(e);
|
|
7
|
+
}
|
|
8
|
+
}), {
|
|
9
|
+
container: o,
|
|
10
|
+
selector: n
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
c as usePopperContainer
|
|
14
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as g, ref as y, reactive as _, computed as s, onMounted as k, openBlock as o, createElementBlock as n, normalizeClass as r, unref as c, createElementVNode as C, normalizeStyle as B, renderSlot as b, createVNode as h, createCommentVNode as v } from "vue";
|
|
2
|
+
import { createNamespace as D } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import { Icon as f } from "../../icon/index.mjs";
|
|
4
|
+
import "./style/index.css";
|
|
5
|
+
const W = g({
|
|
6
|
+
name: "k-scroll"
|
|
7
|
+
}), T = g({
|
|
8
|
+
...W,
|
|
9
|
+
props: {
|
|
10
|
+
listData: { default: () => [] },
|
|
11
|
+
classOption: { default: () => ({
|
|
12
|
+
limitMoveNum: 0,
|
|
13
|
+
switchSingleStep: 210,
|
|
14
|
+
direction: 3,
|
|
15
|
+
autoPlay: !0
|
|
16
|
+
}) }
|
|
17
|
+
},
|
|
18
|
+
emits: [""],
|
|
19
|
+
setup(w, { emit: O }) {
|
|
20
|
+
const m = y(), { n: S } = D("scroll");
|
|
21
|
+
let u;
|
|
22
|
+
const t = w, e = _({
|
|
23
|
+
limitMoveNum: t.classOption.limitMoveNum,
|
|
24
|
+
switchSingleStep: t.classOption.switchSingleStep,
|
|
25
|
+
xPos: 0,
|
|
26
|
+
width: 0,
|
|
27
|
+
realBoxWidth: 0,
|
|
28
|
+
waitTime: t.classOption.direction * 1e3,
|
|
29
|
+
autoPlay: t.classOption.autoPlay,
|
|
30
|
+
switchDisabledClass: "disabled",
|
|
31
|
+
hasPaging: !0
|
|
32
|
+
}), x = s(() => {
|
|
33
|
+
let a = t.listData.length;
|
|
34
|
+
return e.xPos = e.limitMoveNum * e.switchSingleStep, e.realBoxWidth = e.switchSingleStep * a, {
|
|
35
|
+
width: `${e.realBoxWidth}px`,
|
|
36
|
+
transform: `translate(-${e.xPos}px, 0px)`,
|
|
37
|
+
transition: "all 400ms linear 0s"
|
|
38
|
+
};
|
|
39
|
+
}), i = s(() => e.xPos + e.width + e.switchSingleStep < e.realBoxWidth), M = s(() => i.value ? "" : e.switchDisabledClass), p = () => {
|
|
40
|
+
!i.value || (e.limitMoveNum = e.limitMoveNum > t.listData.length ? t.listData.length - 1 : e.limitMoveNum + 1);
|
|
41
|
+
}, N = () => {
|
|
42
|
+
e.limitMoveNum = e.limitMoveNum - 1 < 0 ? 0 : e.limitMoveNum - 1;
|
|
43
|
+
}, l = () => {
|
|
44
|
+
clearInterval(u);
|
|
45
|
+
}, P = () => {
|
|
46
|
+
d();
|
|
47
|
+
}, d = () => {
|
|
48
|
+
u = setInterval(() => {
|
|
49
|
+
i.value ? p() : e.limitMoveNum = 0;
|
|
50
|
+
}, e.waitTime);
|
|
51
|
+
};
|
|
52
|
+
return k(() => {
|
|
53
|
+
e.width = m.value.offsetWidth, e.width - e.realBoxWidth >= 0 ? e.hasPaging = !1 : e.autoPlay && d();
|
|
54
|
+
}), (a, z) => (o(), n("div", {
|
|
55
|
+
ref_key: "iscroll",
|
|
56
|
+
ref: m,
|
|
57
|
+
class: r([c(S)()])
|
|
58
|
+
}, [
|
|
59
|
+
C("div", {
|
|
60
|
+
class: "k-wrapper",
|
|
61
|
+
style: B(x.value),
|
|
62
|
+
onMouseenter: l,
|
|
63
|
+
onMouseleave: P
|
|
64
|
+
}, [
|
|
65
|
+
b(a.$slots, "default")
|
|
66
|
+
], 36),
|
|
67
|
+
e.hasPaging ? (o(), n("span", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: r(["prev-btn", { disabled: e.xPos == 0 }]),
|
|
70
|
+
onClick: N,
|
|
71
|
+
onMouseenter: l
|
|
72
|
+
}, [
|
|
73
|
+
h(c(f), { name: "arrow-left" })
|
|
74
|
+
], 34)) : v("", !0),
|
|
75
|
+
e.hasPaging ? (o(), n("span", {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: r(["next-btn", M.value]),
|
|
78
|
+
onClick: p,
|
|
79
|
+
onMouseenter: l
|
|
80
|
+
}, [
|
|
81
|
+
h(c(f), { name: "arrow-right" })
|
|
82
|
+
], 34)) : v("", !0)
|
|
83
|
+
], 2));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
T as default
|
|
88
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.k-scroll {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
}
|
|
7
|
+
.k-scroll .k-wrapper {
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
.k-scroll .k-wrapper .ul-item {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
height: 100%;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.k-scroll .prev-btn {
|
|
16
|
+
left: 10px;
|
|
17
|
+
position: absolute;
|
|
18
|
+
z-index: 2;
|
|
19
|
+
top: calc(50% - 15px);
|
|
20
|
+
width: 30px;
|
|
21
|
+
height: 30px;
|
|
22
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
color: #ffffff;
|
|
26
|
+
font-size: 20px;
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.k-scroll .next-btn {
|
|
32
|
+
right: 10px;
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
top: calc(50% - 15px);
|
|
36
|
+
width: 30px;
|
|
37
|
+
height: 30px;
|
|
38
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
color: #ffffff;
|
|
42
|
+
font-size: 20px;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as n, inject as d, computed as l, withDirectives as m, openBlock as f, createElementBlock as v, normalizeClass as h, unref as C, renderSlot as b, createTextVNode as k, toDisplayString as _, vShow as g } from "vue";
|
|
2
|
+
import { createNamespace as S } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import { OptionProps as w, SelectContextKey as V } from "./select.mjs";
|
|
4
|
+
import "./style/index.css";
|
|
5
|
+
const y = n({
|
|
6
|
+
name: "k-option"
|
|
7
|
+
}), z = n({
|
|
8
|
+
...y,
|
|
9
|
+
props: w,
|
|
10
|
+
emits: ["change"],
|
|
11
|
+
setup(a, { emit: s }) {
|
|
12
|
+
const e = d(V), t = a, i = s, { n: r } = S("select"), c = l(() => (e == null ? void 0 : e.selectValue.value) === t.value), u = l(() => e != null && e.filterable.value ? (t.value + "").indexOf((e == null ? void 0 : e.selectValue.value) + "") !== -1 : !0);
|
|
13
|
+
function p() {
|
|
14
|
+
t.disabled || (e == null || e.onChange(t.data), i("change", t.value));
|
|
15
|
+
}
|
|
16
|
+
return (o, B) => m((f(), v("li", {
|
|
17
|
+
class: h([C(r)("option"), { selected: c.value, "is-disabled": o.disabled }]),
|
|
18
|
+
onClick: p
|
|
19
|
+
}, [
|
|
20
|
+
b(o.$slots, "default", {}, () => [
|
|
21
|
+
k(_(o.label), 1)
|
|
22
|
+
])
|
|
23
|
+
], 2)), [
|
|
24
|
+
[g, u.value]
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
z as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: [Number, String, Boolean, Object],
|
|
4
|
+
default: void 0
|
|
5
|
+
},
|
|
6
|
+
placeholder: {
|
|
7
|
+
type: String
|
|
8
|
+
},
|
|
9
|
+
clearable: Boolean,
|
|
10
|
+
filterable: {
|
|
11
|
+
type: Boolean
|
|
12
|
+
},
|
|
13
|
+
disabled: Boolean
|
|
14
|
+
}, t = {
|
|
15
|
+
label: {
|
|
16
|
+
type: [String, Number]
|
|
17
|
+
},
|
|
18
|
+
value: {
|
|
19
|
+
type: [String, Number, Boolean, Object]
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => {
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
disabled: Boolean
|
|
27
|
+
}, l = Symbol("SelectContextKey");
|
|
28
|
+
export {
|
|
29
|
+
t as OptionProps,
|
|
30
|
+
l as SelectContextKey,
|
|
31
|
+
e as SelectProps
|
|
32
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as C, reactive as R, ref as n, computed as r, provide as _, openBlock as E, createElementBlock as I, normalizeClass as s, unref as a, createVNode as V, mergeProps as P, withCtx as w, createElementVNode as u, normalizeStyle as z, renderSlot as K } from "vue";
|
|
2
|
+
import { createNamespace as T } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import { KInput as U } from "../../input/index.mjs";
|
|
4
|
+
import { SelectProps as W, SelectContextKey as $ } from "./select.mjs";
|
|
5
|
+
import { Tooltip as j } from "../../tooltip/index.mjs";
|
|
6
|
+
import "./style/index.css";
|
|
7
|
+
const q = C({
|
|
8
|
+
name: "k-select"
|
|
9
|
+
}), L = C({
|
|
10
|
+
...q,
|
|
11
|
+
props: W,
|
|
12
|
+
emits: ["update:modelValue", "change"],
|
|
13
|
+
setup(y, { emit: k }) {
|
|
14
|
+
var h;
|
|
15
|
+
const e = y, f = k, { n: o } = T("select"), B = R({
|
|
16
|
+
effect: "light",
|
|
17
|
+
pure: !0,
|
|
18
|
+
trigger: "click",
|
|
19
|
+
transitionName: "k-select-menu"
|
|
20
|
+
}), S = n(!1), d = n("arrow-down"), i = r({
|
|
21
|
+
get: () => e.modelValue,
|
|
22
|
+
set(l) {
|
|
23
|
+
b(l);
|
|
24
|
+
}
|
|
25
|
+
}), c = n(!1), m = n(), p = r(() => c.value && e.clearable && !!e.modelValue), v = r(() => e.filterable);
|
|
26
|
+
(h = document.getElementById("1")) == null || h.getBoundingClientRect;
|
|
27
|
+
const x = r(() => {
|
|
28
|
+
var t;
|
|
29
|
+
return { minWidth: (((t = m.value) == null ? void 0 : t.getBoundingClientRect().width) || 0) + "px" };
|
|
30
|
+
});
|
|
31
|
+
function b(l) {
|
|
32
|
+
let t = l;
|
|
33
|
+
f("change", l), f("update:modelValue", t.label), S.value = !1;
|
|
34
|
+
}
|
|
35
|
+
_($, {
|
|
36
|
+
onChange: b,
|
|
37
|
+
selectValue: i,
|
|
38
|
+
filterable: v
|
|
39
|
+
});
|
|
40
|
+
function M() {
|
|
41
|
+
e.disabled || e.clearable && e.modelValue && (d.value = "", c.value = !0);
|
|
42
|
+
}
|
|
43
|
+
function g() {
|
|
44
|
+
e.disabled || e.clearable && e.modelValue && (d.value = "arrow-down", c.value = !1);
|
|
45
|
+
}
|
|
46
|
+
return (l, t) => (E(), I("div", {
|
|
47
|
+
ref_key: "selectRef",
|
|
48
|
+
ref: m,
|
|
49
|
+
class: s([a(o)(), { clearable: p.value }])
|
|
50
|
+
}, [
|
|
51
|
+
V(a(j), P(B, { disabled: l.disabled }), {
|
|
52
|
+
content: w(() => [
|
|
53
|
+
u("div", {
|
|
54
|
+
class: s([a(o)("--dropdown")]),
|
|
55
|
+
style: z(x.value)
|
|
56
|
+
}, [
|
|
57
|
+
u("ul", {
|
|
58
|
+
class: s([a(o)("--list")])
|
|
59
|
+
}, [
|
|
60
|
+
K(l.$slots, "default")
|
|
61
|
+
], 2)
|
|
62
|
+
], 6)
|
|
63
|
+
]),
|
|
64
|
+
default: w(() => [
|
|
65
|
+
u("div", {
|
|
66
|
+
class: s(a(o)("trigger")),
|
|
67
|
+
onMouseenter: M,
|
|
68
|
+
onMouseleave: g
|
|
69
|
+
}, [
|
|
70
|
+
V(a(U), {
|
|
71
|
+
modelValue: i.value,
|
|
72
|
+
"onUpdate:modelValue": t[0] || (t[0] = (N) => i.value = N),
|
|
73
|
+
"suffix-icon": d.value,
|
|
74
|
+
clearable: p.value,
|
|
75
|
+
readonly: !v.value,
|
|
76
|
+
placeholder: l.placeholder,
|
|
77
|
+
disabled: l.disabled,
|
|
78
|
+
onClear: g
|
|
79
|
+
}, null, 8, ["modelValue", "suffix-icon", "clearable", "readonly", "placeholder", "disabled"])
|
|
80
|
+
], 34)
|
|
81
|
+
]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 16, ["disabled"])
|
|
84
|
+
], 2));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
L as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--k-select-hover-bg: var(--k-disabled-bg-color);
|
|
3
|
+
--k-select-active-color: var(--k-color-primary);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.k-select {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
.k-select:not(.clearable) .k-select__trigger .k-input__suffix .k-icon {
|
|
12
|
+
transition: transform var(--k-transition-duration);
|
|
13
|
+
}
|
|
14
|
+
.k-select:not(.clearable) .k-select__trigger .is-focus .k-input__suffix .k-icon {
|
|
15
|
+
transform: rotate(-180deg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.k-select--dropdown {
|
|
19
|
+
padding: 6px 0;
|
|
20
|
+
max-height: 274px;
|
|
21
|
+
overflow-y: auto;
|
|
22
|
+
}
|
|
23
|
+
.k-select--dropdown::-webkit-scrollbar {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
width: 6px;
|
|
26
|
+
}
|
|
27
|
+
.k-select--dropdown::-webkit-scrollbar-thumb {
|
|
28
|
+
background-color: rgba(0, 0, 0, 0);
|
|
29
|
+
border-radius: 10px;
|
|
30
|
+
-webkit-transition: all 0.2s ease-in-out;
|
|
31
|
+
transition: all 0.2s ease-in-out;
|
|
32
|
+
}
|
|
33
|
+
.k-select--dropdown:hover::-webkit-scrollbar-thumb {
|
|
34
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
35
|
+
}
|
|
36
|
+
.k-select--dropdown .k-select--list {
|
|
37
|
+
list-style: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.k-select__option {
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: 0;
|
|
46
|
+
padding: 0 32px 0 20px;
|
|
47
|
+
position: relative;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
color: var(--k-text-color-regular);
|
|
52
|
+
height: 34px;
|
|
53
|
+
line-height: 34px;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
.k-select__option:hover:not(.is-disabled) {
|
|
58
|
+
background-color: var(--k-select-hover-bg);
|
|
59
|
+
}
|
|
60
|
+
.k-select__option.selected {
|
|
61
|
+
font-weight: 700;
|
|
62
|
+
color: var(--k-select-active-color);
|
|
63
|
+
background-color: var(--k-select-hover-bg);
|
|
64
|
+
}
|
|
65
|
+
.k-select__option.is-disabled {
|
|
66
|
+
color: var(--k-disabled-text-color);
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.k-select-menu-enter-active,
|
|
71
|
+
.k-select-menu-leave-active {
|
|
72
|
+
transition: all 0.1s;
|
|
73
|
+
will-change: height;
|
|
74
|
+
transform-origin: top center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.k-select-menu-enter-from,
|
|
78
|
+
.k-select-menu-leave-to {
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
transform: scaleY(0.5);
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as a, watch as m, openBlock as n, createElementBlock as u, normalizeClass as d, renderSlot as r } from "vue";
|
|
2
|
+
const c = a({
|
|
3
|
+
name: "k-shake"
|
|
4
|
+
}), f = a({
|
|
5
|
+
...c,
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: { type: Boolean, default: !1 }
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(l, { emit: o }) {
|
|
11
|
+
const t = l, s = o;
|
|
12
|
+
return m(() => t.modelValue, (e) => {
|
|
13
|
+
e && setTimeout(() => {
|
|
14
|
+
s("update:modelValue", !1);
|
|
15
|
+
}, 1e3);
|
|
16
|
+
}, { immediate: !0 }), (e, i) => (n(), u("div", {
|
|
17
|
+
class: d(["k-shake", { ["k-shakeactive"]: t.modelValue }])
|
|
18
|
+
}, [
|
|
19
|
+
r(e.$slots, "default")
|
|
20
|
+
], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
f as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@keyframes shake {
|
|
2
|
+
10%, 90% {
|
|
3
|
+
transform: translate3d(-1px, 0, 0);
|
|
4
|
+
}
|
|
5
|
+
20%, 80% {
|
|
6
|
+
transform: translate3d(2px, 0, 0);
|
|
7
|
+
}
|
|
8
|
+
30%, 70% {
|
|
9
|
+
transform: translate3d(-4px, 0, 0);
|
|
10
|
+
}
|
|
11
|
+
40%, 60% {
|
|
12
|
+
transform: translate3d(4px, 0, 0);
|
|
13
|
+
}
|
|
14
|
+
50%, 50% {
|
|
15
|
+
transform: translate3d(-4px, 0, 0);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.k-shake.k-shakeactive {
|
|
19
|
+
animation: shake 1s linear;
|
|
20
|
+
}
|