@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,19 +1,19 @@
1
- .content-common-detail-list-container *::selection {
1
+ .content-detail-list-container *::selection {
2
2
  display: none;
3
3
  }
4
- .content-common-detail-list-container .fix_position {
4
+ .content-detail-list-container .fix_position {
5
5
  position: relative;
6
6
  margin-right: 10px;
7
7
  color: #4886ff;
8
8
  }
9
- .content-common-detail-list-container .fix_position .doc-fixed-num {
9
+ .content-detail-list-container .fix_position .doc-fixed-num {
10
10
  position: absolute;
11
11
  right: -7px;
12
12
  bottom: 0;
13
13
  color: #bababa;
14
14
  font-size: 12px;
15
15
  }
16
- .content-common-detail-list-container .index {
16
+ .content-detail-list-container .index {
17
17
  display: inline-block;
18
18
  flex-shrink: 0;
19
19
  box-sizing: border-box;
@@ -28,14 +28,14 @@
28
28
  background: #edf3ff;
29
29
  border-radius: 3px;
30
30
  }
31
- .content-common-detail-list-container .d_time,
32
- .content-common-detail-list-container .add_new {
31
+ .content-detail-list-container .d_time,
32
+ .content-detail-list-container .add_new {
33
33
  margin: 0;
34
34
  margin-right: 10px;
35
35
  font-size: 14px;
36
36
  vertical-align: middle;
37
37
  }
38
- .content-common-detail-list-container .d_time {
38
+ .content-detail-list-container .d_time {
39
39
  color: #7da8ff;
40
40
  }
41
41
  .medialist-component-item-view {
@@ -157,6 +157,7 @@
157
157
  padding: 2px 0;
158
158
  }
159
159
  .medialist-component-item-view .info-view .title {
160
+ width: calc(100% - 50px);
160
161
  display: flex;
161
162
  align-items: center;
162
163
  margin-bottom: 10px;
@@ -534,12 +535,9 @@
534
535
  .medialist-account-item-view .info-view .abttrite-v .right {
535
536
  margin-right: 20px;
536
537
  }
537
- .media-common-detail-list-container {
538
+ .content-detail-list-container {
538
539
  width: 100%;
539
540
  }
540
- .media-common-detail-list-container .data-ul {
541
- height: 100%;
542
- }
543
541
  .medialist-doc-item-view {
544
542
  display: flex;
545
543
  padding: 10px;
@@ -588,6 +586,7 @@
588
586
  padding: 2px 0;
589
587
  }
590
588
  .medialist-doc-item-view .info-view .title {
589
+ width: calc(100% - 50px);
591
590
  display: flex;
592
591
  align-items: center;
593
592
  margin-bottom: 10px;
@@ -53,7 +53,6 @@ const _sfc_main = defineComponent({
53
53
  };
54
54
  const { userInfo, getUserInfoHandle } = useLoadUserInfo(BASE_API);
55
55
  const HandleOpen = () => {
56
- console.log(props.outsideSelectData);
57
56
  selectedData.value = props.defaultSelectedData || [];
58
57
  };
59
58
  const HandleClose = () => {
@@ -63,6 +63,7 @@ const _sfc_main = defineComponent({
63
63
  }
64
64
  }
65
65
  addDataToSelectedList(record);
66
+ return true;
66
67
  };
67
68
  const addDataToSelectedList = async (record) => {
68
69
  const index = selectedData.value.findIndex((v) => v.id === record.id);
File without changes
@@ -0,0 +1,87 @@
1
+ import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode } from "vue";
2
+ import { Modal, Scrollbar } from "@arco-design/web-vue";
3
+ import { getDocDetailsNew } from "./script/api.js";
4
+ import _sfc_main$1 from "./components/metaInfoForm.js";
5
+ import useDialogVisible from "../hooks/dialogVisible.js";
6
+ import { DEFAULT_BASE_API } from "../config.js";
7
+ const _hoisted_1 = { class: "edit-meta-info-container" };
8
+ const _hoisted_2 = { style: { "padding": "20px" } };
9
+ const _sfc_main = defineComponent({
10
+ ...{ name: "editMetaInfo" },
11
+ __name: "component",
12
+ props: {
13
+ BASE_API: {},
14
+ visible: { type: Boolean },
15
+ hashId: {}
16
+ },
17
+ emits: ["update:visible", "submit"],
18
+ setup(__props, { emit }) {
19
+ const props = __props;
20
+ const metaInfoFormRef = ref();
21
+ const editorDataPubInfo = ref(null);
22
+ const BASE_API = props.BASE_API || DEFAULT_BASE_API;
23
+ const handleOpen = async () => {
24
+ if (props.hashId) {
25
+ const { code, message } = await getDocDetailsNew(BASE_API, {
26
+ hashid: props.hashId
27
+ });
28
+ if (code === 0) {
29
+ editorDataPubInfo.value = {
30
+ id: message.id,
31
+ title: message.title,
32
+ series: message.series,
33
+ ...message.meta
34
+ };
35
+ }
36
+ }
37
+ };
38
+ const { visible, setVisible } = useDialogVisible(props, emit);
39
+ const handleOk = async () => {
40
+ const meta = await metaInfoFormRef.value.getFormData("valid");
41
+ if (meta) {
42
+ const data = { id: editorDataPubInfo.value.id, meta };
43
+ emit("submit", data);
44
+ }
45
+ };
46
+ const handleCancel = () => {
47
+ setVisible(false);
48
+ };
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createElementBlock("div", _hoisted_1, [
51
+ createVNode(unref(Modal), {
52
+ visible: unref(visible),
53
+ width: "800px",
54
+ "mask-closable": false,
55
+ "title-align": "start",
56
+ "body-class": "edit-meta-info-dialog-body",
57
+ "unmount-on-close": "",
58
+ title: "\u7F16\u8F91\u7A3F\u7B7E",
59
+ onOpen: handleOpen,
60
+ onOk: handleOk,
61
+ onCancel: handleCancel
62
+ }, {
63
+ default: withCtx(() => [
64
+ createVNode(unref(Scrollbar), {
65
+ "outer-style": "height: 60vh; overflow: auto",
66
+ style: { "height": "100%", "overflow": "auto" }
67
+ }, {
68
+ default: withCtx(() => [
69
+ createElementVNode("div", _hoisted_2, [
70
+ createVNode(_sfc_main$1, {
71
+ ref_key: "metaInfoFormRef",
72
+ ref: metaInfoFormRef,
73
+ BASE_API: unref(BASE_API),
74
+ "init-data": editorDataPubInfo.value
75
+ }, null, 8, ["BASE_API", "init-data"])
76
+ ])
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]),
81
+ _: 1
82
+ }, 8, ["visible"])
83
+ ]);
84
+ };
85
+ }
86
+ });
87
+ export { _sfc_main as default };
File without changes