@cmstops/pro-compo 0.1.20 → 0.1.22

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 (103) hide show
  1. package/dist/index.css +182 -3
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +187 -0
  4. package/es/baseFilter/index.d.ts +2 -0
  5. package/es/baseFilter/index.js +7 -0
  6. package/es/baseFilter/style/css.js +1 -0
  7. package/es/baseFilter/style/index.css +9 -0
  8. package/es/baseFilter/style/index.d.ts +1 -0
  9. package/es/baseFilter/style/index.js +1 -0
  10. package/es/baseFilter/style/index.less +10 -0
  11. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  12. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  13. package/es/contentDetailList/components/Content/DocMpItem/index.js +117 -0
  14. package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  15. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  16. package/es/contentDetailList/components/Content/index.js +43 -0
  17. package/es/contentDetailList/components/DocTags/index.d.ts +0 -0
  18. package/es/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  19. package/es/contentDetailList/style/ComoItem.less +1 -1
  20. package/es/contentDetailList/style/DocItem.less +1 -1
  21. package/es/contentDetailList/style/DocMpItem.less +136 -0
  22. package/es/contentDetailList/style/LiveItem.less +1 -1
  23. package/es/contentDetailList/style/index.css +118 -3
  24. package/es/contentDetailList/style/index.less +1 -0
  25. package/es/contentModal/component.js +0 -1
  26. package/es/contentModal/components/ViewAllColumn/index.js +1 -0
  27. package/es/editMetaInfo/component.d.ts +0 -0
  28. package/es/editMetaInfo/component.js +87 -0
  29. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  30. package/es/editMetaInfo/components/metaInfoForm.js +621 -0
  31. package/es/editMetaInfo/index.d.ts +2 -0
  32. package/es/editMetaInfo/index.js +7 -0
  33. package/es/editMetaInfo/script/api.d.ts +6 -0
  34. package/es/editMetaInfo/script/api.js +17 -0
  35. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  36. package/es/editMetaInfo/script/restaurants.js +127 -0
  37. package/es/editMetaInfo/style/css.js +1 -0
  38. package/es/editMetaInfo/style/index.css +20 -0
  39. package/es/editMetaInfo/style/index.d.ts +1 -0
  40. package/es/editMetaInfo/style/index.js +1 -0
  41. package/es/editMetaInfo/style/index.less +30 -0
  42. package/es/hooks/dialogVisible.d.ts +8 -0
  43. package/es/hooks/dialogVisible.js +19 -0
  44. package/es/index.css +182 -3
  45. package/es/index.d.ts +2 -0
  46. package/es/index.js +2 -0
  47. package/es/index.less +2 -0
  48. package/es/selectThumb/component.js +3 -1
  49. package/es/selectThumb/components/colorPalette.js +32 -26
  50. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  51. package/es/selectThumb/components/colorPicker.js +54 -0
  52. package/es/selectThumb/style/colorPalette.less +31 -0
  53. package/es/selectThumb/style/index.css +35 -0
  54. package/es/selectThumb/style/index.less +7 -0
  55. package/es/typeIcons/component.js +5 -2
  56. package/es/utils/index.d.ts +1 -0
  57. package/es/utils/index.js +16 -1
  58. package/es/utils/typeMap.d.ts +17 -13
  59. package/es/utils/typeMap.js +18 -2
  60. package/lib/baseFilter/component.js +188 -0
  61. package/lib/baseFilter/index.js +8 -0
  62. package/lib/baseFilter/style/css.js +2 -0
  63. package/lib/baseFilter/style/index.css +9 -0
  64. package/lib/baseFilter/style/index.js +2 -0
  65. package/lib/baseFilter/style/index.less +10 -0
  66. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
  67. package/lib/contentDetailList/components/Content/DocMpItem/index.js +118 -0
  68. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  69. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  70. package/lib/contentDetailList/components/Content/index.js +43 -0
  71. package/lib/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  72. package/lib/contentDetailList/style/ComoItem.less +1 -1
  73. package/lib/contentDetailList/style/DocItem.less +1 -1
  74. package/lib/contentDetailList/style/DocMpItem.less +136 -0
  75. package/lib/contentDetailList/style/LiveItem.less +1 -1
  76. package/lib/contentDetailList/style/index.css +118 -3
  77. package/lib/contentDetailList/style/index.less +1 -0
  78. package/lib/contentModal/component.js +0 -1
  79. package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
  80. package/lib/editMetaInfo/component.js +88 -0
  81. package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
  82. package/lib/editMetaInfo/index.js +8 -0
  83. package/lib/editMetaInfo/script/api.js +20 -0
  84. package/lib/editMetaInfo/script/restaurants.js +128 -0
  85. package/lib/editMetaInfo/style/css.js +2 -0
  86. package/lib/editMetaInfo/style/index.css +20 -0
  87. package/lib/editMetaInfo/style/index.js +2 -0
  88. package/lib/editMetaInfo/style/index.less +30 -0
  89. package/lib/hooks/dialogVisible.js +20 -0
  90. package/lib/index.css +182 -3
  91. package/lib/index.js +4 -0
  92. package/lib/index.less +2 -0
  93. package/lib/selectThumb/component.js +3 -1
  94. package/lib/selectThumb/components/colorPalette.js +32 -26
  95. package/lib/selectThumb/components/colorPicker.js +55 -0
  96. package/lib/selectThumb/style/colorPalette.less +31 -0
  97. package/lib/selectThumb/style/index.css +35 -0
  98. package/lib/selectThumb/style/index.less +7 -0
  99. package/lib/typeIcons/component.js +4 -1
  100. package/lib/utils/index.js +16 -0
  101. package/lib/utils/typeMap.js +19 -1
  102. package/package.json +9 -9
  103. /package/es/{contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts → baseFilter/component.d.ts} +0 -0
