@cmstops/pro-compo 0.3.79 → 0.3.80
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, openBlock, createBlock, unref, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { Modal, Tabs, TabPane, Button } from "@arco-design/web-vue";
|
|
3
|
+
import { Enum, License } from "@cmstops/utils";
|
|
3
4
|
import _sfc_main$1 from "./components/ViewAllColumn/index.js";
|
|
4
5
|
import _sfc_main$4 from "./components/CompoList/index.js";
|
|
5
6
|
import _sfc_main$6 from "./components/MpAccountList/index.js";
|
|
@@ -44,7 +45,20 @@ const _sfc_main = defineComponent({
|
|
|
44
45
|
const hasSelected = computed(() => {
|
|
45
46
|
return selectedData.value.length > 0;
|
|
46
47
|
});
|
|
47
|
-
const typeDataController =
|
|
48
|
+
const typeDataController = computed(() => {
|
|
49
|
+
const ret = props.typeData;
|
|
50
|
+
const appList = [
|
|
51
|
+
{ license: "courselearning", key: "addCourse", type: Enum.CheckTypeEnum.MARKET },
|
|
52
|
+
{ license: "maavd", key: "addMpAccount", type: Enum.CheckTypeEnum.MARKET },
|
|
53
|
+
{ license: "maavd", key: "addMpContent", type: Enum.CheckTypeEnum.MARKET }
|
|
54
|
+
];
|
|
55
|
+
appList.forEach((item) => {
|
|
56
|
+
if (!License.check(item.type, item.license)) {
|
|
57
|
+
ret[item.key] = false;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return ret;
|
|
61
|
+
});
|
|
48
62
|
const setVisible = (bool) => {
|
|
49
63
|
emit("update:visible", bool);
|
|
50
64
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var utils = require("@cmstops/utils");
|
|
4
5
|
var index = require("./components/ViewAllColumn/index.js");
|
|
5
6
|
var index$3 = require("./components/CompoList/index.js");
|
|
6
7
|
var index$5 = require("./components/MpAccountList/index.js");
|
|
@@ -45,7 +46,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
45
46
|
const hasSelected = vue.computed(() => {
|
|
46
47
|
return selectedData.value.length > 0;
|
|
47
48
|
});
|
|
48
|
-
const typeDataController = vue.
|
|
49
|
+
const typeDataController = vue.computed(() => {
|
|
50
|
+
const ret = props.typeData;
|
|
51
|
+
const appList = [
|
|
52
|
+
{ license: "courselearning", key: "addCourse", type: utils.Enum.CheckTypeEnum.MARKET },
|
|
53
|
+
{ license: "maavd", key: "addMpAccount", type: utils.Enum.CheckTypeEnum.MARKET },
|
|
54
|
+
{ license: "maavd", key: "addMpContent", type: utils.Enum.CheckTypeEnum.MARKET }
|
|
55
|
+
];
|
|
56
|
+
appList.forEach((item) => {
|
|
57
|
+
if (!utils.License.check(item.type, item.license)) {
|
|
58
|
+
ret[item.key] = false;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return ret;
|
|
62
|
+
});
|
|
49
63
|
const setVisible = (bool) => {
|
|
50
64
|
emit("update:visible", bool);
|
|
51
65
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmstops/pro-compo",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.80",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@arco-design/web-vue": "~2",
|
|
49
49
|
"@arco-iconbox/vue-cmstop-icons": "^0.0.34",
|
|
50
|
+
"@cmstops/utils": "^1.0.4",
|
|
50
51
|
"@popperjs/core": "^2.11.8",
|
|
51
52
|
"colorthief": "^2.4.0",
|
|
52
53
|
"cropperjs": "^1.6.1",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"@typescript-eslint/parser": "^4.12.0",
|
|
87
88
|
"@vue/babel-plugin-jsx": "^1.0.6",
|
|
88
89
|
"@vue/test-utils": "^2.0.0-beta.14",
|
|
90
|
+
"axios": "^1.7.7",
|
|
89
91
|
"babel-loader": "^8.2.2",
|
|
90
92
|
"colorthief": "^2.4.0",
|
|
91
93
|
"cropperjs": "^1.6.1",
|
|
@@ -133,5 +135,8 @@
|
|
|
133
135
|
"es",
|
|
134
136
|
"lib",
|
|
135
137
|
"dist"
|
|
136
|
-
]
|
|
138
|
+
],
|
|
139
|
+
"dependencies": {
|
|
140
|
+
"@cmstops/utils": "^1.0.6"
|
|
141
|
+
}
|
|
137
142
|
}
|