@cmstops/pro-compo 0.1.50 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,10 +74,11 @@ const _sfc_main = defineComponent({
|
|
|
74
74
|
const getBase64 = (imgUrl) => {
|
|
75
75
|
window.URL = window.URL || window.webkitURL;
|
|
76
76
|
const xhr = new XMLHttpRequest();
|
|
77
|
-
|
|
77
|
+
const sparator = imgUrl.includes("?") ? "&" : "?";
|
|
78
|
+
xhr.open("get", `${imgUrl}${sparator}_t=${new Date().getTime()}`, true);
|
|
78
79
|
xhr.responseType = "blob";
|
|
79
80
|
xhr.send();
|
|
80
|
-
xhr.onload =
|
|
81
|
+
xhr.onload = () => {
|
|
81
82
|
if (xhr.status === 200) {
|
|
82
83
|
const blob = xhr.response;
|
|
83
84
|
const oFileReader = new FileReader();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createCommentVNode, createBlock, unref, Fragment, createVNode } from "vue";
|
|
2
|
-
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconMiniprogram, IconH5, IconZhibo, IconPicture, IconGongzhonghao, IconSelectGroupoverview, IconSelectVersion, IconBook, IconEvent, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
2
|
+
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconMiniprogram, IconH5, IconZhibo, IconSpTopic, IconPicture, IconGongzhonghao, IconSelectGroupoverview, IconSelectVersion, IconBook, IconEvent, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
3
3
|
const _hoisted_1 = { class: "type-icons-container" };
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
5
5
|
...{ name: "typeIcons" },
|
|
@@ -45,30 +45,33 @@ const _sfc_main = defineComponent({
|
|
|
45
45
|
], 2112)) : props.doc && props.type === "live" ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
|
|
46
46
|
createCommentVNode(" \u672C\u5730\u76F4\u64AD "),
|
|
47
47
|
createVNode(unref(IconZhibo))
|
|
48
|
-
], 2112)) : props.
|
|
48
|
+
], 2112)) : props.doc && props.type === "sp_topic" ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
49
|
+
createCommentVNode(" 9466 \u4E13\u9898 "),
|
|
50
|
+
createVNode(unref(IconSpTopic))
|
|
51
|
+
], 2112)) : props.resource && props.type === "image" ? (openBlock(), createElementBlock(Fragment, { key: 12 }, [
|
|
49
52
|
createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
|
|
50
53
|
createCommentVNode(" \u56FE\u7247 "),
|
|
51
54
|
createVNode(unref(IconPicture))
|
|
52
|
-
], 2112)) : props.type === "mpdoc" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
55
|
+
], 2112)) : props.type === "mpdoc" ? (openBlock(), createElementBlock(Fragment, { key: 13 }, [
|
|
53
56
|
createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
|
|
54
57
|
createCommentVNode(" \u516C\u4F17\u53F7\u7A3F\u4EF6 "),
|
|
55
58
|
createVNode(unref(IconGongzhonghao))
|
|
56
|
-
], 2112)) : props.type === "ilive" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
59
|
+
], 2112)) : props.type === "ilive" ? (openBlock(), createElementBlock(Fragment, { key: 14 }, [
|
|
57
60
|
createCommentVNode(" \u4E91\u76F4\u64AD "),
|
|
58
61
|
createVNode(unref(IconZhibo))
|
|
59
|
-
], 2112)) : props.type === "group" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
62
|
+
], 2112)) : props.type === "group" ? (openBlock(), createElementBlock(Fragment, { key: 15 }, [
|
|
60
63
|
createCommentVNode(" \u9891\u9053/\u7EC4\u4EF6 "),
|
|
61
64
|
createVNode(unref(IconSelectGroupoverview))
|
|
62
|
-
], 2112)) : props.type === "nav" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
65
|
+
], 2112)) : props.type === "nav" ? (openBlock(), createElementBlock(Fragment, { key: 16 }, [
|
|
63
66
|
createCommentVNode(" \u529F\u80FD\u5BFC\u822A "),
|
|
64
67
|
createVNode(unref(IconSelectVersion))
|
|
65
|
-
], 2112)) : props.type === "course" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
68
|
+
], 2112)) : props.type === "course" ? (openBlock(), createElementBlock(Fragment, { key: 17 }, [
|
|
66
69
|
createCommentVNode(" \u8BFE\u7A0B "),
|
|
67
70
|
createVNode(unref(IconBook))
|
|
68
|
-
], 2112)) : props.type === "funhd" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
71
|
+
], 2112)) : props.type === "funhd" ? (openBlock(), createElementBlock(Fragment, { key: 18 }, [
|
|
69
72
|
createCommentVNode(" \u4E92\u52A8\u8FD0\u8425 "),
|
|
70
73
|
createVNode(unref(IconEvent))
|
|
71
|
-
], 2112)) : (openBlock(), createElementBlock(Fragment, { key:
|
|
74
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 19 }, [
|
|
72
75
|
createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
|
|
73
76
|
createCommentVNode(" <icon-weixingaojian /> "),
|
|
74
77
|
createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
|
|
@@ -81,10 +81,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
81
81
|
const getBase64 = (imgUrl) => {
|
|
82
82
|
window.URL = window.URL || window.webkitURL;
|
|
83
83
|
const xhr = new XMLHttpRequest();
|
|
84
|
-
|
|
84
|
+
const sparator = imgUrl.includes("?") ? "&" : "?";
|
|
85
|
+
xhr.open("get", `${imgUrl}${sparator}_t=${new Date().getTime()}`, true);
|
|
85
86
|
xhr.responseType = "blob";
|
|
86
87
|
xhr.send();
|
|
87
|
-
xhr.onload =
|
|
88
|
+
xhr.onload = () => {
|
|
88
89
|
if (xhr.status === 200) {
|
|
89
90
|
const blob = xhr.response;
|
|
90
91
|
const oFileReader = new FileReader();
|
|
@@ -46,30 +46,33 @@ const _sfc_main = vue.defineComponent({
|
|
|
46
46
|
], 2112)) : props.doc && props.type === "live" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 10 }, [
|
|
47
47
|
vue.createCommentVNode(" \u672C\u5730\u76F4\u64AD "),
|
|
48
48
|
vue.createVNode(vue.unref(vueCmstopIcons.IconZhibo))
|
|
49
|
-
], 2112)) : props.
|
|
49
|
+
], 2112)) : props.doc && props.type === "sp_topic" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 11 }, [
|
|
50
|
+
vue.createCommentVNode(" 9466 \u4E13\u9898 "),
|
|
51
|
+
vue.createVNode(vue.unref(vueCmstopIcons.IconSpTopic))
|
|
52
|
+
], 2112)) : props.resource && props.type === "image" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 12 }, [
|
|
50
53
|
vue.createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
|
|
51
54
|
vue.createCommentVNode(" \u56FE\u7247 "),
|
|
52
55
|
vue.createVNode(vue.unref(vueCmstopIcons.IconPicture))
|
|
53
|
-
], 2112)) : props.type === "mpdoc" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
56
|
+
], 2112)) : props.type === "mpdoc" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 13 }, [
|
|
54
57
|
vue.createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
|
|
55
58
|
vue.createCommentVNode(" \u516C\u4F17\u53F7\u7A3F\u4EF6 "),
|
|
56
59
|
vue.createVNode(vue.unref(vueCmstopIcons.IconGongzhonghao))
|
|
57
|
-
], 2112)) : props.type === "ilive" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
60
|
+
], 2112)) : props.type === "ilive" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 14 }, [
|
|
58
61
|
vue.createCommentVNode(" \u4E91\u76F4\u64AD "),
|
|
59
62
|
vue.createVNode(vue.unref(vueCmstopIcons.IconZhibo))
|
|
60
|
-
], 2112)) : props.type === "group" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
63
|
+
], 2112)) : props.type === "group" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 15 }, [
|
|
61
64
|
vue.createCommentVNode(" \u9891\u9053/\u7EC4\u4EF6 "),
|
|
62
65
|
vue.createVNode(vue.unref(vueCmstopIcons.IconSelectGroupoverview))
|
|
63
|
-
], 2112)) : props.type === "nav" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
66
|
+
], 2112)) : props.type === "nav" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 16 }, [
|
|
64
67
|
vue.createCommentVNode(" \u529F\u80FD\u5BFC\u822A "),
|
|
65
68
|
vue.createVNode(vue.unref(vueCmstopIcons.IconSelectVersion))
|
|
66
|
-
], 2112)) : props.type === "course" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
69
|
+
], 2112)) : props.type === "course" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 17 }, [
|
|
67
70
|
vue.createCommentVNode(" \u8BFE\u7A0B "),
|
|
68
71
|
vue.createVNode(vue.unref(vueCmstopIcons.IconBook))
|
|
69
|
-
], 2112)) : props.type === "funhd" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
72
|
+
], 2112)) : props.type === "funhd" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 18 }, [
|
|
70
73
|
vue.createCommentVNode(" \u4E92\u52A8\u8FD0\u8425 "),
|
|
71
74
|
vue.createVNode(vue.unref(vueCmstopIcons.IconEvent))
|
|
72
|
-
], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
75
|
+
], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 19 }, [
|
|
73
76
|
vue.createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
|
|
74
77
|
vue.createCommentVNode(" <icon-weixingaojian /> "),
|
|
75
78
|
vue.createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmstops/pro-compo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@arco-design/web-vue": "~2",
|
|
62
|
-
"@arco-iconbox/vue-cmstop-icons": "^0.0.
|
|
62
|
+
"@arco-iconbox/vue-cmstop-icons": "^0.0.23",
|
|
63
63
|
"@babel/core": "^7.14.6",
|
|
64
64
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
65
65
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|