@@ -114,7 +114,7 @@
114
114
  .medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
115
115
  display: flex;
116
116
  align-items: center;
117
- width: 175px;
117
+ width: 190px;
118
118
  }
119
119
  .medialist-component-item-view .info-view .abttrite-v .right {
120
120
  margin-right: 20px;
@@ -435,7 +435,7 @@
435
435
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.tags {
436
436
  display: flex;
437
437
  align-items: center;
438
- width: 160px;
438
+ width: 190px;
439
439
  }
440
440
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.type {
441
441
  display: inline-block;
@@ -624,7 +624,7 @@
624
624
  }
625
625
  .medialist-doc-item-view .info-view .abttrite-v .left .tags {
626
626
  display: inline-block;
627
- width: 160px;
627
+ width: 190px;
628
628
  }
629
629
  .medialist-doc-item-view .info-view .abttrite-v .left .abttr {
630
630
  display: inline-block;
@@ -656,6 +656,121 @@
656
656
  .popper-categories {
657
657
  max-width: 600px;
658
658
  }
659
+ .medialist-mpdoc-item-view {
660
+ display: flex;
661
+ padding: 10px;
662
+ border-bottom: 1px solid #f0f0f0;
663
+ }
664
+ .medialist-mpdoc-item-view:hover {
665
+ background: #fafafa;
666
+ }
667
+ .medialist-mpdoc-item-view .cover-view {
668
+ position: relative;
669
+ flex-shrink: 0;
670
+ width: 110px;
671
+ height: 70px;
672
+ margin-right: 20px;
673
+ background: #edf3ff;
674
+ }
675
+ .medialist-mpdoc-item-view .cover-view .image {
676
+ width: 100%;
677
+ height: 100%;
678
+ border-radius: 4px;
679
+ }
680
+ .medialist-mpdoc-item-view .cover-view .batch-select {
681
+ position: absolute;
682
+ top: 3px;
683
+ left: 5px;
684
+ }
685
+ .medialist-mpdoc-item-view .cover-view .arco-image-img {
686
+ width: 100%;
687
+ height: 100%;
688
+ border-radius: 4px;
689
+ }
690
+ .medialist-mpdoc-item-view .cover-view .no-img {
691
+ display: flex;
692
+ align-items: center;
693
+ justify-content: center;
694
+ width: 100%;
695
+ height: 100%;
696
+ color: white;
697
+ font-size: 30px;
698
+ }
699
+ .medialist-mpdoc-item-view .info-view {
700
+ display: flex;
701
+ flex: 1;
702
+ flex-direction: column;
703
+ justify-content: space-between;
704
+ padding: 2px 0;
705
+ }
706
+ .medialist-mpdoc-item-view .info-view .title {
707
+ width: calc(100% - 50px);
708
+ display: flex;
709
+ align-items: center;
710
+ margin-bottom: 10px;
711
+ overflow: hidden;
712
+ color: #1d2129;
713
+ font-size: 14px;
714
+ font-style: normal;
715
+ font-weight: 400;
716
+ line-height: 22px;
717
+ cursor: pointer;
718
+ -webkit-line-clamp: 2;
719
+ -webkit-box-orient: vertical;
720
+ }
721
+ .medialist-mpdoc-item-view .info-view .title:hover {
722
+ color: #4886ff;
723
+ text-decoration: underline;
724
+ }
725
+ .medialist-mpdoc-item-view .info-view .title:hover .index {
726
+ text-decoration: unset;
727
+ }
728
+ .medialist-mpdoc-item-view .info-view .abttrite-v {
729
+ display: flex;
730
+ align-items: center;
731
+ justify-content: space-between;
732
+ }
733
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left {
734
+ display: flex;
735
+ flex: 1;
736
+ align-items: center;
737
+ color: #4e5969;
738
+ font-size: 12px;
739
+ }
740
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .icon {
741
+ margin-right: 8px;
742
+ }
743
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .tags {
744
+ display: inline-block;
745
+ width: 190px;
746
+ }
747
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr {
748
+ display: inline-block;
749
+ width: 20%;
750
+ margin-right: 10px;
751
+ overflow: hidden;
752
+ white-space: nowrap;
753
+ text-overflow: ellipsis;
754
+ cursor: pointer;
755
+ }
756
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn {
757
+ padding: 0;
758
+ text-align: left;
759
+ }
760
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn:hover,
761
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn:active {
762
+ background: transparent;
763
+ }
764
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr .btn {
765
+ padding: 0;
766
+ text-align: left;
767
+ }
768
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.time {
769
+ width: 30%;
770
+ }
771
+ .medialist-mpdoc-item-view .info-view .abttrite-v .right {
772
+ margin-right: 20px;
773
+ }
659
774
  .gray-for-state-hide {
660
775
  -webkit-filter: grayscale(100%);
661
776
  -moz-filter: grayscale(100%);
@@ -7,6 +7,7 @@
7
7
  @import './MaccountItem.less';
8
8
  @import './Doc.less';
9
9
  @import './DocItem.less';
10
+ @import './DocMpItem.less';
10
11
 
11
12
  .gray-for-state-hide {
12
13
  -webkit-filter: grayscale(100%);
@@ -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