@cgboiler/biz-mobile 1.18.5 → 1.18.7
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 +1 -1
- package/es/index.js +1 -1
- package/es/md-preview/index.less +101 -101
- package/es/org-picker/index.less +181 -181
- package/es/org-picker/useApi.js +5 -5
- package/es/project-select/index.less +45 -45
- package/es/project-select/useApi.js +3 -6
- package/es/rich-text-editor/RichTextEditor.js +2 -2
- package/es/vue-sfc-shim.d.ts +8 -8
- package/es/vue-tsx-shim.d.ts +24 -24
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/md-preview/index.less +101 -101
- package/lib/org-picker/index.less +181 -181
- package/lib/org-picker/useApi.js +5 -5
- package/lib/project-select/index.less +45 -45
- package/lib/project-select/useApi.js +3 -6
- package/lib/vue-sfc-shim.d.ts +8 -8
- package/lib/vue-tsx-shim.d.ts +24 -24
- package/package.json +4 -4
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
:root:root {
|
|
2
|
-
--van-action-sheet-max-height: 100%;
|
|
3
|
-
}
|
|
4
|
-
.project-list {
|
|
5
|
-
height: 85vh;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
|
|
9
|
-
.search-bar {
|
|
10
|
-
position: sticky;
|
|
11
|
-
top: 0;
|
|
12
|
-
z-index: 1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.van-list {
|
|
16
|
-
flex: 1;
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
padding: 0 16px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.project-item {
|
|
22
|
-
padding: 12px 0;
|
|
23
|
-
border-bottom: 1px solid #eee;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
|
|
26
|
-
&.selected {
|
|
27
|
-
color: var(--van-primary-color);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.project-name {
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
|
|
33
|
-
.highlight {
|
|
34
|
-
color: var(--van-primary-color);
|
|
35
|
-
font-weight: bold;
|
|
36
|
-
padding: 0 2px;
|
|
37
|
-
border-radius: 2px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:last-child {
|
|
42
|
-
border-bottom: none;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
:root:root {
|
|
2
|
+
--van-action-sheet-max-height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.project-list {
|
|
5
|
+
height: 85vh;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
.search-bar {
|
|
10
|
+
position: sticky;
|
|
11
|
+
top: 0;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.van-list {
|
|
16
|
+
flex: 1;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
padding: 0 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.project-item {
|
|
22
|
+
padding: 12px 0;
|
|
23
|
+
border-bottom: 1px solid #eee;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
|
|
26
|
+
&.selected {
|
|
27
|
+
color: var(--van-primary-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.project-name {
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
|
|
33
|
+
.highlight {
|
|
34
|
+
color: var(--van-primary-color);
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
padding: 0 2px;
|
|
37
|
+
border-radius: 2px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:last-child {
|
|
42
|
+
border-bottom: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -23,12 +23,9 @@ import { useFetch } from "@cgboiler/core";
|
|
|
23
23
|
const useApi = () => {
|
|
24
24
|
const projectList = ref([]);
|
|
25
25
|
const getProjectList = () => __async(void 0, null, function* () {
|
|
26
|
-
const res = yield useFetch(
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
method: "GET"
|
|
30
|
-
}
|
|
31
|
-
);
|
|
26
|
+
const res = yield useFetch("https://wx.hrbbrg.cn/v1/note/projects", {
|
|
27
|
+
method: "GET"
|
|
28
|
+
});
|
|
32
29
|
if (res == null ? void 0 : res.d) {
|
|
33
30
|
projectList.value = res.d.filter((item) => item.projectName).map((item) => {
|
|
34
31
|
return {
|
|
@@ -3,7 +3,7 @@ import "./_atomic.css";
|
|
|
3
3
|
import { defineComponent } from "vue";
|
|
4
4
|
import { richTextEditorProps } from "./types";
|
|
5
5
|
import "./index.css";
|
|
6
|
-
import { RichTextEditor } from "@cgboiler/biz-basic";
|
|
6
|
+
import { RichTextEditor as BasicRichTextEditor } from "@cgboiler/biz-basic";
|
|
7
7
|
var stdin_default = defineComponent({
|
|
8
8
|
name: "RichTextEditor",
|
|
9
9
|
props: richTextEditorProps,
|
|
@@ -11,7 +11,7 @@ var stdin_default = defineComponent({
|
|
|
11
11
|
setup(props, {
|
|
12
12
|
emit
|
|
13
13
|
}) {
|
|
14
|
-
return () => _createVNode(
|
|
14
|
+
return () => _createVNode(BasicRichTextEditor, {
|
|
15
15
|
"modelValue": props.modelValue,
|
|
16
16
|
"onUpdate:modelValue": (val) => emit("update:modelValue", val),
|
|
17
17
|
"placeholder": props.placeholder
|
package/es/vue-sfc-shim.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare module '*.vue' {
|
|
2
|
-
// eslint-disable-next-line
|
|
3
|
-
import { DefineComponent } from 'vue'
|
|
4
|
-
const Component: DefineComponent
|
|
5
|
-
export default Component
|
|
6
|
-
}
|
|
7
|
-
declare module "marked";
|
|
8
|
-
declare module "katex";
|
|
1
|
+
declare module '*.vue' {
|
|
2
|
+
// eslint-disable-next-line
|
|
3
|
+
import { DefineComponent } from 'vue'
|
|
4
|
+
const Component: DefineComponent
|
|
5
|
+
export default Component
|
|
6
|
+
}
|
|
7
|
+
declare module "marked";
|
|
8
|
+
declare module "katex";
|
|
9
9
|
declare module "diff-match-patch";
|
package/es/vue-tsx-shim.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace _default {
|
|
|
8
8
|
}
|
|
9
9
|
export default _default;
|
|
10
10
|
export function install(app: any): void;
|
|
11
|
-
export const version: "1.18.
|
|
11
|
+
export const version: "1.18.6";
|
|
12
12
|
import MdPreview from './md-preview';
|
|
13
13
|
import OrgPicker from './org-picker';
|
|
14
14
|
import ProjectSelect from './project-select';
|
package/lib/index.js
CHANGED
|
@@ -45,7 +45,7 @@ __reExport(stdin_exports, require("./md-preview"), module.exports);
|
|
|
45
45
|
__reExport(stdin_exports, require("./org-picker"), module.exports);
|
|
46
46
|
__reExport(stdin_exports, require("./project-select"), module.exports);
|
|
47
47
|
__reExport(stdin_exports, require("./rich-text-editor"), module.exports);
|
|
48
|
-
const version = "1.18.
|
|
48
|
+
const version = "1.18.6";
|
|
49
49
|
function install(app) {
|
|
50
50
|
const components = [
|
|
51
51
|
import_md_preview.default,
|
|
@@ -1,101 +1,101 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|