@wfrog/vc-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 +95 -0
- package/dist/es/chunk/-EkpfdcW.mjs +1100 -0
- package/dist/es/chunk/8rLUmOVR.mjs +29 -0
- package/dist/es/chunk/B-rxnVJv.mjs +3 -0
- package/dist/es/chunk/BAGoDD49.mjs +36 -0
- package/dist/es/chunk/BAtns-Mc.mjs +96 -0
- package/dist/es/chunk/BJS5Pdfp.mjs +55 -0
- package/dist/es/chunk/BMzd-IS6.mjs +900 -0
- package/dist/es/chunk/BWcCXRRK.mjs +229 -0
- package/dist/es/chunk/BX-Ogf7p.mjs +3743 -0
- package/dist/es/chunk/B_tU9Nax.mjs +49 -0
- package/dist/es/chunk/BdDihk0t.mjs +3420 -0
- package/dist/es/chunk/C2LgraHx.mjs +489 -0
- package/dist/es/chunk/C5hWsUfD.mjs +64 -0
- package/dist/es/chunk/C7iSSBUr.mjs +303 -0
- package/dist/es/chunk/CD98REcR.mjs +666 -0
- package/dist/es/chunk/CEClY-_T.mjs +445 -0
- package/dist/es/chunk/CEm0brzD.mjs +35 -0
- package/dist/es/chunk/CMABHk8B.mjs +1942 -0
- package/dist/es/chunk/CS4VKsqy.mjs +19 -0
- package/dist/es/chunk/CVlj9F0I.mjs +291 -0
- package/dist/es/chunk/CZ4ggqDE.mjs +140 -0
- package/dist/es/chunk/CaTfZePA.mjs +533 -0
- package/dist/es/chunk/Ce9ApjrT.mjs +201 -0
- package/dist/es/chunk/ClZGuAIb.mjs +10 -0
- package/dist/es/chunk/Coex0GxM.mjs +450 -0
- package/dist/es/chunk/Ct6q2FXg.mjs +5 -0
- package/dist/es/chunk/CyxEcbcy.mjs +29 -0
- package/dist/es/chunk/D389hx_T.mjs +35 -0
- package/dist/es/chunk/D3DXeVfC.mjs +1171 -0
- package/dist/es/chunk/D3uV7vm-.mjs +45 -0
- package/dist/es/chunk/D5259bwd.mjs +50 -0
- package/dist/es/chunk/DMHNh_tw.mjs +49 -0
- package/dist/es/chunk/DVNTpOBR.mjs +4 -0
- package/dist/es/chunk/DZACQ9LT.mjs +95 -0
- package/dist/es/chunk/De_EXLIy.mjs +22 -0
- package/dist/es/chunk/Dh4jaUSg.mjs +89 -0
- package/dist/es/chunk/DhhdKtyu.mjs +439 -0
- package/dist/es/chunk/DqUIKX7f.mjs +2039 -0
- package/dist/es/chunk/Dqz1zvKN.mjs +59 -0
- package/dist/es/chunk/Dvi7RsXg.mjs +727 -0
- package/dist/es/chunk/DyDMGLoF.mjs +123 -0
- package/dist/es/chunk/E_WRn0OP.mjs +449 -0
- package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
- package/dist/es/chunk/HSv8BL8o.mjs +72 -0
- package/dist/es/chunk/JCIyOUEY.mjs +105 -0
- package/dist/es/chunk/O-uhUKF4.mjs +43 -0
- package/dist/es/chunk/Spa-JKB4.mjs +1046 -0
- package/dist/es/chunk/VAdRxe-1.mjs +16 -0
- package/dist/es/chunk/VCrtRnxt.mjs +1477 -0
- package/dist/es/chunk/ViP2SEY4.mjs +211 -0
- package/dist/es/chunk/aibQ9WSZ.mjs +249 -0
- package/dist/es/chunk/nWBcrYxV.mjs +690 -0
- package/dist/es/chunk/pcqpp-6-.mjs +9 -0
- package/dist/es/chunk/qY9OvNHY.mjs +283 -0
- package/dist/es/chunk/su2Zrql0.mjs +53 -0
- package/dist/es/chunk/zfg5SOj1.mjs +138 -0
- package/dist/es/components/awesome-icon/awesome-icon.d.ts +6 -0
- package/dist/es/components/awesome-icon/awesome-icon.mjs +41 -0
- package/dist/es/components/awesome-icon/awesome-icon.vue.d.ts +5 -0
- package/dist/es/components/awesome-icon/index.d.ts +4 -0
- package/dist/es/components/awesome-icon/index.mjs +6 -0
- package/dist/es/components/backbottom/backbottom.d.ts +7 -0
- package/dist/es/components/backbottom/backbottom.mjs +172 -0
- package/dist/es/components/backbottom/backbottom.vue.d.ts +7 -0
- package/dist/es/components/backbottom/components/child.vue.d.ts +30 -0
- package/dist/es/components/backbottom/index.d.ts +4 -0
- package/dist/es/components/backbottom/index.mjs +6 -0
- package/dist/es/components/button/button.d.ts +18 -0
- package/dist/es/components/button/button.mjs +313 -0
- package/dist/es/components/button/button.vue.d.ts +33 -0
- package/dist/es/components/button/index.css +9 -0
- package/dist/es/components/button/index.d.ts +4 -0
- package/dist/es/components/button/index.mjs +6 -0
- package/dist/es/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/chat-container/chat-container.d.ts +9 -0
- package/dist/es/components/chat-container/chat-container.mjs +77 -0
- package/dist/es/components/chat-container/chat-container.vue.d.ts +29 -0
- package/dist/es/components/chat-container/index.css +9 -0
- package/dist/es/components/chat-container/index.d.ts +4 -0
- package/dist/es/components/chat-container/index.mjs +6 -0
- package/dist/es/components/choice/choice.d.ts +6 -0
- package/dist/es/components/choice/choice.mjs +53 -0
- package/dist/es/components/choice/choice.vue.d.ts +5 -0
- package/dist/es/components/choice/index.css +7 -0
- package/dist/es/components/choice/index.d.ts +4 -0
- package/dist/es/components/choice/index.mjs +6 -0
- package/dist/es/components/choice-boolean/choice-boolean.d.ts +5 -0
- package/dist/es/components/choice-boolean/choice-boolean.mjs +32 -0
- package/dist/es/components/choice-boolean/choice-boolean.vue.d.ts +10 -0
- package/dist/es/components/choice-boolean/index.d.ts +4 -0
- package/dist/es/components/choice-boolean/index.mjs +6 -0
- package/dist/es/components/config-provider/config-provider.d.ts +16 -0
- package/dist/es/components/config-provider/config-provider.mjs +29 -0
- package/dist/es/components/config-provider/config-provider.vue.d.ts +18 -0
- package/dist/es/components/config-provider/config-provider2.mjs +6 -0
- package/dist/es/components/config-provider/index.d.ts +4 -0
- package/dist/es/components/config-provider/index.mjs +6 -0
- package/dist/es/components/cropper/cropper.d.ts +12 -0
- package/dist/es/components/cropper/cropper.mjs +333 -0
- package/dist/es/components/cropper/cropper.vue.d.ts +32 -0
- package/dist/es/components/cropper/index.css +4 -0
- package/dist/es/components/cropper/index.d.ts +4 -0
- package/dist/es/components/cropper/index.mjs +6 -0
- package/dist/es/components/currency/currency.d.ts +21 -0
- package/dist/es/components/currency/currency.mjs +185 -0
- package/dist/es/components/currency/currency.vue.d.ts +14 -0
- package/dist/es/components/currency/index.css +8 -0
- package/dist/es/components/currency/index.d.ts +4 -0
- package/dist/es/components/currency/index.mjs +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +5550 -0
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +13 -0
- package/dist/es/components/daterange-picker/index.d.ts +4 -0
- package/dist/es/components/daterange-picker/index.mjs +6 -0
- package/dist/es/components/dialog/dialog.d.ts +13 -0
- package/dist/es/components/dialog/dialog.mjs +537 -0
- package/dist/es/components/dialog/dialog.vue.d.ts +38 -0
- package/dist/es/components/dialog/index.css +87 -0
- package/dist/es/components/dialog/index.d.ts +4 -0
- package/dist/es/components/dialog/index.mjs +6 -0
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.d.ts +33 -0
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +412 -0
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.vue.d.ts +23 -0
- package/dist/es/components/dialog-camera-upload/index.css +66 -0
- package/dist/es/components/dialog-camera-upload/index.d.ts +4 -0
- package/dist/es/components/dialog-camera-upload/index.mjs +6 -0
- package/dist/es/components/dialog-map-point/dialog-map-point.d.ts +9 -0
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +183 -0
- package/dist/es/components/dialog-map-point/dialog-map-point.vue.d.ts +22 -0
- package/dist/es/components/dialog-map-point/index.css +11 -0
- package/dist/es/components/dialog-map-point/index.d.ts +4 -0
- package/dist/es/components/dialog-map-point/index.mjs +6 -0
- package/dist/es/components/dialog-upload-images/dialog-upload-images.d.ts +16 -0
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +1391 -0
- package/dist/es/components/dialog-upload-images/dialog-upload-images.vue.d.ts +19 -0
- package/dist/es/components/dialog-upload-images/index.css +62 -0
- package/dist/es/components/dialog-upload-images/index.d.ts +4 -0
- package/dist/es/components/dialog-upload-images/index.mjs +6 -0
- package/dist/es/components/document.vue.d.ts +14 -0
- package/dist/es/components/drawer/drawer.d.ts +7 -0
- package/dist/es/components/drawer/drawer.mjs +412 -0
- package/dist/es/components/drawer/drawer.vue.d.ts +31 -0
- package/dist/es/components/drawer/index.css +56 -0
- package/dist/es/components/drawer/index.d.ts +4 -0
- package/dist/es/components/drawer/index.mjs +6 -0
- package/dist/es/components/easy-pagination/easy-pagination.d.ts +8 -0
- package/dist/es/components/easy-pagination/easy-pagination.mjs +74 -0
- package/dist/es/components/easy-pagination/easy-pagination.vue.d.ts +19 -0
- package/dist/es/components/easy-pagination/index.css +10 -0
- package/dist/es/components/easy-pagination/index.d.ts +4 -0
- package/dist/es/components/easy-pagination/index.mjs +6 -0
- package/dist/es/components/el-icon/el-icon.d.ts +6 -0
- package/dist/es/components/el-icon/el-icon.mjs +46 -0
- package/dist/es/components/el-icon/el-icon.vue.d.ts +6 -0
- package/dist/es/components/el-icon/index.css +7 -0
- package/dist/es/components/el-icon/index.d.ts +4 -0
- package/dist/es/components/el-icon/index.mjs +6 -0
- package/dist/es/components/example-wrapper.vue.d.ts +19 -0
- package/dist/es/components/flag/flag.mjs +44 -0
- package/dist/es/components/flag/flag.vue.d.ts +5 -0
- package/dist/es/components/flag/flags.d.ts +8 -0
- package/dist/es/components/flag/index.d.ts +4 -0
- package/dist/es/components/flag/index.mjs +6 -0
- package/dist/es/components/icon/icon.d.ts +6 -0
- package/dist/es/components/icon/icon.mjs +54 -0
- package/dist/es/components/icon/icon.vue.d.ts +3 -0
- package/dist/es/components/icon/icon2.mjs +27 -0
- package/dist/es/components/icon/index.css +9 -0
- package/dist/es/components/icon/index.d.ts +4 -0
- package/dist/es/components/icon/index.mjs +6 -0
- package/dist/es/components/image/image.d.ts +16 -0
- package/dist/es/components/image/image.mjs +167 -0
- package/dist/es/components/image/image.vue.d.ts +206 -0
- package/dist/es/components/image/index.css +20 -0
- package/dist/es/components/image/index.d.ts +4 -0
- package/dist/es/components/image/index.mjs +6 -0
- package/dist/es/components/input/index.css +9 -0
- package/dist/es/components/input/index.d.ts +4 -0
- package/dist/es/components/input/index.mjs +6 -0
- package/dist/es/components/input/input.d.ts +4 -0
- package/dist/es/components/input/input.mjs +85 -0
- package/dist/es/components/input/input.vue.d.ts +1232 -0
- package/dist/es/components/input-number/index.css +24 -0
- package/dist/es/components/input-number/index.d.ts +4 -0
- package/dist/es/components/input-number/index.mjs +6 -0
- package/dist/es/components/input-number/input-number.d.ts +8 -0
- package/dist/es/components/input-number/input-number.mjs +137 -0
- package/dist/es/components/input-number/input-number.vue.d.ts +35 -0
- package/dist/es/components/pca-picker/components/c.vue.d.ts +123 -0
- package/dist/es/components/pca-picker/components/elevator-item.vue.d.ts +7 -0
- package/dist/es/components/pca-picker/components/filter.vue.d.ts +2 -0
- package/dist/es/components/pca-picker/components/history.vue.d.ts +2 -0
- package/dist/es/components/pca-picker/components/hot.vue.d.ts +2 -0
- package/dist/es/components/pca-picker/components/p.vue.d.ts +2 -0
- package/dist/es/components/pca-picker/components/pca.vue.d.ts +9 -0
- package/dist/es/components/pca-picker/index.css +107 -0
- package/dist/es/components/pca-picker/index.d.ts +4 -0
- package/dist/es/components/pca-picker/index.mjs +6 -0
- package/dist/es/components/pca-picker/pca-picker.d.ts +78 -0
- package/dist/es/components/pca-picker/pca-picker.mjs +1667 -0
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +583 -0
- package/dist/es/components/qr-code/index.d.ts +4 -0
- package/dist/es/components/qr-code/index.mjs +6 -0
- package/dist/es/components/qr-code/qr-code.d.ts +9 -0
- package/dist/es/components/qr-code/qr-code.mjs +69 -0
- package/dist/es/components/qr-code/qr-code.vue.d.ts +13 -0
- package/dist/es/components/screenfull/index.css +14 -0
- package/dist/es/components/screenfull/index.d.ts +4 -0
- package/dist/es/components/screenfull/index.mjs +6 -0
- package/dist/es/components/screenfull/screenfull.d.ts +4 -0
- package/dist/es/components/screenfull/screenfull.mjs +91 -0
- package/dist/es/components/screenfull/screenfull.vue.d.ts +20 -0
- package/dist/es/components/select/index.css +9 -0
- package/dist/es/components/select/index.d.ts +4 -0
- package/dist/es/components/select/index.mjs +6 -0
- package/dist/es/components/select/select.d.ts +6 -0
- package/dist/es/components/select/select.mjs +63 -0
- package/dist/es/components/select/select.vue.d.ts +6 -0
- package/dist/es/components/single-player/index.css +45 -0
- package/dist/es/components/single-player/index.d.ts +4 -0
- package/dist/es/components/single-player/index.mjs +6 -0
- package/dist/es/components/single-player/single-player.d.ts +4 -0
- package/dist/es/components/single-player/single-player.mjs +1172 -0
- package/dist/es/components/single-player/single-player.vue.d.ts +13 -0
- package/dist/es/components/svg-icon/index.css +9 -0
- package/dist/es/components/svg-icon/index.d.ts +4 -0
- package/dist/es/components/svg-icon/index.mjs +6 -0
- package/dist/es/components/svg-icon/svg-icon.d.ts +5 -0
- package/dist/es/components/svg-icon/svg-icon.mjs +46 -0
- package/dist/es/components/svg-icon/svg-icon.vue.d.ts +18 -0
- package/dist/es/components/switch/index.css +15 -0
- package/dist/es/components/switch/index.d.ts +4 -0
- package/dist/es/components/switch/index.mjs +6 -0
- package/dist/es/components/switch/switch.d.ts +9 -0
- package/dist/es/components/switch/switch.mjs +82 -0
- package/dist/es/components/switch/switch.vue.d.ts +14 -0
- package/dist/es/components/sync-scroll-container/index.css +82 -0
- package/dist/es/components/sync-scroll-container/index.d.ts +4 -0
- package/dist/es/components/sync-scroll-container/index.mjs +6 -0
- package/dist/es/components/sync-scroll-container/sync-scroll-container.d.ts +6 -0
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +157 -0
- package/dist/es/components/sync-scroll-container/sync-scroll-container.vue.d.ts +36 -0
- package/dist/es/components/tags/index.css +17 -0
- package/dist/es/components/tags/index.d.ts +4 -0
- package/dist/es/components/tags/index.mjs +6 -0
- package/dist/es/components/tags/tags.d.ts +9 -0
- package/dist/es/components/tags/tags.mjs +296 -0
- package/dist/es/components/tags/tags.vue.d.ts +20 -0
- package/dist/es/components/text-ellipsis/index.css +15 -0
- package/dist/es/components/text-ellipsis/index.d.ts +4 -0
- package/dist/es/components/text-ellipsis/index.mjs +6 -0
- package/dist/es/components/text-ellipsis/text-ellipsis.d.ts +12 -0
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +137 -0
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +41 -0
- package/dist/es/components/thousand-input/index.css +4 -0
- package/dist/es/components/thousand-input/index.d.ts +4 -0
- package/dist/es/components/thousand-input/index.mjs +6 -0
- package/dist/es/components/thousand-input/thousand-input.d.ts +11 -0
- package/dist/es/components/thousand-input/thousand-input.mjs +159 -0
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +2558 -0
- package/dist/es/components/tinymce/config.d.ts +25 -0
- package/dist/es/components/tinymce/index.css +9 -0
- package/dist/es/components/tinymce/index.d.ts +4 -0
- package/dist/es/components/tinymce/index.mjs +6 -0
- package/dist/es/components/tinymce/tinymce.d.ts +9 -0
- package/dist/es/components/tinymce/tinymce.mjs +176 -0
- package/dist/es/components/tinymce/tinymce.vue.d.ts +20 -0
- package/dist/es/components/tree-picker/components/popover-cascader.d.ts +8 -0
- package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +1361 -0
- package/dist/es/components/tree-picker/docs/data.d.ts +2 -0
- package/dist/es/components/tree-picker/index.css +41 -0
- package/dist/es/components/tree-picker/index.d.ts +4 -0
- package/dist/es/components/tree-picker/index.mjs +6 -0
- package/dist/es/components/tree-picker/popover-cascader.css +23 -0
- package/dist/es/components/tree-picker/tree-picker.d.ts +14 -0
- package/dist/es/components/tree-picker/tree-picker.mjs +173 -0
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +575 -0
- package/dist/es/components/upload-file/index.css +30 -0
- package/dist/es/components/upload-file/index.d.ts +4 -0
- package/dist/es/components/upload-file/index.mjs +6 -0
- package/dist/es/components/upload-file/upload-file.d.ts +39 -0
- package/dist/es/components/upload-file/upload-file.mjs +202 -0
- package/dist/es/components/upload-file/upload-file.vue.d.ts +30 -0
- package/dist/es/directives/cleave/index.d.ts +3 -0
- package/dist/es/directives/focus/index.d.ts +4 -0
- package/dist/es/directives/index.d.ts +3 -0
- package/dist/es/directives/thousand/index.d.ts +3 -0
- package/dist/es/index.d.ts +42 -0
- package/dist/es/index.mjs +122 -0
- package/dist/es/use/useSmallScreen/index.d.ts +4 -0
- package/dist/es/use/useSmallScreen/index.mjs +10 -0
- package/dist/es/use/useStore/index.d.ts +3 -0
- package/dist/es/use/useStore/index.mjs +22 -0
- package/dist/es/utils/index.d.ts +6 -0
- package/dist/es/utils/resolver.d.ts +3 -0
- package/dist/es/utils/resolver.mjs +24 -0
- package/dist/es/utils/typescript.d.ts +6 -0
- package/dist/global.d.ts +42 -0
- package/dist/index.css +869 -0
- package/package.json +58 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
import '../../chunk/DqUIKX7f.mjs';
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { E as ElAlert } from '../../chunk/zfg5SOj1.mjs';
|
|
6
|
+
import { E as ElInput } from '../../chunk/Dvi7RsXg.mjs';
|
|
7
|
+
import { E as ElSpace } from '../../chunk/Ce9ApjrT.mjs';
|
|
8
|
+
import { E as ElTag } from '../../chunk/CZ4ggqDE.mjs';
|
|
9
|
+
import { defineComponent, ref, computed, watch, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, unref, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
|
|
10
|
+
import Draggable from 'vuedraggable-es-fix';
|
|
11
|
+
import { C as Component$1 } from '../button/button.mjs';
|
|
12
|
+
import { E as ElPopover } from '../../chunk/C7iSSBUr.mjs';
|
|
13
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
14
|
+
|
|
15
|
+
const vFocus = {
|
|
16
|
+
mounted: (el) => {
|
|
17
|
+
if (el.tagName === "input") {
|
|
18
|
+
setTimeout(() => el.focus(), 0);
|
|
19
|
+
} else {
|
|
20
|
+
const elInput = el.getElementsByTagName("input");
|
|
21
|
+
if (elInput.length > 0) {
|
|
22
|
+
setTimeout(() => elInput[0].focus(), 0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
|
+
__name: "tags",
|
|
30
|
+
props: {
|
|
31
|
+
modelValue: {},
|
|
32
|
+
limit: { default: 5 },
|
|
33
|
+
regexp: { default: () => /\S+/ },
|
|
34
|
+
sameMessage: { default: "内容重复了" },
|
|
35
|
+
errorMessage: { default: "" },
|
|
36
|
+
readonly: { type: Boolean, default: false },
|
|
37
|
+
valueFormat: { type: Function, default: (val) => val }
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:modelValue", "change", "dragStart", "dragEnd"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const emits = __emit;
|
|
43
|
+
const errorVisible = ref(false);
|
|
44
|
+
const createVisible = ref(false);
|
|
45
|
+
const currentTag = ref("");
|
|
46
|
+
const bakTag = ref("");
|
|
47
|
+
const sameContentMessage = ref("");
|
|
48
|
+
const currentInput = ref();
|
|
49
|
+
const timerId = ref();
|
|
50
|
+
const currentRef = ref();
|
|
51
|
+
const tags = computed({
|
|
52
|
+
get() {
|
|
53
|
+
return props.modelValue.map((tag) => ({ name: tag, editVisible: tag === bakTag.value }));
|
|
54
|
+
},
|
|
55
|
+
set(val) {
|
|
56
|
+
const data = val.map((item) => props.valueFormat(item.name || item));
|
|
57
|
+
emits("update:modelValue", data);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const isLimited = computed(() => props.modelValue.length >= props.limit);
|
|
61
|
+
function handleClick(name) {
|
|
62
|
+
currentTag.value = name;
|
|
63
|
+
bakTag.value = name;
|
|
64
|
+
}
|
|
65
|
+
function handleDelete(name) {
|
|
66
|
+
const data = [...props.modelValue];
|
|
67
|
+
data.splice(data.indexOf(name), 1);
|
|
68
|
+
tags.value = data;
|
|
69
|
+
emits("change", data);
|
|
70
|
+
}
|
|
71
|
+
const isSameContent = (name) => props.modelValue.includes(name) && bakTag.value !== name;
|
|
72
|
+
const isPassTest = (name) => props.regexp.test(name);
|
|
73
|
+
const checkTag = (name) => !isSameContent(name) && isPassTest(name);
|
|
74
|
+
function closeError() {
|
|
75
|
+
errorVisible.value = false;
|
|
76
|
+
sameContentMessage.value = "";
|
|
77
|
+
clearTimeout(timerId.value);
|
|
78
|
+
}
|
|
79
|
+
function showError() {
|
|
80
|
+
clearTimeout(timerId.value);
|
|
81
|
+
if (isSameContent(currentTag.value)) {
|
|
82
|
+
sameContentMessage.value = props.sameMessage;
|
|
83
|
+
}
|
|
84
|
+
errorVisible.value = true;
|
|
85
|
+
currentInput.value?.focus();
|
|
86
|
+
timerId.value = setTimeout(() => closeError(), 3e3);
|
|
87
|
+
}
|
|
88
|
+
function handleSave({ target }) {
|
|
89
|
+
currentRef.value = target;
|
|
90
|
+
currentTag.value = currentTag.value.trim();
|
|
91
|
+
if (currentTag.value === "") {
|
|
92
|
+
handleDelete(bakTag.value);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
currentInput.value = target;
|
|
96
|
+
if (!checkTag(currentTag.value)) {
|
|
97
|
+
showError();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const data = tags.value.map((item) => item.name === bakTag.value ? currentTag.value : item.name);
|
|
101
|
+
bakTag.value = "";
|
|
102
|
+
tags.value = data;
|
|
103
|
+
emits("change", data);
|
|
104
|
+
currentTag.value = "";
|
|
105
|
+
}
|
|
106
|
+
function handleSaveClear() {
|
|
107
|
+
closeError();
|
|
108
|
+
currentTag.value = bakTag.value;
|
|
109
|
+
}
|
|
110
|
+
function showCreate() {
|
|
111
|
+
currentTag.value = "";
|
|
112
|
+
createVisible.value = true;
|
|
113
|
+
}
|
|
114
|
+
function handleInsert({ target }) {
|
|
115
|
+
currentRef.value = target;
|
|
116
|
+
currentTag.value = currentTag.value.trim();
|
|
117
|
+
if (currentTag.value === "") {
|
|
118
|
+
createVisible.value = false;
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
currentInput.value = target;
|
|
122
|
+
if (!checkTag(currentTag.value)) {
|
|
123
|
+
showError();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const data = [...props.modelValue, currentTag.value];
|
|
127
|
+
createVisible.value = false;
|
|
128
|
+
tags.value = data;
|
|
129
|
+
emits("change", data);
|
|
130
|
+
setTimeout(() => showCreate(), 0);
|
|
131
|
+
}
|
|
132
|
+
function handleInsertClear() {
|
|
133
|
+
closeError();
|
|
134
|
+
createVisible.value = false;
|
|
135
|
+
currentTag.value = "";
|
|
136
|
+
}
|
|
137
|
+
function handleBlur({ target }) {
|
|
138
|
+
if (!target) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
currentRef.value = target;
|
|
142
|
+
const myTarget = target;
|
|
143
|
+
myTarget.blur();
|
|
144
|
+
}
|
|
145
|
+
function handleDragStart(event) {
|
|
146
|
+
emits("dragStart", event);
|
|
147
|
+
}
|
|
148
|
+
function handleDragEnd(event) {
|
|
149
|
+
emits("change", props.modelValue);
|
|
150
|
+
emits("dragEnd", event);
|
|
151
|
+
}
|
|
152
|
+
watch(isLimited, async (val) => {
|
|
153
|
+
if (!val) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
createVisible.value = false;
|
|
158
|
+
}, 0);
|
|
159
|
+
});
|
|
160
|
+
return (_ctx, _cache) => {
|
|
161
|
+
const _component_ElTag = ElTag;
|
|
162
|
+
const _component_ElSpace = ElSpace;
|
|
163
|
+
const _component_ElInput = ElInput;
|
|
164
|
+
const _component_ElAlert = ElAlert;
|
|
165
|
+
const _component_ElPopover = ElPopover;
|
|
166
|
+
return __props.readonly ? (openBlock(), createBlock(_component_ElSpace, {
|
|
167
|
+
key: 0,
|
|
168
|
+
wrap: ""
|
|
169
|
+
}, {
|
|
170
|
+
default: withCtx(() => [
|
|
171
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tags), (tag) => {
|
|
172
|
+
return openBlock(), createBlock(_component_ElTag, mergeProps({
|
|
173
|
+
key: tag.name,
|
|
174
|
+
"disable-transitions": ""
|
|
175
|
+
}, { ref_for: true }, _ctx.$attrs), {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createTextVNode(toDisplayString(tag.name), 1)
|
|
178
|
+
]),
|
|
179
|
+
_: 2
|
|
180
|
+
}, 1040);
|
|
181
|
+
}), 128))
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})) : (openBlock(), createBlock(_component_ElSpace, {
|
|
185
|
+
key: 1,
|
|
186
|
+
wrap: ""
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(unref(Draggable), {
|
|
190
|
+
modelValue: unref(tags),
|
|
191
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(tags) ? tags.value = $event : null),
|
|
192
|
+
"drag-class": "el-tag--success",
|
|
193
|
+
class: normalizeClass(_ctx.$style.draggable),
|
|
194
|
+
tag: "span",
|
|
195
|
+
"item-key": "name",
|
|
196
|
+
animation: "400",
|
|
197
|
+
onStart: handleDragStart,
|
|
198
|
+
onEnd: handleDragEnd
|
|
199
|
+
}, {
|
|
200
|
+
item: withCtx(({ element }) => [
|
|
201
|
+
!element.editVisible ? (openBlock(), createBlock(_component_ElTag, mergeProps({
|
|
202
|
+
key: 0,
|
|
203
|
+
"disable-transitions": "",
|
|
204
|
+
closable: "",
|
|
205
|
+
class: _ctx.$style.tag
|
|
206
|
+
}, _ctx.$attrs, {
|
|
207
|
+
onClose: ($event) => handleDelete(element.name),
|
|
208
|
+
onDblclick: ($event) => handleClick(element.name)
|
|
209
|
+
}), {
|
|
210
|
+
default: withCtx(() => [
|
|
211
|
+
createTextVNode(toDisplayString(element.name), 1)
|
|
212
|
+
]),
|
|
213
|
+
_: 2
|
|
214
|
+
}, 1040, ["class", "onClose", "onDblclick"])) : withDirectives((openBlock(), createBlock(_component_ElInput, {
|
|
215
|
+
key: 1,
|
|
216
|
+
modelValue: unref(currentTag),
|
|
217
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentTag) ? currentTag.value = $event : null),
|
|
218
|
+
size: "small",
|
|
219
|
+
clearable: "",
|
|
220
|
+
class: normalizeClass(_ctx.$style.input),
|
|
221
|
+
onClear: handleSaveClear,
|
|
222
|
+
onKeyup: withKeys(handleBlur, ["enter"]),
|
|
223
|
+
onBlur: handleSave
|
|
224
|
+
}, null, 8, ["modelValue", "class"])), [
|
|
225
|
+
[unref(vFocus)]
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
footer: withCtx(() => [
|
|
229
|
+
unref(createVisible) && !unref(isLimited) ? withDirectives((openBlock(), createBlock(_component_ElInput, {
|
|
230
|
+
key: 0,
|
|
231
|
+
modelValue: unref(currentTag),
|
|
232
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentTag) ? currentTag.value = $event : null),
|
|
233
|
+
size: "small",
|
|
234
|
+
clearable: "",
|
|
235
|
+
class: normalizeClass(_ctx.$style.input),
|
|
236
|
+
onClear: handleInsertClear,
|
|
237
|
+
onKeyup: withKeys(handleBlur, ["enter"]),
|
|
238
|
+
onBlur: handleInsert
|
|
239
|
+
}, null, 8, ["modelValue", "class"])), [
|
|
240
|
+
[unref(vFocus)]
|
|
241
|
+
]) : !unref(isLimited) ? (openBlock(), createBlock(Component$1, {
|
|
242
|
+
key: 1,
|
|
243
|
+
size: "small",
|
|
244
|
+
icon: { name: "Plus" },
|
|
245
|
+
onClick: showCreate
|
|
246
|
+
})) : createCommentVNode("", true)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["modelValue", "class"]),
|
|
250
|
+
unref(errorVisible) ? (openBlock(), createBlock(_component_ElPopover, {
|
|
251
|
+
key: 0,
|
|
252
|
+
"virtual-ref": unref(currentRef),
|
|
253
|
+
visible: unref(errorVisible),
|
|
254
|
+
placement: "bottom"
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
createVNode(_component_ElAlert, {
|
|
258
|
+
type: "error",
|
|
259
|
+
closable: false,
|
|
260
|
+
class: normalizeClass(_ctx.$style.alert)
|
|
261
|
+
}, {
|
|
262
|
+
default: withCtx(() => [
|
|
263
|
+
createTextVNode(toDisplayString(unref(sameContentMessage) || __props.errorMessage), 1)
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}, 8, ["class"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["virtual-ref", "visible"])) : createCommentVNode("", true)
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}));
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
/* unplugin-vue-components disabled */const input = "_input_1tp7v_1";
|
|
278
|
+
const draggable = "_draggable_1tp7v_5";
|
|
279
|
+
const alert = "_alert_1tp7v_17";
|
|
280
|
+
const style0 = {
|
|
281
|
+
input: input,
|
|
282
|
+
draggable: draggable,
|
|
283
|
+
alert: alert
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
const cssModules = {
|
|
287
|
+
"$style": style0
|
|
288
|
+
};
|
|
289
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
290
|
+
|
|
291
|
+
const __vite_glob_0_30 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
292
|
+
__proto__: null,
|
|
293
|
+
default: Component
|
|
294
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
295
|
+
|
|
296
|
+
export { Component as C, __vite_glob_0_30 as _ };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ITagsProps } from './tags';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ITagsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (val: any[]) => any;
|
|
4
|
+
"update:modelValue": (val: any[]) => any;
|
|
5
|
+
dragStart: (event: any) => any;
|
|
6
|
+
dragEnd: (event: any) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<ITagsProps> & Readonly<{
|
|
8
|
+
onChange?: ((val: any[]) => any) | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: ((val: any[]) => any) | undefined;
|
|
10
|
+
onDragStart?: ((event: any) => any) | undefined;
|
|
11
|
+
onDragEnd?: ((event: any) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
valueFormat: (val: string | number) => string | number;
|
|
15
|
+
limit: number;
|
|
16
|
+
regexp: RegExp;
|
|
17
|
+
sameMessage: string;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* source: src/components/text-ellipsis/text-ellipsis.vue */
|
|
2
|
+
._main_eqh40_1 {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
vertical-align: bottom;
|
|
6
|
+
}
|
|
7
|
+
._ellipsis_eqh40_7 {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
}
|
|
12
|
+
._text_eqh40_13 {
|
|
13
|
+
display: inline;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Placement, PopperEffect } from 'element-plus/es/components/popper';
|
|
2
|
+
export interface ITextEllipsisProps {
|
|
3
|
+
type?: 'single';
|
|
4
|
+
effect?: PopperEffect;
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
content?: string;
|
|
7
|
+
popperOptions?: object;
|
|
8
|
+
popperClass?: string;
|
|
9
|
+
enterable?: boolean;
|
|
10
|
+
maxWidth?: number;
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { a as ElTooltip } from '../../chunk/DqUIKX7f.mjs';
|
|
5
|
+
import { defineComponent, ref, useTemplateRef, computed, watch, onMounted, nextTick, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
|
6
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
|
+
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "text-ellipsis",
|
|
10
|
+
props: {
|
|
11
|
+
type: { default: "single" },
|
|
12
|
+
effect: { default: "light" },
|
|
13
|
+
placement: { default: "top" },
|
|
14
|
+
content: { default: "" },
|
|
15
|
+
popperOptions: { default: () => ({ boundariesElement: "body", gpuAcceleration: false }) },
|
|
16
|
+
popperClass: { default: "" },
|
|
17
|
+
enterable: { type: Boolean, default: false },
|
|
18
|
+
maxWidth: { default: 0 },
|
|
19
|
+
showTooltip: { type: Boolean, default: true }
|
|
20
|
+
},
|
|
21
|
+
setup(__props, { expose: __expose }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const tipsVisible = ref(false);
|
|
24
|
+
const textVisible = ref(false);
|
|
25
|
+
const realWidth = ref(0);
|
|
26
|
+
const mainRef = useTemplateRef("mainRef");
|
|
27
|
+
const textRef = useTemplateRef("textRef");
|
|
28
|
+
const ellipsisRef = useTemplateRef("ellipsisRef");
|
|
29
|
+
const mainStyle = computed(() => props.maxWidth ? { width: `${props.maxWidth}px` } : {});
|
|
30
|
+
const fixStyle = computed(() => ({ width: `${realWidth.value}px` }));
|
|
31
|
+
function isOverflow() {
|
|
32
|
+
return new Promise((resolve) => {
|
|
33
|
+
tipsVisible.value = true;
|
|
34
|
+
textVisible.value = true;
|
|
35
|
+
nextTick(() => {
|
|
36
|
+
if (textRef.value && ellipsisRef.value) {
|
|
37
|
+
const originWidth = textRef.value?.offsetWidth;
|
|
38
|
+
const ellipsisWidth = props.maxWidth || ellipsisRef.value?.offsetWidth;
|
|
39
|
+
resolve(originWidth > ellipsisWidth);
|
|
40
|
+
} else {
|
|
41
|
+
resolve(false);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
async function update() {
|
|
47
|
+
const isOverflowX = await isOverflow();
|
|
48
|
+
tipsVisible.value = isOverflowX;
|
|
49
|
+
textVisible.value = !isOverflowX;
|
|
50
|
+
realWidth.value = mainRef.value?.clientWidth || 0;
|
|
51
|
+
}
|
|
52
|
+
const watchData = computed(() => `${props.content}${props.maxWidth}${props.popperClass}`);
|
|
53
|
+
watch(watchData, () => update(), { immediate: true });
|
|
54
|
+
watch(realWidth, () => update());
|
|
55
|
+
onMounted(() => nextTick(() => update()));
|
|
56
|
+
__expose({ tipsVisible });
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
const _component_ElTooltip = ElTooltip;
|
|
59
|
+
return openBlock(), createElementBlock("div", {
|
|
60
|
+
ref_key: "mainRef",
|
|
61
|
+
ref: mainRef,
|
|
62
|
+
class: normalizeClass(_ctx.$style.main),
|
|
63
|
+
style: normalizeStyle(unref(mainStyle))
|
|
64
|
+
}, [
|
|
65
|
+
unref(tipsVisible) && __props.showTooltip ? (openBlock(), createBlock(_component_ElTooltip, {
|
|
66
|
+
key: 0,
|
|
67
|
+
effect: __props.effect,
|
|
68
|
+
placement: __props.placement,
|
|
69
|
+
"popper-class": __props.popperClass,
|
|
70
|
+
"popper-options": __props.popperOptions,
|
|
71
|
+
enterable: __props.enterable
|
|
72
|
+
}, {
|
|
73
|
+
content: withCtx(() => [
|
|
74
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
75
|
+
createTextVNode(toDisplayString(__props.content), 1)
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createElementVNode("div", {
|
|
80
|
+
ref_key: "ellipsisRef",
|
|
81
|
+
ref: ellipsisRef,
|
|
82
|
+
class: normalizeClass(_ctx.$style.ellipsis),
|
|
83
|
+
style: normalizeStyle(unref(fixStyle))
|
|
84
|
+
}, [
|
|
85
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
86
|
+
createTextVNode(toDisplayString(__props.content), 1)
|
|
87
|
+
])
|
|
88
|
+
], 6)
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["effect", "placement", "popper-class", "popper-options", "enterable"])) : createCommentVNode("", true),
|
|
92
|
+
unref(tipsVisible) && !__props.showTooltip ? (openBlock(), createElementBlock("div", {
|
|
93
|
+
key: 1,
|
|
94
|
+
ref_key: "ellipsisRef",
|
|
95
|
+
ref: ellipsisRef,
|
|
96
|
+
class: normalizeClass(_ctx.$style.ellipsis),
|
|
97
|
+
style: normalizeStyle(unref(fixStyle))
|
|
98
|
+
}, [
|
|
99
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
100
|
+
createTextVNode(toDisplayString(__props.content), 1)
|
|
101
|
+
])
|
|
102
|
+
], 6)) : createCommentVNode("", true),
|
|
103
|
+
unref(textVisible) ? (openBlock(), createElementBlock("div", {
|
|
104
|
+
key: 2,
|
|
105
|
+
ref_key: "textRef",
|
|
106
|
+
ref: textRef,
|
|
107
|
+
class: normalizeClass(_ctx.$style.text)
|
|
108
|
+
}, [
|
|
109
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
110
|
+
createTextVNode(toDisplayString(__props.content), 1)
|
|
111
|
+
])
|
|
112
|
+
], 2)) : createCommentVNode("", true)
|
|
113
|
+
], 6);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/* unplugin-vue-components disabled */const main = "_main_eqh40_1";
|
|
119
|
+
const ellipsis = "_ellipsis_eqh40_7";
|
|
120
|
+
const text = "_text_eqh40_13";
|
|
121
|
+
const style0 = {
|
|
122
|
+
main: main,
|
|
123
|
+
ellipsis: ellipsis,
|
|
124
|
+
text: text
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const cssModules = {
|
|
128
|
+
"$style": style0
|
|
129
|
+
};
|
|
130
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
131
|
+
|
|
132
|
+
const __vite_glob_0_31 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
133
|
+
__proto__: null,
|
|
134
|
+
default: Component
|
|
135
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
136
|
+
|
|
137
|
+
export { Component as C, __vite_glob_0_31 as _ };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ITextEllipsisProps } from './text-ellipsis';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
mainRef: HTMLDivElement;
|
|
12
|
+
ellipsisRef: HTMLDivElement;
|
|
13
|
+
textRef: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<ITextEllipsisProps, {
|
|
19
|
+
tipsVisible: globalThis.Ref<boolean, boolean>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ITextEllipsisProps> & Readonly<{}>, {
|
|
21
|
+
type: "single";
|
|
22
|
+
effect: import('element-plus').PopperEffect;
|
|
23
|
+
popperClass: string;
|
|
24
|
+
popperOptions: object;
|
|
25
|
+
placement: Placement;
|
|
26
|
+
content: string;
|
|
27
|
+
enterable: boolean;
|
|
28
|
+
maxWidth: number;
|
|
29
|
+
showTooltip: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
|
+
mainRef: HTMLDivElement;
|
|
32
|
+
ellipsisRef: HTMLDivElement;
|
|
33
|
+
textRef: HTMLDivElement;
|
|
34
|
+
}, HTMLDivElement>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|