@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,172 @@
|
|
|
1
|
+
import { defineComponent, useCssVars, useTemplateRef, ref, computed, onMounted, onBeforeUnmount, createBlock, openBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, renderSlot, createVNode, unref, vShow, Teleport, mergeProps } from 'vue';
|
|
2
|
+
import '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
import { CaretBottom } from '@element-plus/icons-vue';
|
|
4
|
+
import { E as ElIcon } from '../../chunk/DMHNh_tw.mjs';
|
|
5
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
|
+
|
|
7
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "child",
|
|
9
|
+
props: {
|
|
10
|
+
target: {},
|
|
11
|
+
right: { default: 40 },
|
|
12
|
+
bottom: { default: 40 },
|
|
13
|
+
visibilityHeight: { default: 200 },
|
|
14
|
+
parent: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
emits: ["inited"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
useCssVars((_ctx) => ({
|
|
19
|
+
"v10480682": `${-_ctx.right}px`,
|
|
20
|
+
"v003052db": `${_ctx.bottom}px`
|
|
21
|
+
}));
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emits = __emit;
|
|
24
|
+
const backbottomRef = useTemplateRef("backbottomRef");
|
|
25
|
+
const myTarget = ref();
|
|
26
|
+
const diffHeight = ref(0);
|
|
27
|
+
const scrollHeight = ref(0);
|
|
28
|
+
const clientHeight = ref(0);
|
|
29
|
+
const hasVerticalScrollbar = computed(() => scrollHeight.value > clientHeight.value);
|
|
30
|
+
const visible = computed(() => hasVerticalScrollbar.value && diffHeight.value > props.visibilityHeight);
|
|
31
|
+
const teleportTarget = ref();
|
|
32
|
+
const needTeleport = ref(false);
|
|
33
|
+
function updateHeightData() {
|
|
34
|
+
scrollHeight.value = myTarget.value.scrollHeight;
|
|
35
|
+
clientHeight.value = myTarget.value.clientHeight;
|
|
36
|
+
const scrollTop = myTarget.value.scrollTop;
|
|
37
|
+
diffHeight.value = scrollHeight.value - clientHeight.value - scrollTop;
|
|
38
|
+
}
|
|
39
|
+
function scrollToBottom() {
|
|
40
|
+
myTarget.value?.scrollTo({ top: myTarget.value.scrollHeight, behavior: "smooth" });
|
|
41
|
+
}
|
|
42
|
+
function getTarget() {
|
|
43
|
+
let eleTarget;
|
|
44
|
+
if (props.parent) {
|
|
45
|
+
eleTarget = backbottomRef.value?.parentElement;
|
|
46
|
+
let container = eleTarget;
|
|
47
|
+
let elScrollTarget = null;
|
|
48
|
+
do {
|
|
49
|
+
if (container && container.classList.contains("el-scrollbar__wrap")) {
|
|
50
|
+
needTeleport.value = true;
|
|
51
|
+
elScrollTarget = container;
|
|
52
|
+
}
|
|
53
|
+
container = container?.parentElement;
|
|
54
|
+
} while (!elScrollTarget && container);
|
|
55
|
+
if (elScrollTarget) {
|
|
56
|
+
eleTarget = elScrollTarget;
|
|
57
|
+
}
|
|
58
|
+
return eleTarget;
|
|
59
|
+
}
|
|
60
|
+
if (props.target) {
|
|
61
|
+
needTeleport.value = true;
|
|
62
|
+
if (typeof props.target === "string") {
|
|
63
|
+
eleTarget = document.querySelector(props.target);
|
|
64
|
+
} else {
|
|
65
|
+
eleTarget = props.target;
|
|
66
|
+
}
|
|
67
|
+
return eleTarget;
|
|
68
|
+
}
|
|
69
|
+
return document.documentElement;
|
|
70
|
+
}
|
|
71
|
+
onMounted(() => {
|
|
72
|
+
myTarget.value = getTarget();
|
|
73
|
+
if (needTeleport.value) {
|
|
74
|
+
teleportTarget.value = myTarget.value;
|
|
75
|
+
}
|
|
76
|
+
if (myTarget.value === document.documentElement) {
|
|
77
|
+
teleportTarget.value = document.body;
|
|
78
|
+
document.addEventListener("scroll", updateHeightData);
|
|
79
|
+
} else {
|
|
80
|
+
myTarget.value.addEventListener("scroll", updateHeightData);
|
|
81
|
+
}
|
|
82
|
+
updateHeightData();
|
|
83
|
+
emits("inited", teleportTarget.value);
|
|
84
|
+
});
|
|
85
|
+
onBeforeUnmount(() => {
|
|
86
|
+
if (myTarget.value === document.documentElement) {
|
|
87
|
+
window.document.removeEventListener("scroll", updateHeightData);
|
|
88
|
+
} else {
|
|
89
|
+
myTarget.value.removeEventListener("scroll", updateHeightData);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
return (_ctx, _cache) => {
|
|
93
|
+
const _component_ElIcon = ElIcon;
|
|
94
|
+
return openBlock(), createBlock(Transition, { name: "el-fade-in" }, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
withDirectives(createElementVNode("div", {
|
|
97
|
+
ref_key: "backbottomRef",
|
|
98
|
+
ref: backbottomRef,
|
|
99
|
+
class: normalizeClass(_ctx.$style.wrapper)
|
|
100
|
+
}, [
|
|
101
|
+
createElementVNode("div", {
|
|
102
|
+
class: normalizeClass(_ctx.$style.container)
|
|
103
|
+
}, [
|
|
104
|
+
createElementVNode("div", {
|
|
105
|
+
class: normalizeClass(_ctx.$style.body),
|
|
106
|
+
onClick: scrollToBottom
|
|
107
|
+
}, [
|
|
108
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
109
|
+
createVNode(_component_ElIcon, {
|
|
110
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
111
|
+
}, {
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createVNode(unref(CaretBottom))
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["class"])
|
|
117
|
+
])
|
|
118
|
+
], 2)
|
|
119
|
+
], 2)
|
|
120
|
+
], 2), [
|
|
121
|
+
[vShow, unref(visible)]
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
_: 3
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/* unplugin-vue-components disabled */const wrapper = "_wrapper_12g77_1";
|
|
131
|
+
const container = "_container_12g77_11";
|
|
132
|
+
const body = "_body_12g77_15";
|
|
133
|
+
const icon = "_icon_12g77_34";
|
|
134
|
+
const style0 = {
|
|
135
|
+
wrapper: wrapper,
|
|
136
|
+
container: container,
|
|
137
|
+
body: body,
|
|
138
|
+
icon: icon
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const cssModules = {
|
|
142
|
+
"$style": style0
|
|
143
|
+
};
|
|
144
|
+
const Child = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules]]);
|
|
145
|
+
|
|
146
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
147
|
+
__name: "backbottom",
|
|
148
|
+
props: {
|
|
149
|
+
target: {},
|
|
150
|
+
right: { default: 40 },
|
|
151
|
+
bottom: { default: 40 },
|
|
152
|
+
visibilityHeight: { default: 200 },
|
|
153
|
+
parent: { type: Boolean }
|
|
154
|
+
},
|
|
155
|
+
setup(__props) {
|
|
156
|
+
const props = __props;
|
|
157
|
+
const teleportTarget = ref();
|
|
158
|
+
function handleInited(val) {
|
|
159
|
+
teleportTarget.value = val;
|
|
160
|
+
}
|
|
161
|
+
return (_ctx, _cache) => {
|
|
162
|
+
return unref(teleportTarget) ? (openBlock(), createBlock(Teleport, {
|
|
163
|
+
key: 0,
|
|
164
|
+
to: unref(teleportTarget)
|
|
165
|
+
}, [
|
|
166
|
+
createVNode(Child, mergeProps(props, { onInited: handleInited }), null, 16)
|
|
167
|
+
], 8, ["to"])) : (openBlock(), createBlock(Child, mergeProps({ key: 1 }, props, { onInited: handleInited }), null, 16));
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
export { _sfc_main as _ };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBackBottomProps } from './backbottom';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IBackBottomProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IBackBottomProps> & Readonly<{}>, {
|
|
3
|
+
right: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
visibilityHeight: number;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IBackBottomProps } from '../backbottom';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
backbottomRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<IBackBottomProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
inited: (target?: HTMLElement | undefined) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<IBackBottomProps> & Readonly<{
|
|
16
|
+
onInited?: ((target?: HTMLElement | undefined) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
right: number;
|
|
19
|
+
bottom: number;
|
|
20
|
+
visibilityHeight: number;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
backbottomRef: HTMLDivElement;
|
|
23
|
+
}, any>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonType } from 'element-plus/es/components/button/src/button';
|
|
2
|
+
export interface IIconOption {
|
|
3
|
+
name: string;
|
|
4
|
+
type?: IGlobal.IconType;
|
|
5
|
+
position?: 'left' | 'right';
|
|
6
|
+
}
|
|
7
|
+
export interface IButtonProps {
|
|
8
|
+
icon?: IIconOption;
|
|
9
|
+
time?: number;
|
|
10
|
+
type?: ButtonType;
|
|
11
|
+
confirm?: {
|
|
12
|
+
type?: 'popconfirm' | 'messagebox' | 'none';
|
|
13
|
+
title?: string;
|
|
14
|
+
confirmButtonText?: string;
|
|
15
|
+
cancelButtonText?: string;
|
|
16
|
+
msg?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import { c as buildProps, u as useNamespace } from '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
import { f as useTooltipTriggerProps, u as useTooltipContentProps, a as ElTooltip } from '../../chunk/DqUIKX7f.mjs';
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { b as buttonTypes, E as ElButton } from '../../chunk/VCrtRnxt.mjs';
|
|
6
|
+
import { defineComponent, ref, computed, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeClass, createTextVNode, normalizeStyle, resolveDynamicComponent, toDisplayString, createVNode, createElementBlock } from 'vue';
|
|
7
|
+
import { ElMessageBox } from 'element-plus';
|
|
8
|
+
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
9
|
+
import { C as Component$1 } from '../icon/icon.mjs';
|
|
10
|
+
import { a as useThrottleFn } from '../../chunk/qY9OvNHY.mjs';
|
|
11
|
+
import { E as ElIcon } from '../../chunk/DMHNh_tw.mjs';
|
|
12
|
+
import { QuestionFilled } from '@element-plus/icons-vue';
|
|
13
|
+
import { i as iconPropType } from '../icon/icon2.mjs';
|
|
14
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/D389hx_T.mjs';
|
|
15
|
+
import { u as useLocale } from '../../chunk/aibQ9WSZ.mjs';
|
|
16
|
+
import { a as addUnit } from '../../chunk/D5259bwd.mjs';
|
|
17
|
+
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
18
|
+
|
|
19
|
+
const popconfirmProps = buildProps({
|
|
20
|
+
title: String,
|
|
21
|
+
confirmButtonText: String,
|
|
22
|
+
cancelButtonText: String,
|
|
23
|
+
confirmButtonType: {
|
|
24
|
+
type: String,
|
|
25
|
+
values: buttonTypes,
|
|
26
|
+
default: "primary"
|
|
27
|
+
},
|
|
28
|
+
cancelButtonType: {
|
|
29
|
+
type: String,
|
|
30
|
+
values: buttonTypes,
|
|
31
|
+
default: "text"
|
|
32
|
+
},
|
|
33
|
+
icon: {
|
|
34
|
+
type: iconPropType,
|
|
35
|
+
default: () => QuestionFilled
|
|
36
|
+
},
|
|
37
|
+
iconColor: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "#f90"
|
|
40
|
+
},
|
|
41
|
+
hideIcon: Boolean,
|
|
42
|
+
hideAfter: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 200
|
|
45
|
+
},
|
|
46
|
+
effect: {
|
|
47
|
+
...useTooltipContentProps.effect,
|
|
48
|
+
default: "light"
|
|
49
|
+
},
|
|
50
|
+
teleported: useTooltipContentProps.teleported,
|
|
51
|
+
persistent: useTooltipContentProps.persistent,
|
|
52
|
+
width: {
|
|
53
|
+
type: [String, Number],
|
|
54
|
+
default: 150
|
|
55
|
+
},
|
|
56
|
+
virtualTriggering: useTooltipTriggerProps.virtualTriggering,
|
|
57
|
+
virtualRef: useTooltipTriggerProps.virtualRef
|
|
58
|
+
});
|
|
59
|
+
const popconfirmEmits = {
|
|
60
|
+
confirm: (e) => e instanceof MouseEvent,
|
|
61
|
+
cancel: (e) => e instanceof MouseEvent
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const __default__ = defineComponent({
|
|
65
|
+
name: "ElPopconfirm"
|
|
66
|
+
});
|
|
67
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
68
|
+
...__default__,
|
|
69
|
+
props: popconfirmProps,
|
|
70
|
+
emits: popconfirmEmits,
|
|
71
|
+
setup(__props, { expose, emit }) {
|
|
72
|
+
const props = __props;
|
|
73
|
+
const { t } = useLocale();
|
|
74
|
+
const ns = useNamespace("popconfirm");
|
|
75
|
+
const tooltipRef = ref();
|
|
76
|
+
const rootRef = ref();
|
|
77
|
+
const popperRef = computed(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
80
|
+
});
|
|
81
|
+
const showPopper = () => {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
(_b = (_a = rootRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
84
|
+
};
|
|
85
|
+
const hidePopper = () => {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
88
|
+
};
|
|
89
|
+
const style = computed(() => {
|
|
90
|
+
return {
|
|
91
|
+
width: addUnit(props.width)
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
const confirm = (e) => {
|
|
95
|
+
emit("confirm", e);
|
|
96
|
+
hidePopper();
|
|
97
|
+
};
|
|
98
|
+
const cancel = (e) => {
|
|
99
|
+
emit("cancel", e);
|
|
100
|
+
hidePopper();
|
|
101
|
+
};
|
|
102
|
+
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
103
|
+
const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
104
|
+
expose({
|
|
105
|
+
popperRef,
|
|
106
|
+
hide: hidePopper
|
|
107
|
+
});
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return openBlock(), createBlock(unref(ElTooltip), mergeProps({
|
|
110
|
+
ref_key: "tooltipRef",
|
|
111
|
+
ref: tooltipRef,
|
|
112
|
+
trigger: "click",
|
|
113
|
+
effect: _ctx.effect
|
|
114
|
+
}, _ctx.$attrs, {
|
|
115
|
+
"virtual-triggering": _ctx.virtualTriggering,
|
|
116
|
+
"virtual-ref": _ctx.virtualRef,
|
|
117
|
+
"popper-class": `${unref(ns).namespace.value}-popover`,
|
|
118
|
+
"popper-style": unref(style),
|
|
119
|
+
teleported: _ctx.teleported,
|
|
120
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
121
|
+
"hide-after": _ctx.hideAfter,
|
|
122
|
+
persistent: _ctx.persistent,
|
|
123
|
+
loop: "",
|
|
124
|
+
onShow: showPopper
|
|
125
|
+
}), {
|
|
126
|
+
content: withCtx(() => [
|
|
127
|
+
createElementVNode("div", {
|
|
128
|
+
ref_key: "rootRef",
|
|
129
|
+
ref: rootRef,
|
|
130
|
+
tabindex: "-1",
|
|
131
|
+
class: normalizeClass(unref(ns).b())
|
|
132
|
+
}, [
|
|
133
|
+
createElementVNode("div", {
|
|
134
|
+
class: normalizeClass(unref(ns).e("main"))
|
|
135
|
+
}, [
|
|
136
|
+
!_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
137
|
+
key: 0,
|
|
138
|
+
class: normalizeClass(unref(ns).e("icon")),
|
|
139
|
+
style: normalizeStyle({ color: _ctx.iconColor })
|
|
140
|
+
}, {
|
|
141
|
+
default: withCtx(() => [
|
|
142
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["class", "style"])) : createCommentVNode("v-if", true),
|
|
146
|
+
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
|
147
|
+
], 2),
|
|
148
|
+
createElementVNode("div", {
|
|
149
|
+
class: normalizeClass(unref(ns).e("action"))
|
|
150
|
+
}, [
|
|
151
|
+
renderSlot(_ctx.$slots, "actions", {
|
|
152
|
+
confirm,
|
|
153
|
+
cancel
|
|
154
|
+
}, () => [
|
|
155
|
+
createVNode(unref(ElButton), {
|
|
156
|
+
size: "small",
|
|
157
|
+
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
|
158
|
+
text: _ctx.cancelButtonType === "text",
|
|
159
|
+
onClick: cancel
|
|
160
|
+
}, {
|
|
161
|
+
default: withCtx(() => [
|
|
162
|
+
createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["type", "text"]),
|
|
166
|
+
createVNode(unref(ElButton), {
|
|
167
|
+
size: "small",
|
|
168
|
+
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
|
169
|
+
text: _ctx.confirmButtonType === "text",
|
|
170
|
+
onClick: confirm
|
|
171
|
+
}, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["type", "text"])
|
|
177
|
+
])
|
|
178
|
+
], 2)
|
|
179
|
+
], 2)
|
|
180
|
+
]),
|
|
181
|
+
default: withCtx(() => [
|
|
182
|
+
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
}, 16, ["effect", "virtual-triggering", "virtual-ref", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "popconfirm.vue"]]);
|
|
190
|
+
|
|
191
|
+
const ElPopconfirm = withInstall(Popconfirm);
|
|
192
|
+
|
|
193
|
+
const _hoisted_1 = { key: 1 };
|
|
194
|
+
const _hoisted_2 = { key: 1 };
|
|
195
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
196
|
+
__name: "button",
|
|
197
|
+
props: {
|
|
198
|
+
icon: {},
|
|
199
|
+
time: { default: 800 },
|
|
200
|
+
type: { default: "" },
|
|
201
|
+
confirm: { default: void 0 }
|
|
202
|
+
},
|
|
203
|
+
emits: ["click"],
|
|
204
|
+
setup(__props, { emit: __emit }) {
|
|
205
|
+
const props = __props;
|
|
206
|
+
const emits = __emit;
|
|
207
|
+
const { button: buttonConfig } = injectConfig();
|
|
208
|
+
const defaultConfirmInfo = { title: "提示", confirmButtonText: "确定", cancelButtonText: "取消", msg: "请确认您的操作" };
|
|
209
|
+
const myConfirm = computed(() => buttonConfig?.confirm?.type !== void 0 ? buttonConfig?.confirm?.type : props.confirm?.type !== void 0 ? props.confirm.type : ["danger", "warning"].includes(props.type) ? "messagebox" : void 0);
|
|
210
|
+
const { name, type: iconType = "el", position = "left" } = props.icon || {};
|
|
211
|
+
const { msg, title, confirmButtonText, cancelButtonText } = { ...defaultConfirmInfo, ...buttonConfig?.confirm, ...props.confirm };
|
|
212
|
+
async function handleComfirm() {
|
|
213
|
+
try {
|
|
214
|
+
const result = await ElMessageBox.confirm(msg, title, { confirmButtonText, cancelButtonText, type: "warning", dangerouslyUseHTMLString: true });
|
|
215
|
+
return result;
|
|
216
|
+
} catch {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const handleClick = useThrottleFn(async (e) => {
|
|
221
|
+
if (myConfirm.value === "messagebox") {
|
|
222
|
+
const result = await handleComfirm();
|
|
223
|
+
result && emits("click", e);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (myConfirm.value === "popconfirm") {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
emits("click", e);
|
|
230
|
+
}, props.time);
|
|
231
|
+
const handleConfirm = useThrottleFn(async (e) => {
|
|
232
|
+
emits("click", e);
|
|
233
|
+
}, props.time);
|
|
234
|
+
return (_ctx, _cache) => {
|
|
235
|
+
const _component_ElButton = ElButton;
|
|
236
|
+
const _component_ElPopconfirm = ElPopconfirm;
|
|
237
|
+
return unref(myConfirm) === "popconfirm" ? (openBlock(), createBlock(_component_ElPopconfirm, {
|
|
238
|
+
key: 0,
|
|
239
|
+
title: unref(msg),
|
|
240
|
+
"confirm-button-text": unref(confirmButtonText),
|
|
241
|
+
"cancel-button-text": unref(cancelButtonText),
|
|
242
|
+
"popper-class": `${_ctx.$style.popper} el-popover`,
|
|
243
|
+
onConfirm: unref(handleConfirm)
|
|
244
|
+
}, {
|
|
245
|
+
reference: withCtx(() => [
|
|
246
|
+
createVNode(_component_ElButton, mergeProps(_ctx.$attrs, {
|
|
247
|
+
type: __props.type,
|
|
248
|
+
class: _ctx.$style.button,
|
|
249
|
+
onClick: unref(handleClick)
|
|
250
|
+
}), {
|
|
251
|
+
default: withCtx(() => [
|
|
252
|
+
unref(position) === "left" && unref(name) ? (openBlock(), createBlock(Component$1, {
|
|
253
|
+
key: 0,
|
|
254
|
+
type: unref(iconType),
|
|
255
|
+
name: unref(name)
|
|
256
|
+
}, null, 8, ["type", "name"])) : createCommentVNode("", true),
|
|
257
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
258
|
+
renderSlot(_ctx.$slots, "default")
|
|
259
|
+
])) : createCommentVNode("", true),
|
|
260
|
+
unref(position) === "right" && unref(name) ? (openBlock(), createBlock(Component$1, {
|
|
261
|
+
key: 2,
|
|
262
|
+
type: unref(iconType),
|
|
263
|
+
name: unref(name)
|
|
264
|
+
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
265
|
+
]),
|
|
266
|
+
_: 3
|
|
267
|
+
}, 16, ["type", "class", "onClick"])
|
|
268
|
+
]),
|
|
269
|
+
_: 3
|
|
270
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "popper-class", "onConfirm"])) : (openBlock(), createBlock(_component_ElButton, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
271
|
+
type: __props.type,
|
|
272
|
+
class: _ctx.$style.button,
|
|
273
|
+
onClick: unref(handleClick)
|
|
274
|
+
}), {
|
|
275
|
+
default: withCtx(() => [
|
|
276
|
+
unref(position) === "left" && unref(name) ? (openBlock(), createBlock(Component$1, {
|
|
277
|
+
key: 0,
|
|
278
|
+
type: unref(iconType),
|
|
279
|
+
name: unref(name)
|
|
280
|
+
}, null, 8, ["type", "name"])) : createCommentVNode("", true),
|
|
281
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
282
|
+
renderSlot(_ctx.$slots, "default")
|
|
283
|
+
])) : createCommentVNode("", true),
|
|
284
|
+
unref(position) === "right" && unref(name) ? (openBlock(), createBlock(Component$1, {
|
|
285
|
+
key: 2,
|
|
286
|
+
type: unref(iconType),
|
|
287
|
+
name: unref(name)
|
|
288
|
+
}, null, 8, ["type", "name"])) : createCommentVNode("", true)
|
|
289
|
+
]),
|
|
290
|
+
_: 3
|
|
291
|
+
}, 16, ["type", "class", "onClick"]));
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
/* unplugin-vue-components disabled */const button = "_button_1dzv7_1";
|
|
297
|
+
const popper = "_popper_1dzv7_5";
|
|
298
|
+
const style0 = {
|
|
299
|
+
button: button,
|
|
300
|
+
popper: popper
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
const cssModules = {
|
|
304
|
+
"$style": style0
|
|
305
|
+
};
|
|
306
|
+
const Component = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__cssModules", cssModules]]);
|
|
307
|
+
|
|
308
|
+
const __vite_glob_0_2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
309
|
+
__proto__: null,
|
|
310
|
+
default: Component
|
|
311
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
312
|
+
|
|
313
|
+
export { Component as C, __vite_glob_0_2 as _ };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IButtonProps } from './button';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<IButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
click: (event: Event) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<IButtonProps> & Readonly<{
|
|
15
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
type: import('element-plus').ButtonType;
|
|
18
|
+
time: number;
|
|
19
|
+
confirm: {
|
|
20
|
+
type?: "popconfirm" | "messagebox" | "none";
|
|
21
|
+
title?: string;
|
|
22
|
+
confirmButtonText?: string;
|
|
23
|
+
cancelButtonText?: string;
|
|
24
|
+
msg?: string;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* source: src/components/button/button.vue */
|
|
2
|
+
.el-popconfirm{outline:none}.el-popconfirm__main{align-items:center;display:flex}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{margin-top:8px;text-align:right}._button_1dzv7_1 > span > * + * {
|
|
3
|
+
margin-left: 0.5em;
|
|
4
|
+
}
|
|
5
|
+
._popper_1dzv7_5 {
|
|
6
|
+
width: auto !important;
|
|
7
|
+
min-width: 150px;
|
|
8
|
+
max-width: 300px;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface IPropType {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<IPropType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IPropType> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|