@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.
Files changed (73) hide show
  1. package/dist/index.css +65 -11
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/component.js +142 -51
  4. package/es/contentDetailList/components/Content/index.js +218 -239
  5. package/es/contentDetailList/components/Doc/index.js +24 -35
  6. package/es/contentDetailList/style/Content.less +1 -1
  7. package/es/contentDetailList/style/ContentListItem.less +1 -4
  8. package/es/contentDetailList/style/Doc.less +1 -5
  9. package/es/contentDetailList/style/DocItem.less +1 -0
  10. package/es/contentDetailList/style/index.css +10 -11
  11. package/es/contentModal/component.js +0 -1
  12. package/es/contentModal/components/ViewAllColumn/index.js +1 -0
  13. package/es/editMetaInfo/component.d.ts +0 -0
  14. package/es/editMetaInfo/component.js +87 -0
  15. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  16. package/es/editMetaInfo/components/metaInfoForm.js +621 -0
  17. package/es/editMetaInfo/index.d.ts +2 -0
  18. package/es/editMetaInfo/index.js +7 -0
  19. package/es/editMetaInfo/script/api.d.ts +6 -0
  20. package/es/editMetaInfo/script/api.js +17 -0
  21. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  22. package/es/editMetaInfo/script/restaurants.js +127 -0
  23. package/es/editMetaInfo/style/css.js +1 -0
  24. package/es/editMetaInfo/style/index.css +20 -0
  25. package/es/editMetaInfo/style/index.d.ts +1 -0
  26. package/es/editMetaInfo/style/index.js +1 -0
  27. package/es/editMetaInfo/style/index.less +30 -0
  28. package/es/hooks/dialogVisible.d.ts +8 -0
  29. package/es/hooks/dialogVisible.js +19 -0
  30. package/es/index.css +65 -11
  31. package/es/index.d.ts +1 -0
  32. package/es/index.js +1 -0
  33. package/es/index.less +1 -0
  34. package/es/selectThumb/component.js +3 -1
  35. package/es/selectThumb/components/colorPalette.js +32 -26
  36. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  37. package/es/selectThumb/components/colorPicker.js +54 -0
  38. package/es/selectThumb/style/colorPalette.less +31 -0
  39. package/es/selectThumb/style/index.css +35 -0
  40. package/es/selectThumb/style/index.less +7 -0
  41. package/es/utils/index.d.ts +1 -0
  42. package/es/utils/index.js +16 -1
  43. package/lib/contentDetailList/component.js +145 -50
  44. package/lib/contentDetailList/components/Content/index.js +217 -242
  45. package/lib/contentDetailList/components/Doc/index.js +23 -34
  46. package/lib/contentDetailList/style/Content.less +1 -1
  47. package/lib/contentDetailList/style/ContentListItem.less +1 -4
  48. package/lib/contentDetailList/style/Doc.less +1 -5
  49. package/lib/contentDetailList/style/DocItem.less +1 -0
  50. package/lib/contentDetailList/style/index.css +10 -11
  51. package/lib/contentModal/component.js +0 -1
  52. package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
  53. package/lib/editMetaInfo/component.js +88 -0
  54. package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
  55. package/lib/editMetaInfo/index.js +8 -0
  56. package/lib/editMetaInfo/script/api.js +20 -0
  57. package/lib/editMetaInfo/script/restaurants.js +128 -0
  58. package/lib/editMetaInfo/style/css.js +2 -0
  59. package/lib/editMetaInfo/style/index.css +20 -0
  60. package/lib/editMetaInfo/style/index.js +2 -0
  61. package/lib/editMetaInfo/style/index.less +30 -0
  62. package/lib/hooks/dialogVisible.js +20 -0
  63. package/lib/index.css +65 -11
  64. package/lib/index.js +2 -0
  65. package/lib/index.less +1 -0
  66. package/lib/selectThumb/component.js +3 -1
  67. package/lib/selectThumb/components/colorPalette.js +32 -26
  68. package/lib/selectThumb/components/colorPicker.js +55 -0
  69. package/lib/selectThumb/style/colorPalette.less +31 -0
  70. package/lib/selectThumb/style/index.css +35 -0
  71. package/lib/selectThumb/style/index.less +7 -0
  72. package/lib/utils/index.js +16 -0
  73. package/package.json +1 -1
