@cgboiler/biz-mobile 1.18.20 → 1.18.21
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/es/index.d.ts +2 -4
- package/es/index.js +2 -6
- package/es/md-preview/index.less +107 -107
- package/es/org-picker/OrgPicker.js +19 -11
- package/es/org-picker/_atomic.css +0 -21
- package/es/org-picker/index.less +230 -230
- package/es/org-picker/useApi.d.ts +6 -1
- package/es/org-picker/useApi.js +259 -71
- package/es/org-picker/useSearch.js +37 -16
- package/es/project-select/index.less +45 -45
- package/es/project-select/useApi.js +1 -1
- package/es/vue-sfc-shim.d.ts +8 -8
- package/es/vue-tsx-shim.d.ts +29 -29
- package/lib/index.d.ts +2 -4
- package/lib/index.js +2 -6
- package/lib/md-preview/index.less +107 -107
- package/lib/org-picker/OrgPicker.js +20 -12
- package/lib/org-picker/_atomic.css +0 -21
- package/lib/org-picker/index.less +230 -230
- package/lib/org-picker/useApi.d.ts +6 -1
- package/lib/org-picker/useApi.js +257 -71
- package/lib/org-picker/useSearch.js +36 -15
- package/lib/project-select/index.less +45 -45
- package/lib/project-select/useApi.js +1 -1
- package/lib/vue-sfc-shim.d.ts +8 -8
- package/lib/vue-tsx-shim.d.ts +29 -29
- package/package.json +2 -3
- package/es/rich-text-editor/RichTextEditor.d.ts +0 -26
- package/es/rich-text-editor/RichTextEditor.js +0 -23
- package/es/rich-text-editor/_atomic.css +0 -32
- package/es/rich-text-editor/index.css +0 -0
- package/es/rich-text-editor/index.d.ts +0 -3
- package/es/rich-text-editor/index.js +0 -5
- package/es/rich-text-editor/index.less +0 -0
- package/es/rich-text-editor/style/index.d.ts +0 -1
- package/es/rich-text-editor/style/index.js +0 -1
- package/es/rich-text-editor/style/less.d.ts +0 -1
- package/es/rich-text-editor/style/less.js +0 -1
- package/es/rich-text-editor/types.d.ts +0 -12
- package/es/rich-text-editor/types.js +0 -13
- package/lib/rich-text-editor/RichTextEditor.d.ts +0 -26
- package/lib/rich-text-editor/RichTextEditor.js +0 -42
- package/lib/rich-text-editor/_atomic.css +0 -32
- package/lib/rich-text-editor/index.css +0 -0
- package/lib/rich-text-editor/index.d.ts +0 -3
- package/lib/rich-text-editor/index.js +0 -34
- package/lib/rich-text-editor/index.less +0 -0
- package/lib/rich-text-editor/style/index.d.ts +0 -1
- package/lib/rich-text-editor/style/index.js +0 -1
- package/lib/rich-text-editor/style/less.d.ts +0 -1
- package/lib/rich-text-editor/style/less.js +0 -1
- package/lib/rich-text-editor/types.d.ts +0 -12
- package/lib/rich-text-editor/types.js +0 -32
- /package/es/org-picker/components/{DeptImg.d.ts → deptImg.d.ts} +0 -0
- /package/es/org-picker/components/{DeptImg.js → deptImg.js} +0 -0
- /package/lib/org-picker/components/{DeptImg.d.ts → deptImg.d.ts} +0 -0
- /package/lib/org-picker/components/{DeptImg.js → deptImg.js} +0 -0
package/es/index.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
export * from "./md-preview";
|
|
2
2
|
export * from "./org-picker";
|
|
3
3
|
export * from "./project-select";
|
|
4
|
-
export * from "./rich-text-editor";
|
|
5
4
|
declare namespace _default {
|
|
6
5
|
export { install };
|
|
7
6
|
export { version };
|
|
8
7
|
}
|
|
9
8
|
export default _default;
|
|
10
9
|
export function install(app: any): void;
|
|
11
|
-
export const version: "1.18.
|
|
10
|
+
export const version: "1.18.20";
|
|
12
11
|
import MdPreview from './md-preview';
|
|
13
12
|
import OrgPicker from './org-picker';
|
|
14
13
|
import ProjectSelect from './project-select';
|
|
15
|
-
|
|
16
|
-
export { MdPreview, OrgPicker, ProjectSelect, RichTextEditor };
|
|
14
|
+
export { MdPreview, OrgPicker, ProjectSelect };
|
package/es/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import MdPreview from "./md-preview";
|
|
2
2
|
import OrgPicker from "./org-picker";
|
|
3
3
|
import ProjectSelect from "./project-select";
|
|
4
|
-
|
|
5
|
-
const version = "1.18.19";
|
|
4
|
+
const version = "1.18.20";
|
|
6
5
|
function install(app) {
|
|
7
6
|
const components = [
|
|
8
7
|
MdPreview,
|
|
9
8
|
OrgPicker,
|
|
10
|
-
ProjectSelect
|
|
11
|
-
RichTextEditor
|
|
9
|
+
ProjectSelect
|
|
12
10
|
];
|
|
13
11
|
components.forEach((item) => {
|
|
14
12
|
if (item.install) {
|
|
@@ -21,7 +19,6 @@ function install(app) {
|
|
|
21
19
|
export * from "./md-preview";
|
|
22
20
|
export * from "./org-picker";
|
|
23
21
|
export * from "./project-select";
|
|
24
|
-
export * from "./rich-text-editor";
|
|
25
22
|
var stdin_default = {
|
|
26
23
|
install,
|
|
27
24
|
version
|
|
@@ -30,7 +27,6 @@ export {
|
|
|
30
27
|
MdPreview,
|
|
31
28
|
OrgPicker,
|
|
32
29
|
ProjectSelect,
|
|
33
|
-
RichTextEditor,
|
|
34
30
|
stdin_default as default,
|
|
35
31
|
install,
|
|
36
32
|
version
|
package/es/md-preview/index.less
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
.katex-block {
|
|
2
|
-
display: block;
|
|
3
|
-
margin: 1em 0;
|
|
4
|
-
text-align: center;
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
overflow-y: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cgx-markdown-preview {
|
|
10
|
-
|
|
11
|
-
/* 差异对比样式 */
|
|
12
|
-
.diff-container {
|
|
13
|
-
border: 1px solid #ebeef5;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
overflow: auto;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.diff-equal {
|
|
19
|
-
color: #606266;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.diff-delete {
|
|
23
|
-
background-color: #ffeef0;
|
|
24
|
-
color: #f56c6c;
|
|
25
|
-
text-decoration: line-through;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.diff-insert {
|
|
29
|
-
background-color: #e6ffec;
|
|
30
|
-
color: #67c23a;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.diff-unified-view pre {
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 8px;
|
|
36
|
-
white-space: pre-wrap;
|
|
37
|
-
word-break: break-word;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cgx-markdown-preview {
|
|
42
|
-
line-height: 1.6;
|
|
43
|
-
font-size: var(--font-base, 16px);
|
|
44
|
-
ol {
|
|
45
|
-
list-style: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ul {
|
|
49
|
-
list-style: disc;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
ol,
|
|
53
|
-
ul {
|
|
54
|
-
padding-left: 1.5em;
|
|
55
|
-
margin: 0 0 12px 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
li::marker {
|
|
59
|
-
text-align: start !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
h1 {
|
|
63
|
-
font-size: 2em;
|
|
64
|
-
font-weight: bold;
|
|
65
|
-
margin: 16px 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
h2 {
|
|
69
|
-
font-size: 1.5em;
|
|
70
|
-
font-weight: bold;
|
|
71
|
-
margin: 14px 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
p {
|
|
75
|
-
margin: 12px 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
blockquote {
|
|
79
|
-
margin: 0;
|
|
80
|
-
padding-left: 1em;
|
|
81
|
-
border-left: 4px solid #ddd;
|
|
82
|
-
color: #666;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
table {
|
|
86
|
-
border-collapse: collapse;
|
|
87
|
-
width: 100%;
|
|
88
|
-
margin-bottom: 16px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
th,
|
|
92
|
-
td {
|
|
93
|
-
border: 1px solid #ddd;
|
|
94
|
-
padding: 8px;
|
|
95
|
-
text-align: left;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
th {
|
|
99
|
-
background-color: #f6f8fa;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.mermaid {
|
|
103
|
-
text-align: center;
|
|
104
|
-
font-size: 14px; /* 防止字体过大影响图表布局 */
|
|
105
|
-
line-height: 1.2;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
1
|
+
.katex-block {
|
|
2
|
+
display: block;
|
|
3
|
+
margin: 1em 0;
|
|
4
|
+
text-align: center;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cgx-markdown-preview {
|
|
10
|
+
|
|
11
|
+
/* 差异对比样式 */
|
|
12
|
+
.diff-container {
|
|
13
|
+
border: 1px solid #ebeef5;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.diff-equal {
|
|
19
|
+
color: #606266;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.diff-delete {
|
|
23
|
+
background-color: #ffeef0;
|
|
24
|
+
color: #f56c6c;
|
|
25
|
+
text-decoration: line-through;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.diff-insert {
|
|
29
|
+
background-color: #e6ffec;
|
|
30
|
+
color: #67c23a;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.diff-unified-view pre {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 8px;
|
|
36
|
+
white-space: pre-wrap;
|
|
37
|
+
word-break: break-word;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.cgx-markdown-preview {
|
|
42
|
+
line-height: 1.6;
|
|
43
|
+
font-size: var(--font-base, 16px);
|
|
44
|
+
ol {
|
|
45
|
+
list-style: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ul {
|
|
49
|
+
list-style: disc;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ol,
|
|
53
|
+
ul {
|
|
54
|
+
padding-left: 1.5em;
|
|
55
|
+
margin: 0 0 12px 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
li::marker {
|
|
59
|
+
text-align: start !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
h1 {
|
|
63
|
+
font-size: 2em;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
margin: 16px 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h2 {
|
|
69
|
+
font-size: 1.5em;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
margin: 14px 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
p {
|
|
75
|
+
margin: 12px 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
blockquote {
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding-left: 1em;
|
|
81
|
+
border-left: 4px solid #ddd;
|
|
82
|
+
color: #666;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
table {
|
|
86
|
+
border-collapse: collapse;
|
|
87
|
+
width: 100%;
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
th,
|
|
92
|
+
td {
|
|
93
|
+
border: 1px solid #ddd;
|
|
94
|
+
padding: 8px;
|
|
95
|
+
text-align: left;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
th {
|
|
99
|
+
background-color: #f6f8fa;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mermaid {
|
|
103
|
+
text-align: center;
|
|
104
|
+
font-size: 14px; /* 防止字体过大影响图表布局 */
|
|
105
|
+
line-height: 1.2;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -22,7 +22,7 @@ import { createVNode as _createVNode, createTextVNode as _createTextVNode, Fragm
|
|
|
22
22
|
import "./_atomic.css";
|
|
23
23
|
import { defineComponent, ref, computed, watch } from "vue";
|
|
24
24
|
import { ActionSheet, Search, List, Image, Empty, Tabs, Tab, Icon } from "vant";
|
|
25
|
-
import DeptImg from "./components/
|
|
25
|
+
import DeptImg from "./components/deptImg";
|
|
26
26
|
import { orgPickerProps } from "./types";
|
|
27
27
|
import { useApi, getFinalUserList } from "./useApi";
|
|
28
28
|
import "./index.css";
|
|
@@ -67,17 +67,19 @@ var stdin_default = defineComponent({
|
|
|
67
67
|
const newFullySelected = /* @__PURE__ */ new Set();
|
|
68
68
|
const newPartiallySelected = /* @__PURE__ */ new Set();
|
|
69
69
|
const selectedUserIds = new Set(selectedItems.value.map((item) => item.id));
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
70
|
+
const checkGroupStatus = (groupId) => {
|
|
71
|
+
const groupUsers = getUsersByDeptId(groupId);
|
|
72
|
+
if (groupUsers.length === 0)
|
|
73
73
|
return;
|
|
74
|
-
const selectedCount =
|
|
75
|
-
if (selectedCount ===
|
|
76
|
-
newFullySelected.add(
|
|
74
|
+
const selectedCount = groupUsers.filter((user) => selectedUserIds.has(user.id)).length;
|
|
75
|
+
if (selectedCount === groupUsers.length) {
|
|
76
|
+
newFullySelected.add(groupId);
|
|
77
77
|
} else if (selectedCount > 0) {
|
|
78
|
-
newPartiallySelected.add(
|
|
78
|
+
newPartiallySelected.add(groupId);
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
};
|
|
81
|
+
api.deptList.value.forEach((dept) => checkGroupStatus(dept.id));
|
|
82
|
+
api.getCompanies().forEach((comp) => checkGroupStatus(comp.id));
|
|
81
83
|
fullySelectedDepts.value = newFullySelected;
|
|
82
84
|
partiallySelectedDepts.value = newPartiallySelected;
|
|
83
85
|
};
|
|
@@ -289,8 +291,14 @@ var stdin_default = defineComponent({
|
|
|
289
291
|
}, [isFullySelected || isPartiallySelected ? _createVNode("span", {
|
|
290
292
|
"class": "dept-check-icon"
|
|
291
293
|
}, [_createTextVNode("\u2713")]) : null]), _createVNode("div", {
|
|
292
|
-
"class": "dept-content",
|
|
293
|
-
"onClick": () =>
|
|
294
|
+
"class": "dept-content flex-1 flex items-center",
|
|
295
|
+
"onClick": (e) => {
|
|
296
|
+
if (isDept) {
|
|
297
|
+
e.stopPropagation();
|
|
298
|
+
handleDeptNavigate(item);
|
|
299
|
+
} else {
|
|
300
|
+
}
|
|
301
|
+
}
|
|
294
302
|
}, [isDept && !keyword.value ? _createVNode("div", {
|
|
295
303
|
"class": "org-avatar"
|
|
296
304
|
}, [_createVNode(DeptImg, null, null)]) : _createVNode(Image, {
|
|
@@ -30,27 +30,6 @@
|
|
|
30
30
|
flex-wrap: wrap;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/* layer: default */
|
|
34
|
-
.cgx-atm .absolute{position:absolute;}
|
|
35
|
-
.cgx-atm .bottom-0{bottom:0rem;}
|
|
36
|
-
.cgx-atm .left-0{left:0rem;}
|
|
37
|
-
.cgx-atm .right-0{right:0rem;}
|
|
38
|
-
.cgx-atm .top-0{top:0rem;}
|
|
39
|
-
.cgx-atm .z-1{z-index:1;}
|
|
40
|
-
.cgx-atm .h-\[300px\]{height:300px;}
|
|
41
|
-
.cgx-atm .flex-1{flex:1 1 0%;}
|
|
42
|
-
.cgx-atm .overflow-auto{overflow:auto;}
|
|
43
|
-
.cgx-atm .border-b{border-bottom-width:1px;border-bottom-style:solid;}
|
|
44
|
-
.cgx-atm .border-\[\#eee\]{--un-border-opacity:1;border-color:rgba(238,238,238,var(--un-border-opacity));}
|
|
45
|
-
.cgx-atm .bg-\[\#fff\]{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));}
|
|
46
|
-
.cgx-atm .px-\[16px\],
|
|
47
|
-
.cgx-atm .px-16px{padding-left:16px;padding-right:16px;}
|
|
48
|
-
.cgx-atm .py-\[12px\]{padding-top:12px;padding-bottom:12px;}
|
|
49
|
-
.cgx-atm .py-\[8px\],
|
|
50
|
-
.cgx-atm .py-8px{padding-top:8px;padding-bottom:8px;}
|
|
51
|
-
.cgx-atm .text-\[14px\]{font-size:14px;}
|
|
52
|
-
.cgx-atm .font-bold{font-weight:700;}
|
|
53
|
-
.cgx-atm .text-\[\#333\]{--un-text-opacity:1;color:rgba(51,51,51,var(--un-text-opacity));}
|
|
54
33
|
/* layer: default */
|
|
55
34
|
.cgx-atm .relative{position:relative;}
|
|
56
35
|
.cgx-atm .w-full{width:100%;}
|