cnhis-design-vue 3.1.3 → 3.1.5
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/README.md +22 -22
- package/env.d.ts +26 -26
- package/es/packages/big-table/index.mjs +1 -1
- package/es/packages/big-table/index2.mjs +1 -10
- package/es/packages/big-table/src/BigTable.mjs +1 -2
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +1 -2315
- package/es/packages/big-table/src/BigTable2.mjs +1 -4
- package/es/packages/big-table/src/bigTableEmits.mjs +1 -1
- package/es/packages/big-table/src/bigTableEmits2.mjs +1 -48
- package/es/packages/big-table/src/bigTableProps.mjs +1 -1
- package/es/packages/big-table/src/bigTableProps2.mjs +1 -116
- package/es/packages/big-table/src/bigTableState.mjs +1 -1
- package/es/packages/big-table/src/bigTableState2.mjs +1 -51
- package/es/packages/big-table/src/components/NoData.mjs +1 -2
- package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.mjs +1 -72
- package/es/packages/big-table/src/components/NoData2.mjs +1 -4
- package/es/packages/big-table/src/components/SvgIcon.mjs +1 -2
- package/es/packages/big-table/src/components/SvgIcon.vue_vue_type_script_setup_true_lang.mjs +1 -34
- package/es/packages/big-table/src/components/SvgIcon2.mjs +1 -4
- package/es/packages/big-table/src/components/TextOverTooltip.mjs +1 -2
- package/es/packages/big-table/src/components/TextOverTooltip.vue_vue_type_script_setup_true_lang.mjs +1 -74
- package/es/packages/big-table/src/components/TextOverTooltip2.mjs +1 -4
- package/es/packages/big-table/src/components/edit-form/edit-date.mjs +1 -88
- package/es/packages/big-table/src/components/edit-form/edit-input.mjs +1 -51
- package/es/packages/big-table/src/components/edit-form/edit-select.mjs +1 -89
- package/es/packages/big-table/src/hooks/useBatchEditing.mjs +1 -1
- package/es/packages/big-table/src/hooks/useBatchEditing2.mjs +1 -284
- package/es/packages/big-table/src/hooks/useEdit.mjs +1 -1
- package/es/packages/big-table/src/hooks/useEdit2.mjs +1 -108
- package/es/packages/big-table/src/hooks/useFormat.mjs +1 -1
- package/es/packages/big-table/src/hooks/useFormat2.mjs +1 -480
- package/es/packages/big-table/src/hooks/useNestTable.mjs +1 -1
- package/es/packages/big-table/src/hooks/useNestTable2.mjs +1 -84
- package/es/packages/big-table/src/hooks/useTableParse.mjs +1 -1
- package/es/packages/big-table/src/hooks/useTableParse2.mjs +1 -135
- package/es/packages/big-table/src/utils.mjs +1 -1
- package/es/packages/big-table/src/utils2.mjs +1 -597
- package/es/packages/big-table/style/index.css +3 -5
- package/es/packages/big-table/style/index.less +557 -559
- package/es/packages/button-print/index.d.ts +4 -33
- package/es/packages/button-print/index.mjs +1 -1
- package/es/packages/button-print/index2.mjs +1 -10
- package/es/packages/button-print/src/ButtonPrint.mjs +1 -2
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +4 -33
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.mjs +1 -462
- package/es/packages/button-print/src/ButtonPrint2.mjs +1 -4
- package/es/packages/button-print/src/components/IdentityVerification.mjs +1 -2
- package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +4 -1
- package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.mjs +1 -126
- package/es/packages/button-print/src/components/IdentityVerification2.mjs +1 -4
- package/es/packages/button-print/src/utils/print.es.min.mjs +1 -1
- package/es/packages/button-print/src/utils/print.es.min2.mjs +1 -2080
- package/es/packages/button-print/style/index.css +1 -3
- package/es/packages/button-print/style/index.less +30 -32
- package/es/packages/drag-layout/index.mjs +1 -1
- package/es/packages/drag-layout/index2.mjs +1 -10
- package/es/packages/drag-layout/src/DragFormLeftItem.mjs +1 -2
- package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.mjs +1 -122
- package/es/packages/drag-layout/src/DragFormLeftItem2.mjs +1 -4
- package/es/packages/drag-layout/src/DragFormRightItem.mjs +1 -2
- package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.mjs +1 -267
- package/es/packages/drag-layout/src/DragFormRightItem2.mjs +1 -4
- package/es/packages/drag-layout/src/DragLayout.mjs +1 -2
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -10
- package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.mjs +1 -657
- package/es/packages/drag-layout/src/DragLayout2.mjs +1 -4
- package/es/packages/drag-layout/style/index.less +208 -208
- package/es/packages/field-set/index.mjs +1 -1
- package/es/packages/field-set/index2.mjs +1 -10
- package/es/packages/field-set/src/FieldSet.mjs +1 -2
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.mjs +1 -330
- package/es/packages/field-set/src/FieldSet2.mjs +1 -4
- package/es/packages/field-set/style/index.less +172 -172
- package/es/packages/form-table/index.d.ts +3 -0
- package/es/packages/form-table/index.mjs +1 -0
- package/es/packages/form-table/index2.mjs +1 -0
- package/es/packages/form-table/src/FormTable.mjs +1 -0
- package/es/packages/form-table/src/FormTable.vue.d.ts +2 -0
- package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/es/packages/form-table/src/FormTable2.mjs +1 -0
- package/es/packages/form-table/src/configs/index.d.ts +35 -0
- package/es/packages/form-table/src/configs/index.mjs +1 -0
- package/es/packages/form-table/src/configs/index2.mjs +1 -0
- package/es/packages/form-table/src/hooks/index.d.ts +4 -0
- package/es/packages/form-table/src/hooks/index.mjs +1 -0
- package/es/packages/form-table/src/hooks/useBoundDate.d.ts +21 -0
- package/es/packages/form-table/src/hooks/useBoundDate.mjs +1 -0
- package/es/packages/form-table/src/hooks/useBoundDate2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useDateType.d.ts +17 -0
- package/es/packages/form-table/src/hooks/useDateType.mjs +1 -0
- package/es/packages/form-table/src/hooks/useDateType2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useFormCommon.d.ts +14 -0
- package/es/packages/form-table/src/hooks/useFormCommon.mjs +1 -0
- package/es/packages/form-table/src/hooks/useFormCommon2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useFormEvent.d.ts +9 -0
- package/es/packages/form-table/src/hooks/useFormEvent.mjs +1 -0
- package/es/packages/form-table/src/hooks/useFormEvent2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useItemDefault.d.ts +73 -0
- package/es/packages/form-table/src/hooks/useItemDefault.mjs +1 -0
- package/es/packages/form-table/src/hooks/useItemDefault2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useSearch.d.ts +1 -0
- package/es/packages/form-table/src/hooks/useSearch.mjs +1 -0
- package/es/packages/form-table/src/hooks/useSearch2.mjs +1 -0
- package/es/packages/form-table/src/hooks/useValidate.d.ts +24 -0
- package/es/packages/form-table/src/hooks/useValidate.mjs +1 -0
- package/es/packages/form-table/src/hooks/useValidate2.mjs +1 -0
- package/es/packages/form-table/src/types/index.d.ts +9 -0
- package/es/packages/{button-print/src/interfaces.mjs → form-table/src/types/index.mjs} +0 -0
- package/es/packages/form-table/style/index.css +98 -0
- package/es/packages/form-table/style/index.less +122 -0
- package/es/packages/grid/index.d.ts +0 -2
- package/es/packages/grid/index.mjs +1 -1
- package/es/packages/grid/index2.mjs +1 -13
- package/es/packages/grid/src/Grid.mjs +1 -28
- package/es/packages/grid/src/hooks.mjs +1 -1
- package/es/packages/grid/src/hooks2.mjs +1 -165
- package/es/packages/grid/style/index.css +0 -0
- package/es/packages/grid/style/index.less +1 -0
- package/es/packages/index.css +6 -10
- package/es/packages/index.d.ts +4 -33
- package/es/packages/index.less +1201 -1207
- package/es/packages/index.mjs +1 -7
- package/es/packages/index2.mjs +1 -37
- package/es/packages/select-label/src/SelectLabel.mjs +1 -0
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +7445 -0
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/es/packages/select-label/src/SelectLabel2.mjs +1 -0
- package/es/packages/select-label/src/components/label-classify.mjs +1 -0
- package/es/packages/select-label/src/components/label-classify.vue.d.ts +3570 -0
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/es/packages/select-label/src/components/label-classify2.mjs +1 -0
- package/es/packages/select-label/src/components/label-form-content.mjs +1 -0
- package/es/packages/select-label/src/components/label-form-content.vue.d.ts +4572 -0
- package/es/packages/select-label/src/components/label-form-content.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/es/packages/select-label/src/components/label-form-content2.mjs +1 -0
- package/es/packages/select-label/style/index.css +80 -0
- package/es/packages/select-label/style/index.less +85 -0
- package/es/packages/select-person/index.mjs +1 -1
- package/es/packages/select-person/index2.mjs +1 -10
- package/es/packages/select-person/src/SearchTree.mjs +1 -2
- package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.mjs +1 -231
- package/es/packages/select-person/src/SearchTree2.mjs +1 -4
- package/es/packages/select-person/src/SelectPerson.mjs +1 -2
- package/es/packages/select-person/src/SelectPerson.vue.d.ts +7 -3
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +1 -892
- package/es/packages/select-person/src/SelectPerson2.mjs +1 -4
- package/es/packages/select-person/src/utils/index.mjs +1 -1
- package/es/packages/select-person/src/utils/index2.mjs +1 -57
- package/es/packages/select-person/style/index.css +2 -2
- package/es/packages/select-person/style/index.less +229 -231
- package/es/src/core/create.mjs +1 -1
- package/es/src/core/create2.mjs +1 -8
- package/es/src/global/variable.mjs +1 -1
- package/es/src/global/variable2.mjs +1 -4
- package/es/src/types/index.d.ts +4 -0
- package/es/src/utils/clickoutside.mjs +1 -1
- package/es/src/utils/clickoutside2.mjs +1 -48
- package/es/src/utils/crypto.mjs +1 -1
- package/es/src/utils/crypto2.mjs +1 -25
- package/es/src/utils/index.d.ts +4 -0
- package/es/src/utils/index.mjs +1 -0
- package/es/src/utils/index2.mjs +1 -0
- package/es/src/utils/vexutils.d.ts +5 -0
- package/es/src/utils/vexutils.mjs +1 -3
- package/es/src/utils/vexutils2.mjs +1 -729
- package/global.d.ts +8 -8
- package/package.json +104 -99
- package/yarn-error.log +8067 -103
- package/CHANGELOG.md +0 -196
- package/es/packages/button-print/src/interfaces.d.ts +0 -19
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from './SelectPerson.vue_vue_type_script_setup_true_lang.mjs';
|
|
3
|
-
|
|
4
|
-
script.__file = "packages/select-person/src/SelectPerson.vue";
|
|
1
|
+
import e from"./SelectPerson.vue_vue_type_script_setup_true_lang.mjs";export{default}from"./SelectPerson.vue_vue_type_script_setup_true_lang.mjs";e.__file="packages/select-person/src/SelectPerson.vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{deepTraversalFirst,filterTree}from"./index2.mjs";
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
visible = visible || "visible";
|
|
3
|
-
children = children || "children";
|
|
4
|
-
prop = prop || "text";
|
|
5
|
-
const filterNodeMethod = function(value2, data2) {
|
|
6
|
-
if (!value2) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
let flag = (data2[prop] || "").indexOf(value2) !== -1;
|
|
10
|
-
return filterXor ? !flag : flag;
|
|
11
|
-
};
|
|
12
|
-
const traverse = function(node) {
|
|
13
|
-
const childNodes = node[children] || [];
|
|
14
|
-
childNodes.forEach((child) => {
|
|
15
|
-
callback && callback(child);
|
|
16
|
-
child[visible] = !node.root && !filterChildren && node[visible] || filterNodeMethod.call(child, value, child, prop);
|
|
17
|
-
traverse(child);
|
|
18
|
-
});
|
|
19
|
-
if (!node[visible] && childNodes.length) {
|
|
20
|
-
let allHidden = true;
|
|
21
|
-
allHidden = !childNodes.some((child) => child[visible]);
|
|
22
|
-
node[visible] = allHidden === false;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
let totalData = {
|
|
26
|
-
root: true
|
|
27
|
-
};
|
|
28
|
-
totalData[children] = data;
|
|
29
|
-
traverse(totalData);
|
|
30
|
-
if (filter) {
|
|
31
|
-
let copyData = data.slice();
|
|
32
|
-
let filterHandle = (filterData) => {
|
|
33
|
-
return filterData.filter((item, index) => {
|
|
34
|
-
if (item[visible]) {
|
|
35
|
-
if (item[children]) {
|
|
36
|
-
item[children] = filterHandle(item[children]);
|
|
37
|
-
}
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
return filterHandle(copyData);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const deepTraversalFirst = (node, nodeList = []) => {
|
|
47
|
-
if (node !== null) {
|
|
48
|
-
nodeList.push(node);
|
|
49
|
-
if (node.children && node.children.length > 0) {
|
|
50
|
-
let children = node.children;
|
|
51
|
-
deepTraversalFirst(children[0], nodeList);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return nodeList;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export { deepTraversalFirst, filterTree };
|
|
1
|
+
const e=({value:e,data:l,prop:t,filter:r,filterXor:i,children:n,visible:c,filterChildren:o=!0,callback:f})=>{c=c||"visible",t=t||"text";const h=function(e,l){if(!e)return!0;let r=-1!==(l[t]||"").indexOf(e);return i?!r:r},u=function(l){const r=l[n]||[];if(r.forEach((r=>{f&&f(r),r[c]=!l.root&&!o&&l[c]||h.call(r,e,r,t),u(r)})),!l[c]&&r.length){let e=!0;e=!r.some((e=>e[c])),l[c]=!1===e}};let d={root:!0};if(d[n=n||"children"]=l,u(d),r){let e=l.slice(),t=e=>e.filter(((e,l)=>!!e[c]&&(e[n]&&(e[n]=t(e[n])),!0)));return t(e)}},l=(e,t=[])=>{if(null!==e&&(t.push(e),e.children&&e.children.length>0)){let r=e.children;l(r[0],t)}return t};export{l as deepTraversalFirst,e as filterTree};
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
line-height: 16px;
|
|
127
127
|
}
|
|
128
128
|
.search-tree-wrap .info-wrap {
|
|
129
|
-
text-overflow: ellipsis;
|
|
130
129
|
overflow: hidden;
|
|
130
|
+
text-overflow: ellipsis;
|
|
131
131
|
white-space: nowrap;
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-direction: column;
|
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
align-items: flex-end;
|
|
137
137
|
margin: 0;
|
|
138
138
|
margin-bottom: 1px;
|
|
139
|
-
text-overflow: ellipsis;
|
|
140
139
|
overflow: hidden;
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
141
|
white-space: nowrap;
|
|
142
142
|
}
|
|
143
143
|
.search-tree-wrap .info-wrap-title {
|
|
@@ -1,231 +1,229 @@
|
|
|
1
|
-
@primary-color: #5585f5;
|
|
2
|
-
.people-tree {
|
|
3
|
-
display: flex;
|
|
4
|
-
|
|
5
|
-
.people-tree-item {
|
|
6
|
-
width: 50%;
|
|
7
|
-
padding: 22px 12px 0;
|
|
8
|
-
max-height: 376px;
|
|
9
|
-
height: 376px;
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
&.people-tree-left {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:first-child {
|
|
18
|
-
border-right: 1px solid #e8e8e8;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tag-item {
|
|
22
|
-
&.isRoot {
|
|
23
|
-
background: rgba(@primary-color, 0.08);
|
|
24
|
-
border: 1px solid rgba(@primary-color, 0.5);
|
|
25
|
-
color: @primary-color;
|
|
26
|
-
|
|
27
|
-
.tag-close {
|
|
28
|
-
color: @primary-color;
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
color: rgba(@primary-color, 0.6);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
color: #212121;
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
list-style: none;
|
|
41
|
-
display: inline-flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
height: 24px;
|
|
44
|
-
line-height: 24px;
|
|
45
|
-
margin-right: 8px;
|
|
46
|
-
margin-bottom: 4px;
|
|
47
|
-
padding: 0 6px;
|
|
48
|
-
white-space: nowrap;
|
|
49
|
-
background: rgba(#d5d5d5, 0.2);
|
|
50
|
-
border: 1px solid rgba(#000000, 0.14);
|
|
51
|
-
border-radius: 4px;
|
|
52
|
-
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
53
|
-
|
|
54
|
-
.tag-close {
|
|
55
|
-
&:hover {
|
|
56
|
-
color: rgba(@primary-color, 0.6);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&:active {
|
|
60
|
-
color: #fff;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
display: inline-block;
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
margin-left: 3px;
|
|
66
|
-
color: #969696;
|
|
67
|
-
font-weight: 700;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
transition: all 0.3s;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.no-data-tips {
|
|
74
|
-
height: 200px;
|
|
75
|
-
width: 100%;
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
align-items: center;
|
|
79
|
-
font-size: 16px;
|
|
80
|
-
font-weight: 700;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.c-title {
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
font-family: PingFangSC-Regular, PingFang SC;
|
|
86
|
-
font-weight: 400;
|
|
87
|
-
color: #212121;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.c-sub-title {
|
|
91
|
-
font-size: 12px;
|
|
92
|
-
font-family: PingFangSC-Regular, PingFang SC;
|
|
93
|
-
color: #4e4e4e;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.p-title {
|
|
97
|
-
font-size: 14px;
|
|
98
|
-
font-family: PingFangSC-Medium, PingFang SC;
|
|
99
|
-
font-weight: 500;
|
|
100
|
-
color: #212121;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&.tags-box {
|
|
104
|
-
display: flex;
|
|
105
|
-
flex-wrap: wrap;
|
|
106
|
-
justify-content: flex-start;
|
|
107
|
-
align-items: flex-start;
|
|
108
|
-
align-content: flex-start;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.df {
|
|
114
|
-
display: flex;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.search-input-icon {
|
|
118
|
-
color: rgba(0, 0, 0, 0.4);
|
|
119
|
-
margin-bottom: -2px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.main-tree-container {
|
|
123
|
-
overflow-y: auto;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.df {
|
|
127
|
-
display: flex;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.search-tree-wrap {
|
|
131
|
-
.search-tree-item {
|
|
132
|
-
display: flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.name-wrap {
|
|
137
|
-
width: 48px;
|
|
138
|
-
height: 48px;
|
|
139
|
-
background: #7d88b5;
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
border-radius: 50%;
|
|
144
|
-
margin-right: 13px;
|
|
145
|
-
|
|
146
|
-
.name {
|
|
147
|
-
font-size: 16px;
|
|
148
|
-
color: #ffffff;
|
|
149
|
-
margin-bottom: 0;
|
|
150
|
-
line-height: 16px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.info-wrap {
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
text-overflow: ellipsis;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
margin:
|
|
166
|
-
|
|
167
|
-
overflow:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
font-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
font-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
}
|
|
1
|
+
@primary-color: #5585f5;
|
|
2
|
+
.people-tree {
|
|
3
|
+
display: flex;
|
|
4
|
+
|
|
5
|
+
.people-tree-item {
|
|
6
|
+
width: 50%;
|
|
7
|
+
padding: 22px 12px 0;
|
|
8
|
+
max-height: 376px;
|
|
9
|
+
height: 376px;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&.people-tree-left {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:first-child {
|
|
18
|
+
border-right: 1px solid #e8e8e8;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.tag-item {
|
|
22
|
+
&.isRoot {
|
|
23
|
+
background: rgba(@primary-color, 0.08);
|
|
24
|
+
border: 1px solid rgba(@primary-color, 0.5);
|
|
25
|
+
color: @primary-color;
|
|
26
|
+
|
|
27
|
+
.tag-close {
|
|
28
|
+
color: @primary-color;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
color: rgba(@primary-color, 0.6);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
color: #212121;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
list-style: none;
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
height: 24px;
|
|
44
|
+
line-height: 24px;
|
|
45
|
+
margin-right: 8px;
|
|
46
|
+
margin-bottom: 4px;
|
|
47
|
+
padding: 0 6px;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
background: rgba(#d5d5d5, 0.2);
|
|
50
|
+
border: 1px solid rgba(#000000, 0.14);
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
53
|
+
|
|
54
|
+
.tag-close {
|
|
55
|
+
&:hover {
|
|
56
|
+
color: rgba(@primary-color, 0.6);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:active {
|
|
60
|
+
color: #fff;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
display: inline-block;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
margin-left: 3px;
|
|
66
|
+
color: #969696;
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
transition: all 0.3s;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.no-data-tips {
|
|
74
|
+
height: 200px;
|
|
75
|
+
width: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
align-items: center;
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.c-title {
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
color: #212121;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.c-sub-title {
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
93
|
+
color: #4e4e4e;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.p-title {
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
font-family: PingFangSC-Medium, PingFang SC;
|
|
99
|
+
font-weight: 500;
|
|
100
|
+
color: #212121;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.tags-box {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
justify-content: flex-start;
|
|
107
|
+
align-items: flex-start;
|
|
108
|
+
align-content: flex-start;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.df {
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.search-input-icon {
|
|
118
|
+
color: rgba(0, 0, 0, 0.4);
|
|
119
|
+
margin-bottom: -2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.main-tree-container {
|
|
123
|
+
overflow-y: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.df {
|
|
127
|
+
display: flex;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.search-tree-wrap {
|
|
131
|
+
.search-tree-item {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.name-wrap {
|
|
137
|
+
width: 48px;
|
|
138
|
+
height: 48px;
|
|
139
|
+
background: #7d88b5;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
margin-right: 13px;
|
|
145
|
+
|
|
146
|
+
.name {
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
color: #ffffff;
|
|
149
|
+
margin-bottom: 0;
|
|
150
|
+
line-height: 16px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.info-wrap {
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
white-space: nowrap;
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.info-wrap-top {
|
|
163
|
+
align-items: flex-end;
|
|
164
|
+
margin: 0;
|
|
165
|
+
margin-bottom: 1px;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.info-wrap-title {
|
|
172
|
+
margin-bottom: 0;
|
|
173
|
+
font-size: 16px;
|
|
174
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
175
|
+
font-weight: 400;
|
|
176
|
+
color: #4e4e4e;
|
|
177
|
+
line-height: 16px;
|
|
178
|
+
|
|
179
|
+
.c-title {
|
|
180
|
+
font-size: 14px;
|
|
181
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
182
|
+
font-weight: 400;
|
|
183
|
+
color: #212121;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.c-sub-title {
|
|
187
|
+
font-size: 12px;
|
|
188
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
189
|
+
color: #4e4e4e;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.info-wrap-desc {
|
|
194
|
+
margin-left: 10px;
|
|
195
|
+
margin-bottom: 0;
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
line-height: 17px;
|
|
198
|
+
color: #aeaeae;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.info-wrap-position {
|
|
202
|
+
margin-bottom: 0;
|
|
203
|
+
font-size: 12px;
|
|
204
|
+
color: #7d88b5;
|
|
205
|
+
line-height: 17px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.load-more-btn-wrap {
|
|
210
|
+
display: flex;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
height: 35px;
|
|
213
|
+
line-height: 35px;
|
|
214
|
+
cursor: pointer;
|
|
215
|
+
padding-top: 10px;
|
|
216
|
+
box-sizing: border-box;
|
|
217
|
+
|
|
218
|
+
.search-input-icon {
|
|
219
|
+
font-size: 16px;
|
|
220
|
+
color: rgba(0, 0, 0, 0.4);
|
|
221
|
+
margin-right: 14px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.load-more-btn {
|
|
225
|
+
font-size: 12px;
|
|
226
|
+
color: #747c8e;
|
|
227
|
+
line-height: 12px;
|
|
228
|
+
}
|
|
229
|
+
}
|
package/es/src/core/create.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{default}from"./create2.mjs";
|
package/es/src/core/create2.mjs
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function create(vm) {
|
|
4
|
-
vm.name = KEY_COMPONENT_NAME + (vm.name || "");
|
|
5
|
-
return vm;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export { create as default };
|
|
1
|
+
import{KEY_COMPONENT_NAME as a}from"../global/variable2.mjs";function e(e){return e.name=a+(e.name||""),e}export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{GROUP_TITLE_KEY,KEY_COMPONENT_NAME}from"./variable2.mjs";
|
package/es/src/types/index.d.ts
CHANGED
|
@@ -2,3 +2,7 @@ import { App } from '@vue/runtime-core';
|
|
|
2
2
|
export declare type SFCWithInstall<T> = T & {
|
|
3
3
|
install: (app: App, ...options: any[]) => any;
|
|
4
4
|
};
|
|
5
|
+
export declare type AnyObject = Record<string, any>;
|
|
6
|
+
export declare type Func<T extends Array<any> = any[], P = any> = (...args: T) => P;
|
|
7
|
+
export declare type WithNull<T> = T | null;
|
|
8
|
+
export declare type WithUndefined<T> = T | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{default}from"./clickoutside2.mjs";
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
const ctx = "@@clickoutsideContext";
|
|
3
|
-
let startClick;
|
|
4
|
-
let seed = 0;
|
|
5
|
-
document.addEventListener("mousedown", (e) => startClick = e, false);
|
|
6
|
-
document.addEventListener("mouseup", (e) => {
|
|
7
|
-
nodeList.forEach((node) => node[ctx].documentHandler(e, startClick));
|
|
8
|
-
}, false);
|
|
9
|
-
function createDocumentHandler(el, binding, vnode) {
|
|
10
|
-
return function(mouseup = {}, mousedown = {}) {
|
|
11
|
-
if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target || vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target)))
|
|
12
|
-
return;
|
|
13
|
-
if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
|
|
14
|
-
vnode.context[el[ctx].methodName]();
|
|
15
|
-
} else {
|
|
16
|
-
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var clickoutside = {
|
|
21
|
-
mounted(el, binding, vnode) {
|
|
22
|
-
nodeList.push(el);
|
|
23
|
-
const id = seed++;
|
|
24
|
-
el[ctx] = {
|
|
25
|
-
id,
|
|
26
|
-
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
27
|
-
methodName: binding.expression,
|
|
28
|
-
bindingFn: binding.value
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
update(el, binding, vnode) {
|
|
32
|
-
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
33
|
-
el[ctx].methodName = binding.expression;
|
|
34
|
-
el[ctx].bindingFn = binding.value;
|
|
35
|
-
},
|
|
36
|
-
unmounted(el) {
|
|
37
|
-
let len = nodeList.length;
|
|
38
|
-
for (let i = 0; i < len; i++) {
|
|
39
|
-
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
40
|
-
nodeList.splice(i, 1);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
delete el[ctx];
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { clickoutside as default };
|
|
1
|
+
const e=[],t="@@clickoutsideContext";let n,o=0;function d(e,n,o){return function(d={},a={}){!(o&&o.context&&d.target&&a.target)||e.contains(d.target)||e.contains(a.target)||e===d.target||o.context.popperElm&&(o.context.popperElm.contains(d.target)||o.context.popperElm.contains(a.target))||(n.expression&&e[t].methodName&&o.context[e[t].methodName]?o.context[e[t].methodName]():e[t].bindingFn&&e[t].bindingFn())}}document.addEventListener("mousedown",(e=>n=e),!1),document.addEventListener("mouseup",(o=>{e.forEach((e=>e[t].documentHandler(o,n)))}),!1);var a={mounted(n,a,i){e.push(n);const r=o++;n[t]={id:r,documentHandler:d(n,a,i),methodName:a.expression,bindingFn:a.value}},update(e,n,o){e[t].documentHandler=d(e,n,o),e[t].methodName=n.expression,e[t].bindingFn=n.value},unmounted(n){let o=e.length;for(let d=0;d<o;d++)if(e[d][t].id===n[t].id){e.splice(d,1);break}delete n[t]}};export{a as default};
|
package/es/src/utils/crypto.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{default}from"./crypto2.mjs";
|
package/es/src/utils/crypto2.mjs
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function encrypt(word) {
|
|
4
|
-
const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
|
|
5
|
-
const srcs = CryptoJS.enc.Utf8.parse(word);
|
|
6
|
-
const encrypted = CryptoJS.AES.encrypt(srcs, key, {
|
|
7
|
-
mode: CryptoJS.mode.ECB,
|
|
8
|
-
padding: CryptoJS.pad.Pkcs7
|
|
9
|
-
});
|
|
10
|
-
return encrypted.toString();
|
|
11
|
-
}
|
|
12
|
-
function decrypt(word) {
|
|
13
|
-
const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
|
|
14
|
-
const decrypt2 = CryptoJS.AES.decrypt(word, key, {
|
|
15
|
-
mode: CryptoJS.mode.ECB,
|
|
16
|
-
padding: CryptoJS.pad.Pkcs7
|
|
17
|
-
});
|
|
18
|
-
return CryptoJS.enc.Utf8.stringify(decrypt2).toString();
|
|
19
|
-
}
|
|
20
|
-
var crypto = {
|
|
21
|
-
encrypt,
|
|
22
|
-
decrypt
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { crypto as default };
|
|
1
|
+
import t from"crypto-js";var e={encrypt:function(e){const n=t.enc.Utf8.parse("0D7FB71E8EC31E97"),r=t.enc.Utf8.parse(e);return t.AES.encrypt(r,n,{mode:t.mode.ECB,padding:t.pad.Pkcs7}).toString()},decrypt:function(e){const n=t.enc.Utf8.parse("0D7FB71E8EC31E97"),r=t.AES.decrypt(e,n,{mode:t.mode.ECB,padding:t.pad.Pkcs7});return t.enc.Utf8.stringify(r).toString()}};export{e as default};
|