@@ -0,0 +1,621 @@
1
+ import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, toRaw } from "vue";
2
+ import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, Message } from "@arco-design/web-vue";
3
+ import { docSeries } from "../../utils/doc.js";
4
+ import _sfc_main$1 from "../../selectThumb/component.js";
5
+ import restaurants from "../script/restaurants.js";
6
+ import { getAllDutyEditor } from "../script/api.js";
7
+ import { DEFAULT_BASE_API } from "../../config.js";
8
+ import { validateForm } from "../../utils/index.js";
9
+ const _sfc_main = defineComponent({
10
+ __name: "metaInfoForm",
11
+ props: {
12
+ initData: {},
13
+ BASE_API: {}
14
+ },
15
+ setup(__props, { expose: __expose }) {
16
+ const props = __props;
17
+ const BASE_API = props.BASE_API || DEFAULT_BASE_API;
18
+ const metaInfoFormRef = ref();
19
+ const form = ref({
20
+ title: "",
21
+ style: "",
22
+ sub_title: "",
23
+ head_title: "",
24
+ summary: "",
25
+ brief: "",
26
+ guide: "",
27
+ keywords: [],
28
+ author: "",
29
+ duty_editor: "",
30
+ extra_attrs: [],
31
+ self_publish_time: "",
32
+ line_time: false,
33
+ online_time: "",
34
+ offline_time: "",
35
+ source: "",
36
+ source_url: "",
37
+ statement: false,
38
+ aiRelated: false,
39
+ relation_news: "",
40
+ ori_count: false,
41
+ ori_read_count: 0,
42
+ ori_thumbup_count: 0,
43
+ comment_available: false,
44
+ is_recommend: false,
45
+ album_status: false
46
+ });
47
+ const rules = {
48
+ title: [
49
+ { required: true, message: "\u8BF7\u8F93\u5165\u4E3B\u6807\u9898" },
50
+ { min: 2, max: 100, message: "\u957F\u5EA6\u5728 2 \u5230 100 \u4E2A\u5B57\u7B26" }
51
+ ],
52
+ style: [{ required: true, message: "\u8BF7\u9009\u62E9\u6837\u5F0F" }],
53
+ source: [{ required: true, message: "\u8BF7\u9009\u62E9\u6765\u6E90" }]
54
+ };
55
+ const series = computed(() => {
56
+ var _a;
57
+ return (_a = props.initData) == null ? void 0 : _a.series;
58
+ });
59
+ const showBrief = computed(() => {
60
+ return [
61
+ "video",
62
+ "special",
63
+ "special_v3",
64
+ "video_album",
65
+ "audio_album"
66
+ ].includes(series.value);
67
+ });
68
+ const dutyEditorOptions = ref([]);
69
+ const getAllDutyEditorOption = async () => {
70
+ const { code, message } = await getAllDutyEditor(BASE_API);
71
+ if (code === 0) {
72
+ dutyEditorOptions.value = message.data.map((item) => {
73
+ return {
74
+ value: item.alias,
75
+ label: item.alias
76
+ };
77
+ });
78
+ }
79
+ };
80
+ const lineTimeChange = () => {
81
+ form.value.online_time = "";
82
+ form.value.offline_time = "";
83
+ };
84
+ const docBrief = computed(() => {
85
+ var _a;
86
+ return ((_a = docSeries[series.value]) == null ? void 0 : _a.replace("\u7A3F\u4EF6", "")) || "";
87
+ });
88
+ const isAlbumStatus = computed(() => {
89
+ return ["video_album", "audio_album"].includes(series.value);
90
+ });
91
+ const disabledStartTime = (time) => {
92
+ return time <= Date.now() - 864e5;
93
+ };
94
+ const disabledEndTime = (time) => {
95
+ return time < Date.now() - 864e5;
96
+ };
97
+ const styleValidator = (data) => {
98
+ var _a;
99
+ if (data && data.style) {
100
+ const style = JSON.parse(data.style);
101
+ if (![0, 4].includes(style.model) && !(style.data && style.data.length)) {
102
+ Message.warning("\u9009\u62E9\u65E0\u5C01\u9762\u56FE\u6A21\u5F0F\u65F6\uFF0C\u9700\u8981\u9009\u62E9\u5C01\u9762\u56FE");
103
+ return false;
104
+ }
105
+ if (style.model === 1 && !(style.data && style.data.length === 3)) {
106
+ Message.warning("\u9009\u62E9\u4E09\u56FE\u5C01\u9762\u6A21\u5F0F\u65F6\uFF0C\u9700\u8981\u5C06\u5C01\u9762\u6570\u91CF\u8865\u5145\u5B8C\u6574");
107
+ return false;
108
+ }
109
+ if (style.banner && !style.banner_url) {
110
+ Message.warning("\u5F00\u542F\u72EC\u7ACB\u8F6E\u64AD\u56FE\u6A21\u5F0F\u65F6\uFF0C\u9700\u8981\u9009\u62E9\u8F6E\u64AD\u56FE");
111
+ return false;
112
+ }
113
+ if (["video_album", "audio_album", "special", "special_v3"].includes(
114
+ series.value
115
+ ) && !style.pc_banner_url) {
116
+ const title = ((_a = docSeries[series.value]) == null ? void 0 : _a.replace("\u7A3F\u4EF6", "")) || "";
117
+ Message.warning(`\u8BF7\u4E0A\u4F20${title}\u5C01\u9762\u5934\u56FE`);
118
+ return false;
119
+ }
120
+ }
121
+ return true;
122
+ };
123
+ const getFormData = async (_valid = false) => {
124
+ if (_valid) {
125
+ const passRule = await validateForm(metaInfoFormRef);
126
+ if (!passRule) {
127
+ Message.warning("\u8BF7\u68C0\u67E5\u53D1\u5E03\u8BBE\u7F6E\u4FE1\u606F\u5FC5\u586B\u5B57\u6BB5\u662F\u5426\u9057\u6F0F");
128
+ return false;
129
+ }
130
+ }
131
+ const data = toRaw(form.value);
132
+ data.self_publish_time = data.self_publish_time && Math.floor(data.self_publish_time / 1e3);
133
+ data.online_time = data.online_time && Math.floor(data.online_time / 1e3);
134
+ data.offline_time = data.offline_time && Math.floor(data.offline_time / 1e3);
135
+ data.keywords = data.keywords && data.keywords.join(",");
136
+ data.author = data.author && data.author.join(",");
137
+ data.duty_editor = data.duty_editor && data.duty_editor.join(",");
138
+ data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
139
+ data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
140
+ data.comment_available = data.comment_available ? "true" : "false";
141
+ data.statement = data.statement ? "true" : "false";
142
+ data.is_recommend = data.is_recommend ? "true" : "false";
143
+ data.album_status = data.album_status ? 1 : 0;
144
+ delete data.line_time;
145
+ delete data.ori_count;
146
+ delete data.aiRelated;
147
+ Object.keys(data).map((key) => {
148
+ if (typeof data[key] !== "string") {
149
+ data[key] += "";
150
+ }
151
+ if (data[key] === "NaN") {
152
+ data[key] = "";
153
+ }
154
+ return key;
155
+ });
156
+ if (!styleValidator(data))
157
+ return false;
158
+ return data;
159
+ };
160
+ const loadData = () => {
161
+ const data = { ...props.initData };
162
+ data.self_publish_time = data.self_publish_time && parseInt(data.self_publish_time, 10) * 1e3 || "";
163
+ data.online_time = data.online_time && parseInt(data.online_time, 10) * 1e3 || "";
164
+ data.offline_time = data.offline_time && parseInt(data.offline_time, 10) * 1e3 || "";
165
+ data.keywords = data.keywords && data.keywords.split(",");
166
+ data.author = data.author && data.author.split(",");
167
+ data.duty_editor = data.duty_editor && data.duty_editor.split(",") || "";
168
+ data.extra_attrs = data.extra_attrs && data.extra_attrs.split(",") || "";
169
+ data.relation_news = data.relation_news && JSON.parse(data.relation_news) || [];
170
+ data.line_time = !!(data.online_time || data.offline_time);
171
+ data.ori_read_count = Number(data.ori_read_count);
172
+ data.ori_thumbup_count = Number(data.ori_thumbup_count);
173
+ data.ori_count = !!(data.ori_read_count || data.ori_thumbup_count);
174
+ data.comment_available = data.comment_available !== "false";
175
+ data.statement = data.statement !== "false";
176
+ data.is_recommend = data.is_recommend !== "false";
177
+ data.album_status = data.album_status !== "0";
178
+ Object.assign(form.value, data);
179
+ };
180
+ watch(
181
+ () => props.initData,
182
+ () => {
183
+ if (props.initData) {
184
+ loadData();
185
+ }
186
+ },
187
+ { immediate: true }
188
+ );
189
+ onMounted(() => {
190
+ getAllDutyEditorOption();
191
+ });
192
+ __expose({
193
+ getFormData
194
+ });
195
+ return (_ctx, _cache) => {
196
+ return openBlock(), createBlock(unref(Form), {
197
+ ref_key: "metaInfoFormRef",
198
+ ref: metaInfoFormRef,
199
+ rules,
200
+ class: "meta-info-form",
201
+ model: form.value
202
+ }, {
203
+ default: withCtx(() => [
204
+ createVNode(unref(FormItem), {
205
+ key: "title",
206
+ field: "title",
207
+ label: "\u4E3B\u6807\u9898"
208
+ }, {
209
+ default: withCtx(() => [
210
+ createVNode(unref(Input), {
211
+ modelValue: form.value.title,
212
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.title = $event),
213
+ class: "input-w",
214
+ placeholder: "\u4E3B\u6807\u9898",
215
+ "max-length": "100",
216
+ "allow-clear": ""
217
+ }, null, 8, ["modelValue"])
218
+ ]),
219
+ _: 1
220
+ }),
221
+ withDirectives(createVNode(unref(FormItem), {
222
+ key: "brief",
223
+ field: "brief",
224
+ label: `${docBrief.value}\u63CF\u8FF0`
225
+ }, {
226
+ default: withCtx(() => [
227
+ createVNode(unref(Input), {
228
+ modelValue: form.value.brief,
229
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.brief = $event),
230
+ class: "input-w",
231
+ placeholder: `\u586B\u5199${docBrief.value}\u63CF\u8FF0`,
232
+ "max-length": "300",
233
+ "allow-clear": ""
234
+ }, null, 8, ["modelValue", "placeholder"])
235
+ ]),
236
+ _: 1
237
+ }, 8, ["label"]), [
238
+ [vShow, showBrief.value]
239
+ ]),
240
+ createVNode(unref(FormItem), {
241
+ key: "style",
242
+ field: "style",
243
+ "hide-label": "",
244
+ "content-class": "style-form-item"
245
+ }, {
246
+ default: withCtx(() => [
247
+ createVNode(_sfc_main$1, {
248
+ dataValue: form.value.style,
249
+ "onUpdate:dataValue": _cache[2] || (_cache[2] = ($event) => form.value.style = $event),
250
+ series: series.value,
251
+ class: "select-thumb-wrap",
252
+ mode: "doc"
253
+ }, null, 8, ["dataValue", "series"])
254
+ ]),
255
+ _: 1
256
+ }),
257
+ createVNode(unref(FormItem), {
258
+ key: "sub_title",
259
+ field: "sub_title",
260
+ label: "\u526F\u6807\u9898"
261
+ }, {
262
+ default: withCtx(() => [
263
+ createVNode(unref(Input), {
264
+ modelValue: form.value.sub_title,
265
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.value.sub_title = $event),
266
+ class: "input-w",
267
+ placeholder: "\u586B\u5199\u526F\u6807\u9898",
268
+ "allow-clear": ""
269
+ }, null, 8, ["modelValue"])
270
+ ]),
271
+ _: 1
272
+ }),
273
+ createVNode(unref(FormItem), {
274
+ key: "head_title",
275
+ field: "head_title",
276
+ label: "\u5F15\u6807\u9898"
277
+ }, {
278
+ default: withCtx(() => [
279
+ createVNode(unref(Input), {
280
+ modelValue: form.value.head_title,
281
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.head_title = $event),
282
+ class: "input-w",
283
+ placeholder: "\u586B\u5199\u5F15\u6807\u9898",
284
+ "allow-clear": ""
285
+ }, null, 8, ["modelValue"])
286
+ ]),
287
+ _: 1
288
+ }),
289
+ createVNode(unref(FormItem), {
290
+ key: "summary",
291
+ field: "summary",
292
+ label: "\u6458\u8981"
293
+ }, {
294
+ default: withCtx(() => [
295
+ createVNode(unref(Input), {
296
+ modelValue: form.value.summary,
297
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.summary = $event),
298
+ class: "input-w",
299
+ placeholder: "\u586B\u5199\u6458\u8981",
300
+ "allow-clear": ""
301
+ }, null, 8, ["modelValue"])
302
+ ]),
303
+ _: 1
304
+ }),
305
+ createVNode(unref(FormItem), {
306
+ key: "guide",
307
+ field: "guide",
308
+ label: "\u5BFC\u8BFB"
309
+ }, {
310
+ default: withCtx(() => [
311
+ createVNode(unref(Input), {
312
+ modelValue: form.value.guide,
313
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.value.guide = $event),
314
+ class: "input-w",
315
+ placeholder: "\u586B\u5199\u5BFC\u8BFB",
316
+ "allow-clear": ""
317
+ }, null, 8, ["modelValue"])
318
+ ]),
319
+ _: 1
320
+ }),
321
+ createVNode(unref(FormItem), {
322
+ key: "keywords",
323
+ field: "keywords",
324
+ label: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
325
+ }, {
326
+ default: withCtx(() => [
327
+ createVNode(unref(InputTag), {
328
+ modelValue: form.value.keywords,
329
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.value.keywords = $event),
330
+ class: "input-w",
331
+ placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD",
332
+ "allow-clear": ""
333
+ }, null, 8, ["modelValue"])
334
+ ]),
335
+ _: 1
336
+ }),
337
+ createVNode(unref(FormItem), {
338
+ key: "source",
339
+ field: "source",
340
+ label: "\u6765\u6E90\u540D\u79F0"
341
+ }, {
342
+ default: withCtx(() => [
343
+ createVNode(unref(Select), {
344
+ modelValue: form.value.source,
345
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.value.source = $event),
346
+ class: "input-w",
347
+ placeholder: "\u8BF7\u9009\u62E9"
348
+ }, {
349
+ default: withCtx(() => [
350
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(restaurants), (item) => {
351
+ return openBlock(), createBlock(unref(Option), {
352
+ key: item.value,
353
+ value: item.value,
354
+ label: item.value
355
+ }, null, 8, ["value", "label"]);
356
+ }), 128))
357
+ ]),
358
+ _: 1
359
+ }, 8, ["modelValue"])
360
+ ]),
361
+ _: 1
362
+ }),
363
+ createVNode(unref(FormItem), {
364
+ key: "source_url",
365
+ field: "source_url",
366
+ label: "\u6765\u6E90URL"
367
+ }, {
368
+ default: withCtx(() => [
369
+ createVNode(unref(Input), {
370
+ modelValue: form.value.source_url,
371
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.value.source_url = $event),
372
+ class: "input-w",
373
+ placeholder: "\u586B\u5199\u6765\u6E90URL",
374
+ "allow-clear": ""
375
+ }, null, 8, ["modelValue"])
376
+ ]),
377
+ _: 1
378
+ }),
379
+ createVNode(unref(FormItem), {
380
+ key: "author",
381
+ field: "author",
382
+ label: "\u4F5C\u8005"
383
+ }, {
384
+ default: withCtx(() => [
385
+ createVNode(unref(Input), {
386
+ modelValue: form.value.author,
387
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.author = $event),
388
+ class: "input-w",
389
+ placeholder: "\u586B\u5199\u4F5C\u8005",
390
+ "allow-clear": ""
391
+ }, null, 8, ["modelValue"])
392
+ ]),
393
+ _: 1
394
+ }),
395
+ createVNode(unref(FormItem), {
396
+ key: "duty_editor",
397
+ field: "duty_editor",
398
+ label: "\u7F16\u8F91"
399
+ }, {
400
+ default: withCtx(() => [
401
+ createVNode(unref(Select), {
402
+ modelValue: form.value.duty_editor,
403
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.duty_editor = $event),
404
+ multiple: "",
405
+ class: "input-w",
406
+ placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
407
+ }, {
408
+ default: withCtx(() => [
409
+ (openBlock(true), createElementBlock(Fragment, null, renderList(dutyEditorOptions.value, (item) => {
410
+ return openBlock(), createBlock(unref(Option), {
411
+ key: item.value,
412
+ value: item.value,
413
+ label: item.label
414
+ }, null, 8, ["value", "label"]);
415
+ }), 128))
416
+ ]),
417
+ _: 1
418
+ }, 8, ["modelValue"])
419
+ ]),
420
+ _: 1
421
+ }),
422
+ createVNode(unref(FormItem), {
423
+ key: "extra_attrs",
424
+ field: "extra_attrs",
425
+ label: "\u81EA\u5B9A\u4E49\u5C5E\u6027"
426
+ }, {
427
+ default: withCtx(() => [
428
+ createVNode(unref(InputTag), {
429
+ modelValue: form.value.extra_attrs,
430
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.extra_attrs = $event),
431
+ class: "input-w",
432
+ placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027",
433
+ "allow-clear": ""
434
+ }, null, 8, ["modelValue"])
435
+ ]),
436
+ _: 1
437
+ }),
438
+ createVNode(unref(FormItem), {
439
+ key: "self_publish_time",
440
+ class: "horizontal",
441
+ field: "self_publish_time",
442
+ label: "\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4"
443
+ }, {
444
+ default: withCtx(() => [
445
+ createVNode(unref(DatePicker), {
446
+ modelValue: form.value.self_publish_time,
447
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.self_publish_time = $event),
448
+ "show-time": "",
449
+ placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
450
+ "time-picker-props": { defaultValue: "12:00:00" },
451
+ "value-format": "timestamp"
452
+ }, null, 8, ["modelValue"])
453
+ ]),
454
+ _: 1
455
+ }),
456
+ createVNode(unref(FormItem), {
457
+ key: "line_time",
458
+ class: "horizontal",
459
+ field: "line_time",
460
+ label: "\u5B9A\u65F6\u4E0A\u4E0B\u7EBF"
461
+ }, {
462
+ default: withCtx(() => [
463
+ createVNode(unref(Switch), {
464
+ modelValue: form.value.line_time,
465
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.value.line_time = $event),
466
+ onChange: lineTimeChange
467
+ }, null, 8, ["modelValue"])
468
+ ]),
469
+ _: 1
470
+ }),
471
+ createVNode(unref(FormItem), {
472
+ key: "online_time",
473
+ class: "horizontal",
474
+ field: "online_time",
475
+ label: "\u4E0A\u7EBF\u65F6\u95F4"
476
+ }, {
477
+ default: withCtx(() => [
478
+ createVNode(unref(DatePicker), {
479
+ modelValue: form.value.online_time,
480
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.online_time = $event),
481
+ "show-time": "",
482
+ placeholder: "\u9009\u62E9\u4E0A\u7EBF\u65F6\u95F4",
483
+ "time-picker-props": { defaultValue: "12:00:00" },
484
+ "value-format": "timestamp",
485
+ "disabled-date": disabledStartTime
486
+ }, null, 8, ["modelValue"])
487
+ ]),
488
+ _: 1
489
+ }),
490
+ createVNode(unref(FormItem), {
491
+ key: "offline_time",
492
+ class: "horizontal",
493
+ field: "offline_time",
494
+ label: "\u4E0B\u7EBF\u65F6\u95F4"
495
+ }, {
496
+ default: withCtx(() => [
497
+ createVNode(unref(DatePicker), {
498
+ modelValue: form.value.offline_time,
499
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.offline_time = $event),
500
+ "show-time": "",
501
+ placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
502
+ "time-picker-props": { defaultValue: "12:00:00" },
503
+ "value-format": "timestamp",
504
+ "disabled-date": disabledEndTime
505
+ }, null, 8, ["modelValue"])
506
+ ]),
507
+ _: 1
508
+ }),
509
+ createVNode(unref(FormItem), {
510
+ key: "statement",
511
+ class: "horizontal",
512
+ field: "statement",
513
+ label: "\u539F\u521B\u58F0\u660E"
514
+ }, {
515
+ default: withCtx(() => [
516
+ createVNode(unref(Switch), {
517
+ modelValue: form.value.statement,
518
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.value.statement = $event)
519
+ }, null, 8, ["modelValue"])
520
+ ]),
521
+ _: 1
522
+ }),
523
+ createVNode(unref(FormItem), {
524
+ key: "ori_count",
525
+ class: "horizontal",
526
+ field: "ori_count",
527
+ label: "\u4E92\u52A8\u6570\u636E"
528
+ }, {
529
+ default: withCtx(() => [
530
+ createVNode(unref(Switch), {
531
+ modelValue: form.value.ori_count,
532
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.ori_count = $event)
533
+ }, null, 8, ["modelValue"])
534
+ ]),
535
+ _: 1
536
+ }),
537
+ withDirectives(createVNode(unref(FormItem), {
538
+ key: "ori_read_count",
539
+ class: "horizontal",
540
+ field: "ori_read_count",
541
+ label: "\u521D\u59CB\u9605\u8BFB\u91CF"
542
+ }, {
543
+ default: withCtx(() => [
544
+ createVNode(unref(InputNumber), {
545
+ modelValue: form.value.ori_read_count,
546
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => form.value.ori_read_count = $event),
547
+ style: { width: "240px" }
548
+ }, null, 8, ["modelValue"])
549
+ ]),
550
+ _: 1
551
+ }, 512), [
552
+ [vShow, form.value.ori_count]
553
+ ]),
554
+ withDirectives(createVNode(unref(FormItem), {
555
+ key: "ori_thumbup_count",
556
+ class: "horizontal",
557
+ field: "ori_thumbup_count",
558
+ label: "\u521D\u59CB\u70B9\u8D5E\u91CF"
559
+ }, {
560
+ default: withCtx(() => [
561
+ createVNode(unref(InputNumber), {
562
+ modelValue: form.value.ori_thumbup_count,
563
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => form.value.ori_thumbup_count = $event),
564
+ style: { width: "240px" }
565
+ }, null, 8, ["modelValue"])
566
+ ]),
567
+ _: 1
568
+ }, 512), [
569
+ [vShow, form.value.ori_count]
570
+ ]),
571
+ createVNode(unref(FormItem), {
572
+ key: "comment_available",
573
+ class: "horizontal",
574
+ field: "comment_available",
575
+ label: "\u5F00\u542F\u8BC4\u8BBA"
576
+ }, {
577
+ default: withCtx(() => [
578
+ createVNode(unref(Switch), {
579
+ modelValue: form.value.comment_available,
580
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => form.value.comment_available = $event)
581
+ }, null, 8, ["modelValue"])
582
+ ]),
583
+ _: 1
584
+ }),
585
+ createVNode(unref(FormItem), {
586
+ key: "is_recommend",
587
+ class: "horizontal",
588
+ field: "is_recommend",
589
+ label: "\u662F\u5426\u63A8\u8350"
590
+ }, {
591
+ default: withCtx(() => [
592
+ createVNode(unref(Switch), {
593
+ modelValue: form.value.is_recommend,
594
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => form.value.is_recommend = $event)
595
+ }, null, 8, ["modelValue"])
596
+ ]),
597
+ _: 1
598
+ }),
599
+ withDirectives(createVNode(unref(FormItem), {
600
+ key: "album_status",
601
+ class: "horizontal",
602
+ field: "album_status",
603
+ label: "\u662F\u5426\u5B8C\u7ED3"
604
+ }, {
605
+ default: withCtx(() => [
606
+ createVNode(unref(Switch), {
607
+ modelValue: form.value.album_status,
608
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => form.value.album_status = $event)
609
+ }, null, 8, ["modelValue"])
610
+ ]),
611
+ _: 1
612
+ }, 512), [
613
+ [vShow, isAlbumStatus.value]
614
+ ])
615
+ ]),
616
+ _: 1
617
+ }, 8, ["model"]);
618
+ };
619
+ }
620
+ });
621
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const editMetaInfo: any;
2
+ export default editMetaInfo;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const editMetaInfo = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { editMetaInfo as default };
@@ -0,0 +1,6 @@
1
+ interface Params {
2
+ [key: string]: any;
3
+ }
4
+ export declare function getDocDetailsNew(BASE_API: string, query: Params): import("axios").AxiosPromise<any>;
5
+ export declare function getAllDutyEditor(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
6
+ export {};
@@ -0,0 +1,17 @@
1
+ import request from "../../utils/request.js";
2
+ function getDocDetailsNew(BASE_API, query) {
3
+ const url = `/poplar/v3/document/${query.hashid}`;
4
+ const params = {};
5
+ return request(BASE_API, {
6
+ url,
7
+ method: "get",
8
+ params
9
+ });
10
+ }
11
+ function getAllDutyEditor(BASE_API, params) {
12
+ return request(BASE_API, {
13
+ url: `poplar/v2/account/aliases/duty`,
14
+ method: "get"
15
+ });
16
+ }
17
+ export { getAllDutyEditor, getDocDetailsNew };
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ value: string;
3
+ }[];
4
+ export default _default;