@vipl520/dk-ui 1.0.53 → 1.0.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +8 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2036 -1431
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +4 -4
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +2035 -1432
- package/dist/tags.json +7 -0
- package/dist/web-types.json +35 -1
- package/es/attachment/src/attachment.vue2.mjs +7 -1
- package/es/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +2 -0
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
- package/es/form/src/form.vue2.mjs +0 -1
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/group/src/group.vue2.mjs +14 -1
- package/es/group/src/group.vue2.mjs.map +1 -1
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +23 -21
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
- package/es/icon/style/index.css +0 -1
- package/es/icon/style/index.scss +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -2
- package/es/index.mjs.map +1 -1
- package/es/index.scss +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs +114 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs.map +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +7 -1
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +76 -62
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/min/common/index.mjs +4 -2
- package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -1
- package/es/page-diy/src/props.mjs +1 -1
- package/es/page-diy/src/props.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs +66 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs.map +1 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +7 -2
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +59 -30
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/index.mjs +3 -1
- package/es/page-diy/src/views/min/index.mjs.map +1 -1
- package/es/page-diy/style/drag-tool.css +1 -1
- package/es/page-diy/style/drag-tool.scss +4 -0
- package/es/page-diy/style/index.css +1 -1
- package/es/page-diy/style/minViews/index.scss +8 -0
- package/es/style-box-input/src/style-box-input.vue2.mjs +200 -130
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-box-input/style/index.css +1 -1
- package/es/style-box-input/style/index.scss +13 -3
- package/es/style-font-input/src/style-font-input.vue2.mjs +105 -272
- package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
- package/es/style-input/src/style-input.vue2.mjs +1 -0
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
- package/es/test/index.d.ts +4 -2
- package/es/test/src/test.vue.d.ts +4 -2
- package/es/test/src/test.vue2.mjs +14 -3
- package/es/test/src/test.vue2.mjs.map +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/es/uni-icon/style/index.css +1 -1
- package/es/uni-icon/style/index.scss +1 -1
- package/es/url-input/index.d.ts +35 -0
- package/es/url-input/index.mjs +8 -0
- package/es/url-input/index.mjs.map +1 -0
- package/es/url-input/src/props.d.ts +16 -0
- package/es/url-input/src/props.mjs +13 -0
- package/es/url-input/src/props.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue.d.ts +25 -0
- package/es/url-input/src/url-input-content.vue.mjs +7 -0
- package/es/url-input/src/url-input-content.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue2.mjs +301 -0
- package/es/url-input/src/url-input-content.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue.d.ts +16 -0
- package/es/url-input/src/url-input-table.vue.mjs +7 -0
- package/es/url-input/src/url-input-table.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue2.mjs +63 -0
- package/es/url-input/src/url-input-table.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input.vue.d.ts +34 -0
- package/es/url-input/src/url-input.vue.mjs +7 -0
- package/es/url-input/src/url-input.vue.mjs.map +1 -0
- package/es/url-input/src/url-input.vue2.mjs +69 -0
- package/es/url-input/src/url-input.vue2.mjs.map +1 -0
- package/es/url-input/style/index.css +1 -0
- package/es/url-input/style/index.scss +38 -0
- package/lib/attachment/src/attachment.vue2.js +7 -1
- package/lib/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js +2 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
- package/lib/form/src/form.vue2.js +0 -1
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/group/src/group.vue2.js +14 -1
- package/lib/group/src/group.vue2.js.map +1 -1
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js +23 -21
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
- package/lib/icon/style/index.css +0 -1
- package/lib/icon/style/index.scss +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/index.scss +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js +118 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js.map +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +7 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +76 -62
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/min/common/index.js +4 -2
- package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -1
- package/lib/page-diy/src/props.js +1 -1
- package/lib/page-diy/src/props.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js +70 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js.map +1 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +7 -2
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js +58 -29
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/index.js +3 -1
- package/lib/page-diy/src/views/min/index.js.map +1 -1
- package/lib/page-diy/style/drag-tool.css +1 -1
- package/lib/page-diy/style/drag-tool.scss +4 -0
- package/lib/page-diy/style/index.css +1 -1
- package/lib/page-diy/style/minViews/index.scss +8 -0
- package/lib/style-box-input/src/style-box-input.vue2.js +199 -129
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-box-input/style/index.css +1 -1
- package/lib/style-box-input/style/index.scss +13 -3
- package/lib/style-font-input/src/style-font-input.vue2.js +105 -272
- package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
- package/lib/style-input/src/style-input.vue2.js +1 -0
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
- package/lib/test/index.d.ts +4 -2
- package/lib/test/src/test.vue.d.ts +4 -2
- package/lib/test/src/test.vue2.js +14 -3
- package/lib/test/src/test.vue2.js.map +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/lib/uni-icon/style/index.css +1 -1
- package/lib/uni-icon/style/index.scss +1 -1
- package/lib/url-input/index.d.ts +35 -0
- package/lib/url-input/index.js +14 -0
- package/lib/url-input/index.js.map +1 -0
- package/lib/url-input/src/props.d.ts +16 -0
- package/lib/url-input/src/props.js +15 -0
- package/lib/url-input/src/props.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue.d.ts +25 -0
- package/lib/url-input/src/url-input-content.vue.js +11 -0
- package/lib/url-input/src/url-input-content.vue.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue2.js +305 -0
- package/lib/url-input/src/url-input-content.vue2.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue.d.ts +16 -0
- package/lib/url-input/src/url-input-table.vue.js +11 -0
- package/lib/url-input/src/url-input-table.vue.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue2.js +67 -0
- package/lib/url-input/src/url-input-table.vue2.js.map +1 -0
- package/lib/url-input/src/url-input.vue.d.ts +34 -0
- package/lib/url-input/src/url-input.vue.js +11 -0
- package/lib/url-input/src/url-input.vue.js.map +1 -0
- package/lib/url-input/src/url-input.vue2.js +73 -0
- package/lib/url-input/src/url-input.vue2.js.map +1 -0
- package/lib/url-input/style/index.css +1 -0
- package/lib/url-input/style/index.scss +38 -0
- package/package.json +1 -1
@@ -13,8 +13,12 @@ const __default__ = vue.defineComponent({
|
|
13
13
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
14
14
|
...__default__,
|
15
15
|
props: props.testProps,
|
16
|
-
|
16
|
+
emits: ["onChooseUrl"],
|
17
|
+
setup(__props, { emit }) {
|
17
18
|
const [_, bem] = utils.createNamespace("test");
|
19
|
+
const chooseUrl = () => {
|
20
|
+
emit("onChooseUrl", "\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740");
|
21
|
+
};
|
18
22
|
return (_ctx, _cache) => {
|
19
23
|
const _component_el_button = vue.resolveComponent("el-button");
|
20
24
|
const _component_van_button = vue.resolveComponent("van-button");
|
@@ -24,14 +28,21 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
28
|
[
|
25
29
|
vue.createVNode(_component_el_button, { class: "dk-test" }, {
|
26
30
|
default: vue.withCtx(() => [
|
27
|
-
vue.createTextVNode("
|
31
|
+
vue.createTextVNode("el\u6309\u94AE")
|
28
32
|
]),
|
29
33
|
_: 1
|
30
34
|
/* STABLE */
|
31
35
|
}),
|
32
36
|
vue.createVNode(_component_van_button, null, {
|
33
37
|
default: vue.withCtx(() => [
|
34
|
-
vue.createTextVNode("
|
38
|
+
vue.createTextVNode("van\u6309\u94AE")
|
39
|
+
]),
|
40
|
+
_: 1
|
41
|
+
/* STABLE */
|
42
|
+
}),
|
43
|
+
vue.createVNode(_component_el_button, { onClick: chooseUrl }, {
|
44
|
+
default: vue.withCtx(() => [
|
45
|
+
vue.createTextVNode("\u9009\u62E9\u94FE\u63A5")
|
35
46
|
]),
|
36
47
|
_: 1
|
37
48
|
/* STABLE */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"test.vue2.js","sources":["../../../src/test/src/test.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTest',\n});\n</script>\n<template>\n <el-button class=\"dk-test\">
|
1
|
+
{"version":3,"file":"test.vue2.js","sources":["../../../src/test/src/test.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTest',\n});\n</script>\n<template>\n <el-button class=\"dk-test\">el按钮</el-button>\n <van-button>van按钮</van-button>\n <el-button @click=\"chooseUrl\">选择链接</el-button>\n <div class=\"mr-10px bg-black\">{{ test }}</div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { testProps } from './props'\nconst emit = defineEmits(['onChooseUrl'])\nconst [_, bem] = createNamespace('test')\n\n\nconst chooseUrl = () => {\n emit('onChooseUrl', '选中的链接地址')\n}\ndefineProps(testProps)\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,QAAA;AACR,CAAC,CAAA,CAAA;;;;;;AAaD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAIC,sBAAgB,MAAM,CAAA,CAAA;AAGvC,IAAA,MAAM,YAAY,MAAM;AACtB,MAAA,IAAA,CAAK,eAAe,4CAAS,CAAA,CAAA;AAAA,KAC/B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -41,7 +41,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
41
41
|
images_upload_handler: handleImageUpload,
|
42
42
|
initialContent: "Loading editor..."
|
43
43
|
});
|
44
|
-
const tinymceSrc = vue.ref("https://
|
44
|
+
const tinymceSrc = vue.ref("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js");
|
45
45
|
const attachmentRef = vue.ref();
|
46
46
|
const editorRef = vue.ref();
|
47
47
|
const showDialog = vue.computed(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tiny-editor.vue2.js","sources":["../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"showDialog\">\n <Editor ref=\"editorRef\" v-model=\"content\" :init=\"init\" :tinymce-script-src=\"tinymceSrc\" @dblclick=\"ondblclick\" />\n </div>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"showEditor = true\">{{ props.buttonText }}</el-button>\n <dk-dialog v-model=\"showEditor\" title=\"编辑\" width=\"900px\" :z-index=\"1298\">\n <Editor\n ref=\"editorRef\"\n v-model=\"content\"\n :init=\"init\"\n :tinymce-script-src=\"tinymceSrc\"\n @dblclick=\"ondblclick\"\n />\n <template #footer>\n <div class=\"text-center\">\n <el-button type=\"primary\" style=\"width: 200px\" @click=\"showEditor = false\">确定</el-button>\n </div>\n </template>\n </dk-dialog>\n </div>\n <dk-attachment-dialog ref=\"attachmentRef\" :type=\"1\" @confirm=\"onSubmit\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport config from './config'\nimport Editor from '@tinymce/tinymce-vue'\nimport { nextTick, onMounted, ref, watch, computed } from 'vue'\nimport { UploadAttachment } from '../../api'\nimport { tinyEditorProps } from './props'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\nconst props = defineProps(tinyEditorProps)\nconst content = ref(props.modelValue)\nconst showEditor = ref(false)\n// 上传的地址\nconst handleImageUpload = (blobInfo: any, progress: any) =>\n new Promise((resolve, reject) => {\n UploadAttachment(blobInfo.blob())\n .then((res) => {\n progress(100)\n resolve(res.data.url)\n })\n .catch((err) => {\n reject(err)\n })\n })\n\nconst init = ref({\n ...config,\n height: props.height,\n content_css: props.document ? 'document' : '',\n images_upload_handler: handleImageUpload,\n initialContent: 'Loading editor...',\n})\n\
|
1
|
+
{"version":3,"file":"tiny-editor.vue2.js","sources":["../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"showDialog\">\n <Editor ref=\"editorRef\" v-model=\"content\" :init=\"init\" :tinymce-script-src=\"tinymceSrc\" @dblclick=\"ondblclick\" />\n </div>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"showEditor = true\">{{ props.buttonText }}</el-button>\n <dk-dialog v-model=\"showEditor\" title=\"编辑\" width=\"900px\" :z-index=\"1298\">\n <Editor\n ref=\"editorRef\"\n v-model=\"content\"\n :init=\"init\"\n :tinymce-script-src=\"tinymceSrc\"\n @dblclick=\"ondblclick\"\n />\n <template #footer>\n <div class=\"text-center\">\n <el-button type=\"primary\" style=\"width: 200px\" @click=\"showEditor = false\">确定</el-button>\n </div>\n </template>\n </dk-dialog>\n </div>\n <dk-attachment-dialog ref=\"attachmentRef\" :type=\"1\" @confirm=\"onSubmit\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport config from './config'\nimport Editor from '@tinymce/tinymce-vue'\nimport { nextTick, onMounted, ref, watch, computed } from 'vue'\nimport { UploadAttachment } from '../../api'\nimport { tinyEditorProps } from './props'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\nconst props = defineProps(tinyEditorProps)\nconst content = ref(props.modelValue)\nconst showEditor = ref(false)\n// 上传的地址\nconst handleImageUpload = (blobInfo: any, progress: any) =>\n new Promise((resolve, reject) => {\n UploadAttachment(blobInfo.blob())\n .then((res) => {\n progress(100)\n resolve(res.data.url)\n })\n .catch((err) => {\n reject(err)\n })\n })\n\nconst init = ref({\n ...config,\n height: props.height,\n content_css: props.document ? 'document' : '',\n images_upload_handler: handleImageUpload,\n initialContent: 'Loading editor...',\n})\n\n// const tinymceSrc = ref('https://unpkg.com/dk-tinymce@latest/tinymce.min.js')\n// const tinymceSrc = ref('https://cdn.jsdelivr.net/npm/dk-tinymce/tinymce.min.js')\nconst tinymceSrc = ref('https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js')\n// const tinymceSrc = ref('https://cdn.staticfile.net/tinymce/6.8.2/tinymce.min.js')\nconst attachmentRef = ref()\nconst editorRef = ref()\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nconst showDialog = computed(() => {\n return width.value >= props.showDialogWidth\n})\n\nwatch(\n () => props.modelValue,\n (newValue) => {\n content.value = newValue\n }\n)\n\nwatch(\n () => content.value,\n (newValue) => {\n emit('update:modelValue', newValue)\n emit('input', newValue)\n emit('change', newValue)\n }\n)\n\nonMounted(() => {\n nextTick(() => {\n initShowImage()\n })\n})\n\nwatch(\n () => editorRef.value,\n () => {\n if (editorRef.value?.getEditor()) {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n }\n)\n\nconst initShowImage = () => {\n if (!editorRef.value?.getEditor()) {\n setTimeout(() => {\n initShowImage()\n }, 1000)\n } else {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n}\n\nconst onSubmit = (chooseFileList: any) => {\n const editor = editorRef.value.getEditor()\n let html = ''\n chooseFileList.forEach((item: any) => {\n html += '<img src=\"' + item.url + '\" alt=\"\" width=\"100%\">'\n })\n editor.insertContent(html)\n}\n\nconst ondblclick = (editor: any) => {\n console.log(editor)\n}\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","UploadAttachment","config","computed","watch","onMounted","nextTick"],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
.uniui-cart-filled::before{content:"\e6d0"}.uniui-gift-filled::before{content:"\e6c4"}.uniui-color::before{content:"\e6cf"}.uniui-wallet::before{content:"\e6b1"}.uniui-settings-filled::before{content:"\e6ce"}.uniui-auth-filled::before{content:"\e6cc"}.uniui-shop-filled::before{content:"\e6cd"}.uniui-staff-filled::before{content:"\e6cb"}.uniui-vip-filled::before{content:"\e6c6"}.uniui-plus-filled::before{content:"\e6c7"}.uniui-folder-add-filled::before{content:"\e6c8"}.uniui-color-filled::before{content:"\e6c9"}.uniui-tune-filled::before{content:"\e6ca"}.uniui-calendar-filled::before{content:"\e6c0"}.uniui-notification-filled::before{content:"\e6c1"}.uniui-wallet-filled::before{content:"\e6c2"}.uniui-medal-filled::before{content:"\e6c3"}.uniui-fire-filled::before{content:"\e6c5"}.uniui-refreshempty::before{content:"\e6bf"}.uniui-location-filled::before{content:"\e6af"}.uniui-person-filled::before{content:"\e69d"}.uniui-personadd-filled::before{content:"\e698"}.uniui-arrowthinleft::before{content:"\e6d2"}.uniui-arrowthinup::before{content:"\e6d3"}.uniui-arrowthindown::before{content:"\e6d4"}.uniui-back::before{content:"\e6b9"}.uniui-forward::before{content:"\e6ba"}.uniui-arrow-right::before{content:"\e6bb"}.uniui-arrow-left::before{content:"\e6bc"}.uniui-arrow-up::before{content:"\e6bd"}.uniui-arrow-down::before{content:"\e6be"}.uniui-arrowthinright::before{content:"\e6d1"}.uniui-down::before{content:"\e6b8"}.uniui-bottom::before{content:"\e6b8"}.uniui-arrowright::before{content:"\e6d5"}.uniui-right::before{content:"\e6b5"}.uniui-up::before{content:"\e6b6"}.uniui-top::before{content:"\e6b6"}.uniui-left::before{content:"\e6b7"}.uniui-arrowup::before{content:"\e6d6"}.uniui-eye::before{content:"\e651"}.uniui-eye-filled::before{content:"\e66a"}.uniui-eye-slash::before{content:"\e6b3"}.uniui-eye-slash-filled::before{content:"\e6b4"}.uniui-info-filled::before{content:"\e649"}.uniui-reload::before{content:"\e6b2"}.uniui-micoff-filled::before{content:"\e6b0"}.uniui-map-pin-ellipse::before{content:"\e6ac"}.uniui-map-pin::before{content:"\e6ad"}.uniui-location::before{content:"\e6ae"}.uniui-starhalf::before{content:"\e683"}.uniui-star::before{content:"\e688"}.uniui-star-filled::before{content:"\e68f"}.uniui-calendar::before{content:"\e6a0"}.uniui-fire::before{content:"\e6a1"}.uniui-medal::before{content:"\e6a2"}.uniui-font::before{content:"\e6a3"}.uniui-gift::before{content:"\e6a4"}.uniui-link::before{content:"\e6a5"}.uniui-notification::before{content:"\e6a6"}.uniui-staff::before{content:"\e6a7"}.uniui-vip::before{content:"\e6a8"}.uniui-folder-add::before{content:"\e6a9"}.uniui-tune::before{content:"\e6aa"}.uniui-auth::before{content:"\e6ab"}.uniui-person::before{content:"\e699"}.uniui-email-filled::before{content:"\e69a"}.uniui-phone-filled::before{content:"\e69b"}.uniui-phone::before{content:"\e69c"}.uniui-email::before{content:"\e69e"}.uniui-personadd::before{content:"\e69f"}.uniui-chatboxes-filled::before{content:"\e692"}.uniui-contact::before{content:"\e693"}.uniui-chatbubble-filled::before{content:"\e694"}.uniui-contact-filled::before{content:"\e695"}.uniui-chatboxes::before{content:"\e696"}.uniui-chatbubble::before{content:"\e697"}.uniui-upload-filled::before{content:"\e68e"}.uniui-upload::before{content:"\e690"}.uniui-weixin::before{content:"\e691"}.uniui-compose::before{content:"\e67f"}.uniui-qq::before{content:"\e680"}.uniui-download-filled::before{content:"\e681"}.uniui-pyq::before{content:"\e682"}.uniui-sound::before{content:"\e684"}.uniui-trash-filled::before{content:"\e685"}.uniui-sound-filled::before{content:"\e686"}.uniui-trash::before{content:"\e687"}.uniui-videocam-filled::before{content:"\e689"}.uniui-spinner-cycle::before{content:"\e68a"}.uniui-weibo::before{content:"\e68b"}.uniui-videocam::before{content:"\e68c"}.uniui-download::before{content:"\e68d"}.uniui-help::before{content:"\e679"}.uniui-navigate-filled::before{content:"\e67a"}.uniui-plusempty::before{content:"\e67b"}.uniui-smallcircle::before{content:"\e67c"}.uniui-minus-filled::before{content:"\e67d"}.uniui-micoff::before{content:"\e67e"}.uniui-closeempty::before{content:"\e66c"}.uniui-clear::before{content:"\e66d"}.uniui-navigate::before{content:"\e66e"}.uniui-minus::before{content:"\e66f"}.uniui-image::before{content:"\e670"}.uniui-mic::before{content:"\e671"}.uniui-paperplane::before{content:"\e672"}.uniui-close::before{content:"\e673"}.uniui-help-filled::before{content:"\e674"}.uniui-paperplane-filled::before{content:"\e675"}.uniui-plus::before{content:"\e676"}.uniui-mic-filled::before{content:"\e677"}.uniui-image-filled::before{content:"\e678"}.uniui-locked-filled::before{content:"\e668"}.uniui-info::before{content:"\e669"}.uniui-locked::before{content:"\e66b"}.uniui-camera-filled::before{content:"\e658"}.uniui-chat-filled::before{content:"\e659"}.uniui-camera::before{content:"\e65a"}.uniui-circle::before{content:"\e65b"}.uniui-checkmarkempty::before{content:"\e65c"}.uniui-chat::before{content:"\e65d"}.uniui-circle-filled::before{content:"\e65e"}.uniui-flag::before{content:"\e65f"}.uniui-flag-filled::before{content:"\e660"}.uniui-gear-filled::before{content:"\e661"}.uniui-home::before{content:"\e662"}.uniui-home-filled::before{content:"\e663"}.uniui-gear::before{content:"\e664"}.uniui-smallcircle-filled::before{content:"\e665"}.uniui-map-filled::before{content:"\e666"}.uniui-map::before{content:"\e667"}.uniui-refresh-filled::before{content:"\e656"}.uniui-refresh::before{content:"\e657"}.uniui-cloud-upload::before{content:"\e645"}.uniui-cloud-download-filled::before{content:"\e646"}.uniui-cloud-download::before{content:"\e647"}.uniui-cloud-upload-filled::before{content:"\e648"}.uniui-redo::before{content:"\e64a"}.uniui-images-filled::before{content:"\e64b"}.uniui-undo-filled::before{content:"\e64c"}.uniui-more::before{content:"\e64d"}.uniui-more-filled::before{content:"\e64e"}.uniui-undo::before{content:"\e64f"}.uniui-images::before{content:"\e650"}.uniui-paperclip::before{content:"\e652"}.uniui-settings::before{content:"\e653"}.uniui-search::before{content:"\e654"}.uniui-redo-filled::before{content:"\e655"}.uniui-list::before{content:"\e644"}.uniui-mail-open-filled::before{content:"\e63a"}.uniui-hand-down-filled::before{content:"\e63c"}.uniui-hand-down::before{content:"\e63d"}.uniui-hand-up-filled::before{content:"\e63e"}.uniui-hand-up::before{content:"\e63f"}.uniui-heart-filled::before{content:"\e641"}.uniui-mail-open::before{content:"\e643"}.uniui-heart::before{content:"\e639"}.uniui-loop::before{content:"\e633"}.uniui-pulldown::before{content:"\e632"}.uniui-scan::before{content:"\e62a"}.uniui-bars::before{content:"\e627"}.uniui-checkbox::before{content:"\e62b"}.uniui-checkbox-filled::before{content:"\e62c"}.uniui-shop::before{content:"\e62f"}.uniui-headphones::before{content:"\e630"}.uniui-cart::before{content:"\e631"}@font-face{font-family:uniicons;src:url(https://
|
1
|
+
.uniui-cart-filled::before{content:"\e6d0"}.uniui-gift-filled::before{content:"\e6c4"}.uniui-color::before{content:"\e6cf"}.uniui-wallet::before{content:"\e6b1"}.uniui-settings-filled::before{content:"\e6ce"}.uniui-auth-filled::before{content:"\e6cc"}.uniui-shop-filled::before{content:"\e6cd"}.uniui-staff-filled::before{content:"\e6cb"}.uniui-vip-filled::before{content:"\e6c6"}.uniui-plus-filled::before{content:"\e6c7"}.uniui-folder-add-filled::before{content:"\e6c8"}.uniui-color-filled::before{content:"\e6c9"}.uniui-tune-filled::before{content:"\e6ca"}.uniui-calendar-filled::before{content:"\e6c0"}.uniui-notification-filled::before{content:"\e6c1"}.uniui-wallet-filled::before{content:"\e6c2"}.uniui-medal-filled::before{content:"\e6c3"}.uniui-fire-filled::before{content:"\e6c5"}.uniui-refreshempty::before{content:"\e6bf"}.uniui-location-filled::before{content:"\e6af"}.uniui-person-filled::before{content:"\e69d"}.uniui-personadd-filled::before{content:"\e698"}.uniui-arrowthinleft::before{content:"\e6d2"}.uniui-arrowthinup::before{content:"\e6d3"}.uniui-arrowthindown::before{content:"\e6d4"}.uniui-back::before{content:"\e6b9"}.uniui-forward::before{content:"\e6ba"}.uniui-arrow-right::before{content:"\e6bb"}.uniui-arrow-left::before{content:"\e6bc"}.uniui-arrow-up::before{content:"\e6bd"}.uniui-arrow-down::before{content:"\e6be"}.uniui-arrowthinright::before{content:"\e6d1"}.uniui-down::before{content:"\e6b8"}.uniui-bottom::before{content:"\e6b8"}.uniui-arrowright::before{content:"\e6d5"}.uniui-right::before{content:"\e6b5"}.uniui-up::before{content:"\e6b6"}.uniui-top::before{content:"\e6b6"}.uniui-left::before{content:"\e6b7"}.uniui-arrowup::before{content:"\e6d6"}.uniui-eye::before{content:"\e651"}.uniui-eye-filled::before{content:"\e66a"}.uniui-eye-slash::before{content:"\e6b3"}.uniui-eye-slash-filled::before{content:"\e6b4"}.uniui-info-filled::before{content:"\e649"}.uniui-reload::before{content:"\e6b2"}.uniui-micoff-filled::before{content:"\e6b0"}.uniui-map-pin-ellipse::before{content:"\e6ac"}.uniui-map-pin::before{content:"\e6ad"}.uniui-location::before{content:"\e6ae"}.uniui-starhalf::before{content:"\e683"}.uniui-star::before{content:"\e688"}.uniui-star-filled::before{content:"\e68f"}.uniui-calendar::before{content:"\e6a0"}.uniui-fire::before{content:"\e6a1"}.uniui-medal::before{content:"\e6a2"}.uniui-font::before{content:"\e6a3"}.uniui-gift::before{content:"\e6a4"}.uniui-link::before{content:"\e6a5"}.uniui-notification::before{content:"\e6a6"}.uniui-staff::before{content:"\e6a7"}.uniui-vip::before{content:"\e6a8"}.uniui-folder-add::before{content:"\e6a9"}.uniui-tune::before{content:"\e6aa"}.uniui-auth::before{content:"\e6ab"}.uniui-person::before{content:"\e699"}.uniui-email-filled::before{content:"\e69a"}.uniui-phone-filled::before{content:"\e69b"}.uniui-phone::before{content:"\e69c"}.uniui-email::before{content:"\e69e"}.uniui-personadd::before{content:"\e69f"}.uniui-chatboxes-filled::before{content:"\e692"}.uniui-contact::before{content:"\e693"}.uniui-chatbubble-filled::before{content:"\e694"}.uniui-contact-filled::before{content:"\e695"}.uniui-chatboxes::before{content:"\e696"}.uniui-chatbubble::before{content:"\e697"}.uniui-upload-filled::before{content:"\e68e"}.uniui-upload::before{content:"\e690"}.uniui-weixin::before{content:"\e691"}.uniui-compose::before{content:"\e67f"}.uniui-qq::before{content:"\e680"}.uniui-download-filled::before{content:"\e681"}.uniui-pyq::before{content:"\e682"}.uniui-sound::before{content:"\e684"}.uniui-trash-filled::before{content:"\e685"}.uniui-sound-filled::before{content:"\e686"}.uniui-trash::before{content:"\e687"}.uniui-videocam-filled::before{content:"\e689"}.uniui-spinner-cycle::before{content:"\e68a"}.uniui-weibo::before{content:"\e68b"}.uniui-videocam::before{content:"\e68c"}.uniui-download::before{content:"\e68d"}.uniui-help::before{content:"\e679"}.uniui-navigate-filled::before{content:"\e67a"}.uniui-plusempty::before{content:"\e67b"}.uniui-smallcircle::before{content:"\e67c"}.uniui-minus-filled::before{content:"\e67d"}.uniui-micoff::before{content:"\e67e"}.uniui-closeempty::before{content:"\e66c"}.uniui-clear::before{content:"\e66d"}.uniui-navigate::before{content:"\e66e"}.uniui-minus::before{content:"\e66f"}.uniui-image::before{content:"\e670"}.uniui-mic::before{content:"\e671"}.uniui-paperplane::before{content:"\e672"}.uniui-close::before{content:"\e673"}.uniui-help-filled::before{content:"\e674"}.uniui-paperplane-filled::before{content:"\e675"}.uniui-plus::before{content:"\e676"}.uniui-mic-filled::before{content:"\e677"}.uniui-image-filled::before{content:"\e678"}.uniui-locked-filled::before{content:"\e668"}.uniui-info::before{content:"\e669"}.uniui-locked::before{content:"\e66b"}.uniui-camera-filled::before{content:"\e658"}.uniui-chat-filled::before{content:"\e659"}.uniui-camera::before{content:"\e65a"}.uniui-circle::before{content:"\e65b"}.uniui-checkmarkempty::before{content:"\e65c"}.uniui-chat::before{content:"\e65d"}.uniui-circle-filled::before{content:"\e65e"}.uniui-flag::before{content:"\e65f"}.uniui-flag-filled::before{content:"\e660"}.uniui-gear-filled::before{content:"\e661"}.uniui-home::before{content:"\e662"}.uniui-home-filled::before{content:"\e663"}.uniui-gear::before{content:"\e664"}.uniui-smallcircle-filled::before{content:"\e665"}.uniui-map-filled::before{content:"\e666"}.uniui-map::before{content:"\e667"}.uniui-refresh-filled::before{content:"\e656"}.uniui-refresh::before{content:"\e657"}.uniui-cloud-upload::before{content:"\e645"}.uniui-cloud-download-filled::before{content:"\e646"}.uniui-cloud-download::before{content:"\e647"}.uniui-cloud-upload-filled::before{content:"\e648"}.uniui-redo::before{content:"\e64a"}.uniui-images-filled::before{content:"\e64b"}.uniui-undo-filled::before{content:"\e64c"}.uniui-more::before{content:"\e64d"}.uniui-more-filled::before{content:"\e64e"}.uniui-undo::before{content:"\e64f"}.uniui-images::before{content:"\e650"}.uniui-paperclip::before{content:"\e652"}.uniui-settings::before{content:"\e653"}.uniui-search::before{content:"\e654"}.uniui-redo-filled::before{content:"\e655"}.uniui-list::before{content:"\e644"}.uniui-mail-open-filled::before{content:"\e63a"}.uniui-hand-down-filled::before{content:"\e63c"}.uniui-hand-down::before{content:"\e63d"}.uniui-hand-up-filled::before{content:"\e63e"}.uniui-hand-up::before{content:"\e63f"}.uniui-heart-filled::before{content:"\e641"}.uniui-mail-open::before{content:"\e643"}.uniui-heart::before{content:"\e639"}.uniui-loop::before{content:"\e633"}.uniui-pulldown::before{content:"\e632"}.uniui-scan::before{content:"\e62a"}.uniui-bars::before{content:"\e627"}.uniui-checkbox::before{content:"\e62b"}.uniui-checkbox-filled::before{content:"\e62c"}.uniui-shop::before{content:"\e62f"}.uniui-headphones::before{content:"\e630"}.uniui-cart::before{content:"\e631"}@font-face{font-family:uniicons;src:url(https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/font/uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
export declare const UrlInput: import("@vipl520/utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
jumpMinApp: {
|
7
|
+
default: boolean;
|
8
|
+
type: BooleanConstructor;
|
9
|
+
};
|
10
|
+
urlData: {
|
11
|
+
default: () => never[];
|
12
|
+
type: ArrayConstructor;
|
13
|
+
};
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
modelValue: {
|
16
|
+
default: string;
|
17
|
+
type: StringConstructor;
|
18
|
+
};
|
19
|
+
jumpMinApp: {
|
20
|
+
default: boolean;
|
21
|
+
type: BooleanConstructor;
|
22
|
+
};
|
23
|
+
urlData: {
|
24
|
+
default: () => never[];
|
25
|
+
type: ArrayConstructor;
|
26
|
+
};
|
27
|
+
}>> & {
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
29
|
+
}, {
|
30
|
+
modelValue: string;
|
31
|
+
urlData: unknown[];
|
32
|
+
jumpMinApp: boolean;
|
33
|
+
}, {}>>;
|
34
|
+
export default UrlInput;
|
35
|
+
export * from './src/props';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var utils = require('@vipl520/utils');
|
6
|
+
var urlInput = require('./src/url-input.vue.js');
|
7
|
+
var props = require('./src/props.js');
|
8
|
+
|
9
|
+
const UrlInput = utils.withInstall(urlInput.default);
|
10
|
+
|
11
|
+
exports.urlInputProps = props.urlInputProps;
|
12
|
+
exports.UrlInput = UrlInput;
|
13
|
+
exports.default = UrlInput;
|
14
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/url-input/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _UrlInput from './src/url-input.vue'\n\nexport const UrlInput = withInstall(_UrlInput)\nexport default UrlInput\n\nexport * from './src/props'\n"],"names":["withInstall","_UrlInput"],"mappings":";;;;;;;;AAGa,MAAA,QAAA,GAAWA,kBAAYC,gBAAS;;;;;;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const urlInputProps: {
|
3
|
+
modelValue: {
|
4
|
+
default: string;
|
5
|
+
type: StringConstructor;
|
6
|
+
};
|
7
|
+
jumpMinApp: {
|
8
|
+
default: boolean;
|
9
|
+
type: BooleanConstructor;
|
10
|
+
};
|
11
|
+
urlData: {
|
12
|
+
default: () => never[];
|
13
|
+
type: ArrayConstructor;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export type UrlInputProps = ExtractPropTypes<typeof urlInputProps>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const urlInputProps = {
|
4
|
+
modelValue: { default: "", type: String },
|
5
|
+
jumpMinApp: { default: false, type: Boolean },
|
6
|
+
urlData: {
|
7
|
+
default: () => {
|
8
|
+
return [];
|
9
|
+
},
|
10
|
+
type: Array
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
exports.urlInputProps = urlInputProps;
|
15
|
+
//# sourceMappingURL=props.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../src/url-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const urlInputProps = {\n modelValue: { default: '', type: String },\n jumpMinApp: { default: false, type: Boolean },\n urlData: {\n default: () => {\n return []\n },\n type: Array,\n },\n}\n\nexport type UrlInputProps = ExtractPropTypes<typeof urlInputProps>\n"],"names":[],"mappings":";;AAEO,MAAM,aAAgB,GAAA;AAAA,EAC3B,UAAY,EAAA,EAAE,OAAS,EAAA,EAAA,EAAI,MAAM,MAAO,EAAA;AAAA,EACxC,UAAY,EAAA,EAAE,OAAS,EAAA,KAAA,EAAO,MAAM,OAAQ,EAAA;AAAA,EAC5C,OAAS,EAAA;AAAA,IACP,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA,KAAA;AAAA,GACR;AACF;;;;"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
urlData: {
|
3
|
+
default: () => never[];
|
4
|
+
type: ArrayConstructor;
|
5
|
+
};
|
6
|
+
jumpMinApp: {
|
7
|
+
default: boolean;
|
8
|
+
type: BooleanConstructor;
|
9
|
+
};
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
11
|
+
urlData: {
|
12
|
+
default: () => never[];
|
13
|
+
type: ArrayConstructor;
|
14
|
+
};
|
15
|
+
jumpMinApp: {
|
16
|
+
default: boolean;
|
17
|
+
type: BooleanConstructor;
|
18
|
+
};
|
19
|
+
}>> & {
|
20
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
21
|
+
}, {
|
22
|
+
urlData: unknown[];
|
23
|
+
jumpMinApp: boolean;
|
24
|
+
}, {}>;
|
25
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var urlInputContent_vue_vue_type_script_setup_true_lang = require('./url-input-content.vue2.js');
|
6
|
+
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
var DkUrlInputContent = /* @__PURE__ */ _pluginVue_exportHelper.default(urlInputContent_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\url-input\\src\\url-input-content.vue"]]);
|
9
|
+
|
10
|
+
exports.default = DkUrlInputContent;
|
11
|
+
//# sourceMappingURL=url-input-content.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input-content.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
@@ -0,0 +1,305 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
var urlInputTable = require('./url-input-table.vue.js');
|
7
|
+
|
8
|
+
const _hoisted_1 = { style: { "padding": "10px" } };
|
9
|
+
const _hoisted_2 = { key: 0 };
|
10
|
+
const _hoisted_3 = { key: 1 };
|
11
|
+
const _hoisted_4 = { key: 2 };
|
12
|
+
const _hoisted_5 = { key: 0 };
|
13
|
+
const _hoisted_6 = { key: 0 };
|
14
|
+
const _hoisted_7 = { style: { "padding-bottom": "10px", "font-weight": "700", "color": "#000" } };
|
15
|
+
const _hoisted_8 = { class: "url-list" };
|
16
|
+
const _hoisted_9 = ["onClick"];
|
17
|
+
const _hoisted_10 = {
|
18
|
+
key: 1,
|
19
|
+
class: "url-list"
|
20
|
+
};
|
21
|
+
const _hoisted_11 = ["onClick"];
|
22
|
+
const _hoisted_12 = { style: { "width": "500px", "margin": "100px auto" } };
|
23
|
+
const _hoisted_13 = {
|
24
|
+
key: 0,
|
25
|
+
style: { "padding-bottom": "20px" }
|
26
|
+
};
|
27
|
+
const _hoisted_14 = { key: 0 };
|
28
|
+
const _hoisted_15 = { key: 1 };
|
29
|
+
const _hoisted_16 = { style: { "text-align": "center" } };
|
30
|
+
const __default__ = vue.defineComponent({
|
31
|
+
name: "DkUrlInputContent"
|
32
|
+
});
|
33
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
34
|
+
...__default__,
|
35
|
+
props: {
|
36
|
+
urlData: {
|
37
|
+
default: () => {
|
38
|
+
return [];
|
39
|
+
},
|
40
|
+
type: Array
|
41
|
+
},
|
42
|
+
jumpMinApp: { default: false, type: Boolean }
|
43
|
+
},
|
44
|
+
emits: ["submit"],
|
45
|
+
setup(__props, { emit }) {
|
46
|
+
const props = __props;
|
47
|
+
const _urlData = vue.computed(() => {
|
48
|
+
console.log("urlData", props.urlData);
|
49
|
+
if (props.urlData?.length > 0) {
|
50
|
+
return props.urlData;
|
51
|
+
} else {
|
52
|
+
return vue.inject("urlInputData", []);
|
53
|
+
}
|
54
|
+
});
|
55
|
+
const minapp = vue.reactive({
|
56
|
+
appid: "",
|
57
|
+
path: ""
|
58
|
+
});
|
59
|
+
const chooseUrl = vue.ref("");
|
60
|
+
const urlType = vue.ref(1);
|
61
|
+
const onTabChange = () => {
|
62
|
+
chooseUrl.value = "";
|
63
|
+
};
|
64
|
+
const onChooseUrl = (url) => {
|
65
|
+
chooseUrl.value = url;
|
66
|
+
};
|
67
|
+
vue.watch(
|
68
|
+
() => minapp,
|
69
|
+
() => {
|
70
|
+
if (minapp.appid) {
|
71
|
+
chooseUrl.value = minapp.appid + "@" + minapp.path || "/";
|
72
|
+
}
|
73
|
+
},
|
74
|
+
{
|
75
|
+
deep: true
|
76
|
+
}
|
77
|
+
);
|
78
|
+
const onSubmit = () => {
|
79
|
+
emit("submit", chooseUrl.value);
|
80
|
+
};
|
81
|
+
return (_ctx, _cache) => {
|
82
|
+
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
83
|
+
const _component_el_radio = vue.resolveComponent("el-radio");
|
84
|
+
const _component_el_radio_group = vue.resolveComponent("el-radio-group");
|
85
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
86
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
87
|
+
const _component_el_form = vue.resolveComponent("el-form");
|
88
|
+
const _component_el_tabs = vue.resolveComponent("el-tabs");
|
89
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
90
|
+
return vue.openBlock(), vue.createElementBlock(
|
91
|
+
vue.Fragment,
|
92
|
+
null,
|
93
|
+
[
|
94
|
+
vue.createVNode(_component_el_tabs, {
|
95
|
+
"tab-position": "left",
|
96
|
+
style: { "height": "430px" },
|
97
|
+
class: "dk-url-input-content",
|
98
|
+
onTabChange: _cache[4] || (_cache[4] = ($event) => onTabChange())
|
99
|
+
}, {
|
100
|
+
default: vue.withCtx(() => [
|
101
|
+
(vue.openBlock(true), vue.createElementBlock(
|
102
|
+
vue.Fragment,
|
103
|
+
null,
|
104
|
+
vue.renderList(_urlData.value, (item, key) => {
|
105
|
+
return vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
106
|
+
key,
|
107
|
+
label: item.title
|
108
|
+
}, {
|
109
|
+
default: vue.withCtx(() => [
|
110
|
+
vue.createElementVNode("div", _hoisted_1, [
|
111
|
+
item.type === "table" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
112
|
+
vue.createVNode(urlInputTable.default, {
|
113
|
+
item,
|
114
|
+
onOnChooseUrl: onChooseUrl
|
115
|
+
}, null, 8, ["item"])
|
116
|
+
])) : item.type === "component" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
117
|
+
(vue.openBlock(), vue.createBlock(
|
118
|
+
vue.resolveDynamicComponent(item.componentName),
|
119
|
+
{ onOnChooseUrl: onChooseUrl },
|
120
|
+
null,
|
121
|
+
32
|
122
|
+
/* HYDRATE_EVENTS */
|
123
|
+
))
|
124
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
125
|
+
item.lists?.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
126
|
+
(vue.openBlock(true), vue.createElementBlock(
|
127
|
+
vue.Fragment,
|
128
|
+
null,
|
129
|
+
vue.renderList(item.lists, (val, k) => {
|
130
|
+
return vue.openBlock(), vue.createElementBlock("div", { key: k }, [
|
131
|
+
val.list ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
132
|
+
vue.createElementVNode(
|
133
|
+
"div",
|
134
|
+
_hoisted_7,
|
135
|
+
vue.toDisplayString(val.title),
|
136
|
+
1
|
137
|
+
/* TEXT */
|
138
|
+
),
|
139
|
+
vue.createElementVNode("div", _hoisted_8, [
|
140
|
+
(vue.openBlock(true), vue.createElementBlock(
|
141
|
+
vue.Fragment,
|
142
|
+
null,
|
143
|
+
vue.renderList(val.list, (v, k2) => {
|
144
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
145
|
+
key: k2,
|
146
|
+
class: vue.normalizeClass(["url-box", chooseUrl.value == v.url ? "choose" : ""]),
|
147
|
+
onClick: ($event) => chooseUrl.value = v.url
|
148
|
+
}, vue.toDisplayString(v.title), 11, _hoisted_9);
|
149
|
+
}),
|
150
|
+
128
|
151
|
+
/* KEYED_FRAGMENT */
|
152
|
+
))
|
153
|
+
])
|
154
|
+
])) : vue.createCommentVNode("v-if", true)
|
155
|
+
]);
|
156
|
+
}),
|
157
|
+
128
|
158
|
+
/* KEYED_FRAGMENT */
|
159
|
+
))
|
160
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
|
161
|
+
(vue.openBlock(true), vue.createElementBlock(
|
162
|
+
vue.Fragment,
|
163
|
+
null,
|
164
|
+
vue.renderList(item.list, (val, k) => {
|
165
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
166
|
+
key: k,
|
167
|
+
class: vue.normalizeClass(["url-box", chooseUrl.value == val.url ? "choose" : ""]),
|
168
|
+
onClick: ($event) => chooseUrl.value = val.url
|
169
|
+
}, vue.toDisplayString(val.title), 11, _hoisted_11);
|
170
|
+
}),
|
171
|
+
128
|
172
|
+
/* KEYED_FRAGMENT */
|
173
|
+
))
|
174
|
+
]))
|
175
|
+
]))
|
176
|
+
])
|
177
|
+
]),
|
178
|
+
_: 2
|
179
|
+
/* DYNAMIC */
|
180
|
+
}, 1032, ["label"]);
|
181
|
+
}),
|
182
|
+
128
|
183
|
+
/* KEYED_FRAGMENT */
|
184
|
+
)),
|
185
|
+
vue.createVNode(_component_el_tab_pane, { label: "\u81EA\u5B9A\u4E49\u94FE\u63A5" }, {
|
186
|
+
default: vue.withCtx(() => [
|
187
|
+
vue.createElementVNode("div", _hoisted_12, [
|
188
|
+
__props.jumpMinApp ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
189
|
+
vue.createVNode(_component_el_radio_group, {
|
190
|
+
modelValue: urlType.value,
|
191
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => urlType.value = $event),
|
192
|
+
class: "ml-4"
|
193
|
+
}, {
|
194
|
+
default: vue.withCtx(() => [
|
195
|
+
vue.createVNode(_component_el_radio, {
|
196
|
+
value: 1,
|
197
|
+
size: "large"
|
198
|
+
}, {
|
199
|
+
default: vue.withCtx(() => [
|
200
|
+
vue.createTextVNode("\u94FE\u63A5\u6216\u8DEF\u5F84")
|
201
|
+
]),
|
202
|
+
_: 1
|
203
|
+
/* STABLE */
|
204
|
+
}),
|
205
|
+
vue.createVNode(_component_el_radio, {
|
206
|
+
value: 2,
|
207
|
+
size: "large"
|
208
|
+
}, {
|
209
|
+
default: vue.withCtx(() => [
|
210
|
+
vue.createTextVNode("\u8DF3\u8F6C\u5176\u4ED6\u5C0F\u7A0B\u5E8F")
|
211
|
+
]),
|
212
|
+
_: 1
|
213
|
+
/* STABLE */
|
214
|
+
})
|
215
|
+
]),
|
216
|
+
_: 1
|
217
|
+
/* STABLE */
|
218
|
+
}, 8, ["modelValue"])
|
219
|
+
])) : vue.createCommentVNode("v-if", true),
|
220
|
+
vue.createVNode(_component_el_form, {
|
221
|
+
"label-width": "100px",
|
222
|
+
"label-position": "top",
|
223
|
+
size: "default"
|
224
|
+
}, {
|
225
|
+
default: vue.withCtx(() => [
|
226
|
+
urlType.value === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
227
|
+
vue.createVNode(_component_el_form_item, {
|
228
|
+
label: "\u586B\u5199\u5730\u5740\u6216\u8DEF\u5F84",
|
229
|
+
required: ""
|
230
|
+
}, {
|
231
|
+
default: vue.withCtx(() => [
|
232
|
+
vue.createVNode(_component_el_input, {
|
233
|
+
modelValue: chooseUrl.value,
|
234
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => chooseUrl.value = $event),
|
235
|
+
size: "default"
|
236
|
+
}, null, 8, ["modelValue"])
|
237
|
+
]),
|
238
|
+
_: 1
|
239
|
+
/* STABLE */
|
240
|
+
})
|
241
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
|
242
|
+
vue.createVNode(_component_el_form_item, {
|
243
|
+
label: "\u586B\u5199\u5C0F\u7A0B\u5E8FAPPID",
|
244
|
+
required: ""
|
245
|
+
}, {
|
246
|
+
default: vue.withCtx(() => [
|
247
|
+
vue.createVNode(_component_el_input, {
|
248
|
+
modelValue: minapp.appid,
|
249
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => minapp.appid = $event),
|
250
|
+
size: "default"
|
251
|
+
}, null, 8, ["modelValue"])
|
252
|
+
]),
|
253
|
+
_: 1
|
254
|
+
/* STABLE */
|
255
|
+
}),
|
256
|
+
vue.createVNode(_component_el_form_item, { label: "\u586B\u5199\u5C0F\u7A0B\u5E8F\u8DEF\u5F84" }, {
|
257
|
+
default: vue.withCtx(() => [
|
258
|
+
vue.createVNode(_component_el_input, {
|
259
|
+
modelValue: minapp.path,
|
260
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => minapp.path = $event),
|
261
|
+
size: "default"
|
262
|
+
}, null, 8, ["modelValue"])
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
/* STABLE */
|
266
|
+
})
|
267
|
+
]))
|
268
|
+
]),
|
269
|
+
_: 1
|
270
|
+
/* STABLE */
|
271
|
+
})
|
272
|
+
])
|
273
|
+
]),
|
274
|
+
_: 1
|
275
|
+
/* STABLE */
|
276
|
+
})
|
277
|
+
]),
|
278
|
+
_: 1
|
279
|
+
/* STABLE */
|
280
|
+
}),
|
281
|
+
vue.createElementVNode("div", _hoisted_16, [
|
282
|
+
vue.createVNode(_component_el_button, {
|
283
|
+
size: "default",
|
284
|
+
style: { "width": "200px" },
|
285
|
+
type: "primary",
|
286
|
+
disabled: !chooseUrl.value,
|
287
|
+
onClick: _cache[5] || (_cache[5] = ($event) => onSubmit())
|
288
|
+
}, {
|
289
|
+
default: vue.withCtx(() => [
|
290
|
+
vue.createTextVNode(" \u786E\u5B9A ")
|
291
|
+
]),
|
292
|
+
_: 1
|
293
|
+
/* STABLE */
|
294
|
+
}, 8, ["disabled"])
|
295
|
+
])
|
296
|
+
],
|
297
|
+
64
|
298
|
+
/* STABLE_FRAGMENT */
|
299
|
+
);
|
300
|
+
};
|
301
|
+
}
|
302
|
+
});
|
303
|
+
|
304
|
+
exports.default = _sfc_main;
|
305
|
+
//# sourceMappingURL=url-input-content.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input-content.vue2.js","sources":["../../../src/url-input/src/url-input-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkUrlInputContent',\n});\n</script>\n<template>\n <el-tabs tab-position=\"left\" style=\"height: 430px\" class=\"dk-url-input-content\" @tab-change=\"onTabChange()\">\n <el-tab-pane v-for=\"(item, key) in _urlData\" :key=\"key\" :label=\"item.title\">\n <div style=\"padding: 10px\">\n <div v-if=\"item.type === 'table'\">\n <dk-url-input-table :item=\"item\" @on-choose-url=\"onChooseUrl\"></dk-url-input-table>\n </div>\n <div v-else-if=\"item.type === 'component'\">\n <component :is=\"item.componentName\" @on-choose-url=\"onChooseUrl\"></component>\n </div>\n <div v-else>\n <div v-if=\"item.lists?.length > 0\">\n <div v-for=\"(val, k) in item.lists\" :key=\"k\">\n <div v-if=\"val.list\">\n <div style=\"padding-bottom: 10px; font-weight: 700; color: #000\">\n {{ val.title }}\n </div>\n <div class=\"url-list\">\n <div\n v-for=\"(v, k) in val.list\"\n :key=\"k\"\n class=\"url-box\"\n :class=\"chooseUrl == v.url ? 'choose' : ''\"\n @click=\"chooseUrl = v.url\"\n >\n {{ v.title }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div v-else class=\"url-list\">\n <div\n v-for=\"(val, k) in item.list\"\n :key=\"k\"\n class=\"url-box\"\n :class=\"chooseUrl == val.url ? 'choose' : ''\"\n @click=\"chooseUrl = val.url\"\n >\n {{ val.title }}\n </div>\n </div>\n </div>\n </div>\n </el-tab-pane>\n <el-tab-pane label=\"自定义链接\">\n <div style=\"width: 500px; margin: 100px auto\">\n <div v-if=\"jumpMinApp\" style=\"padding-bottom: 20px\">\n <el-radio-group v-model=\"urlType\" class=\"ml-4\">\n <el-radio :value=\"1\" size=\"large\">链接或路径</el-radio>\n <el-radio :value=\"2\" size=\"large\">跳转其他小程序</el-radio>\n </el-radio-group>\n </div>\n <el-form label-width=\"100px\" label-position=\"top\" size=\"default\">\n <div v-if=\"urlType === 1\">\n <el-form-item label=\"填写地址或路径\" required>\n <el-input v-model=\"chooseUrl\" size=\"default\" />\n </el-form-item>\n </div>\n <div v-else>\n <el-form-item label=\"填写小程序APPID\" required>\n <el-input v-model=\"minapp.appid\" size=\"default\" />\n </el-form-item>\n <el-form-item label=\"填写小程序路径\">\n <el-input v-model=\"minapp.path\" size=\"default\" />\n </el-form-item>\n </div>\n </el-form>\n </div>\n </el-tab-pane>\n </el-tabs>\n <div style=\"text-align: center\">\n <el-button size=\"default\" style=\"width: 200px\" type=\"primary\" :disabled=\"!chooseUrl\" @click=\"onSubmit()\">\n 确定\n </el-button>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, reactive, ref, watch, inject } from 'vue'\nimport DkUrlInputTable from './url-input-table.vue'\n\n\nconst emit = defineEmits(['submit'])\n\nconst props = defineProps({\n urlData: {\n default: () => {\n return []\n },\n type: Array,\n },\n jumpMinApp: { default: false, type: Boolean },\n})\n\nconst _urlData: any = computed(() => {\n console.log('urlData', props.urlData)\n if (props.urlData?.length > 0) {\n return props.urlData\n } else {\n return inject('urlInputData', [])\n }\n})\n\nconst minapp = reactive({\n appid: '',\n path: '',\n})\nconst chooseUrl = ref('')\nconst urlType = ref(1)\n\nconst onTabChange = () => {\n chooseUrl.value = ''\n}\n\nconst onChooseUrl = (url: any) => {\n chooseUrl.value = url\n}\n\nwatch(\n () => minapp,\n () => {\n if (minapp.appid) {\n chooseUrl.value = minapp.appid + '@' + minapp.path || '/'\n }\n },\n {\n deep: true,\n }\n)\n\nconst onSubmit = () => {\n emit('submit', chooseUrl.value)\n}\n</script>\n"],"names":["__MACROS_defineComponent","computed","inject","reactive","ref","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,mBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;AAgGD,IAAM,MAAA,QAAA,GAAgBC,aAAS,MAAM;AACnC,MAAQ,OAAA,CAAA,GAAA,CAAI,SAAW,EAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AACpC,MAAI,IAAA,KAAA,CAAM,OAAS,EAAA,MAAA,GAAS,CAAG,EAAA;AAC7B,QAAA,OAAO,KAAM,CAAA,OAAA,CAAA;AAAA,OACR,MAAA;AACL,QAAO,OAAAC,UAAA,CAAO,cAAgB,EAAA,EAAE,CAAA,CAAA;AAAA,OAClC;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,SAASC,YAAS,CAAA;AAAA,MACtB,KAAO,EAAA,EAAA;AAAA,MACP,IAAM,EAAA,EAAA;AAAA,KACP,CAAA,CAAA;AACD,IAAM,MAAA,SAAA,GAAYC,QAAI,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,OAAA,GAAUA,QAAI,CAAC,CAAA,CAAA;AAErB,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,SAAA,CAAU,KAAQ,GAAA,EAAA,CAAA;AAAA,KACpB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,SAAA,CAAU,KAAQ,GAAA,GAAA,CAAA;AAAA,KACpB,CAAA;AAEA,IAAAC,SAAA;AAAA,MACE,MAAM,MAAA;AAAA,MACN,MAAM;AACJ,QAAA,IAAI,OAAO,KAAO,EAAA;AAChB,UAAA,SAAA,CAAU,KAAQ,GAAA,MAAA,CAAO,KAAQ,GAAA,GAAA,GAAM,OAAO,IAAQ,IAAA,GAAA,CAAA;AAAA,SACxD;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,WAAW,MAAM;AACrB,MAAK,IAAA,CAAA,QAAA,EAAU,UAAU,KAAK,CAAA,CAAA;AAAA,KAChC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
item: {
|
3
|
+
default: () => {};
|
4
|
+
type: ObjectConstructor;
|
5
|
+
};
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChooseUrl"[], "onChooseUrl", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
item: {
|
8
|
+
default: () => {};
|
9
|
+
type: ObjectConstructor;
|
10
|
+
};
|
11
|
+
}>> & {
|
12
|
+
onOnChooseUrl?: ((...args: any[]) => any) | undefined;
|
13
|
+
}, {
|
14
|
+
item: Record<string, any>;
|
15
|
+
}, {}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var urlInputTable_vue_vue_type_script_setup_true_lang = require('./url-input-table.vue2.js');
|
6
|
+
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
var DkUrlInputTable = /* @__PURE__ */ _pluginVue_exportHelper.default(urlInputTable_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\url-input\\src\\url-input-table.vue"]]);
|
9
|
+
|
10
|
+
exports.default = DkUrlInputTable;
|
11
|
+
//# sourceMappingURL=url-input-table.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input-table.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|