@cmstops/pro-compo 0.1.46 → 0.1.49

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 (50) hide show
  1. package/dist/index.css +187 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/components/Content/CompoItem/index.js +1 -0
  4. package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -0
  5. package/es/contentDetailList/components/Content/DocItem/index.js +1 -0
  6. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -0
  7. package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -0
  8. package/es/contentDetailList/components/Content/LiveItem/index.js +2 -2
  9. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -0
  10. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  11. package/es/contentDetailList/components/Content/courseItem/index.js +96 -0
  12. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  13. package/es/contentDetailList/components/Content/funhdItem/index.js +96 -0
  14. package/es/contentDetailList/components/Content/index.js +41 -1
  15. package/es/contentDetailList/style/courseItem.less +108 -0
  16. package/es/contentDetailList/style/funhdItem.less +108 -0
  17. package/es/contentDetailList/style/index.css +184 -0
  18. package/es/contentDetailList/style/index.less +2 -0
  19. package/es/contentModal/component.js +11 -4
  20. package/es/contentModal/components/EqxiuList/index.js +5 -5
  21. package/es/contentModal/style/ViewAllColumn.less +3 -0
  22. package/es/contentModal/style/index.css +3 -0
  23. package/es/index.css +187 -0
  24. package/es/typeIcons/component.js +18 -3
  25. package/es/utils/request.js +5 -1
  26. package/es/utils/typeMap.d.ts +2 -0
  27. package/es/utils/typeMap.js +3 -1
  28. package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -0
  29. package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -0
  30. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -0
  31. package/lib/contentDetailList/components/Content/DocMpItem/index.js +1 -0
  32. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -0
  33. package/lib/contentDetailList/components/Content/LiveItem/index.js +2 -2
  34. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -0
  35. package/lib/contentDetailList/components/Content/courseItem/index.js +97 -0
  36. package/lib/contentDetailList/components/Content/funhdItem/index.js +97 -0
  37. package/lib/contentDetailList/components/Content/index.js +41 -1
  38. package/lib/contentDetailList/style/courseItem.less +108 -0
  39. package/lib/contentDetailList/style/funhdItem.less +108 -0
  40. package/lib/contentDetailList/style/index.css +184 -0
  41. package/lib/contentDetailList/style/index.less +2 -0
  42. package/lib/contentModal/component.js +11 -4
  43. package/lib/contentModal/components/EqxiuList/index.js +5 -5
  44. package/lib/contentModal/style/ViewAllColumn.less +3 -0
  45. package/lib/contentModal/style/index.css +3 -0
  46. package/lib/index.css +187 -0
  47. package/lib/typeIcons/component.js +17 -2
  48. package/lib/utils/request.js +5 -1
  49. package/lib/utils/typeMap.js +3 -1
  50. package/package.json +3 -3
@@ -109,6 +109,8 @@
109
109
  .view-all-column-container .content-table-view .pic-thumb-img {
110
110
  width: 60px;
111
111
  height: 45px;
112
+ vertical-align: middle;
113
+ border-radius: 3px;
112
114
  }
113
115
  .view-all-column-container .content-table-view .title-span,
114
116
  .view-all-column-container .content-table-view .mp_title-span {
@@ -126,6 +128,7 @@
126
128
  margin-right: 8px;
127
129
  padding-left: 0;
128
130
  font-size: 18px;
131
+ line-height: 28px;
129
132
  text-align: center;
130
133
  vertical-align: middle;
131
134
  }
package/lib/index.css CHANGED
@@ -436,6 +436,8 @@
436
436
  .view-all-column-container .content-table-view .pic-thumb-img {
437
437
  width: 60px;
438
438
  height: 45px;
439
+ vertical-align: middle;
440
+ border-radius: 3px;
439
441
  }
440
442
  .view-all-column-container .content-table-view .title-span,
441
443
  .view-all-column-container .content-table-view .mp_title-span {
@@ -453,6 +455,7 @@
453
455
  margin-right: 8px;
454
456
  padding-left: 0;
455
457
  font-size: 18px;
458
+ line-height: 28px;
456
459
  text-align: center;
457
460
  vertical-align: middle;
458
461
  }
