@cmstops/pro-compo 0.1.11 → 0.1.13
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.
- package/dist/index.css +134 -1
- package/dist/index.min.css +1 -1
- package/es/index.css +134 -1
- package/es/mediaFilter/component.js +2 -2
- package/es/mediaFilter/components/DocFilter.js +23 -21
- package/es/mediaFilter/components/FilterGroup.js +4 -7
- package/es/mediaFilter/components/FilterItem.js +2 -5
- package/es/mediaFilter/index.d.ts +1 -0
- package/es/mediaFilter/script/types.d.ts +16 -0
- package/es/mediaFilter/style/index.css +87 -1
- package/es/mediaFilter/style/index.less +109 -3
- package/es/style.css +0 -89
- package/es/userDirector/component.js +185 -70
- package/es/userDirector/components/userTree.d.ts +0 -0
- package/es/userDirector/components/userTree.js +76 -0
- package/es/userDirector/style/index.css +47 -0
- package/es/userDirector/style/index.less +50 -0
- package/lib/index.css +134 -1
- package/lib/mediaFilter/components/DocFilter.js +19 -17
- package/lib/mediaFilter/components/FilterGroup.js +4 -7
- package/lib/mediaFilter/components/FilterItem.js +2 -5
- package/lib/mediaFilter/style/index.css +87 -1
- package/lib/mediaFilter/style/index.less +109 -3
- package/lib/userDirector/component.js +182 -67
- package/lib/userDirector/components/userTree.js +77 -0
- package/lib/userDirector/style/index.css +47 -0
- package/lib/userDirector/style/index.less +50 -0
- package/package.json +1 -1
- package/es/mediaFilter/components/DocFilter.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/es/mediaFilter/components/FilterGroup.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/es/mediaFilter/components/FilterItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -2
- package/lib/mediaFilter/components/DocFilter.vue_vue_type_style_index_0_scoped_true_lang.js +0 -3
- package/lib/mediaFilter/components/FilterGroup.vue_vue_type_style_index_0_scoped_true_lang.js +0 -3
- package/lib/mediaFilter/components/FilterItem.vue_vue_type_style_index_0_scoped_true_lang.js +0 -3
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
const _hoisted_1 = { class: "user-item" };
|
|
6
|
+
const _hoisted_2 = { class: "left" };
|
|
7
|
+
const _sfc_main = vue.defineComponent({
|
|
8
|
+
__name: "userTree",
|
|
9
|
+
props: {
|
|
10
|
+
list: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["select", "expand", "add"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const loadMore = () => {
|
|
16
|
+
};
|
|
17
|
+
const fieldNames = {
|
|
18
|
+
children: "children",
|
|
19
|
+
title: "alias",
|
|
20
|
+
key: "node_key"
|
|
21
|
+
};
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const select = (selectedKeys, data) => {
|
|
24
|
+
emit("select", selectedKeys, data);
|
|
25
|
+
};
|
|
26
|
+
const expand = (expandedKeys, data) => {
|
|
27
|
+
emit("expand", expandedKeys, data);
|
|
28
|
+
};
|
|
29
|
+
const addItem = (nodeData) => {
|
|
30
|
+
emit("add", nodeData);
|
|
31
|
+
};
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Tree), {
|
|
34
|
+
data: props.list,
|
|
35
|
+
"load-more": loadMore,
|
|
36
|
+
"block-node": "",
|
|
37
|
+
size: "large",
|
|
38
|
+
"field-names": fieldNames,
|
|
39
|
+
"action-on-node-click": "expand",
|
|
40
|
+
onSelect: select,
|
|
41
|
+
onExpand: expand
|
|
42
|
+
}, {
|
|
43
|
+
icon: vue.withCtx((node) => [
|
|
44
|
+
!node.isLeaf ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconUserGroup), { key: 0 })) : vue.createCommentVNode("v-if", true)
|
|
45
|
+
]),
|
|
46
|
+
title: vue.withCtx((nodeData) => [
|
|
47
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
48
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
49
|
+
nodeData.isUser ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Avatar), {
|
|
50
|
+
key: 0,
|
|
51
|
+
size: 22,
|
|
52
|
+
"image-url": nodeData.avatar
|
|
53
|
+
}, null, 8, ["image-url"])) : vue.createCommentVNode("v-if", true),
|
|
54
|
+
vue.createElementVNode("span", null, vue.toDisplayString(nodeData.alias), 1)
|
|
55
|
+
])
|
|
56
|
+
])
|
|
57
|
+
]),
|
|
58
|
+
extra: vue.withCtx((nodeData) => [
|
|
59
|
+
vue.createVNode(vue.unref(webVue.Button), {
|
|
60
|
+
class: "tree-action",
|
|
61
|
+
type: "primary",
|
|
62
|
+
size: "mini",
|
|
63
|
+
shape: "circle",
|
|
64
|
+
onClick: ($event) => addItem(nodeData)
|
|
65
|
+
}, {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.createVNode(vue.unref(icon.IconPlus))
|
|
68
|
+
]),
|
|
69
|
+
_: 2
|
|
70
|
+
}, 1032, ["onClick"])
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["data"]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
module.exports = _sfc_main;
|
|
@@ -1,8 +1,55 @@
|
|
|
1
|
+
.user-director-modal-body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
.user-director-modal-body .arco-collapse {
|
|
5
|
+
height: calc(100% - 36px);
|
|
6
|
+
}
|
|
7
|
+
.user-director-modal-body .arco-collapse-item-content {
|
|
8
|
+
padding-left: 10px;
|
|
9
|
+
padding-right: 0;
|
|
10
|
+
background: white;
|
|
11
|
+
}
|
|
1
12
|
.user-select-content {
|
|
2
13
|
height: 60vh;
|
|
14
|
+
display: flex;
|
|
3
15
|
}
|
|
4
16
|
.user-select-content .user-select-left,
|
|
5
17
|
.user-select-content .user-select-right {
|
|
6
18
|
width: 50%;
|
|
7
19
|
height: 100%;
|
|
8
20
|
}
|
|
21
|
+
.user-select-content .user-select-left {
|
|
22
|
+
border-right: 1px solid var(--color-neutral-3);
|
|
23
|
+
}
|
|
24
|
+
.user-select-content .user-select-right .user-select-right-title {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
padding: 6px 16px;
|
|
30
|
+
border-bottom: 1px solid var(--color-neutral-3);
|
|
31
|
+
}
|
|
32
|
+
.user-select-content .user-select-right .user-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
padding: 5px 16px;
|
|
37
|
+
}
|
|
38
|
+
.user-select-content .user-select-right .user-item .action {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
.user-select-content .user-select-right .user-item:hover {
|
|
42
|
+
background-color: var(--color-fill-1);
|
|
43
|
+
}
|
|
44
|
+
.user-select-content .user-select-right .user-item:hover .action {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
.user-select-content .tree-action {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 7px;
|
|
50
|
+
right: 30px;
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
.user-select-content .arco-tree-node:hover .tree-action {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
}
|
|
@@ -1,8 +1,58 @@
|
|
|
1
|
+
.user-director-modal-body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
.arco-collapse {
|
|
4
|
+
height: calc(100% - 36px);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.arco-collapse-item-content {
|
|
8
|
+
padding-left: 10px;
|
|
9
|
+
padding-right: 0;
|
|
10
|
+
background: white;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
1
13
|
.user-select-content {
|
|
2
14
|
height: 60vh;
|
|
15
|
+
display: flex;
|
|
3
16
|
.user-select-left,
|
|
4
17
|
.user-select-right {
|
|
5
18
|
width: 50%;
|
|
6
19
|
height: 100%;
|
|
7
20
|
}
|
|
21
|
+
.user-select-left {
|
|
22
|
+
border-right: 1px solid var(--color-neutral-3);
|
|
23
|
+
}
|
|
24
|
+
.user-select-right {
|
|
25
|
+
.user-select-right-title {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
padding: 6px 16px;
|
|
31
|
+
border-bottom: 1px solid var(--color-neutral-3);
|
|
32
|
+
}
|
|
33
|
+
.user-item {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
padding: 5px 16px;
|
|
38
|
+
.action {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
&:hover {
|
|
42
|
+
background-color: var(--color-fill-1);
|
|
43
|
+
.action {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.tree-action {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 7px;
|
|
52
|
+
right: 30px;
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
.arco-tree-node:hover .tree-action {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
}
|
|
8
58
|
}
|
package/package.json
CHANGED