@cmstops/pro-compo 0.3.98 → 0.3.99-shiliuyun
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,6 +1,5 @@
|
|
|
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";
|
|
4
3
|
import _sfc_main$1 from "./components/ViewAllColumn/index.js";
|
|
5
4
|
import _sfc_main$4 from "./components/CompoList/index.js";
|
|
6
5
|
import _sfc_main$6 from "./components/MpAccountList/index.js";
|
|
@@ -49,16 +48,6 @@ const _sfc_main = defineComponent({
|
|
|
49
48
|
});
|
|
50
49
|
const typeDataController = computed(() => {
|
|
51
50
|
const ret = JSON.parse(JSON.stringify(props.typeData));
|
|
52
|
-
const appList = [
|
|
53
|
-
{ license: "courselearning", key: "addCourse", type: Enum.CheckTypeEnum.MARKET },
|
|
54
|
-
{ license: "maavd", key: "addMpAccount", type: Enum.CheckTypeEnum.MARKET },
|
|
55
|
-
{ license: "maavd", key: "addMpContent", type: Enum.CheckTypeEnum.MARKET }
|
|
56
|
-
];
|
|
57
|
-
appList.forEach((item) => {
|
|
58
|
-
if (!License.check(item.type, item.license)) {
|
|
59
|
-
ret[item.key] = false;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
51
|
return ret;
|
|
63
52
|
});
|
|
64
53
|
const setVisible = (bool) => {
|
|
@@ -64,6 +64,7 @@ const _sfc_main = defineComponent({
|
|
|
64
64
|
ori_read_count: 0,
|
|
65
65
|
ori_thumbup_count: 0,
|
|
66
66
|
comment_available: false,
|
|
67
|
+
enable_like: true,
|
|
67
68
|
is_recommend: false,
|
|
68
69
|
album_status: false,
|
|
69
70
|
mourn_style: 0
|
|
@@ -189,6 +190,7 @@ const _sfc_main = defineComponent({
|
|
|
189
190
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
|
|
190
191
|
data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
|
|
191
192
|
data.comment_available = !!data.comment_available;
|
|
193
|
+
data.enable_like = !!data.enable_like;
|
|
192
194
|
data.statement = !!data.statement;
|
|
193
195
|
data.is_recommend = !!data.is_recommend;
|
|
194
196
|
data.album_status = data.album_status ? "1" : "0";
|
|
@@ -222,6 +224,7 @@ const _sfc_main = defineComponent({
|
|
|
222
224
|
data.ori_thumbup_count = Number(data.ori_thumbup_count);
|
|
223
225
|
data.ori_count = !!(data.ori_read_count || data.ori_thumbup_count);
|
|
224
226
|
data.comment_available = data.comment_available !== "false";
|
|
227
|
+
data.enable_like = data.enable_like !== "false";
|
|
225
228
|
data.statement = data.statement !== "false";
|
|
226
229
|
data.is_recommend = data.is_recommend !== "false";
|
|
227
230
|
data.album_status = data.album_status !== "0";
|
|
@@ -710,6 +713,20 @@ const _sfc_main = defineComponent({
|
|
|
710
713
|
]),
|
|
711
714
|
_: 1
|
|
712
715
|
}),
|
|
716
|
+
createVNode(unref(FormItem), {
|
|
717
|
+
key: "enable_like",
|
|
718
|
+
class: "horizontal",
|
|
719
|
+
field: "enable_like",
|
|
720
|
+
label: "\u5F00\u542F\u70B9\u8D5E"
|
|
721
|
+
}, {
|
|
722
|
+
default: withCtx(() => [
|
|
723
|
+
createVNode(unref(Switch), {
|
|
724
|
+
modelValue: form.value.enable_like,
|
|
725
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.enable_like = $event)
|
|
726
|
+
}, null, 8, ["modelValue"])
|
|
727
|
+
]),
|
|
728
|
+
_: 1
|
|
729
|
+
}),
|
|
713
730
|
createVNode(unref(FormItem), {
|
|
714
731
|
key: "is_recommend",
|
|
715
732
|
class: "horizontal",
|
|
@@ -719,7 +736,7 @@ const _sfc_main = defineComponent({
|
|
|
719
736
|
default: withCtx(() => [
|
|
720
737
|
createVNode(unref(Switch), {
|
|
721
738
|
modelValue: form.value.is_recommend,
|
|
722
|
-
"onUpdate:modelValue": _cache[
|
|
739
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => form.value.is_recommend = $event)
|
|
723
740
|
}, null, 8, ["modelValue"])
|
|
724
741
|
]),
|
|
725
742
|
_: 1
|
|
@@ -733,7 +750,7 @@ const _sfc_main = defineComponent({
|
|
|
733
750
|
default: withCtx(() => [
|
|
734
751
|
createVNode(unref(Switch), {
|
|
735
752
|
modelValue: form.value.album_status,
|
|
736
|
-
"onUpdate:modelValue": _cache[
|
|
753
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => form.value.album_status = $event)
|
|
737
754
|
}, null, 8, ["modelValue"])
|
|
738
755
|
]),
|
|
739
756
|
_: 1
|
|
@@ -748,22 +765,22 @@ const _sfc_main = defineComponent({
|
|
|
748
765
|
default: withCtx(() => [
|
|
749
766
|
createVNode(unref(Switch), {
|
|
750
767
|
modelValue: silenceOptions.value,
|
|
751
|
-
"onUpdate:modelValue": _cache[
|
|
768
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => silenceOptions.value = $event)
|
|
752
769
|
}, null, 8, ["modelValue"]),
|
|
753
770
|
silenceOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
754
771
|
createVNode(unref(RadioGroup), {
|
|
755
772
|
modelValue: form.value.mourn_style,
|
|
756
|
-
"onUpdate:modelValue": _cache[
|
|
773
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => form.value.mourn_style = $event)
|
|
757
774
|
}, {
|
|
758
775
|
default: withCtx(() => [
|
|
759
776
|
createVNode(unref(Radio), { value: 1 }, {
|
|
760
|
-
default: withCtx(() => _cache[
|
|
777
|
+
default: withCtx(() => _cache[30] || (_cache[30] = [
|
|
761
778
|
createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
762
779
|
])),
|
|
763
780
|
_: 1
|
|
764
781
|
}),
|
|
765
782
|
createVNode(unref(Radio), { value: 2 }, {
|
|
766
|
-
default: withCtx(() => _cache[
|
|
783
|
+
default: withCtx(() => _cache[31] || (_cache[31] = [
|
|
767
784
|
createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
768
785
|
])),
|
|
769
786
|
_: 1
|
|
@@ -1,7 +1,6 @@
|
|
|
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");
|
|
5
4
|
var index = require("./components/ViewAllColumn/index.js");
|
|
6
5
|
var index$3 = require("./components/CompoList/index.js");
|
|
7
6
|
var index$5 = require("./components/MpAccountList/index.js");
|
|
@@ -50,16 +49,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
50
49
|
});
|
|
51
50
|
const typeDataController = vue.computed(() => {
|
|
52
51
|
const ret = JSON.parse(JSON.stringify(props.typeData));
|
|
53
|
-
const appList = [
|
|
54
|
-
{ license: "courselearning", key: "addCourse", type: utils.Enum.CheckTypeEnum.MARKET },
|
|
55
|
-
{ license: "maavd", key: "addMpAccount", type: utils.Enum.CheckTypeEnum.MARKET },
|
|
56
|
-
{ license: "maavd", key: "addMpContent", type: utils.Enum.CheckTypeEnum.MARKET }
|
|
57
|
-
];
|
|
58
|
-
appList.forEach((item) => {
|
|
59
|
-
if (!utils.License.check(item.type, item.license)) {
|
|
60
|
-
ret[item.key] = false;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
52
|
return ret;
|
|
64
53
|
});
|
|
65
54
|
const setVisible = (bool) => {
|
|
@@ -65,6 +65,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
65
65
|
ori_read_count: 0,
|
|
66
66
|
ori_thumbup_count: 0,
|
|
67
67
|
comment_available: false,
|
|
68
|
+
enable_like: true,
|
|
68
69
|
is_recommend: false,
|
|
69
70
|
album_status: false,
|
|
70
71
|
mourn_style: 0
|
|
@@ -190,6 +191,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
190
191
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
|
|
191
192
|
data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
|
|
192
193
|
data.comment_available = !!data.comment_available;
|
|
194
|
+
data.enable_like = !!data.enable_like;
|
|
193
195
|
data.statement = !!data.statement;
|
|
194
196
|
data.is_recommend = !!data.is_recommend;
|
|
195
197
|
data.album_status = data.album_status ? "1" : "0";
|
|
@@ -223,6 +225,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
223
225
|
data.ori_thumbup_count = Number(data.ori_thumbup_count);
|
|
224
226
|
data.ori_count = !!(data.ori_read_count || data.ori_thumbup_count);
|
|
225
227
|
data.comment_available = data.comment_available !== "false";
|
|
228
|
+
data.enable_like = data.enable_like !== "false";
|
|
226
229
|
data.statement = data.statement !== "false";
|
|
227
230
|
data.is_recommend = data.is_recommend !== "false";
|
|
228
231
|
data.album_status = data.album_status !== "0";
|
|
@@ -711,6 +714,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
711
714
|
]),
|
|
712
715
|
_: 1
|
|
713
716
|
}),
|
|
717
|
+
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
718
|
+
key: "enable_like",
|
|
719
|
+
class: "horizontal",
|
|
720
|
+
field: "enable_like",
|
|
721
|
+
label: "\u5F00\u542F\u70B9\u8D5E"
|
|
722
|
+
}, {
|
|
723
|
+
default: vue.withCtx(() => [
|
|
724
|
+
vue.createVNode(vue.unref(webVue.Switch), {
|
|
725
|
+
modelValue: form.value.enable_like,
|
|
726
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.enable_like = $event)
|
|
727
|
+
}, null, 8, ["modelValue"])
|
|
728
|
+
]),
|
|
729
|
+
_: 1
|
|
730
|
+
}),
|
|
714
731
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
715
732
|
key: "is_recommend",
|
|
716
733
|
class: "horizontal",
|
|
@@ -720,7 +737,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
720
737
|
default: vue.withCtx(() => [
|
|
721
738
|
vue.createVNode(vue.unref(webVue.Switch), {
|
|
722
739
|
modelValue: form.value.is_recommend,
|
|
723
|
-
"onUpdate:modelValue": _cache[
|
|
740
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => form.value.is_recommend = $event)
|
|
724
741
|
}, null, 8, ["modelValue"])
|
|
725
742
|
]),
|
|
726
743
|
_: 1
|
|
@@ -734,7 +751,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
734
751
|
default: vue.withCtx(() => [
|
|
735
752
|
vue.createVNode(vue.unref(webVue.Switch), {
|
|
736
753
|
modelValue: form.value.album_status,
|
|
737
|
-
"onUpdate:modelValue": _cache[
|
|
754
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => form.value.album_status = $event)
|
|
738
755
|
}, null, 8, ["modelValue"])
|
|
739
756
|
]),
|
|
740
757
|
_: 1
|
|
@@ -749,22 +766,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
749
766
|
default: vue.withCtx(() => [
|
|
750
767
|
vue.createVNode(vue.unref(webVue.Switch), {
|
|
751
768
|
modelValue: silenceOptions.value,
|
|
752
|
-
"onUpdate:modelValue": _cache[
|
|
769
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => silenceOptions.value = $event)
|
|
753
770
|
}, null, 8, ["modelValue"]),
|
|
754
771
|
silenceOptions.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
755
772
|
vue.createVNode(vue.unref(webVue.RadioGroup), {
|
|
756
773
|
modelValue: form.value.mourn_style,
|
|
757
|
-
"onUpdate:modelValue": _cache[
|
|
774
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => form.value.mourn_style = $event)
|
|
758
775
|
}, {
|
|
759
776
|
default: vue.withCtx(() => [
|
|
760
777
|
vue.createVNode(vue.unref(webVue.Radio), { value: 1 }, {
|
|
761
|
-
default: vue.withCtx(() => _cache[
|
|
778
|
+
default: vue.withCtx(() => _cache[30] || (_cache[30] = [
|
|
762
779
|
vue.createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
763
780
|
])),
|
|
764
781
|
_: 1
|
|
765
782
|
}),
|
|
766
783
|
vue.createVNode(vue.unref(webVue.Radio), { value: 2 }, {
|
|
767
|
-
default: vue.withCtx(() => _cache[
|
|
784
|
+
default: vue.withCtx(() => _cache[31] || (_cache[31] = [
|
|
768
785
|
vue.createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
769
786
|
])),
|
|
770
787
|
_: 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmstops/pro-compo",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.99-shiliuyun",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -47,7 +47,6 @@
|
|
|
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",
|
|
51
50
|
"@popperjs/core": "^2.11.8",
|
|
52
51
|
"colorthief": "^2.4.0",
|
|
53
52
|
"cropperjs": "^1.6.1",
|
|
@@ -135,8 +134,5 @@
|
|
|
135
134
|
"es",
|
|
136
135
|
"lib",
|
|
137
136
|
"dist"
|
|
138
|
-
]
|
|
139
|
-
"dependencies": {
|
|
140
|
-
"@cmstops/utils": "^1.0.6"
|
|
141
|
-
}
|
|
137
|
+
]
|
|
142
138
|
}
|