@cmstops/pro-compo 0.1.7 → 0.1.9

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 (121) hide show
  1. package/dist/index.css +858 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/script/apps.d.ts +2 -11
  4. package/es/appCenter/script/apps.js +1 -41
  5. package/es/appCenter/script/routeMap.d.ts +1 -1
  6. package/es/config.d.ts +2 -2
  7. package/es/config.js +2 -2
  8. package/es/contentModal/component.js +5 -2
  9. package/es/contentModal/components/CompoList/index.js +12 -1
  10. package/es/contentModal/components/storeBox/index.js +1 -1
  11. package/es/contentModal/style/ViewAllColumn.less +1 -0
  12. package/es/contentModal/style/index.css +1 -0
  13. package/es/index.css +858 -0
  14. package/es/index.d.ts +2 -0
  15. package/es/index.js +2 -0
  16. package/es/index.less +2 -0
  17. package/es/previousVersion/component.d.ts +0 -0
  18. package/es/previousVersion/component.js +378 -0
  19. package/es/previousVersion/index.d.ts +2 -0
  20. package/es/previousVersion/index.js +7 -0
  21. package/es/previousVersion/script/api.d.ts +15 -0
  22. package/es/previousVersion/script/api.js +39 -0
  23. package/es/previousVersion/script/tool.d.ts +6 -0
  24. package/es/previousVersion/script/tool.js +22 -0
  25. package/es/previousVersion/style/css.js +1 -0
  26. package/es/previousVersion/style/index.css +166 -0
  27. package/es/previousVersion/style/index.d.ts +1 -0
  28. package/es/previousVersion/style/index.js +1 -0
  29. package/es/previousVersion/style/index.less +208 -0
  30. package/es/resourceModal/assets/images/unknown.js +2 -0
  31. package/es/resourceModal/assets/selection/null.js +2 -0
  32. package/es/resourceModal/component.js +65 -4
  33. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  34. package/es/resourceModal/components/MediaPreviewer/index.js +69 -0
  35. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  36. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +111 -0
  37. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  38. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +85 -0
  39. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  40. package/es/resourceModal/components/MediaSelection/MainContent/index.js +171 -0
  41. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  42. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +211 -0
  43. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  44. package/es/resourceModal/components/MediaSelection/index.js +272 -0
  45. package/es/resourceModal/script/api.d.ts +8 -0
  46. package/es/resourceModal/script/api.js +30 -0
  47. package/es/resourceModal/script/filter.d.ts +8 -0
  48. package/es/resourceModal/script/filter.js +22 -0
  49. package/es/resourceModal/script/mediaSelection.d.ts +10 -0
  50. package/es/resourceModal/style/DocAiMediaSelected.less +56 -0
  51. package/es/resourceModal/style/FileTypeThumb.less +183 -0
  52. package/es/resourceModal/style/MainContent.less +200 -0
  53. package/es/resourceModal/style/MediaPreviewer.less +71 -0
  54. package/es/resourceModal/style/MediaSelection.less +59 -0
  55. package/es/resourceModal/style/ToolbarSearch.less +40 -0
  56. package/es/resourceModal/style/index.css +514 -3
  57. package/es/resourceModal/style/index.less +16 -3
  58. package/es/selectGategory/component.d.ts +0 -0
  59. package/es/selectGategory/component.js +95 -0
  60. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  61. package/es/selectGategory/components/ColumnSelection/index.js +273 -0
  62. package/es/selectGategory/index.d.ts +2 -0
  63. package/es/selectGategory/index.js +7 -0
  64. package/es/selectGategory/script/api.d.ts +6 -0
  65. package/es/selectGategory/script/api.js +15 -0
  66. package/es/selectGategory/style/ColumnSelection.less +190 -0
  67. package/es/selectGategory/style/css.js +1 -0
  68. package/es/selectGategory/style/index.css +180 -0
  69. package/es/selectGategory/style/index.d.ts +1 -0
  70. package/es/selectGategory/style/index.js +1 -0
  71. package/es/selectGategory/style/index.less +40 -0
  72. package/es/utils/doc.d.ts +69 -0
  73. package/es/utils/typeMap.js +2 -1
  74. package/lib/appCenter/script/apps.js +1 -41
  75. package/lib/config.js +2 -2
  76. package/lib/contentModal/component.js +5 -2
  77. package/lib/contentModal/components/CompoList/index.js +11 -0
  78. package/lib/contentModal/components/storeBox/index.js +1 -1
  79. package/lib/contentModal/style/ViewAllColumn.less +1 -0
  80. package/lib/contentModal/style/index.css +1 -0
  81. package/lib/index.css +858 -0
  82. package/lib/index.js +4 -0
  83. package/lib/index.less +2 -0
  84. package/lib/previousVersion/component.js +379 -0
  85. package/lib/previousVersion/index.js +8 -0
  86. package/lib/previousVersion/script/api.js +43 -0
  87. package/lib/previousVersion/script/tool.js +24 -0
  88. package/lib/previousVersion/style/css.js +2 -0
  89. package/lib/previousVersion/style/index.css +166 -0
  90. package/lib/previousVersion/style/index.js +2 -0
  91. package/lib/previousVersion/style/index.less +208 -0
  92. package/lib/resourceModal/assets/images/unknown.js +3 -0
  93. package/lib/resourceModal/assets/selection/null.js +3 -0
  94. package/lib/resourceModal/component.js +64 -3
  95. package/lib/resourceModal/components/MediaPreviewer/index.js +70 -0
  96. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +112 -0
  97. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +86 -0
  98. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +172 -0
  99. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +212 -0
  100. package/lib/resourceModal/components/MediaSelection/index.js +273 -0
  101. package/lib/resourceModal/script/api.js +35 -0
  102. package/lib/resourceModal/script/filter.js +25 -0
  103. package/lib/resourceModal/style/DocAiMediaSelected.less +56 -0
  104. package/lib/resourceModal/style/FileTypeThumb.less +183 -0
  105. package/lib/resourceModal/style/MainContent.less +200 -0
  106. package/lib/resourceModal/style/MediaPreviewer.less +71 -0
  107. package/lib/resourceModal/style/MediaSelection.less +59 -0
  108. package/lib/resourceModal/style/ToolbarSearch.less +40 -0
  109. package/lib/resourceModal/style/index.css +514 -3
  110. package/lib/resourceModal/style/index.less +16 -3
  111. package/lib/selectGategory/component.js +96 -0
  112. package/lib/selectGategory/components/ColumnSelection/index.js +274 -0
  113. package/lib/selectGategory/index.js +8 -0
  114. package/lib/selectGategory/script/api.js +18 -0
  115. package/lib/selectGategory/style/ColumnSelection.less +190 -0
  116. package/lib/selectGategory/style/css.js +2 -0
  117. package/lib/selectGategory/style/index.css +180 -0
  118. package/lib/selectGategory/style/index.js +2 -0
  119. package/lib/selectGategory/style/index.less +40 -0
  120. package/lib/utils/typeMap.js +2 -1
  121. package/package.json +2 -2
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var icon = require("@arco-design/web-vue/es/icon");
5
+ var api = require("../../script/api.js");
6
+ const _hoisted_1 = { class: "column-selection-container" };
7
+ const _hoisted_2 = { class: "label" };
8
+ const _hoisted_3 = ["onClick"];
9
+ const _hoisted_4 = { class: "column-select add" };
10
+ const _hoisted_5 = { class: "column-select add" };
11
+ const _hoisted_6 = { key: 0 };
12
+ const _hoisted_7 = { class: "label" };
13
+ const _hoisted_8 = { class: "column-v" };
14
+ const _hoisted_9 = ["onClick"];
15
+ const _hoisted_10 = {
16
+ key: 0,
17
+ class: "add-icon"
18
+ };
19
+ const _sfc_main = vue.defineComponent({
20
+ ...{ name: "selectGategory" },
21
+ __name: "index",
22
+ props: {
23
+ base_api: {},
24
+ repository_id: {},
25
+ selectColumnData: {},
26
+ selectColumnWithData: {},
27
+ multiple: { type: Boolean },
28
+ limit: {},
29
+ addText: {}
30
+ },
31
+ emits: [
32
+ "update:selectColumnData",
33
+ "update:selectColumnWithData"
34
+ ],
35
+ setup(__props, { emit }) {
36
+ const props = __props;
37
+ const popoverShow = vue.ref(false);
38
+ const treeData = vue.ref([]);
39
+ const listMinHeight = vue.ref(0);
40
+ const columnSelectedArray = vue.ref([]);
41
+ const multipleShowSelectedArray = vue.ref([]);
42
+ const columnSelectedArrayIds = vue.computed(
43
+ () => columnSelectedArray.value.map((item) => item.id)
44
+ );
45
+ vue.watch(
46
+ () => props.selectColumnData,
47
+ () => {
48
+ if (!(props.selectColumnData && props.selectColumnData.length)) {
49
+ columnSelectedArray.value = [];
50
+ }
51
+ },
52
+ { deep: true }
53
+ );
54
+ vue.watch(
55
+ () => props.selectColumnWithData,
56
+ () => {
57
+ if (!(props.selectColumnWithData && props.selectColumnWithData.length)) {
58
+ columnSelectedArray.value = [];
59
+ }
60
+ },
61
+ { deep: true }
62
+ );
63
+ const columnSelectedArraySplice = (index) => {
64
+ columnSelectedArray.value.splice(index, 1);
65
+ };
66
+ const onCheck = (newSelectedKeys, data) => {
67
+ data && data.node && AddColumnSelected(data.node);
68
+ };
69
+ const leavePopover = () => {
70
+ multipleShowSelectedArray.value = JSON.parse(
71
+ JSON.stringify(columnSelectedArray.value)
72
+ );
73
+ props.multiple ? emit(
74
+ "update:selectColumnWithData",
75
+ JSON.parse(JSON.stringify(columnSelectedArray.value))
76
+ ) : emit(
77
+ "update:selectColumnData",
78
+ JSON.parse(JSON.stringify(columnSelectedArray.value))
79
+ );
80
+ popoverShow.value = false;
81
+ };
82
+ const multipleArraySplice = (item, index) => {
83
+ multipleShowSelectedArray.value.splice(index, 1);
84
+ const _index = columnSelectedArray.value.findIndex(
85
+ (column) => column.id === item.id
86
+ );
87
+ if (_index >= 0) {
88
+ columnSelectedArray.value.splice(_index, 1);
89
+ emit(
90
+ "update:selectColumnWithData",
91
+ JSON.parse(JSON.stringify(columnSelectedArray.value))
92
+ );
93
+ }
94
+ };
95
+ const AddColumnSelected = (data, node) => {
96
+ for (let index = 0; index < columnSelectedArray.value.length; index++) {
97
+ const element = columnSelectedArray.value[index];
98
+ if (element.id === (data == null ? void 0 : data.id)) {
99
+ columnSelectedArraySplice(index);
100
+ if (!props.multiple) {
101
+ emit(
102
+ "update:selectColumnData",
103
+ JSON.parse(JSON.stringify(columnSelectedArray.value))
104
+ );
105
+ }
106
+ return;
107
+ }
108
+ }
109
+ api.getCategoryPath(props.base_api, {
110
+ repo: props.repository_id,
111
+ category: data == null ? void 0 : data.id
112
+ }).then((res) => {
113
+ const pathArr = [];
114
+ for (const i of res.message) {
115
+ pathArr.push(i.category_alias);
116
+ }
117
+ data.path = pathArr.join("/");
118
+ if (props.multiple) {
119
+ columnSelectedArray.value.push(data);
120
+ if (props.limit && columnSelectedArray.value.length > props.limit) {
121
+ columnSelectedArray.value.splice(
122
+ 0,
123
+ columnSelectedArray.value.length - props.limit
124
+ );
125
+ }
126
+ } else {
127
+ columnSelectedArray.value = [data];
128
+ emit(
129
+ "update:selectColumnData",
130
+ JSON.parse(JSON.stringify(columnSelectedArray.value))
131
+ );
132
+ }
133
+ });
134
+ };
135
+ const loadColumnTreeNode = async () => {
136
+ const nodes = await getCategoryCategoriesData();
137
+ const styleLength = nodes.length > 10 ? 10 : nodes.length;
138
+ listMinHeight.value = (styleLength + 1) * 32;
139
+ treeData.value = nodes;
140
+ if (props.selectColumnData && props.selectColumnData.length) {
141
+ columnSelectedArray.value = JSON.parse(
142
+ JSON.stringify(props.selectColumnData)
143
+ );
144
+ }
145
+ if (props.selectColumnWithData && props.selectColumnWithData.length) {
146
+ columnSelectedArray.value = JSON.parse(
147
+ JSON.stringify(props.selectColumnWithData)
148
+ );
149
+ }
150
+ };
151
+ const getCategoryCategoriesData = async () => {
152
+ const { code, message } = await api.getCategoryCategoriesTree(props.base_api, {
153
+ repo_id: props.repository_id
154
+ });
155
+ if (code === 0) {
156
+ return message;
157
+ }
158
+ return [];
159
+ };
160
+ vue.onMounted(() => {
161
+ loadColumnTreeNode();
162
+ });
163
+ return (_ctx, _cache) => {
164
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
165
+ _ctx.multiple ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(multipleShowSelectedArray.value, (item, index) => {
166
+ return vue.openBlock(), vue.createElementBlock("div", {
167
+ key: index,
168
+ class: "column-select"
169
+ }, [
170
+ vue.createVNode(vue.unref(webVue.Tooltip), {
171
+ content: item.path,
172
+ placement: "left"
173
+ }, {
174
+ default: vue.withCtx(() => [
175
+ vue.createElementVNode("span", {
176
+ class: vue.normalizeClass(["space", { disabled: popoverShow.value }])
177
+ }, [
178
+ vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(item.path), 1),
179
+ vue.createElementVNode("i", {
180
+ onClick: vue.withModifiers(($event) => multipleArraySplice(item, index), ["stop"])
181
+ }, [
182
+ vue.createVNode(vue.unref(icon.IconCloseCircle))
183
+ ], 8, _hoisted_3)
184
+ ], 2)
185
+ ]),
186
+ _: 2
187
+ }, 1032, ["content"])
188
+ ]);
189
+ }), 128)) : vue.createCommentVNode("v-if", true),
190
+ vue.createVNode(vue.unref(webVue.Popover), {
191
+ "content-class": `column-selection-popover`,
192
+ position: "bottom",
193
+ trigger: "click",
194
+ onShow: _cache[0] || (_cache[0] = ($event) => popoverShow.value = true),
195
+ onHide: leavePopover,
196
+ onPopupVisibleChange: leavePopover
197
+ }, {
198
+ content: vue.withCtx(() => [
199
+ vue.createElementVNode("div", {
200
+ class: "column-selection-main",
201
+ style: vue.normalizeStyle({ minHeight: listMinHeight.value + 1 + "px" })
202
+ }, [
203
+ vue.createElementVNode("div", _hoisted_8, [
204
+ vue.createVNode(vue.unref(webVue.Scrollbar), {
205
+ class: "column-selection-scroll",
206
+ style: vue.normalizeStyle({ height: listMinHeight.value + "px" })
207
+ }, {
208
+ default: vue.withCtx(() => [
209
+ vue.createVNode(vue.unref(webVue.Tree), {
210
+ checkable: _ctx.multiple,
211
+ "check-strictly": true,
212
+ data: treeData.value,
213
+ "default-expand-all": false,
214
+ "field-names": {
215
+ children: "children",
216
+ title: "title",
217
+ key: "id"
218
+ },
219
+ "checked-keys": columnSelectedArrayIds.value,
220
+ onCheck
221
+ }, {
222
+ extra: vue.withCtx((data) => [
223
+ vue.createElementVNode("span", {
224
+ class: "custom-tree-node",
225
+ onClick: vue.withModifiers(($event) => AddColumnSelected(data), ["stop"])
226
+ }, [
227
+ vue.createElementVNode("span", null, vue.toDisplayString(data.alias), 1),
228
+ !_ctx.multiple && columnSelectedArrayIds.value.includes(data.id) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, [
229
+ vue.createElementVNode("i", null, [
230
+ vue.createVNode(vue.unref(icon.IconCheck))
231
+ ])
232
+ ])) : vue.createCommentVNode("v-if", true)
233
+ ], 8, _hoisted_9)
234
+ ]),
235
+ _: 1
236
+ }, 8, ["checkable", "data", "checked-keys"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["style"])
240
+ ])
241
+ ], 4)
242
+ ]),
243
+ default: vue.withCtx(() => [
244
+ _ctx.multiple ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
245
+ vue.createCommentVNode(" \u591A\u9009 "),
246
+ vue.createElementVNode("div", _hoisted_4, [
247
+ vue.createElementVNode("i", null, [
248
+ vue.createVNode(vue.unref(icon.IconPlus))
249
+ ]),
250
+ vue.createTextVNode(" " + vue.toDisplayString(_ctx.addText ? _ctx.addText : "\u6DFB\u52A0\u680F\u76EE"), 1)
251
+ ])
252
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
253
+ vue.createCommentVNode(" \u5355\u9009 "),
254
+ vue.createElementVNode("div", _hoisted_5, [
255
+ !columnSelectedArray.value.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, vue.toDisplayString(_ctx.addText ? _ctx.addText : "\u8BF7\u9009\u62E9"), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tooltip), {
256
+ key: 1,
257
+ content: columnSelectedArray.value[0].path,
258
+ placement: "left"
259
+ }, {
260
+ default: vue.withCtx(() => [
261
+ vue.createElementVNode("span", _hoisted_7, "\u5DF2\u9009\uFF1A" + vue.toDisplayString(columnSelectedArray.value[0].path), 1)
262
+ ]),
263
+ _: 1
264
+ }, 8, ["content"]))
265
+ ])
266
+ ], 64))
267
+ ]),
268
+ _: 1
269
+ })
270
+ ]);
271
+ };
272
+ }
273
+ });
274
+ module.exports = _sfc_main;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var component = require("./component.js");
3
+ const selectGategory = Object.assign(component, {
4
+ install: (app) => {
5
+ app.component(component.name, component);
6
+ }
7
+ });
8
+ module.exports = selectGategory;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var request = require("../../utils/request.js");
4
+ function getCategoryPath(BASE_API, params) {
5
+ return request(BASE_API, {
6
+ url: `/poplar/v2/repo/${params.repo}/category/${params.category}/path`,
7
+ method: "get"
8
+ });
9
+ }
10
+ function getCategoryCategoriesTree(BASE_API, params) {
11
+ return request(BASE_API, {
12
+ url: `/poplar/v3/categories`,
13
+ method: "get",
14
+ params
15
+ });
16
+ }
17
+ exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
18
+ exports.getCategoryPath = getCategoryPath;
@@ -0,0 +1,190 @@
1
+ .column-selection-container {
2
+ padding: 0;
3
+ cursor: pointer;
4
+ @mixin ellipsis {
5
+ overflow: hidden;
6
+ white-space: nowrap;
7
+ text-overflow: ellipsis;
8
+ }
9
+
10
+ &.single {
11
+ .column-select {
12
+ position: relative;
13
+ max-width: 250px;
14
+ padding-right: 35px;
15
+ font-weight: 500;
16
+
17
+ .right-icon {
18
+ position: absolute;
19
+ top: 7px;
20
+ right: 15px;
21
+ }
22
+
23
+ &.add {
24
+ color: #86909c;
25
+ text-align: center;
26
+ background: #f3f4f5;
27
+ border: none;
28
+ }
29
+
30
+ &.value {
31
+ color: #4886ff;
32
+ background: #edf3ff;
33
+ }
34
+
35
+ &.long {
36
+ padding-right: 90px;
37
+
38
+ .longTip {
39
+ position: absolute;
40
+ right: 35px;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ .column-select {
47
+ height: 28px;
48
+ padding: 0 10px;
49
+ font-size: 14px;
50
+ line-height: 28px;
51
+ border: 1px solid #e8e8e8;
52
+ border-bottom: none;
53
+
54
+ .space {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+ color: #4e5969;
59
+
60
+ &.disabled {
61
+ opacity: 0.3;
62
+ pointer-events: none;
63
+ }
64
+ }
65
+
66
+ .label {
67
+ @include ellipsis;
68
+ }
69
+
70
+ &.add {
71
+ @include ellipsis;
72
+
73
+ color: #86909c;
74
+ text-align: center;
75
+ background: #f3f4f5;
76
+ border: 1px solid #e8e8e8;
77
+ border-radius: 2px;
78
+
79
+ .label {
80
+ font-weight: 700;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ .column-selection-popover {
87
+ width: 300px;
88
+
89
+ &.single {
90
+ width: 180px;
91
+ }
92
+
93
+ padding: 0;
94
+
95
+ .column-selection-main {
96
+ transition: all 0.3s;
97
+
98
+ .arco-scrollbar {
99
+ .column-selection-scroll {
100
+ overflow: auto;
101
+
102
+ .arco-tree {
103
+ .arco-tree-node {
104
+ position: relative;
105
+ height: 36px;
106
+ line-height: 36px;
107
+
108
+ .custom-tree-node {
109
+ width: 100%;
110
+ }
111
+
112
+ span {
113
+ vertical-align: middle;
114
+ }
115
+
116
+ .add-icon {
117
+ position: absolute;
118
+ right: 10px;
119
+ color: #4886ff;
120
+
121
+ i {
122
+ font-size: 16px;
123
+ }
124
+ }
125
+
126
+ &:hover {
127
+ background-color: rgba(0, 0, 0, 0.05) !important;
128
+
129
+ .add-icon {
130
+ i {
131
+ display: inline-block;
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ .selected-list {
141
+ position: relative;
142
+ width: 100%;
143
+ margin: 0;
144
+ padding: 0;
145
+ list-style: none;
146
+ border-top: 1px solid #f3f4f5;
147
+
148
+ .title {
149
+ height: 28px;
150
+ padding: 0 40px 0 24px;
151
+ color: #86909c;
152
+ line-height: 28px;
153
+ background: #f3f4f5;
154
+ }
155
+
156
+ .truncate {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: space-between;
160
+ }
161
+
162
+ li {
163
+ height: 36px;
164
+ padding: 0 40px 0 24px;
165
+ line-height: 36px;
166
+
167
+ .item {
168
+ width: calc(100% - 10px);
169
+ overflow: hidden;
170
+ white-space: nowrap;
171
+ text-overflow: ellipsis;
172
+ }
173
+
174
+ i {
175
+ position: absolute;
176
+ right: 10px;
177
+ display: inline-block;
178
+ color: rgba(0, 0, 0, 0.56);
179
+ font-size: 14px;
180
+ font-family: PingFangSC-Regular;
181
+ cursor: pointer;
182
+ }
183
+
184
+ &:hover {
185
+ background: rgba(0, 0, 0, 0.05);
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.css");
@@ -0,0 +1,180 @@
1
+ .column-selection-container {
2
+ padding: 0;
3
+ cursor: pointer;
4
+ }
5
+ @mixin ellipsis {
6
+ overflow: hidden;
7
+ white-space: nowrap;
8
+ text-overflow: ellipsis;
9
+ }
10
+ .column-selection-container.single .column-select {
11
+ position: relative;
12
+ max-width: 250px;
13
+ padding-right: 35px;
14
+ font-weight: 500;
15
+ }
16
+ .column-selection-container.single .column-select .right-icon {
17
+ position: absolute;
18
+ top: 7px;
19
+ right: 15px;
20
+ }
21
+ .column-selection-container.single .column-select.add {
22
+ color: #86909c;
23
+ text-align: center;
24
+ background: #f3f4f5;
25
+ border: none;
26
+ }
27
+ .column-selection-container.single .column-select.value {
28
+ color: #4886ff;
29
+ background: #edf3ff;
30
+ }
31
+ .column-selection-container.single .column-select.long {
32
+ padding-right: 90px;
33
+ }
34
+ .column-selection-container.single .column-select.long .longTip {
35
+ position: absolute;
36
+ right: 35px;
37
+ }
38
+ .column-selection-container .column-select {
39
+ height: 28px;
40
+ padding: 0 10px;
41
+ font-size: 14px;
42
+ line-height: 28px;
43
+ border: 1px solid #e8e8e8;
44
+ border-bottom: none;
45
+ }
46
+ .column-selection-container .column-select .space {
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: space-between;
50
+ color: #4e5969;
51
+ }
52
+ .column-selection-container .column-select .space.disabled {
53
+ opacity: 0.3;
54
+ pointer-events: none;
55
+ }
56
+ .column-selection-container .column-select .label {
57
+ @include ellipsis;
58
+ }
59
+ .column-selection-container .column-select.add {
60
+ @include ellipsis;
61
+ color: #86909c;
62
+ text-align: center;
63
+ background: #f3f4f5;
64
+ border: 1px solid #e8e8e8;
65
+ border-radius: 2px;
66
+ }
67
+ .column-selection-container .column-select.add .label {
68
+ font-weight: 700;
69
+ }
70
+ .column-selection-popover {
71
+ width: 300px;
72
+ padding: 0;
73
+ }
74
+ .column-selection-popover.single {
75
+ width: 180px;
76
+ }
77
+ .column-selection-popover .column-selection-main {
78
+ transition: all 0.3s;
79
+ }
80
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll {
81
+ overflow: auto;
82
+ }
83
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node {
84
+ position: relative;
85
+ height: 36px;
86
+ line-height: 36px;
87
+ }
88
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node .custom-tree-node {
89
+ width: 100%;
90
+ }
91
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node span {
92
+ vertical-align: middle;
93
+ }
94
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node .add-icon {
95
+ position: absolute;
96
+ right: 10px;
97
+ color: #4886ff;
98
+ }
99
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node .add-icon i {
100
+ font-size: 16px;
101
+ }
102
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node:hover {
103
+ background-color: rgba(0, 0, 0, 0.05) !important;
104
+ }
105
+ .column-selection-popover .column-selection-main .arco-scrollbar .column-selection-scroll .arco-tree .arco-tree-node:hover .add-icon i {
106
+ display: inline-block;
107
+ }
108
+ .column-selection-popover .column-selection-main .selected-list {
109
+ position: relative;
110
+ width: 100%;
111
+ margin: 0;
112
+ padding: 0;
113
+ list-style: none;
114
+ border-top: 1px solid #f3f4f5;
115
+ }
116
+ .column-selection-popover .column-selection-main .selected-list .title {
117
+ height: 28px;
118
+ padding: 0 40px 0 24px;
119
+ color: #86909c;
120
+ line-height: 28px;
121
+ background: #f3f4f5;
122
+ }
123
+ .column-selection-popover .column-selection-main .selected-list .truncate {
124
+ display: flex;
125
+ align-items: center;
126
+ justify-content: space-between;
127
+ }
128
+ .column-selection-popover .column-selection-main .selected-list li {
129
+ height: 36px;
130
+ padding: 0 40px 0 24px;
131
+ line-height: 36px;
132
+ }
133
+ .column-selection-popover .column-selection-main .selected-list li .item {
134
+ width: calc(100% - 10px);
135
+ overflow: hidden;
136
+ white-space: nowrap;
137
+ text-overflow: ellipsis;
138
+ }
139
+ .column-selection-popover .column-selection-main .selected-list li i {
140
+ position: absolute;
141
+ right: 10px;
142
+ display: inline-block;
143
+ color: rgba(0, 0, 0, 0.56);
144
+ font-size: 14px;
145
+ font-family: PingFangSC-Regular;
146
+ cursor: pointer;
147
+ }
148
+ .column-selection-popover .column-selection-main .selected-list li:hover {
149
+ background: rgba(0, 0, 0, 0.05);
150
+ }
151
+ .add-category-modal-wrapper .arco-modal-header {
152
+ border-bottom: none;
153
+ }
154
+ .add-category-modal-wrapper .arco-modal-body {
155
+ min-height: 200px;
156
+ padding: 20px;
157
+ padding-bottom: 0;
158
+ }
159
+ .add-category-modal-wrapper .arco-modal-body .form-view {
160
+ padding: 0 20px;
161
+ }
162
+ .add-category-modal-wrapper .arco-modal-body .form-view .title {
163
+ padding: 20px 0;
164
+ font-weight: bold;
165
+ font-size: 14px;
166
+ }
167
+ .add-category-modal-wrapper .arco-modal-body .form-view .item-title {
168
+ display: inline-block;
169
+ color: #4e5969;
170
+ font-weight: 700;
171
+ font-size: 14px;
172
+ line-height: 40px;
173
+ text-align: left;
174
+ }
175
+ .add-category-modal-wrapper .arco-modal-body .form-view .item-title.big {
176
+ line-height: 60px;
177
+ }
178
+ .add-category-modal-wrapper .arco-modal-footer {
179
+ border-top: 0;
180
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.less");