@vipl520/dk-ui 1.0.51 → 1.0.53

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1455,7 +1455,7 @@ var _sfc_main$1b = /* @__PURE__ */ defineComponent({
1455
1455
  images_upload_handler: handleImageUpload,
1456
1456
  initialContent: "Loading editor..."
1457
1457
  });
1458
- const tinymceSrc = ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
1458
+ const tinymceSrc = ref("https://unpkg.com/dk-tinymce@latest/tinymce.min.js");
1459
1459
  const attachmentRef = ref();
1460
1460
  const editorRef = ref();
1461
1461
  const showDialog = computed(() => {
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "dk",
5
- "version": "1.0.50",
5
+ "version": "1.0.52",
6
6
  "js-types-syntax": "typescript",
7
7
  "description-markup": "markdown",
8
8
  "contributions": {
@@ -37,7 +37,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  images_upload_handler: handleImageUpload,
38
38
  initialContent: "Loading editor..."
39
39
  });
40
- const tinymceSrc = ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
40
+ const tinymceSrc = ref("https://unpkg.com/dk-tinymce@latest/tinymce.min.js");
41
41
  const attachmentRef = ref();
42
42
  const editorRef = ref();
43
43
  const showDialog = computed(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"tiny-editor.vue2.mjs","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\nconst tinymceSrc = ref('https://registry.npmmirror.com/dk-tinymce/1.0.0/files/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","init","config"],"mappings":";;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAA,cAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAU,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACpC,IAAM,MAAA,UAAA,GAAa,IAAI,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,iBAAA,GAAoB,CAAC,QAAe,EAAA,QAAA,KACxC,IAAI,OAAQ,CAAA,CAAC,SAAS,MAAW,KAAA;AAC/B,MAAA,gBAAA,CAAiB,SAAS,IAAK,EAAC,CAC7B,CAAA,IAAA,CAAK,CAAC,GAAQ,KAAA;AACb,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAQ,OAAA,CAAA,GAAA,CAAI,KAAK,GAAG,CAAA,CAAA;AAAA,OACrB,CAAA,CACA,KAAM,CAAA,CAAC,GAAQ,KAAA;AAC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;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tiny-editor.vue2.mjs","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\nconst tinymceSrc = ref('https://unpkg.com/dk-tinymce@latest/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","init","config"],"mappings":";;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAA,cAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAU,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACpC,IAAM,MAAA,UAAA,GAAa,IAAI,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AACpC,QAAQ,IAAA,IAAA,YAAA,GAAe,KAAK,GAAM,GAAA,wBAAA,CAAA;AAAA,OACnC,CAAA,CAAA;AACD,MAAA,MAAA,CAAO,cAAc,IAAI,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAM,MAAA,UAAA,GAAa,CAAC,MAAgB,KAAA;AAClC,MAAA,OAAA,CAAQ,IAAI,MAAM,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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://registry.npmmirror.com/@vipl520/dk-ui/1.0.46/files/dist/uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
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://unpkg.com/@vipl520/dk-ui@1.0.46/dist/uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
@@ -5,7 +5,7 @@
5
5
  @font-face {
6
6
  font-family: uniicons;
7
7
  //src: url('./uniicons.ttf');
8
- src: url('https://registry.npmmirror.com/@vipl520/dk-ui/1.0.46/files/dist/uniicons.ttf');
8
+ src: url('https://unpkg.com/@vipl520/dk-ui@1.0.46/dist/uniicons.ttf');
9
9
  }
10
10
 
11
11
  .dk-uni-icon {
@@ -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://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
44
+ const tinymceSrc = vue.ref("https://unpkg.com/dk-tinymce@latest/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\nconst tinymceSrc = ref('https://registry.npmmirror.com/dk-tinymce/1.0.0/files/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":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAUD,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACpC,IAAM,MAAA,UAAA,GAAaA,QAAI,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,iBAAA,GAAoB,CAAC,QAAe,EAAA,QAAA,KACxC,IAAI,OAAQ,CAAA,CAAC,SAAS,MAAW,KAAA;AAC/B,MAAAE,2BAAA,CAAiB,SAAS,IAAK,EAAC,CAC7B,CAAA,IAAA,CAAK,CAAC,GAAQ,KAAA;AACb,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAQ,OAAA,CAAA,GAAA,CAAI,KAAK,GAAG,CAAA,CAAA;AAAA,OACrB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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\nconst tinymceSrc = ref('https://unpkg.com/dk-tinymce@latest/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":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAInC,I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,SAAU,EAAA,CAAA;AACzC,MAAA,IAAI,IAAO,GAAA,EAAA,CAAA;AACX,MAAe,cAAA,CAAA,OAAA,CAAQ,CAAC,IAAc,KAAA;AACpC,QAAQ,IAAA,IAAA,YAAA,GAAe,KAAK,GAAM,GAAA,wBAAA,CAAA;AAAA,OACnC,CAAA,CAAA;AACD,MAAA,MAAA,CAAO,cAAc,IAAI,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAM,MAAA,UAAA,GAAa,CAAC,MAAgB,KAAA;AAClC,MAAA,OAAA,CAAQ,IAAI,MAAM,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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://registry.npmmirror.com/@vipl520/dk-ui/1.0.46/files/dist/uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
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://unpkg.com/@vipl520/dk-ui@1.0.46/dist/uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
@@ -5,7 +5,7 @@
5
5
  @font-face {
6
6
  font-family: uniicons;
7
7
  //src: url('./uniicons.ttf');
8
- src: url('https://registry.npmmirror.com/@vipl520/dk-ui/1.0.46/files/dist/uniicons.ttf');
8
+ src: url('https://unpkg.com/@vipl520/dk-ui@1.0.46/dist/uniicons.ttf');
9
9
  }
10
10
 
11
11
  .dk-uni-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vipl520/dk-ui",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "多客怪兽框架核心组件,支持diy、crud动态表格、上传组件等",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",