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,18 @@
|
|
|
1
|
+
const t = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r
|
|
2
|
+
viewBox="0 0 1024 1024">\r
|
|
3
|
+
<path d="M810.69,390.49c0,20.85,16.9,37.75,37.74,37.75c20.85,0,37.75-16.9,37.75-37.75c0-20.84-16.9-37.74-37.75-37.74\r
|
|
4
|
+
C827.59,352.75,810.69,369.64,810.69,390.49L810.69,390.49z M810.69,390.49"/>\r
|
|
5
|
+
<path d="M527.1,989.15c-262.98,0-476.92-213.93-476.92-476.92c0-262.99,213.93-476.92,476.92-476.92\r
|
|
6
|
+
c262.99,0,476.92,213.93,476.92,476.92C1004.01,775.22,790.08,989.15,527.1,989.15L527.1,989.15z M527.1,103.75\r
|
|
7
|
+
c-225.24,0-408.48,183.24-408.48,408.47c0,225.21,183.24,408.48,408.48,408.48c225.21,0,408.48-183.27,408.48-408.48\r
|
|
8
|
+
C935.58,286.99,752.3,103.75,527.1,103.75L527.1,103.75z M527.1,103.75"/>\r
|
|
9
|
+
<path d="M755.95,385.75c-13.35-13.25-34.95-13.12-48.16,0.27L459.45,637.08L349.51,524.12\r
|
|
10
|
+
c-13.14-13.53-34.71-13.77-48.16-0.68c-13.49,13.11-13.8,34.71-0.68,48.16l134.15,137.86c0.07,0.1,0.2,0.1,0.27,0.2\r
|
|
11
|
+
c0.07,0.07,0.1,0.2,0.17,0.27c2.15,2.12,4.8,3.41,7.32,4.84c1.33,0.72,2.39,1.91,3.75,2.46c4.12,1.7,8.51,2.55,12.87,2.55\r
|
|
12
|
+
c4.32,0,8.65-0.85,12.74-2.49c1.33-0.55,2.35-1.64,3.61-2.32c2.55-1.43,5.21-2.69,7.4-4.84c0.07-0.07,0.1-0.21,0.2-0.28\r
|
|
13
|
+
c0.07-0.1,0.17-0.13,0.28-0.2l272.76-275.73C769.44,420.53,769.3,398.97,755.95,385.75L755.95,385.75z M755.95,385.75"/>\r
|
|
14
|
+
</svg>\r
|
|
15
|
+
`;
|
|
16
|
+
export {
|
|
17
|
+
t as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const s = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1723537200053" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12214" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48"><path d="M908.255047 331.372377c-21.388767-50.452928-51.885669-95.788927-90.774335-134.677593-38.888667-38.888667-84.224665-69.487907-134.677593-90.774335C630.508095 83.815311 575.040576 72.660404 517.8333 72.660404s-112.674795 11.154907-164.969818 33.260044c-50.452928 21.388767-95.788927 51.885669-134.677593 90.774335-38.888667 38.888667-69.487907 84.224665-90.774335 134.677593C105.306416 383.6674 94.151509 439.134919 94.151509 496.342195s11.154907 112.674795 33.260044 164.969818c21.388767 50.452928 51.885669 95.788927 90.774335 134.677593 38.888667 38.888667 84.224665 69.487907 134.677593 90.774335C405.158505 908.869079 460.626024 920.023986 517.8333 920.023986s112.674795-11.154907 164.969818-33.260044c50.452928-21.388767 95.788927-51.885669 134.677593-90.774335s69.487907-84.224665 90.774335-134.677593C930.360184 609.01699 941.515091 553.54947 941.515091 496.342195S930.360184 383.6674 908.255047 331.372377zM517.8333 874.995003c-208.770738 0-378.652808-169.882071-378.652808-378.652808s169.882071-378.652808 378.652808-378.652808 378.652808 169.882071 378.652808 378.652808S726.604038 874.995003 517.8333 874.995003z" p-id="12215"></path><path d="M658.344193 544.441335 516.809914 544.441335 516.809914 345.188087c0-14.122726-11.564261-25.891665-25.584649-25.891665l0 0c-14.122726 0-25.584649 11.871277-25.584649 25.891665l0 225.144913c0 14.122726 11.461923 25.277633 25.584649 25.277633l0 0c1.43274 0 2.763142 0.204677 4.093544 0l163.025385 0c14.122726 0 25.584649-11.564261 25.584649-25.584649l0 0C683.928843 556.005597 672.46692 544.441335 658.344193 544.441335z"></path></svg>';
|
|
2
|
+
export {
|
|
3
|
+
s as default
|
|
4
|
+
};
|
package/es/src/index.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import "./style/common.css";
|
|
2
|
+
import { Button as o } from "./button/index.mjs";
|
|
3
|
+
import { Button as ro } from "./button/index.mjs";
|
|
4
|
+
import { Tooltip as r } from "./tooltip/index.mjs";
|
|
5
|
+
import { Tooltip as mo } from "./tooltip/index.mjs";
|
|
6
|
+
import { Icon as t } from "./icon/index.mjs";
|
|
7
|
+
import { Icon as po } from "./icon/index.mjs";
|
|
8
|
+
import { KInput as m } from "./input/index.mjs";
|
|
9
|
+
import { KInput as ao } from "./input/index.mjs";
|
|
10
|
+
import e from "./link/index.mjs";
|
|
11
|
+
import { default as lo } from "./link/index.mjs";
|
|
12
|
+
import p from "./upload/index.mjs";
|
|
13
|
+
import { default as so } from "./upload/index.mjs";
|
|
14
|
+
import f from "./shake/index.mjs";
|
|
15
|
+
import { default as co } from "./shake/index.mjs";
|
|
16
|
+
import a from "./dialog/index.mjs";
|
|
17
|
+
import { default as Ko } from "./dialog/index.mjs";
|
|
18
|
+
import i from "./scroll/index.mjs";
|
|
19
|
+
import { default as Co } from "./scroll/index.mjs";
|
|
20
|
+
import l from "./toast/index.mjs";
|
|
21
|
+
import { default as To } from "./toast/index.mjs";
|
|
22
|
+
import x from "./wheel/index.mjs";
|
|
23
|
+
import { default as bo } from "./wheel/index.mjs";
|
|
24
|
+
import s from "./uploadFile/index.mjs";
|
|
25
|
+
import { default as Io } from "./uploadFile/index.mjs";
|
|
26
|
+
import { Card as n } from "./card/index.mjs";
|
|
27
|
+
import { Card as Uo } from "./card/index.mjs";
|
|
28
|
+
import { ECharts as c } from "./echarts/index.mjs";
|
|
29
|
+
import { ECharts as Bo } from "./echarts/index.mjs";
|
|
30
|
+
import { HotMap as u } from "./hotmap/index.mjs";
|
|
31
|
+
import { HotMap as Fo } from "./hotmap/index.mjs";
|
|
32
|
+
import { KTree as K } from "./tree/index.mjs";
|
|
33
|
+
import { KTree as Ho } from "./tree/index.mjs";
|
|
34
|
+
import { TableScroll as d } from "./tableScroll/index.mjs";
|
|
35
|
+
import { TableScroll as Mo } from "./tableScroll/index.mjs";
|
|
36
|
+
import { KSelect as h, KOption as C } from "./select/index.mjs";
|
|
37
|
+
import { KOption as Wo, KSelect as Po } from "./select/index.mjs";
|
|
38
|
+
import { KCheckbox as S, KCheckboxGroup as T } from "./checkbox/index.mjs";
|
|
39
|
+
import { KCheckbox as qo, KCheckboxGroup as vo } from "./checkbox/index.mjs";
|
|
40
|
+
import { KCollapse as k, KCollapseItem as b } from "./collapse/index.mjs";
|
|
41
|
+
import { KCollapse as zo, KCollapseItem as Ao } from "./collapse/index.mjs";
|
|
42
|
+
import { Switch as g } from "./switch/index.mjs";
|
|
43
|
+
import { Switch as No } from "./switch/index.mjs";
|
|
44
|
+
import { Timeline as I } from "./timeline/index.mjs";
|
|
45
|
+
import { Timeline as Ro } from "./timeline/index.mjs";
|
|
46
|
+
import { Drag as D } from "./drag/index.mjs";
|
|
47
|
+
import { Drag as Xo } from "./drag/index.mjs";
|
|
48
|
+
import { Sign as U } from "./sign/index.mjs";
|
|
49
|
+
import { Sign as Zo } from "./sign/index.mjs";
|
|
50
|
+
const _ = [o, t, e, p, f, a, i, l, x, r, m, g, I, D, s, n, u, K, S, T, k, b, U, c, h, C, d];
|
|
51
|
+
export {
|
|
52
|
+
ro as Button,
|
|
53
|
+
Uo as Card,
|
|
54
|
+
Ko as Dialog,
|
|
55
|
+
Xo as Drag,
|
|
56
|
+
Bo as ECharts,
|
|
57
|
+
Fo as HotMap,
|
|
58
|
+
po as Icon,
|
|
59
|
+
qo as KCheckbox,
|
|
60
|
+
vo as KCheckboxGroup,
|
|
61
|
+
zo as KCollapse,
|
|
62
|
+
Ao as KCollapseItem,
|
|
63
|
+
ao as KInput,
|
|
64
|
+
Wo as KOption,
|
|
65
|
+
Po as KSelect,
|
|
66
|
+
lo as Link,
|
|
67
|
+
Co as Scroll,
|
|
68
|
+
co as Shake,
|
|
69
|
+
Zo as Sign,
|
|
70
|
+
No as Switch,
|
|
71
|
+
Mo as TableScroll,
|
|
72
|
+
Ro as Timeline,
|
|
73
|
+
To as Toast,
|
|
74
|
+
mo as Tooltip,
|
|
75
|
+
Ho as Tree,
|
|
76
|
+
so as Upload,
|
|
77
|
+
Io as UploadFile,
|
|
78
|
+
bo as Wheel,
|
|
79
|
+
_ as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent as I, ref as n, computed as R, openBlock as a, createElementBlock as p, normalizeClass as t, unref as l, createElementVNode as k, renderSlot as B, createBlock as w, createCommentVNode as u, withDirectives as V, mergeProps as j, vModelDynamic as x, createVNode as z, withModifiers as F, vShow as L } from "vue";
|
|
2
|
+
import { Icon as c } from "../../icon/index.mjs";
|
|
3
|
+
import { createNamespace as O } from "../../../assets/ts/utils.mjs";
|
|
4
|
+
import "./style/index.css";
|
|
5
|
+
const T = ["type", "placeholder", "autofocus", "readonly", "disabled"], U = I({
|
|
6
|
+
name: "k-input"
|
|
7
|
+
}), J = I({
|
|
8
|
+
...U,
|
|
9
|
+
props: {
|
|
10
|
+
type: { default: "text" },
|
|
11
|
+
modelValue: { type: [Number, String, Boolean, Object], default: "" },
|
|
12
|
+
placeholder: { default: "" },
|
|
13
|
+
disabled: { type: Boolean, default: !1 },
|
|
14
|
+
readonly: { type: Boolean, default: !1 },
|
|
15
|
+
clearable: { type: Boolean, default: !1 },
|
|
16
|
+
suffixIcon: { default: "" },
|
|
17
|
+
prefixIcon: { default: "" },
|
|
18
|
+
showPassword: { type: Boolean, default: !1 },
|
|
19
|
+
autofocus: { type: Boolean, default: !1 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "focus", "blur", "clear"],
|
|
22
|
+
setup(C, { expose: M, emit: N }) {
|
|
23
|
+
const o = C, r = N, { n: s } = O("input"), f = n(), m = n(o.autofocus), i = n(!0), v = n(o.type), y = n(!1), d = R({
|
|
24
|
+
get: () => o.modelValue,
|
|
25
|
+
set: (e) => {
|
|
26
|
+
r("update:modelValue", e);
|
|
27
|
+
}
|
|
28
|
+
}), P = () => {
|
|
29
|
+
m.value = !0, r("focus");
|
|
30
|
+
}, $ = () => {
|
|
31
|
+
m.value = !1, r("blur");
|
|
32
|
+
}, b = () => {
|
|
33
|
+
d.value = "", r("clear");
|
|
34
|
+
}, g = () => {
|
|
35
|
+
o.type === "password" && (i.value = !i.value, i.value ? v.value = o.type : v.value = "text");
|
|
36
|
+
};
|
|
37
|
+
function E() {
|
|
38
|
+
y.value = o.clearable && d.value;
|
|
39
|
+
}
|
|
40
|
+
function S() {
|
|
41
|
+
y.value = !1;
|
|
42
|
+
}
|
|
43
|
+
return M({
|
|
44
|
+
blur: () => {
|
|
45
|
+
var e;
|
|
46
|
+
return (e = f.value) == null ? void 0 : e.blur();
|
|
47
|
+
},
|
|
48
|
+
focus: () => {
|
|
49
|
+
var e;
|
|
50
|
+
return (e = f.value) == null ? void 0 : e.focus();
|
|
51
|
+
},
|
|
52
|
+
clear: b,
|
|
53
|
+
input: () => f.value
|
|
54
|
+
}), (e, h) => (a(), p("div", {
|
|
55
|
+
class: t([l(s)(), { "is-disabled": e.disabled }])
|
|
56
|
+
}, [
|
|
57
|
+
k("div", {
|
|
58
|
+
class: t([l(s)("wrapper"), { "is-focus": m.value }]),
|
|
59
|
+
onMouseenter: E,
|
|
60
|
+
onMouseleave: S
|
|
61
|
+
}, [
|
|
62
|
+
e.$slots.prefix || e.prefixIcon ? (a(), p("span", {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: t(l(s)("prefix"))
|
|
65
|
+
}, [
|
|
66
|
+
B(e.$slots, "prefix"),
|
|
67
|
+
e.prefixIcon ? (a(), w(l(c), {
|
|
68
|
+
key: 0,
|
|
69
|
+
name: e.prefixIcon
|
|
70
|
+
}, null, 8, ["name"])) : u("", !0)
|
|
71
|
+
], 2)) : u("", !0),
|
|
72
|
+
V(k("input", j({
|
|
73
|
+
ref_key: "inputRef",
|
|
74
|
+
ref: f,
|
|
75
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => d.value = D),
|
|
76
|
+
class: l(s)("inner"),
|
|
77
|
+
type: v.value,
|
|
78
|
+
placeholder: e.placeholder,
|
|
79
|
+
autofocus: e.autofocus,
|
|
80
|
+
readonly: e.readonly,
|
|
81
|
+
disabled: e.disabled,
|
|
82
|
+
onFocus: P,
|
|
83
|
+
onBlur: $
|
|
84
|
+
}, e.$attrs), null, 16, T), [
|
|
85
|
+
[x, d.value]
|
|
86
|
+
]),
|
|
87
|
+
e.showPassword || e.clearable ? (a(), p("span", {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: t(l(s)("suffix"))
|
|
90
|
+
}, [
|
|
91
|
+
e.showPassword ? (a(), w(l(c), {
|
|
92
|
+
key: 0,
|
|
93
|
+
name: i.value ? "view" : "hide",
|
|
94
|
+
onClick: g
|
|
95
|
+
}, null, 8, ["name"])) : u("", !0),
|
|
96
|
+
V(z(l(c), {
|
|
97
|
+
name: "circle-close",
|
|
98
|
+
onClick: F(b, ["stop"])
|
|
99
|
+
}, null, 512), [
|
|
100
|
+
[L, y.value]
|
|
101
|
+
])
|
|
102
|
+
], 2)) : u("", !0),
|
|
103
|
+
e.$slots.suffix || e.suffixIcon ? (a(), p("span", {
|
|
104
|
+
key: 2,
|
|
105
|
+
class: t(l(s)("suffix"))
|
|
106
|
+
}, [
|
|
107
|
+
B(e.$slots, "suffix"),
|
|
108
|
+
e.suffixIcon ? (a(), w(l(c), {
|
|
109
|
+
key: 0,
|
|
110
|
+
name: e.suffixIcon
|
|
111
|
+
}, null, 8, ["name"])) : u("", !0)
|
|
112
|
+
], 2)) : u("", !0)
|
|
113
|
+
], 34)
|
|
114
|
+
], 2));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
J as default
|
|
119
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.k-input {
|
|
2
|
+
--el-input-height: 32px;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: relative;
|
|
6
|
+
line-height: var(--el-input-height);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
}
|
|
10
|
+
.k-input__wrapper {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
flex-grow: 1;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: 1px 11px;
|
|
18
|
+
border: var(--k-border);
|
|
19
|
+
border-radius: var(--k-radius-base);
|
|
20
|
+
transition: border 0.2s;
|
|
21
|
+
}
|
|
22
|
+
.k-input__wrapper:hover {
|
|
23
|
+
border-color: var(--k-disabled-text-color);
|
|
24
|
+
}
|
|
25
|
+
.k-input__wrapper.is-focus, .k-input__wrapper:focus {
|
|
26
|
+
border-color: var(--k-color-primary);
|
|
27
|
+
}
|
|
28
|
+
.k-input__inner {
|
|
29
|
+
width: 100%;
|
|
30
|
+
color: var(--k-input-text-color, var(--k-text-color-regular));
|
|
31
|
+
cursor: inherit;
|
|
32
|
+
outline: none;
|
|
33
|
+
border: none;
|
|
34
|
+
}
|
|
35
|
+
.k-input__suffix, .k-input__prefix {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
color: var(--k-text-color-placeholder);
|
|
40
|
+
padding-left: 11px;
|
|
41
|
+
}
|
|
42
|
+
.k-input__prefix {
|
|
43
|
+
padding-left: 0;
|
|
44
|
+
padding-right: 11px;
|
|
45
|
+
}
|
|
46
|
+
.k-input.is-disabled {
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
}
|
|
49
|
+
.k-input.is-disabled .k-input__wrapper {
|
|
50
|
+
background-color: var(--k-disabled-bg-color);
|
|
51
|
+
border-color: var(--k-disabled-bg-color);
|
|
52
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./style/index.css";
|
|
2
|
+
import { linkProps as n } from "./types.mjs";
|
|
3
|
+
import { defineComponent as r, useAttrs as o, computed as l, openBlock as i, createElementBlock as a, mergeProps as d, renderSlot as p } from "vue";
|
|
4
|
+
import c from "../../_virtual/plugin-vue_export-helper.mjs";
|
|
5
|
+
const m = r({
|
|
6
|
+
name: "k-link",
|
|
7
|
+
props: n,
|
|
8
|
+
setup(e) {
|
|
9
|
+
const t = o(), s = l(() => ({
|
|
10
|
+
[`k-link--${e.type}`]: e.type,
|
|
11
|
+
"is-disabled": e.disabled,
|
|
12
|
+
"is-underline": e.underline
|
|
13
|
+
}));
|
|
14
|
+
return {
|
|
15
|
+
attrs: t,
|
|
16
|
+
styleClass: s
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function u(e, t, s, f, k, $) {
|
|
21
|
+
return i(), a("a", d(e.attrs, {
|
|
22
|
+
class: ["k-link", e.styleClass]
|
|
23
|
+
}), [
|
|
24
|
+
p(e.$slots, "default")
|
|
25
|
+
], 16);
|
|
26
|
+
}
|
|
27
|
+
const B = /* @__PURE__ */ c(m, [["render", u]]);
|
|
28
|
+
export {
|
|
29
|
+
B as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.k-link {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
position: relative;
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
outline: none;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
padding: 0;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.k-link--primary {
|
|
17
|
+
color: #409eff;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.k-link--primary:hover {
|
|
21
|
+
color: #66b1ff;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.k-link.is-disabled {
|
|
25
|
+
cursor: not-allowed;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.k-link.is-disabled {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.k-link--primary.is-disabled {
|
|
33
|
+
color: #a0cfff;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.k-link.is-underline:hover:after {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
height: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
border-bottom: 1px solid #409eff;
|
|
44
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as r, computed as p, openBlock as s, createElementBlock as l, normalizeClass as o, unref as c, normalizeStyle as t, renderSlot as n } from "vue";
|
|
2
|
+
import { createNamespace as f } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import "./style/index.css";
|
|
4
|
+
const y = r({
|
|
5
|
+
name: "k-overlay"
|
|
6
|
+
}), C = r({
|
|
7
|
+
...y,
|
|
8
|
+
props: {
|
|
9
|
+
mask: { type: Boolean, default: !0 },
|
|
10
|
+
customMaskEvent: { type: Boolean, default: !1 },
|
|
11
|
+
overlayClass: {},
|
|
12
|
+
zIndex: { default: 2e3 }
|
|
13
|
+
},
|
|
14
|
+
emits: [""],
|
|
15
|
+
setup(m) {
|
|
16
|
+
const u = m, { n: d } = f("overlay"), a = p(() => ({
|
|
17
|
+
zIndex: u.zIndex
|
|
18
|
+
}));
|
|
19
|
+
return (e, i) => e.mask ? (s(), l("div", {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: o([c(d)(), e.overlayClass]),
|
|
22
|
+
style: t(a.value)
|
|
23
|
+
}, [
|
|
24
|
+
n(e.$slots, "default")
|
|
25
|
+
], 6)) : (s(), l("div", {
|
|
26
|
+
key: 1,
|
|
27
|
+
class: o([e.overlayClass]),
|
|
28
|
+
style: t(a.value)
|
|
29
|
+
}, [
|
|
30
|
+
n(e.$slots, "default")
|
|
31
|
+
], 6));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
C as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.k-overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
z-index: 2000;
|
|
8
|
+
height: 100%;
|
|
9
|
+
background-color: var(--k-overlay-color-lighter);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
.k-overlay:after {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 100%;
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
content: "";
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as f, createVNode as d, Fragment as o } from "vue";
|
|
2
|
+
const c = /* @__PURE__ */ f({
|
|
3
|
+
props: {
|
|
4
|
+
setRef: {
|
|
5
|
+
type: Function,
|
|
6
|
+
required: !0
|
|
7
|
+
},
|
|
8
|
+
onlyChild: Boolean
|
|
9
|
+
},
|
|
10
|
+
setup(n, {
|
|
11
|
+
slots: t
|
|
12
|
+
}) {
|
|
13
|
+
const i = (e) => {
|
|
14
|
+
e ? n.setRef(e.nextElementSibling || null) : n.setRef(null);
|
|
15
|
+
};
|
|
16
|
+
return () => {
|
|
17
|
+
var r;
|
|
18
|
+
const [e] = ((r = t.default) == null ? void 0 : r.call(t)) || [], l = n.onlyChild ? e.children[0] : e.children;
|
|
19
|
+
return d(o, {
|
|
20
|
+
ref: i
|
|
21
|
+
}, [l]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
c as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const t = ["absolute", "fixed"], o = [
|
|
2
|
+
"top-start",
|
|
3
|
+
"top-end",
|
|
4
|
+
"top",
|
|
5
|
+
"bottom-start",
|
|
6
|
+
"bottom-end",
|
|
7
|
+
"bottom",
|
|
8
|
+
"left-start",
|
|
9
|
+
"left-end",
|
|
10
|
+
"left",
|
|
11
|
+
"right-start",
|
|
12
|
+
"right-end",
|
|
13
|
+
"right"
|
|
14
|
+
], r = {
|
|
15
|
+
effect: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "dark"
|
|
18
|
+
},
|
|
19
|
+
pure: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
content: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
arrowPadding: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 5
|
|
29
|
+
},
|
|
30
|
+
transitionName: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "van-popper-fade"
|
|
33
|
+
},
|
|
34
|
+
placement: {
|
|
35
|
+
type: String,
|
|
36
|
+
values: o,
|
|
37
|
+
default: "bottom-end"
|
|
38
|
+
},
|
|
39
|
+
strategy: {
|
|
40
|
+
type: String,
|
|
41
|
+
values: t,
|
|
42
|
+
default: "absolute"
|
|
43
|
+
},
|
|
44
|
+
reference: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: null
|
|
47
|
+
},
|
|
48
|
+
offset: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 10
|
|
51
|
+
},
|
|
52
|
+
showArrow: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !0
|
|
55
|
+
},
|
|
56
|
+
nowrap: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !0
|
|
59
|
+
},
|
|
60
|
+
disabled: {
|
|
61
|
+
type: Boolean
|
|
62
|
+
},
|
|
63
|
+
trigger: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "hover"
|
|
66
|
+
},
|
|
67
|
+
visible: {
|
|
68
|
+
type: Boolean
|
|
69
|
+
},
|
|
70
|
+
popperClass: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: ""
|
|
73
|
+
}
|
|
74
|
+
}, e = {
|
|
75
|
+
type: Function
|
|
76
|
+
}, n = {
|
|
77
|
+
nowrap: Boolean,
|
|
78
|
+
onBlur: e,
|
|
79
|
+
onClick: e,
|
|
80
|
+
onFocus: e,
|
|
81
|
+
onMouseDown: e,
|
|
82
|
+
onMouseEnter: e,
|
|
83
|
+
onMouseLeave: e,
|
|
84
|
+
trigger: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "hover"
|
|
87
|
+
}
|
|
88
|
+
}, a = Symbol("PopperContextKey");
|
|
89
|
+
export {
|
|
90
|
+
a as PopperContextKey,
|
|
91
|
+
r as PopperProps,
|
|
92
|
+
n as TriggerProps
|
|
93
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as R, ref as p, computed as o, unref as n, onMounted as F, watch as v, provide as E, openBlock as a, createElementBlock as i, Fragment as K, createVNode as w, mergeProps as M, withCtx as g, renderSlot as y, createBlock as O, Teleport as j, Transition as q, normalizeClass as h, normalizeStyle as k, createTextVNode as x, toDisplayString as G, createCommentVNode as C } from "vue";
|
|
2
|
+
import { createNamespace as H } from "../../../assets/ts/utils.mjs";
|
|
3
|
+
import { PopperProps as I, PopperContextKey as J } from "./popper.mjs";
|
|
4
|
+
import { usePopperContainer as L } from "./use-popper-container.mjs";
|
|
5
|
+
import Q from "./trigger.mjs";
|
|
6
|
+
import { useFloating as U } from "./use-floating.mjs";
|
|
7
|
+
import { shift as W, flip as X, offset as Y, arrow as Z } from "@floating-ui/dom";
|
|
8
|
+
import "./style/index.css";
|
|
9
|
+
const ee = ["data-side"], te = ["data-side"], oe = R({
|
|
10
|
+
name: "k-popper"
|
|
11
|
+
}), ce = R({
|
|
12
|
+
...oe,
|
|
13
|
+
props: I,
|
|
14
|
+
setup(_, { expose: $ }) {
|
|
15
|
+
const t = _, { n: f } = H("popper"), u = p(), r = p(!1), { selector: N } = L(), s = p(t.placement), P = o({
|
|
16
|
+
get: () => t.strategy,
|
|
17
|
+
set: () => {
|
|
18
|
+
}
|
|
19
|
+
}), S = o(() => {
|
|
20
|
+
const e = [W(), X(), Y(t.offset)];
|
|
21
|
+
return t.showArrow && e.push(Z({ element: u.value })), e;
|
|
22
|
+
}), { x: A, y: B, referenceRef: l, contentRef: c, middlewareData: T, update: V } = U({ middleware: S, placement: s, strategy: P }), b = o(() => ({ left: A.value + "px", top: B.value + "px" })), z = o(() => s.value.split("-")[0]), D = o(() => {
|
|
23
|
+
if (!t.showArrow)
|
|
24
|
+
return {};
|
|
25
|
+
const { arrow: e } = n(T);
|
|
26
|
+
return { left: (e == null ? void 0 : e.x) + "px", top: (e == null ? void 0 : e.y) + "px" };
|
|
27
|
+
});
|
|
28
|
+
$({
|
|
29
|
+
reference: c,
|
|
30
|
+
update: V,
|
|
31
|
+
onClose: d,
|
|
32
|
+
onOpen: m
|
|
33
|
+
}), F(() => {
|
|
34
|
+
v(
|
|
35
|
+
() => t.reference || l.value,
|
|
36
|
+
(e) => {
|
|
37
|
+
l.value = e || void 0;
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
immediate: !0
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
function m() {
|
|
45
|
+
r.value = !0;
|
|
46
|
+
}
|
|
47
|
+
function d() {
|
|
48
|
+
r.value = !1;
|
|
49
|
+
}
|
|
50
|
+
return v(() => [t.visible], ([e]) => {
|
|
51
|
+
r.value = e;
|
|
52
|
+
}), E(J, {
|
|
53
|
+
onClose: d,
|
|
54
|
+
onOpen: m,
|
|
55
|
+
triggerRef: l
|
|
56
|
+
}), (e, re) => (a(), i(K, null, [
|
|
57
|
+
w(Q, M({
|
|
58
|
+
nowrap: e.nowrap,
|
|
59
|
+
trigger: e.trigger
|
|
60
|
+
}, e.$attrs), {
|
|
61
|
+
default: g(() => [
|
|
62
|
+
y(e.$slots, "default")
|
|
63
|
+
]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 16, ["nowrap", "trigger"]),
|
|
66
|
+
(a(), O(j, {
|
|
67
|
+
to: `#${n(N)}`
|
|
68
|
+
}, [
|
|
69
|
+
w(q, { name: e.transitionName }, {
|
|
70
|
+
default: g(() => [
|
|
71
|
+
!e.disabled && r.value ? (a(), i("div", {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref_key: "contentRef",
|
|
74
|
+
ref: c,
|
|
75
|
+
class: h([n(f)(), `is-${e.effect}`, { "is-pure": e.pure }, e.popperClass]),
|
|
76
|
+
style: k(b.value),
|
|
77
|
+
"data-side": s.value
|
|
78
|
+
}, [
|
|
79
|
+
y(e.$slots, "content", {}, () => [
|
|
80
|
+
x(G(e.content), 1)
|
|
81
|
+
]),
|
|
82
|
+
e.showArrow ? (a(), i("span", {
|
|
83
|
+
key: 0,
|
|
84
|
+
ref_key: "arrowRef",
|
|
85
|
+
ref: u,
|
|
86
|
+
"data-side": z.value,
|
|
87
|
+
class: h(n(f)("arrow")),
|
|
88
|
+
style: k(D.value)
|
|
89
|
+
}, null, 14, te)) : C("", !0)
|
|
90
|
+
], 14, ee)) : C("", !0)
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["name"])
|
|
94
|
+
], 8, ["to"]))
|
|
95
|
+
], 64));
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
ce as default
|
|
100
|
+
};
|