@@ -2730,6 +2733,190 @@
2730
2733
  .medialist-mpdoc-item-view .info-view .abttrite-v .right {
2731
2734
  margin-right: 20px;
2732
2735
  }
2736
+ .medialist-course-item-view {
2737
+ display: flex;
2738
+ padding: 10px;
2739
+ border-bottom: 1px solid #f0f0f0;
2740
+ }
2741
+ .medialist-course-item-view:hover {
2742
+ background: #fafafa;
2743
+ }
2744
+ .medialist-course-item-view .cover-view {
2745
+ position: relative;
2746
+ flex-shrink: 0;
2747
+ width: 110px;
2748
+ height: 70px;
2749
+ margin-right: 20px;
2750
+ background: #edf3ff;
2751
+ }
2752
+ .medialist-course-item-view .cover-view .image {
2753
+ width: 100%;
2754
+ height: 100%;
2755
+ border-radius: 4px;
2756
+ }
2757
+ .medialist-course-item-view .cover-view .image img {
2758
+ width: 100%;
2759
+ height: 100%;
2760
+ }
2761
+ .medialist-course-item-view .cover-view .no-img {
2762
+ display: flex;
2763
+ align-items: center;
2764
+ justify-content: center;
2765
+ width: 100%;
2766
+ height: 100%;
2767
+ color: white;
2768
+ font-size: 30px;
2769
+ }
2770
+ .medialist-course-item-view .info-view {
2771
+ display: flex;
2772
+ flex: 1;
2773
+ flex-direction: column;
2774
+ justify-content: space-between;
2775
+ padding: 2px 0;
2776
+ }
2777
+ .medialist-course-item-view .info-view .title {
2778
+ display: flex;
2779
+ align-items: center;
2780
+ margin-bottom: 10px;
2781
+ overflow: hidden;
2782
+ color: #1d2129;
2783
+ font-weight: 400;
2784
+ font-size: 14px;
2785
+ font-style: normal;
2786
+ line-height: 22px;
2787
+ cursor: pointer;
2788
+ -webkit-line-clamp: 2;
2789
+ -webkit-box-orient: vertical;
2790
+ }
2791
+ .medialist-course-item-view .info-view .abttrite-v {
2792
+ display: flex;
2793
+ align-items: center;
2794
+ justify-content: space-between;
2795
+ }
2796
+ .medialist-course-item-view .info-view .abttrite-v .left {
2797
+ display: flex;
2798
+ flex: 1;
2799
+ align-items: center;
2800
+ color: #808692;
2801
+ font-size: 12px;
2802
+ }
2803
+ .medialist-course-item-view .info-view .abttrite-v .left .icon {
2804
+ margin-right: 8px;
2805
+ }
2806
+ .medialist-course-item-view .info-view .abttrite-v .left .abttr {
2807
+ display: inline-block;
2808
+ width: 20%;
2809
+ overflow: hidden;
2810
+ white-space: nowrap;
2811
+ text-overflow: ellipsis;
2812
+ }
2813
+ .medialist-course-item-view .info-view .abttrite-v .left .abttr.time {
2814
+ width: 250px;
2815
+ }
2816
+ .medialist-course-item-view .info-view .abttrite-v .left .abttr.tags {
2817
+ display: flex;
2818
+ align-items: center;
2819
+ width: 190px;
2820
+ }
2821
+ .medialist-course-item-view .info-view .abttrite-v .left .abttr.type {
2822
+ display: inline-block;
2823
+ width: 160px;
2824
+ }
2825
+ .medialist-course-item-view .info-view .abttrite-v .right {
2826
+ margin-right: 20px;
2827
+ }
2828
+ .medialist-funhd-item-view {
2829
+ display: flex;
2830
+ padding: 10px;
2831
+ border-bottom: 1px solid #f0f0f0;
2832
+ }
2833
+ .medialist-funhd-item-view:hover {
2834
+ background: #fafafa;
2835
+ }
2836
+ .medialist-funhd-item-view .cover-view {
2837
+ position: relative;
2838
+ flex-shrink: 0;
2839
+ width: 110px;
2840
+ height: 70px;
2841
+ margin-right: 20px;
2842
+ background: #edf3ff;
2843
+ }
2844
+ .medialist-funhd-item-view .cover-view .image {
2845
+ width: 100%;
2846
+ height: 100%;
2847
+ border-radius: 4px;
2848
+ }
2849
+ .medialist-funhd-item-view .cover-view .image img {
2850
+ width: 100%;
2851
+ height: 100%;
2852
+ }
2853
+ .medialist-funhd-item-view .cover-view .no-img {
2854
+ display: flex;
2855
+ align-items: center;
2856
+ justify-content: center;
2857
+ width: 100%;
2858
+ height: 100%;
2859
+ color: white;
2860
+ font-size: 30px;
2861
+ }
2862
+ .medialist-funhd-item-view .info-view {
2863
+ display: flex;
2864
+ flex: 1;
2865
+ flex-direction: column;
2866
+ justify-content: space-between;
2867
+ padding: 2px 0;
2868
+ }
2869
+ .medialist-funhd-item-view .info-view .title {
2870
+ display: flex;
2871
+ align-items: center;
2872
+ margin-bottom: 10px;
2873
+ overflow: hidden;
2874
+ color: #1d2129;
2875
+ font-weight: 400;
2876
+ font-size: 14px;
2877
+ font-style: normal;
2878
+ line-height: 22px;
2879
+ cursor: pointer;
2880
+ -webkit-line-clamp: 2;
2881
+ -webkit-box-orient: vertical;
2882
+ }
2883
+ .medialist-funhd-item-view .info-view .abttrite-v {
2884
+ display: flex;
2885
+ align-items: center;
2886
+ justify-content: space-between;
2887
+ }
2888
+ .medialist-funhd-item-view .info-view .abttrite-v .left {
2889
+ display: flex;
2890
+ flex: 1;
2891
+ align-items: center;
2892
+ color: #808692;
2893
+ font-size: 12px;
2894
+ }
2895
+ .medialist-funhd-item-view .info-view .abttrite-v .left .icon {
2896
+ margin-right: 8px;
2897
+ }
2898
+ .medialist-funhd-item-view .info-view .abttrite-v .left .abttr {
2899
+ display: inline-block;
2900
+ width: 20%;
2901
+ overflow: hidden;
2902
+ white-space: nowrap;
2903
+ text-overflow: ellipsis;
2904
+ }
2905
+ .medialist-funhd-item-view .info-view .abttrite-v .left .abttr.time {
2906
+ width: 250px;
2907
+ }
2908
+ .medialist-funhd-item-view .info-view .abttrite-v .left .abttr.tags {
2909
+ display: flex;
2910
+ align-items: center;
2911
+ width: 190px;
2912
+ }
2913
+ .medialist-funhd-item-view .info-view .abttrite-v .left .abttr.type {
2914
+ display: inline-block;
2915
+ width: 160px;
2916
+ }
2917
+ .medialist-funhd-item-view .info-view .abttrite-v .right {
2918
+ margin-right: 20px;
2919
+ }
2733
2920
  .gray-for-state-hide {
2734
2921
  -webkit-filter: grayscale(100%);
2735
2922
  -moz-filter: grayscale(100%);
@@ -44,7 +44,7 @@ const _sfc_main = vue.defineComponent({
44
44
  vue.createCommentVNode(" h5 "),
45
45
  vue.createVNode(vue.unref(vueCmstopIcons.IconH5))
46
46
  ], 2112)) : props.doc && props.type === "live" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 10 }, [
47
- vue.createCommentVNode(" \u76F4\u64AD "),
47
+ vue.createCommentVNode(" \u672C\u5730\u76F4\u64AD "),
48
48
  vue.createVNode(vue.unref(vueCmstopIcons.IconZhibo))
49
49
  ], 2112)) : props.resource && props.type === "image" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 11 }, [
50
50
  vue.createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
@@ -54,7 +54,22 @@ const _sfc_main = vue.defineComponent({
54
54
  vue.createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
55
55
  vue.createCommentVNode(" \u516C\u4F17\u53F7\u7A3F\u4EF6 "),
56
56
  vue.createVNode(vue.unref(vueCmstopIcons.IconGongzhonghao))
57
- ], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 13 }, [
57
+ ], 2112)) : props.type === "ilive" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 13 }, [
58
+ vue.createCommentVNode(" \u4E91\u76F4\u64AD "),
59
+ vue.createVNode(vue.unref(vueCmstopIcons.IconZhibo))
60
+ ], 2112)) : props.type === "group" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 14 }, [
61
+ vue.createCommentVNode(" \u9891\u9053/\u7EC4\u4EF6 "),
62
+ vue.createVNode(vue.unref(vueCmstopIcons.IconSelectGroupoverview))
63
+ ], 2112)) : props.type === "nav" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 15 }, [
64
+ vue.createCommentVNode(" \u529F\u80FD\u5BFC\u822A "),
65
+ vue.createVNode(vue.unref(vueCmstopIcons.IconSelectVersion))
66
+ ], 2112)) : props.type === "course" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 16 }, [
67
+ vue.createCommentVNode(" \u8BFE\u7A0B "),
68
+ vue.createVNode(vue.unref(vueCmstopIcons.IconBook))
69
+ ], 2112)) : props.type === "funhd" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 17 }, [
70
+ vue.createCommentVNode(" \u4E92\u52A8\u8FD0\u8425 "),
71
+ vue.createVNode(vue.unref(vueCmstopIcons.IconEvent))
72
+ ], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 18 }, [
58
73
  vue.createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
59
74
  vue.createCommentVNode(" <icon-weixingaojian /> "),
60
75
  vue.createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  var axios = require("axios");
3
+ var webVue = require("@arco-design/web-vue");
3
4
  var auth = require("./auth.js");
4
5
  function _interopDefaultLegacy(e) {
5
6
  return e && typeof e === "object" && "default" in e ? e : { "default": e };
@@ -25,7 +26,10 @@ function request(BASE_API, options) {
25
26
  service.interceptors.response.use(
26
27
  (response) => {
27
28
  const res = response.data;
28
- if (res.code !== 0) {
29
+ if ((res == null ? void 0 : res.code) !== 0) {
30
+ if (res == null ? void 0 : res.real_error) {
31
+ webVue.Message.warning({ content: res.real_error });
32
+ }
29
33
  return Promise.reject(new Error(res.message || "Error"));
30
34
  }
31
35
  return res;
@@ -15,7 +15,9 @@ const key_target_type_map = {
15
15
  13: "ilive",
16
16
  14: "mp_account",
17
17
  15: "kongo",
18
- 16: "mp_content"
18
+ 16: "mp_content",
19
+ 17: "funhd",
20
+ 18: "course"
19
21
  };
20
22
  const approveFlowStatusMap = {
21
23
  1: "\u5BA1\u6838\u4E2D",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.46",
3
+ "version": "0.1.49",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@arco-design/web-vue": "~2",
49
- "@arco-iconbox/vue-cmstop-icons": "^0.0.15",
49
+ "@arco-iconbox/vue-cmstop-icons": "^0.0.21",
50
50
  "@popperjs/core": "^2.11.8",
51
51
  "colorthief": "^2.4.0",
52
52
  "cropperjs": "^1.6.1",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@arco-design/web-vue": "~2",
62
- "@arco-iconbox/vue-cmstop-icons": "^0.0.18",
62
+ "@arco-iconbox/vue-cmstop-icons": "^0.0.21",
63
63
  "@babel/core": "^7.14.6",
64
64
  "@babel/plugin-proposal-class-properties": "^7.14.5",
65
65
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",