@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/vue-tsx-shim.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import 'vue';
|
|
2
|
-
|
|
3
|
-
type EventHandler = (...args: any[]) => void;
|
|
4
|
-
|
|
5
|
-
declare module 'vue' {
|
|
6
|
-
interface ComponentCustomProps {
|
|
7
|
-
id?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
tabindex?: number;
|
|
10
|
-
onClick?: EventHandler;
|
|
11
|
-
onTouchend?: EventHandler;
|
|
12
|
-
onTouchmove?: EventHandler;
|
|
13
|
-
onTouchstart?: EventHandler;
|
|
14
|
-
onTouchcancel?: EventHandler;
|
|
15
|
-
onTouchmovePassive?: EventHandler;
|
|
16
|
-
onTouchstartPassive?: EventHandler;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface HTMLAttributes {
|
|
20
|
-
onTouchmovePassive?: EventHandler;
|
|
21
|
-
onTouchstartPassive?: EventHandler;
|
|
22
|
-
onClickCapture?: EventHandler;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
declare global {
|
|
26
|
-
interface Window {
|
|
27
|
-
globalConfig: any;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
import 'vue';
|
|
2
|
+
|
|
3
|
+
type EventHandler = (...args: any[]) => void;
|
|
4
|
+
|
|
5
|
+
declare module 'vue' {
|
|
6
|
+
interface ComponentCustomProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
tabindex?: number;
|
|
10
|
+
onClick?: EventHandler;
|
|
11
|
+
onTouchend?: EventHandler;
|
|
12
|
+
onTouchmove?: EventHandler;
|
|
13
|
+
onTouchstart?: EventHandler;
|
|
14
|
+
onTouchcancel?: EventHandler;
|
|
15
|
+
onTouchmovePassive?: EventHandler;
|
|
16
|
+
onTouchstartPassive?: EventHandler;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface HTMLAttributes {
|
|
20
|
+
onTouchmovePassive?: EventHandler;
|
|
21
|
+
onTouchstartPassive?: EventHandler;
|
|
22
|
+
onClickCapture?: EventHandler;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface Window {
|
|
27
|
+
globalConfig: any;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/lib/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/lib/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
|
31
31
|
MdPreview: () => import_md_preview.default,
|
|
32
32
|
OrgPicker: () => import_org_picker.default,
|
|
33
33
|
ProjectSelect: () => import_project_select.default,
|
|
34
|
-
RichTextEditor: () => import_rich_text_editor.default,
|
|
35
34
|
default: () => stdin_default,
|
|
36
35
|
install: () => install,
|
|
37
36
|
version: () => version
|
|
@@ -40,18 +39,15 @@ module.exports = __toCommonJS(stdin_exports);
|
|
|
40
39
|
var import_md_preview = __toESM(require("./md-preview"));
|
|
41
40
|
var import_org_picker = __toESM(require("./org-picker"));
|
|
42
41
|
var import_project_select = __toESM(require("./project-select"));
|
|
43
|
-
var import_rich_text_editor = __toESM(require("./rich-text-editor"));
|
|
44
42
|
__reExport(stdin_exports, require("./md-preview"), module.exports);
|
|
45
43
|
__reExport(stdin_exports, require("./org-picker"), module.exports);
|
|
46
44
|
__reExport(stdin_exports, require("./project-select"), module.exports);
|
|
47
|
-
|
|
48
|
-
const version = "1.18.19";
|
|
45
|
+
const version = "1.18.20";
|
|
49
46
|
function install(app) {
|
|
50
47
|
const components = [
|
|
51
48
|
import_md_preview.default,
|
|
52
49
|
import_org_picker.default,
|
|
53
|
-
import_project_select.default
|
|
54
|
-
import_rich_text_editor.default
|
|
50
|
+
import_project_select.default
|
|
55
51
|
];
|
|
56
52
|
components.forEach((item) => {
|
|
57
53
|
if (item.install) {
|
|
@@ -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
|
+
}
|
|
@@ -54,7 +54,7 @@ var import_vue = require("vue");
|
|
|
54
54
|
var import_atomic = require("./_atomic.css");
|
|
55
55
|
var import_vue2 = require("vue");
|
|
56
56
|
var import_vant = require("vant");
|
|
57
|
-
var
|
|
57
|
+
var import_deptImg = __toESM(require("./components/deptImg"));
|
|
58
58
|
var import_types = require("./types");
|
|
59
59
|
var import_useApi = require("./useApi");
|
|
60
60
|
var import_index = require("./index.css");
|
|
@@ -99,17 +99,19 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
99
99
|
const newFullySelected = /* @__PURE__ */ new Set();
|
|
100
100
|
const newPartiallySelected = /* @__PURE__ */ new Set();
|
|
101
101
|
const selectedUserIds = new Set(selectedItems.value.map((item) => item.id));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
102
|
+
const checkGroupStatus = (groupId) => {
|
|
103
|
+
const groupUsers = getUsersByDeptId(groupId);
|
|
104
|
+
if (groupUsers.length === 0)
|
|
105
105
|
return;
|
|
106
|
-
const selectedCount =
|
|
107
|
-
if (selectedCount ===
|
|
108
|
-
newFullySelected.add(
|
|
106
|
+
const selectedCount = groupUsers.filter((user) => selectedUserIds.has(user.id)).length;
|
|
107
|
+
if (selectedCount === groupUsers.length) {
|
|
108
|
+
newFullySelected.add(groupId);
|
|
109
109
|
} else if (selectedCount > 0) {
|
|
110
|
-
newPartiallySelected.add(
|
|
110
|
+
newPartiallySelected.add(groupId);
|
|
111
111
|
}
|
|
112
|
-
}
|
|
112
|
+
};
|
|
113
|
+
api.deptList.value.forEach((dept) => checkGroupStatus(dept.id));
|
|
114
|
+
api.getCompanies().forEach((comp) => checkGroupStatus(comp.id));
|
|
113
115
|
fullySelectedDepts.value = newFullySelected;
|
|
114
116
|
partiallySelectedDepts.value = newPartiallySelected;
|
|
115
117
|
};
|
|
@@ -321,11 +323,17 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
321
323
|
}, [isFullySelected || isPartiallySelected ? (0, import_vue.createVNode)("span", {
|
|
322
324
|
"class": "dept-check-icon"
|
|
323
325
|
}, [(0, import_vue.createTextVNode)("\u2713")]) : null]), (0, import_vue.createVNode)("div", {
|
|
324
|
-
"class": "dept-content",
|
|
325
|
-
"onClick": () =>
|
|
326
|
+
"class": "dept-content flex-1 flex items-center",
|
|
327
|
+
"onClick": (e) => {
|
|
328
|
+
if (isDept) {
|
|
329
|
+
e.stopPropagation();
|
|
330
|
+
handleDeptNavigate(item);
|
|
331
|
+
} else {
|
|
332
|
+
}
|
|
333
|
+
}
|
|
326
334
|
}, [isDept && !keyword.value ? (0, import_vue.createVNode)("div", {
|
|
327
335
|
"class": "org-avatar"
|
|
328
|
-
}, [(0, import_vue.createVNode)(
|
|
336
|
+
}, [(0, import_vue.createVNode)(import_deptImg.default, null, null)]) : (0, import_vue.createVNode)(import_vant.Image, {
|
|
329
337
|
"class": "org-avatar",
|
|
330
338
|
"src": item.avatar
|
|
331
339
|
}, null), (0, import_vue.createVNode)("div", {
|
|
@@ -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%;}
|