@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
@@ -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
- disdragalbe: { type: Boolean },
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 disdragalbeProps = props.disdragalbe || false;
37
+ const dragalbeProps = props.dragalbe || false;
27
38
  const abttritesProps = props.abttrites || [];
28
- const sortMediaFileData = (e) => {
29
- emit("sortChange", e);
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 dragStart = () => {
32
- emit("dragstart");
60
+ const sortChange = (e) => {
61
+ emit("sortChange", e);
33
62
  };
34
- const detail = (e) => {
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.createElementBlock("div", _hoisted_1, [
45
- props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
46
- key: 0,
47
- "media-file-data": _ctx.data,
48
- disdragalbe: vue.unref(disdragalbeProps),
49
- abttrites: vue.unref(abttritesProps),
50
- parmas: vue.unref(parmasProps),
51
- onSortChange: sortMediaFileData,
52
- onDragstart: dragStart,
53
- onClickTitle: detail
54
- }, {
55
- option: vue.withCtx((slotProps) => [
56
- vue.renderSlot(_ctx.$slots, "option", {
57
- row: slotProps.row,
58
- index: slotProps.index
59
- })
60
- ]),
61
- _: 3
62
- }, 8, ["media-file-data", "disdragalbe", "abttrites", "parmas"])) : vue.createCommentVNode("v-if", true),
63
- props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
64
- key: 1,
65
- "get-data": _ctx.data,
66
- abttrites: vue.unref(abttritesProps),
67
- onCellMouseEnter: tableCellMouseEnter,
68
- onCellMouseLeave: tableCellMouseLeave,
69
- onClickTitle: detail
70
- }, {
71
- batch: vue.withCtx((slotProps) => [
72
- vue.renderSlot(_ctx.$slots, "batch", {
73
- row: slotProps.row,
74
- index: slotProps.index
75
- })
76
- ]),
77
- option: vue.withCtx((slotProps) => [
78
- vue.renderSlot(_ctx.$slots, "option", {
79
- row: slotProps.row,
80
- index: slotProps.index
81
- })
82
- ]),
83
- _: 3
84
- }, 8, ["get-data", "abttrites"])) : vue.createCommentVNode("v-if", true)
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
  });