@cmstops/pro-compo 0.1.19 → 0.1.21
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.
- package/dist/index.css +65 -11
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +142 -51
- package/es/contentDetailList/components/Content/index.js +218 -239
- package/es/contentDetailList/components/Doc/index.js +24 -35
- package/es/contentDetailList/style/Content.less +1 -1
- package/es/contentDetailList/style/ContentListItem.less +1 -4
- package/es/contentDetailList/style/Doc.less +1 -5
- package/es/contentDetailList/style/DocItem.less +1 -0
- package/es/contentDetailList/style/index.css +10 -11
- package/es/contentModal/component.js +0 -1
- package/es/contentModal/components/ViewAllColumn/index.js +1 -0
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/component.js +87 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.js +621 -0
- package/es/editMetaInfo/index.d.ts +2 -0
- package/es/editMetaInfo/index.js +7 -0
- package/es/editMetaInfo/script/api.d.ts +6 -0
- package/es/editMetaInfo/script/api.js +17 -0
- package/es/editMetaInfo/script/restaurants.d.ts +4 -0
- package/es/editMetaInfo/script/restaurants.js +127 -0
- package/es/editMetaInfo/style/css.js +1 -0
- package/es/editMetaInfo/style/index.css +20 -0
- package/es/editMetaInfo/style/index.d.ts +1 -0
- package/es/editMetaInfo/style/index.js +1 -0
- package/es/editMetaInfo/style/index.less +30 -0
- package/es/hooks/dialogVisible.d.ts +8 -0
- package/es/hooks/dialogVisible.js +19 -0
- package/es/index.css +65 -11
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +1 -0
- package/es/selectThumb/component.js +3 -1
- package/es/selectThumb/components/colorPalette.js +32 -26
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.js +54 -0
- package/es/selectThumb/style/colorPalette.less +31 -0
- package/es/selectThumb/style/index.css +35 -0
- package/es/selectThumb/style/index.less +7 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +16 -1
- package/lib/contentDetailList/component.js +145 -50
- package/lib/contentDetailList/components/Content/index.js +217 -242
- package/lib/contentDetailList/components/Doc/index.js +23 -34
- package/lib/contentDetailList/style/Content.less +1 -1
- package/lib/contentDetailList/style/ContentListItem.less +1 -4
- package/lib/contentDetailList/style/Doc.less +1 -5
- package/lib/contentDetailList/style/DocItem.less +1 -0
- package/lib/contentDetailList/style/index.css +10 -11
- package/lib/contentModal/component.js +0 -1
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
- package/lib/editMetaInfo/component.js +88 -0
- package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
- package/lib/editMetaInfo/index.js +8 -0
- package/lib/editMetaInfo/script/api.js +20 -0
- package/lib/editMetaInfo/script/restaurants.js +128 -0
- package/lib/editMetaInfo/style/css.js +2 -0
- package/lib/editMetaInfo/style/index.css +20 -0
- package/lib/editMetaInfo/style/index.js +2 -0
- package/lib/editMetaInfo/style/index.less +30 -0
- package/lib/hooks/dialogVisible.js +20 -0
- package/lib/index.css +65 -11
- package/lib/index.js +2 -0
- package/lib/index.less +1 -0
- package/lib/selectThumb/component.js +3 -1
- package/lib/selectThumb/components/colorPalette.js +32 -26
- package/lib/selectThumb/components/colorPicker.js +55 -0
- package/lib/selectThumb/style/colorPalette.less +31 -0
- package/lib/selectThumb/style/index.css +35 -0
- package/lib/selectThumb/style/index.less +7 -0
- package/lib/utils/index.js +16 -0
- package/package.json +1 -1
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var draggable = require("vuedraggable");
|
|
3
5
|
var index = require("./components/Content/index.js");
|
|
4
6
|
var index$1 = require("./components/Doc/index.js");
|
|
7
|
+
function _interopDefaultLegacy(e) {
|
|
8
|
+
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
9
|
+
}
|
|
10
|
+
var draggable__default = /* @__PURE__ */ _interopDefaultLegacy(draggable);
|
|
5
11
|
const _hoisted_1 = { class: "content-detail-list-container" };
|
|
12
|
+
const _hoisted_2 = { class: "drag-item" };
|
|
6
13
|
const _sfc_main = vue.defineComponent({
|
|
7
14
|
...{ name: "contentDetailList" },
|
|
8
15
|
__name: "component",
|
|
9
16
|
props: {
|
|
17
|
+
height: {},
|
|
10
18
|
type: {},
|
|
11
19
|
data: {},
|
|
12
20
|
parmas: {},
|
|
13
|
-
|
|
21
|
+
dragalbe: { type: Boolean },
|
|
14
22
|
abttrites: {}
|
|
15
23
|
},
|
|
16
24
|
emits: [
|
|
@@ -18,20 +26,41 @@ const _sfc_main = vue.defineComponent({
|
|
|
18
26
|
"dragstart",
|
|
19
27
|
"clickTitle",
|
|
20
28
|
"cellMouseEnter",
|
|
21
|
-
"cellMouseLeave"
|
|
29
|
+
"cellMouseLeave",
|
|
30
|
+
"update:data",
|
|
31
|
+
"scroll",
|
|
32
|
+
"scrollReachEnd"
|
|
22
33
|
],
|
|
23
34
|
setup(__props, { emit }) {
|
|
24
35
|
const props = __props;
|
|
25
36
|
const parmasProps = props.parmas || {};
|
|
26
|
-
const
|
|
37
|
+
const dragalbeProps = props.dragalbe || false;
|
|
27
38
|
const abttritesProps = props.abttrites || [];
|
|
28
|
-
const
|
|
29
|
-
|
|
39
|
+
const outerStyle = vue.computed(() => {
|
|
40
|
+
return {
|
|
41
|
+
height: props.height || "100%",
|
|
42
|
+
overflow: "auto"
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
const dataList = vue.computed({
|
|
46
|
+
get() {
|
|
47
|
+
return props.data;
|
|
48
|
+
},
|
|
49
|
+
set(value) {
|
|
50
|
+
emit("update:data", value);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const handleScroll = (e) => {
|
|
54
|
+
emit("scroll", e);
|
|
55
|
+
const { target } = e;
|
|
56
|
+
if (target.scrollHeight - target.scrollTop === target.clientHeight) {
|
|
57
|
+
emit("scrollReachEnd");
|
|
58
|
+
}
|
|
30
59
|
};
|
|
31
|
-
const
|
|
32
|
-
emit("
|
|
60
|
+
const sortChange = (e) => {
|
|
61
|
+
emit("sortChange", e);
|
|
33
62
|
};
|
|
34
|
-
const
|
|
63
|
+
const clickTitle = (e) => {
|
|
35
64
|
emit("clickTitle", e);
|
|
36
65
|
};
|
|
37
66
|
const tableCellMouseEnter = (e) => {
|
|
@@ -41,48 +70,114 @@ const _sfc_main = vue.defineComponent({
|
|
|
41
70
|
emit("cellMouseLeave", e);
|
|
42
71
|
};
|
|
43
72
|
return (_ctx, _cache) => {
|
|
44
|
-
return vue.openBlock(), vue.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Scrollbar), {
|
|
74
|
+
class: "mobile-content-list-scrollbar",
|
|
75
|
+
"outer-style": outerStyle.value,
|
|
76
|
+
style: { "height": "100%", "overflow": "auto" },
|
|
77
|
+
onScroll: handleScroll
|
|
78
|
+
}, {
|
|
79
|
+
default: vue.withCtx(() => [
|
|
80
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
81
|
+
vue.unref(dragalbeProps) ? (vue.openBlock(), vue.createBlock(vue.unref(draggable__default["default"]), {
|
|
82
|
+
key: 0,
|
|
83
|
+
modelValue: dataList.value,
|
|
84
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dataList.value = $event),
|
|
85
|
+
animation: 150,
|
|
86
|
+
sort: vue.unref(dragalbeProps),
|
|
87
|
+
onChange: sortChange,
|
|
88
|
+
onStart: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("dragstart"))
|
|
89
|
+
}, {
|
|
90
|
+
item: vue.withCtx(({ element, index: index$2 }) => [
|
|
91
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
92
|
+
props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
|
|
93
|
+
key: index$2,
|
|
94
|
+
item: element,
|
|
95
|
+
index: index$2,
|
|
96
|
+
parmas: vue.unref(parmasProps),
|
|
97
|
+
abttrites: vue.unref(abttritesProps),
|
|
98
|
+
onClickTitle: clickTitle
|
|
99
|
+
}, {
|
|
100
|
+
option: vue.withCtx(() => [
|
|
101
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
102
|
+
row: element,
|
|
103
|
+
index: index$2
|
|
104
|
+
})
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
}, 1032, ["item", "index", "parmas", "abttrites"])) : vue.createCommentVNode("v-if", true),
|
|
108
|
+
props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
|
|
109
|
+
key: index$2,
|
|
110
|
+
item: element,
|
|
111
|
+
index: index$2,
|
|
112
|
+
abttrites: vue.unref(abttritesProps),
|
|
113
|
+
onClickTitle: clickTitle,
|
|
114
|
+
onCellMouseEnter: tableCellMouseEnter,
|
|
115
|
+
onCellMouseLeave: tableCellMouseLeave
|
|
116
|
+
}, {
|
|
117
|
+
batch: vue.withCtx(() => [
|
|
118
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
119
|
+
row: element,
|
|
120
|
+
index: index$2
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
option: vue.withCtx(() => [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
125
|
+
row: element,
|
|
126
|
+
index: index$2
|
|
127
|
+
})
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["item", "index", "abttrites"])) : vue.createCommentVNode("v-if", true)
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 8, ["modelValue", "sort"])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(dataList.value, (item, index$2) => {
|
|
135
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index$2 }, [
|
|
136
|
+
props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
|
|
137
|
+
key: index$2,
|
|
138
|
+
item,
|
|
139
|
+
index: index$2,
|
|
140
|
+
parmas: vue.unref(parmasProps),
|
|
141
|
+
abttrites: vue.unref(abttritesProps),
|
|
142
|
+
onClickTitle: clickTitle
|
|
143
|
+
}, {
|
|
144
|
+
option: vue.withCtx(() => [
|
|
145
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
146
|
+
row: item,
|
|
147
|
+
index: index$2
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, 1032, ["item", "index", "parmas", "abttrites"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
|
|
153
|
+
key: index$2,
|
|
154
|
+
item,
|
|
155
|
+
index: index$2,
|
|
156
|
+
abttrites: vue.unref(abttritesProps),
|
|
157
|
+
onClickTitle: clickTitle,
|
|
158
|
+
onCellMouseEnter: tableCellMouseEnter,
|
|
159
|
+
onCellMouseLeave: tableCellMouseLeave
|
|
160
|
+
}, {
|
|
161
|
+
batch: vue.withCtx(() => [
|
|
162
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
163
|
+
row: item,
|
|
164
|
+
index: index$2
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
option: vue.withCtx(() => [
|
|
168
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
169
|
+
row: item,
|
|
170
|
+
index: index$2
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["item", "index", "abttrites"])) : vue.createCommentVNode("v-if", true)
|
|
175
|
+
], 64);
|
|
176
|
+
}), 128))
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, ["outer-style"]);
|
|
86
181
|
};
|
|
87
182
|
}
|
|
88
183
|
});
|