@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,74 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
import { E as ElButton } from '../../chunk/VCrtRnxt.mjs';
|
|
4
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
5
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
|
+
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "easy-pagination",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: "small" },
|
|
11
|
+
prevText: { default: "上一页" },
|
|
12
|
+
nextText: { default: "下一页" },
|
|
13
|
+
currentPage: { default: 1 },
|
|
14
|
+
haveNext: { type: Boolean, default: false }
|
|
15
|
+
},
|
|
16
|
+
emits: ["currentChange", "update:currentPage", "prevClick", "nextClick"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const emits = __emit;
|
|
20
|
+
const havePrev = computed(() => props.currentPage > 1);
|
|
21
|
+
function handlePageChange(p) {
|
|
22
|
+
let currentPage = props.currentPage + p;
|
|
23
|
+
currentPage = currentPage > 0 ? currentPage : 1;
|
|
24
|
+
emits("update:currentPage", currentPage);
|
|
25
|
+
emits("currentChange", currentPage);
|
|
26
|
+
p < 0 && emits("prevClick", currentPage);
|
|
27
|
+
p > 0 && emits("nextClick", currentPage);
|
|
28
|
+
}
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
const _component_ElButton = ElButton;
|
|
31
|
+
return openBlock(), createElementBlock("div", {
|
|
32
|
+
class: normalizeClass(_ctx.$style.main)
|
|
33
|
+
}, [
|
|
34
|
+
createVNode(_component_ElButton, {
|
|
35
|
+
size: __props.size,
|
|
36
|
+
disabled: !unref(havePrev),
|
|
37
|
+
onClick: _cache[0] || (_cache[0] = () => handlePageChange(-1))
|
|
38
|
+
}, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createTextVNode(toDisplayString(__props.prevText), 1)
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["size", "disabled"]),
|
|
44
|
+
createVNode(_component_ElButton, {
|
|
45
|
+
size: __props.size,
|
|
46
|
+
disabled: !__props.haveNext,
|
|
47
|
+
onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createTextVNode(toDisplayString(__props.nextText), 1)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["size", "disabled"])
|
|
54
|
+
], 2);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/* unplugin-vue-components disabled */const main = "_main_1y8do_1";
|
|
60
|
+
const style0 = {
|
|
61
|
+
main: main
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const cssModules = {
|
|
65
|
+
"$style": style0
|
|
66
|
+
};
|
|
67
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
68
|
+
|
|
69
|
+
const __vite_glob_0_15 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
70
|
+
__proto__: null,
|
|
71
|
+
default: Component
|
|
72
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
73
|
+
|
|
74
|
+
export { Component as C, __vite_glob_0_15 as _ };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IEasyPaginationProps } from './easy-pagination';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IEasyPaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
currentChange: (p: number) => any;
|
|
4
|
+
"update:currentPage": (p: number) => any;
|
|
5
|
+
prevClick: (p: number) => any;
|
|
6
|
+
nextClick: (p: number) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<IEasyPaginationProps> & Readonly<{
|
|
8
|
+
onCurrentChange?: ((p: number) => any) | undefined;
|
|
9
|
+
"onUpdate:currentPage"?: ((p: number) => any) | undefined;
|
|
10
|
+
onPrevClick?: ((p: number) => any) | undefined;
|
|
11
|
+
onNextClick?: ((p: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>;
|
|
14
|
+
prevText: string;
|
|
15
|
+
nextText: string;
|
|
16
|
+
currentPage: number;
|
|
17
|
+
haveNext: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, resolveDynamicComponent } from 'vue';
|
|
3
|
+
import * as Icons from '@element-plus/icons-vue';
|
|
4
|
+
import { ElIcon } from 'element-plus';
|
|
5
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
|
+
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "el-icon",
|
|
9
|
+
props: {
|
|
10
|
+
name: {},
|
|
11
|
+
color: { default: "" },
|
|
12
|
+
size: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(ElIcon), {
|
|
18
|
+
size: __props.size,
|
|
19
|
+
color: __props.color,
|
|
20
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
21
|
+
}, {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
(openBlock(), createBlock(resolveDynamicComponent(Icons[props.name])))
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["size", "color", "class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/* unplugin-vue-components disabled */const icon = "_icon_1iurh_1";
|
|
32
|
+
const style0 = {
|
|
33
|
+
icon: icon
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const cssModules = {
|
|
37
|
+
"$style": style0
|
|
38
|
+
};
|
|
39
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
40
|
+
|
|
41
|
+
const __vite_glob_0_16 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
42
|
+
__proto__: null,
|
|
43
|
+
default: Component
|
|
44
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
45
|
+
|
|
46
|
+
export { Component as C, __vite_glob_0_16 as _ };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IElIconProps } from './el-icon';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IElIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IElIconProps> & Readonly<{}>, {
|
|
3
|
+
size: string | number;
|
|
4
|
+
color: string;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {
|
|
5
|
+
direction: string;
|
|
6
|
+
}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref } from 'vue';
|
|
2
|
+
import { i as index } from '../../chunk/BdDihk0t.mjs';
|
|
3
|
+
|
|
4
|
+
const codeMapping = { AFG: "AF", ALB: "AL", DZA: "DZ", ASM: "AS", AND: "AD", AGO: "AO", AIA: "AI", ATA: "AQ", ATG: "AG", ARG: "AR", ARM: "AM", ABW: "AW", AUS: "AU", AUT: "AT", AZE: "AZ", BHS: "BS", BHR: "BH", BGD: "BD", BRB: "BB", BLR: "BY", BEL: "BE", BLZ: "BZ", BEN: "BJ", BMU: "BM", BTN: "BT", BOL: "BO", BES: "BQ", BIH: "BA", BWA: "BW", BVT: "BV", BRA: "BR", IOT: "IO", BRN: "BN", BGR: "BG", BFA: "BF", BDI: "BI", CPV: "CV", KHM: "KH", CMR: "CM", CAN: "CA", CYM: "KY", CAF: "CF", TCD: "TD", CHL: "CL", CHN: "CN", CXR: "CX", CCK: "CC", COL: "CO", COM: "KM", COD: "CD", COG: "CG", COK: "CK", CRI: "CR", HRV: "HR", CUB: "CU", CUW: "CW", CYP: "CY", CZE: "CZ", CIV: "CI", DNK: "DK", DJI: "DJ", DMA: "DM", DOM: "DO", ECU: "EC", EGY: "EG", SLV: "SV", GNQ: "GQ", ERI: "ER", EST: "EE", SWZ: "SZ", ETH: "ET", FLK: "FK", FRO: "FO", FJI: "FJ", FIN: "FI", FRA: "FR", GUF: "GF", PYF: "PF", ATF: "TF", GAB: "GA", GMB: "GM", GEO: "GE", DEU: "DE", GHA: "GH", GIB: "GI", GRC: "GR", GRL: "GL", GRD: "GD", GLP: "GP", GUM: "GU", GTM: "GT", GGY: "GG", GIN: "GN", GNB: "GW", GUY: "GY", HTI: "HT", HMD: "HM", VAT: "VA", HND: "HN", HKG: "HK", HUN: "HU", ISL: "IS", IND: "IN", IDN: "ID", IRN: "IR", IRQ: "IQ", IRL: "IE", IMN: "IM", ISR: "IL", ITA: "IT", JAM: "JM", JPN: "JP", JEY: "JE", JOR: "JO", KAZ: "KZ", KEN: "KE", KIR: "KI", PRK: "KP", KOR: "KR", KWT: "KW", KGZ: "KG", LAO: "LA", LVA: "LV", LBN: "LB", LSO: "LS", LBR: "LR", LBY: "LY", LIE: "LI", LTU: "LT", LUX: "LU", MAC: "MO", MDG: "MG", MWI: "MW", MYS: "MY", MDV: "MV", MLI: "ML", MLT: "MT", MHL: "MH", MTQ: "MQ", MRT: "MR", MUS: "MU", MYT: "YT", MEX: "MX", FSM: "FM", MDA: "MD", MCO: "MC", MNG: "MN", MNE: "ME", MSR: "MS", MAR: "MA", MOZ: "MZ", MMR: "MM", NAM: "NA", NRU: "NR", NPL: "NP", NLD: "NL", NCL: "NC", NZL: "NZ", NIC: "NI", NER: "NE", NGA: "NG", NIU: "NU", NFK: "NF", MKD: "MK", MNP: "MP", NOR: "NO", OMN: "OM", PAK: "PK", PLW: "PW", PSE: "PS", PAN: "PA", PNG: "PG", PRY: "PY", PER: "PE", PHL: "PH", PCN: "PN", POL: "PL", PRT: "PT", PRI: "PR", QAT: "QA", ROU: "RO", RUS: "RU", RWA: "RW", REU: "RE", BLM: "BL", SHN: "SH", KNA: "KN", LCA: "LC", MAF: "MF", SPM: "PM", VCT: "VC", WSM: "WS", SMR: "SM", STP: "ST", SAU: "SA", SEN: "SN", SRB: "RS", SYC: "SC", SLE: "SL", SGP: "SG", SXM: "SX", SVK: "SK", SVN: "SI", SLB: "SB", SOM: "SO", ZAF: "ZA", SGS: "GS", SSD: "SS", ESP: "ES", LKA: "LK", SDN: "SD", SUR: "SR", SJM: "SJ", SWE: "SE", CHE: "CH", SYR: "SY", TJK: "TJ", TZA: "TZ", THA: "TH", TLS: "TL", TGO: "TG", TKL: "TK", TON: "TO", TTO: "TT", TUN: "TN", TKM: "TM", TCA: "TC", TUV: "TV", TUR: "TR", UGA: "UG", UKR: "UA", ARE: "AE", GBR: "GB", UMI: "UM", USA: "US", URY: "UY", UZB: "UZ", VUT: "VU", VEN: "VE", VNM: "VN", VGB: "VG", VIR: "VI", WLF: "WF", ESH: "EH", YEM: "YE", ZMB: "ZM", ZWE: "ZW", ALA: "AX" };
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "flag",
|
|
8
|
+
props: {
|
|
9
|
+
code: {},
|
|
10
|
+
squared: { type: Boolean, default: false },
|
|
11
|
+
size: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const className = computed(() => {
|
|
16
|
+
let myCode = props.code.toLocaleUpperCase();
|
|
17
|
+
if (myCode.length === 3) {
|
|
18
|
+
myCode = codeMapping[myCode];
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
fi: true,
|
|
22
|
+
fis: props.squared,
|
|
23
|
+
[`fi-${myCode.toLocaleLowerCase()}`]: true
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const mySize = computed(() => {
|
|
27
|
+
if (props.size && Number.isNaN(+props.size)) {
|
|
28
|
+
return props.size;
|
|
29
|
+
}
|
|
30
|
+
return `${props.size}px`;
|
|
31
|
+
});
|
|
32
|
+
onBeforeMount(async () => {
|
|
33
|
+
await index.loadCdnSingle("flagIcons");
|
|
34
|
+
});
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return openBlock(), createElementBlock("span", {
|
|
37
|
+
class: normalizeClass(unref(className)),
|
|
38
|
+
style: normalizeStyle({ fontSize: unref(mySize) })
|
|
39
|
+
}, null, 6);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { _sfc_main as _ };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IFlagProps } from './flags';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IFlagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IFlagProps> & Readonly<{}>, {
|
|
3
|
+
squared: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type IFlag2Code = 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'CI' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RO' | 'RU' | 'RW' | 'RE' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TM' | 'TC' | 'TV' | 'TR' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'EU';
|
|
2
|
+
export type IFlag3Code = 'AFG' | 'ALB' | 'DZA' | 'ASM' | 'AND' | 'AGO' | 'AIA' | 'ATA' | 'ATG' | 'ARG' | 'ARM' | 'ABW' | 'AUS' | 'AUT' | 'AZE' | 'BHS' | 'BHR' | 'BGD' | 'BRB' | 'BLR' | 'BEL' | 'BLZ' | 'BEN' | 'BMU' | 'BTN' | 'BOL' | 'BES' | 'BIH' | 'BWA' | 'BVT' | 'BRA' | 'IOT' | 'BRN' | 'BGR' | 'BFA' | 'BDI' | 'CPV' | 'KHM' | 'CMR' | 'CAN' | 'CYM' | 'CAF' | 'TCD' | 'CHL' | 'CHN' | 'CXR' | 'CCK' | 'COL' | 'COM' | 'COD' | 'COG' | 'COK' | 'CRI' | 'HRV' | 'CUB' | 'CUW' | 'CYP' | 'CZE' | 'CIV' | 'DNK' | 'DJI' | 'DMA' | 'DOM' | 'ECU' | 'EGY' | 'SLV' | 'GNQ' | 'ERI' | 'EST' | 'SWZ' | 'ETH' | 'FLK' | 'FRO' | 'FJI' | 'FIN' | 'FRA' | 'GUF' | 'PYF' | 'ATF' | 'GAB' | 'GMB' | 'GEO' | 'DEU' | 'GHA' | 'GIB' | 'GRC' | 'GRL' | 'GRD' | 'GLP' | 'GUM' | 'GTM' | 'GGY' | 'GIN' | 'GNB' | 'GUY' | 'HTI' | 'HMD' | 'VAT' | 'HND' | 'HKG' | 'HUN' | 'ISL' | 'IND' | 'IDN' | 'IRN' | 'IRQ' | 'IRL' | 'IMN' | 'ISR' | 'ITA' | 'JAM' | 'JPN' | 'JEY' | 'JOR' | 'KAZ' | 'KEN' | 'KIR' | 'PRK' | 'KOR' | 'KWT' | 'KGZ' | 'LAO' | 'LVA' | 'LBN' | 'LSO' | 'LBR' | 'LBY' | 'LIE' | 'LTU' | 'LUX' | 'MAC' | 'MDG' | 'MWI' | 'MYS' | 'MDV' | 'MLI' | 'MLT' | 'MHL' | 'MTQ' | 'MRT' | 'MUS' | 'MYT' | 'MEX' | 'FSM' | 'MDA' | 'MCO' | 'MNG' | 'MNE' | 'MSR' | 'MAR' | 'MOZ' | 'MMR' | 'NAM' | 'NRU' | 'NPL' | 'NLD' | 'NCL' | 'NZL' | 'NIC' | 'NER' | 'NGA' | 'NIU' | 'NFK' | 'MKD' | 'MNP' | 'NOR' | 'OMN' | 'PAK' | 'PLW' | 'PSE' | 'PAN' | 'PNG' | 'PRY' | 'PER' | 'PHL' | 'PCN' | 'POL' | 'PRT' | 'PRI' | 'QAT' | 'ROU' | 'RUS' | 'RWA' | 'REU' | 'BLM' | 'SHN' | 'KNA' | 'LCA' | 'MAF' | 'SPM' | 'VCT' | 'WSM' | 'SMR' | 'STP' | 'SAU' | 'SEN' | 'SRB' | 'SYC' | 'SLE' | 'SGP' | 'SXM' | 'SVK' | 'SVN' | 'SLB' | 'SOM' | 'ZAF' | 'SGS' | 'SSD' | 'ESP' | 'LKA' | 'SDN' | 'SUR' | 'SJM' | 'SWE' | 'CHE' | 'SYR' | 'TJK' | 'TZA' | 'THA' | 'TLS' | 'TGO' | 'TKL' | 'TON' | 'TTO' | 'TUN' | 'TKM' | 'TCA' | 'TUV' | 'TUR' | 'UGA' | 'UKR' | 'ARE' | 'GBR' | 'UMI' | 'USA' | 'URY' | 'UZB' | 'VUT' | 'VEN' | 'VNM' | 'VGB' | 'VIR' | 'WLF' | 'ESH' | 'YEM' | 'ZMB' | 'ZWE' | 'ALA';
|
|
3
|
+
export declare const codeMapping: Record<IFlag3Code, IFlag2Code>;
|
|
4
|
+
export interface IFlagProps {
|
|
5
|
+
code: IFlag2Code | IFlag3Code;
|
|
6
|
+
squared?: boolean;
|
|
7
|
+
size?: string | number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, resolveDynamicComponent } from 'vue';
|
|
3
|
+
import { _ as _sfc_main$1 } from '../awesome-icon/awesome-icon.mjs';
|
|
4
|
+
import { C as Component$2 } from '../el-icon/el-icon.mjs';
|
|
5
|
+
import { C as Component$1 } from '../svg-icon/svg-icon.mjs';
|
|
6
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
7
|
+
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "icon",
|
|
10
|
+
props: {
|
|
11
|
+
name: {},
|
|
12
|
+
type: {},
|
|
13
|
+
color: {},
|
|
14
|
+
size: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const components = { awesome: _sfc_main$1, el: Component$2, svg: Component$1 };
|
|
19
|
+
const mySize = computed(() => {
|
|
20
|
+
if (props.size && Number.isNaN(+props.size)) {
|
|
21
|
+
return props.size;
|
|
22
|
+
}
|
|
23
|
+
return `${props.size}px`;
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("i", {
|
|
27
|
+
class: normalizeClass(["svg-icon-box", [_ctx.$style.box]]),
|
|
28
|
+
style: normalizeStyle({ fontSize: unref(mySize), color: __props.color })
|
|
29
|
+
}, [
|
|
30
|
+
(openBlock(), createBlock(resolveDynamicComponent(components[__props.type]), {
|
|
31
|
+
name: __props.name,
|
|
32
|
+
class: "site-icon"
|
|
33
|
+
}, null, 8, ["name"]))
|
|
34
|
+
], 6);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/* unplugin-vue-components disabled */const box = "_box_1wvpk_1";
|
|
40
|
+
const style0 = {
|
|
41
|
+
box: box
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const cssModules = {
|
|
45
|
+
"$style": style0
|
|
46
|
+
};
|
|
47
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
48
|
+
|
|
49
|
+
const __vite_glob_0_18 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
50
|
+
__proto__: null,
|
|
51
|
+
default: Component
|
|
52
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
53
|
+
|
|
54
|
+
export { Component as C, __vite_glob_0_18 as _ };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IIconProps } from './icon';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Close, CircleClose, CircleCheck, Loading, InfoFilled, CircleCloseFilled, WarningFilled, SuccessFilled } from '@element-plus/icons-vue';
|
|
2
|
+
import { d as definePropType } from '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
|
|
4
|
+
const iconPropType = definePropType([
|
|
5
|
+
String,
|
|
6
|
+
Object,
|
|
7
|
+
Function
|
|
8
|
+
]);
|
|
9
|
+
const CloseComponents = {
|
|
10
|
+
Close
|
|
11
|
+
};
|
|
12
|
+
const TypeComponents = {
|
|
13
|
+
Close};
|
|
14
|
+
const TypeComponentsMap = {
|
|
15
|
+
primary: InfoFilled,
|
|
16
|
+
success: SuccessFilled,
|
|
17
|
+
warning: WarningFilled,
|
|
18
|
+
error: CircleCloseFilled,
|
|
19
|
+
info: InfoFilled
|
|
20
|
+
};
|
|
21
|
+
const ValidateComponentsMap = {
|
|
22
|
+
validating: Loading,
|
|
23
|
+
success: CircleCheck,
|
|
24
|
+
error: CircleClose
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { CloseComponents as C, TypeComponentsMap as T, ValidateComponentsMap as V, TypeComponents as a, iconPropType as i };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Placement, PopperEffect } from 'element-plus/es/components/popper';
|
|
2
|
+
export interface IImageProps {
|
|
3
|
+
type?: 'image' | 'text';
|
|
4
|
+
text?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
previewSrcList?: string[];
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
fit?: IGlobal.ImageFit;
|
|
10
|
+
textMaxWidth?: number;
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
effect?: PopperEffect;
|
|
13
|
+
placement?: Placement;
|
|
14
|
+
popperClass?: string;
|
|
15
|
+
enterable?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/E_WRn0OP.mjs';
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { a as ElTooltip } from '../../chunk/DqUIKX7f.mjs';
|
|
5
|
+
import { E as ElImage } from '../../chunk/BMzd-IS6.mjs';
|
|
6
|
+
import { defineComponent, useSlots, useTemplateRef, ref, computed, createElementBlock, openBlock, Fragment, createCommentVNode, createBlock, unref, normalizeClass, createElementVNode, withCtx, createVNode, renderSlot, createTextVNode, toDisplayString, normalizeStyle } from 'vue';
|
|
7
|
+
import { C as Component$1 } from '../el-icon/el-icon.mjs';
|
|
8
|
+
import { C as Component$2 } from '../text-ellipsis/text-ellipsis.mjs';
|
|
9
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
|
+
|
|
11
|
+
const fixWidth = 5;
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "image",
|
|
14
|
+
props: {
|
|
15
|
+
type: { default: "image" },
|
|
16
|
+
text: { default: "" },
|
|
17
|
+
src: { default: "" },
|
|
18
|
+
previewSrcList: { default: () => [] },
|
|
19
|
+
width: { default: "160px" },
|
|
20
|
+
height: { default: "90px" },
|
|
21
|
+
fit: { default: "cover" },
|
|
22
|
+
textMaxWidth: { default: 0 },
|
|
23
|
+
showTooltip: { type: Boolean, default: true },
|
|
24
|
+
effect: { default: "dark" },
|
|
25
|
+
placement: { default: "top" },
|
|
26
|
+
popperClass: { default: "" },
|
|
27
|
+
enterable: { type: Boolean, default: false }
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const $slots = useSlots();
|
|
32
|
+
const textRef = useTemplateRef("textRef");
|
|
33
|
+
const textWrapperRef = useTemplateRef("textWrapperRef");
|
|
34
|
+
const comEllipsis = ref();
|
|
35
|
+
const isImageType = computed(() => props.type === "image");
|
|
36
|
+
const isTextType = computed(() => props.type === "text");
|
|
37
|
+
const mySrc = computed(() => {
|
|
38
|
+
if (props.type === "text" && textRef.value) {
|
|
39
|
+
const canvas = document.createElement("canvas");
|
|
40
|
+
canvas.width = textRef.value.offsetWidth + fixWidth;
|
|
41
|
+
canvas.height = textRef.value.getBoundingClientRect().height;
|
|
42
|
+
return canvas.toDataURL("image/png");
|
|
43
|
+
}
|
|
44
|
+
return props.src || props.previewSrcList[0];
|
|
45
|
+
});
|
|
46
|
+
const myMaxWidth = computed(() => props.textMaxWidth || textWrapperRef.value?.offsetWidth || 0);
|
|
47
|
+
const imageStyle = computed(() => {
|
|
48
|
+
if (isImageType.value) {
|
|
49
|
+
return {
|
|
50
|
+
width: props.width,
|
|
51
|
+
height: props.height
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return {};
|
|
55
|
+
});
|
|
56
|
+
const combineText = computed(() => {
|
|
57
|
+
if (!isTextType.value) {
|
|
58
|
+
return "";
|
|
59
|
+
}
|
|
60
|
+
let slotText = "";
|
|
61
|
+
if ($slots.default) {
|
|
62
|
+
const [slot] = $slots.default({});
|
|
63
|
+
slotText = slot.children?.toString() || "";
|
|
64
|
+
}
|
|
65
|
+
return props.text || slotText;
|
|
66
|
+
});
|
|
67
|
+
const mySrcList = computed(() => props.previewSrcList.length === 0 ? [props.src] : props.previewSrcList);
|
|
68
|
+
const tipsVisible = computed(() => comEllipsis.value?.tipsVisible ?? false);
|
|
69
|
+
return (_ctx, _cache) => {
|
|
70
|
+
const _component_ElImage = ElImage;
|
|
71
|
+
const _component_ElTooltip = ElTooltip;
|
|
72
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
73
|
+
unref(isTextType) ? (openBlock(), createElementBlock("div", {
|
|
74
|
+
key: 0,
|
|
75
|
+
ref_key: "textWrapperRef",
|
|
76
|
+
ref: textWrapperRef,
|
|
77
|
+
class: normalizeClass(_ctx.$style["text-wrapper"])
|
|
78
|
+
}, [
|
|
79
|
+
unref(tipsVisible) && __props.showTooltip ? (openBlock(), createBlock(_component_ElTooltip, {
|
|
80
|
+
key: 0,
|
|
81
|
+
effect: __props.effect,
|
|
82
|
+
placement: __props.placement,
|
|
83
|
+
"popper-class": __props.popperClass,
|
|
84
|
+
enterable: __props.enterable,
|
|
85
|
+
content: unref(combineText)
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_ElImage, {
|
|
89
|
+
src: unref(mySrc),
|
|
90
|
+
"preview-src-list": unref(mySrcList),
|
|
91
|
+
class: normalizeClass(_ctx.$style.image),
|
|
92
|
+
lazy: "",
|
|
93
|
+
"preview-teleported": ""
|
|
94
|
+
}, null, 8, ["src", "preview-src-list", "class"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["effect", "placement", "popper-class", "enterable", "content"])) : createCommentVNode("", true),
|
|
98
|
+
!unref(tipsVisible) || !__props.showTooltip ? (openBlock(), createBlock(_component_ElImage, {
|
|
99
|
+
key: 1,
|
|
100
|
+
src: unref(mySrc),
|
|
101
|
+
"preview-src-list": unref(mySrcList),
|
|
102
|
+
class: normalizeClass(_ctx.$style.image),
|
|
103
|
+
lazy: "",
|
|
104
|
+
"preview-teleported": ""
|
|
105
|
+
}, null, 8, ["src", "preview-src-list", "class"])) : createCommentVNode("", true),
|
|
106
|
+
createElementVNode("span", {
|
|
107
|
+
ref_key: "textRef",
|
|
108
|
+
ref: textRef,
|
|
109
|
+
class: normalizeClass(_ctx.$style.text)
|
|
110
|
+
}, [
|
|
111
|
+
createVNode(Component$1, {
|
|
112
|
+
name: "Picture",
|
|
113
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
114
|
+
}, null, 8, ["class"]),
|
|
115
|
+
createVNode(Component$2, {
|
|
116
|
+
ref_key: "comEllipsis",
|
|
117
|
+
ref: comEllipsis,
|
|
118
|
+
placement: "top-start",
|
|
119
|
+
"max-width": unref(myMaxWidth),
|
|
120
|
+
"show-tooltip": false
|
|
121
|
+
}, {
|
|
122
|
+
default: withCtx(() => [
|
|
123
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
124
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
_: 3
|
|
128
|
+
}, 8, ["max-width"])
|
|
129
|
+
], 2)
|
|
130
|
+
], 2)) : createCommentVNode("", true),
|
|
131
|
+
unref(isImageType) ? (openBlock(), createBlock(_component_ElImage, {
|
|
132
|
+
key: 1,
|
|
133
|
+
src: unref(mySrc),
|
|
134
|
+
"preview-src-list": unref(mySrcList),
|
|
135
|
+
style: normalizeStyle(unref(imageStyle)),
|
|
136
|
+
fit: __props.fit,
|
|
137
|
+
class: normalizeClass(_ctx.$style["image-wrapper"]),
|
|
138
|
+
lazy: "",
|
|
139
|
+
"preview-teleported": ""
|
|
140
|
+
}, null, 8, ["src", "preview-src-list", "style", "fit", "class"])) : createCommentVNode("", true)
|
|
141
|
+
], 64);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
/* unplugin-vue-components disabled */const image = "_image_1toev_4";
|
|
147
|
+
const text = "_text_1toev_1";
|
|
148
|
+
const icon = "_icon_1toev_12";
|
|
149
|
+
const style0 = {
|
|
150
|
+
"text-wrapper": "_text-wrapper_1toev_1",
|
|
151
|
+
image: image,
|
|
152
|
+
text: text,
|
|
153
|
+
icon: icon,
|
|
154
|
+
"image-wrapper": "_image-wrapper_1toev_18"
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const cssModules = {
|
|
158
|
+
"$style": style0
|
|
159
|
+
};
|
|
160
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
161
|
+
|
|
162
|
+
const __vite_glob_0_19 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
163
|
+
__proto__: null,
|
|
164
|
+
default: Component
|
|
165
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
166
|
+
|
|
167
|
+
export { Component as C, __vite_glob_0_19 as _ };
|