@mc20230601/keep-up 1.0.17 → 1.0.23
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/components/codeEditor/index.d.ts +163 -0
- package/es/components/codeEditor/index.mjs +74 -0
- package/es/components/codeEditor/index.mjs.map +1 -0
- package/es/components/commonDrawer/index.d.ts +24 -0
- package/es/components/commonDrawer/index.mjs +61 -0
- package/es/components/commonDrawer/index.mjs.map +1 -0
- package/es/components/commonDrawer/index.module.mjs +4 -0
- package/es/components/commonDrawer/interfaces.d.ts +7 -0
- package/es/components/commonDrawer/interfaces.mjs +2 -0
- package/es/components/commonDrawer/interfaces.mjs.map +1 -0
- package/es/components/commonLocations/constants.d.ts +28 -0
- package/es/components/commonLocations/constants.mjs +18 -0
- package/es/components/commonLocations/constants.mjs.map +1 -0
- package/es/components/commonLocations/index.d.ts +40 -0
- package/es/components/commonLocations/index.mjs +94 -0
- package/es/components/commonLocations/index.mjs.map +1 -0
- package/es/components/commonLocations/index.module.mjs +4 -0
- package/es/components/commonLocations/index.module.mjs.map +1 -0
- package/es/components/commonLocations/interfaces.d.ts +100 -0
- package/es/components/commonLocations/interfaces.mjs +2 -0
- package/es/components/commonLocations/interfaces.mjs.map +1 -0
- package/es/components/commonLocations/useLocations.d.ts +2 -0
- package/es/components/commonLocations/useLocations.mjs +151 -0
- package/es/components/commonLocations/useLocations.mjs.map +1 -0
- package/es/components/commonLocations/utils.d.ts +14 -0
- package/es/components/commonLocations/utils.mjs +73 -0
- package/es/components/commonLocations/utils.mjs.map +1 -0
- package/es/components/formilyCmps/formTab/index.d.ts +83 -0
- package/es/components/formilyCmps/formTab/index.mjs +146 -0
- package/es/components/formilyCmps/formTab/index.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/constants.d.ts +39 -0
- package/es/components/formilyCmps/formilyForm/constants.mjs +41 -0
- package/es/components/formilyCmps/formilyForm/constants.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/index.d.ts +131 -0
- package/es/components/formilyCmps/formilyForm/index.mjs +148 -0
- package/es/components/formilyCmps/formilyForm/index.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/index.module.mjs +4 -0
- package/es/components/formilyCmps/formilyForm/index.module.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/interfaces.d.ts +28 -0
- package/es/components/formilyCmps/formilyForm/interfaces.mjs +2 -0
- package/es/components/formilyCmps/formilyForm/interfaces.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/utils.d.ts +3 -0
- package/es/components/formilyCmps/formilyForm/utils.mjs +14 -0
- package/es/components/formilyCmps/formilyForm/utils.mjs.map +1 -0
- package/es/components/formilyCmps/index.d.ts +3 -0
- package/es/components/formilyCmps/index.mjs +3 -0
- package/es/components/formilyCmps/index.mjs.map +1 -0
- package/es/components/formilyCmps/sectionTitle/index.d.ts +28 -0
- package/es/components/formilyCmps/sectionTitle/index.mjs +30 -0
- package/es/components/formilyCmps/sectionTitle/index.mjs.map +1 -0
- package/es/components/formilyCmps/sectionTitle/index.module.mjs +4 -0
- package/es/components/formilyCmps/sectionTitle/index.module.mjs.map +1 -0
- package/es/components/index.d.ts +5 -1
- package/es/components/index.mjs +5 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/radioGroup/constants.d.ts +371 -0
- package/es/components/radioGroup/constants.mjs +11 -0
- package/es/components/radioGroup/constants.mjs.map +1 -0
- package/es/components/radioGroup/index.d.ts +203 -0
- package/es/components/radioGroup/index.mjs +60 -0
- package/es/components/radioGroup/index.mjs.map +1 -0
- package/es/components/radioGroup/interfaces.d.ts +7 -0
- package/es/components/radioGroup/interfaces.mjs +2 -0
- package/es/components/radioGroup/interfaces.mjs.map +1 -0
- package/es/components/space/index.d.ts +60 -1
- package/es/components/space/index.mjs +51 -6
- package/es/components/space/index.mjs.map +1 -1
- package/es/constants/common.d.ts +4 -0
- package/es/constants/common.mjs +26 -0
- package/es/constants/common.mjs.map +1 -0
- package/es/index.d.ts +5 -1
- package/es/index.mjs +5 -1
- package/es/index.mjs.map +1 -1
- package/es/interfaces/common.d.ts +46 -0
- package/es/interfaces/common.mjs +2 -0
- package/es/interfaces/common.mjs.map +1 -0
- package/es/interfaces/commonPage.d.ts +88 -0
- package/es/interfaces/commonPage.mjs +2 -0
- package/es/interfaces/commonPage.mjs.map +1 -0
- package/es/interfaces/index.d.ts +2 -0
- package/es/styles/index.css +53 -4
- package/es/utils/common.d.ts +18 -0
- package/es/utils/common.mjs +14 -0
- package/es/utils/common.mjs.map +1 -0
- package/es/utils/emitter.d.ts +2 -0
- package/es/utils/emitter.mjs +6 -0
- package/es/utils/emitter.mjs.map +1 -0
- package/es/utils/index.d.ts +4 -0
- package/es/utils/index.mjs +5 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/shared.d.ts +2 -0
- package/es/utils/shared.mjs +6 -0
- package/es/utils/shared.mjs.map +1 -0
- package/es/utils/storage.d.ts +8 -0
- package/es/utils/storage.mjs +23 -0
- package/es/utils/storage.mjs.map +1 -0
- package/package.json +1 -5
- package/es/components/button/index.d.ts +0 -2
- package/es/components/button/index.mjs +0 -11
- package/es/components/button/index.mjs.map +0 -1
- package/es/components/space/index.module.mjs +0 -4
- package/es/directives/index.d.ts +0 -0
- package/es/keepUp/index.d.ts +0 -1
- /package/es/components/{space → commonDrawer}/index.module.mjs.map +0 -0
- /package/es/{directives → interfaces}/index.mjs +0 -0
- /package/es/{directives → interfaces}/index.mjs.map +0 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import 'ace-builds/src-noconflict/mode-javascript';
|
|
2
|
+
import 'ace-builds/src-noconflict/theme-monokai';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
/** v-model体系-内容 */
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
/** formily体系-内容 */
|
|
11
|
+
value: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** 语言 */
|
|
16
|
+
language: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/** 主题 */
|
|
21
|
+
theme: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
27
|
+
onChange?: (...args: any[]) => any;
|
|
28
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], import("vue").PublicProps, {
|
|
31
|
+
value: string;
|
|
32
|
+
modelValue: string;
|
|
33
|
+
language: string;
|
|
34
|
+
theme: string;
|
|
35
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
36
|
+
P: {};
|
|
37
|
+
B: {};
|
|
38
|
+
D: {};
|
|
39
|
+
C: {};
|
|
40
|
+
M: {};
|
|
41
|
+
Defaults: {};
|
|
42
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
/** v-model体系-内容 */
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/** formily体系-内容 */
|
|
49
|
+
value: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
/** 语言 */
|
|
54
|
+
language: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/** 主题 */
|
|
59
|
+
theme: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{
|
|
64
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
65
|
+
onChange?: (...args: any[]) => any;
|
|
66
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>, {}, {}, {}, {
|
|
69
|
+
value: string;
|
|
70
|
+
modelValue: string;
|
|
71
|
+
language: string;
|
|
72
|
+
theme: string;
|
|
73
|
+
}>;
|
|
74
|
+
__isFragment?: never;
|
|
75
|
+
__isTeleport?: never;
|
|
76
|
+
__isSuspense?: never;
|
|
77
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
+
/** v-model体系-内容 */
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
/** formily体系-内容 */
|
|
84
|
+
value: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
/** 语言 */
|
|
89
|
+
language: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
/** 主题 */
|
|
94
|
+
theme: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
100
|
+
onChange?: (...args: any[]) => any;
|
|
101
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
|
|
104
|
+
value: string;
|
|
105
|
+
modelValue: string;
|
|
106
|
+
language: string;
|
|
107
|
+
theme: string;
|
|
108
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
109
|
+
FormilyCodeEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
110
|
+
/** v-model体系-内容 */
|
|
111
|
+
modelValue: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
/** formily体系-内容 */
|
|
116
|
+
value: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
/** 语言 */
|
|
121
|
+
language: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
/** 主题 */
|
|
126
|
+
theme: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
133
|
+
/** v-model体系-内容 */
|
|
134
|
+
modelValue: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
/** formily体系-内容 */
|
|
139
|
+
value: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
/** 语言 */
|
|
144
|
+
language: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
/** 主题 */
|
|
149
|
+
theme: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
}>> & Readonly<{
|
|
154
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
155
|
+
onChange?: (...args: any[]) => any;
|
|
156
|
+
}>, {
|
|
157
|
+
value: string;
|
|
158
|
+
modelValue: string;
|
|
159
|
+
language: string;
|
|
160
|
+
theme: string;
|
|
161
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, h } from 'vue';
|
|
2
|
+
import { connect, mapProps, mapReadPretty } from '@formily/vue';
|
|
3
|
+
import ace from 'ace-builds';
|
|
4
|
+
import 'ace-builds/src-noconflict/mode-javascript';
|
|
5
|
+
import 'ace-builds/src-noconflict/theme-monokai';
|
|
6
|
+
import '../../utils/emitter.mjs';
|
|
7
|
+
import { composeExpose } from '../../utils/shared.mjs';
|
|
8
|
+
import { PreviewText } from '@formily/element-plus';
|
|
9
|
+
|
|
10
|
+
const props = {
|
|
11
|
+
/** v-model体系-内容 */
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
/** formily体系-内容 */
|
|
17
|
+
value: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
/** 语言 */
|
|
22
|
+
language: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
/** 主题 */
|
|
27
|
+
theme: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const CodeEditor = defineComponent({
|
|
33
|
+
name: "CodeEditor",
|
|
34
|
+
props,
|
|
35
|
+
emits: ["update:modelValue", "change"],
|
|
36
|
+
setup(props2, { emit, attrs }) {
|
|
37
|
+
const codeEditorRef = ref(null);
|
|
38
|
+
const codeEditorInstance = ref(null);
|
|
39
|
+
const init = async () => {
|
|
40
|
+
codeEditorInstance.value = ace.edit(codeEditorRef.value);
|
|
41
|
+
codeEditorInstance.value.session.setMode(`ace/mode/${props2.language || "javascript"}`);
|
|
42
|
+
codeEditorInstance.value.setOptions({
|
|
43
|
+
fontSize: 14,
|
|
44
|
+
tabSize: 2,
|
|
45
|
+
useSoftTabs: true,
|
|
46
|
+
showPrintMargin: false,
|
|
47
|
+
wrap: true
|
|
48
|
+
});
|
|
49
|
+
codeEditorInstance.value.on("change", () => {
|
|
50
|
+
emit("update:modelValue", codeEditorInstance.value.getValue());
|
|
51
|
+
emit("change", codeEditorInstance.value.getValue());
|
|
52
|
+
});
|
|
53
|
+
setTimeout(() => {
|
|
54
|
+
codeEditorInstance.value.setValue(props2.modelValue || props2.value || "", -1);
|
|
55
|
+
}, 500);
|
|
56
|
+
};
|
|
57
|
+
onMounted(init);
|
|
58
|
+
return () => h("div", {
|
|
59
|
+
ref: codeEditorRef,
|
|
60
|
+
style: "width: 100%; height: 100%; border: 1px solid #333"
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const FormilyCodeEditor = connect(
|
|
65
|
+
CodeEditor,
|
|
66
|
+
mapProps({ value: "modelValue" }),
|
|
67
|
+
mapReadPretty(PreviewText.Input)
|
|
68
|
+
);
|
|
69
|
+
var index = composeExpose(CodeEditor, {
|
|
70
|
+
FormilyCodeEditor
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export { index as default };
|
|
74
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/codeEditor/index.ts"],"sourcesContent":["import { defineComponent, h, ref, onMounted } from 'vue'\nimport { connect, mapProps, mapReadPretty } from '@formily/vue'\nimport ace from 'ace-builds'\nimport 'ace-builds/src-noconflict/mode-javascript'\nimport 'ace-builds/src-noconflict/theme-monokai'\nimport { composeExpose } from '../../utils'\n\nimport { PreviewText } from '@formily/element-plus'\n\nconst props = {\n /** v-model体系-内容 */\n modelValue: {\n type: String,\n default: '',\n },\n /** formily体系-内容 */\n value: {\n type: String,\n default: '',\n },\n /** 语言 */\n language: {\n type: String,\n default: '',\n },\n /** 主题 */\n theme: {\n type: String,\n default: '',\n },\n}\nconst CodeEditor = defineComponent({\n name: 'CodeEditor',\n props,\n emits: ['update:modelValue', 'change'],\n setup(props, { emit, attrs }) {\n const codeEditorRef = ref<HTMLDivElement | null>(null)\n const codeEditorInstance = ref<ace.Ace.Editor | null>(null)\n const init = async () => {\n codeEditorInstance.value = ace.edit(codeEditorRef.value)\n codeEditorInstance.value.session.setMode(`ace/mode/${props.language || 'javascript'}`)\n codeEditorInstance.value.setOptions({\n fontSize: 14,\n tabSize: 2,\n useSoftTabs: true,\n showPrintMargin: false,\n wrap: true,\n })\n codeEditorInstance.value.on('change', () => {\n emit('update:modelValue', codeEditorInstance.value!.getValue())\n emit('change', codeEditorInstance.value!.getValue())\n })\n setTimeout(() => {\n codeEditorInstance.value.setValue(props.modelValue || props.value || '', -1)\n }, 500)\n }\n onMounted(init)\n return () =>\n h('div', {\n ref: codeEditorRef,\n style: 'width: 100%; height: 100%; border: 1px solid #333',\n })\n },\n})\n\nconst FormilyCodeEditor = connect(\n CodeEditor,\n mapProps({ value: 'modelValue' }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default composeExpose(CodeEditor, {\n FormilyCodeEditor: FormilyCodeEditor,\n})\n"],"names":["props"],"mappings":";;;;;;;;;AASA,MAAM,KAAQ,GAAA;AAAA;AAAA,EAEZ,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EA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,MAAM,QAASA,CAAAA,MAAAA,CAAM,cAAcA,MAAM,CAAA,KAAA,IAAS,IAAI,CAAE,CAAA,CAAA,CAAA;AAAA,SAC1E,GAAG,CAAA,CAAA;AAAA,KACR,CAAA;AACA,IAAA,SAAA,CAAU,IAAI,CAAA,CAAA;AACd,IAAO,OAAA,MACL,EAAE,KAAO,EAAA;AAAA,MACP,GAAK,EAAA,aAAA;AAAA,MACL,KAAO,EAAA,mDAAA;AAAA,KACR,CAAA,CAAA;AAAA,GACL;AACF,CAAC,CAAA,CAAA;AAED,MAAM,iBAAoB,GAAA,OAAA;AAAA,EACxB,UAAA;AAAA,EACA,QAAS,CAAA,EAAE,KAAO,EAAA,YAAA,EAAc,CAAA;AAAA,EAChC,aAAA,CAAc,YAAY,KAAK,CAAA;AACjC,CAAA,CAAA;AAEA,YAAe,cAAc,UAAY,EAAA;AAAA,EACvC,iBAAA;AACF,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './interfaces';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
title: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
title: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
title: string;
|
|
22
|
+
size: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent, ref, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { ElDrawer, ElEmpty } from 'element-plus';
|
|
3
|
+
import styles from './index.module.mjs';
|
|
4
|
+
|
|
5
|
+
const props = {
|
|
6
|
+
title: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "\u9ED8\u8BA4\u6807\u9898"
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "70%"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var index = defineComponent({
|
|
16
|
+
name: "CommonEditor",
|
|
17
|
+
inheritAttrs: false,
|
|
18
|
+
props,
|
|
19
|
+
setup(props2, {
|
|
20
|
+
expose,
|
|
21
|
+
slots,
|
|
22
|
+
attrs
|
|
23
|
+
}) {
|
|
24
|
+
const visible = ref(false);
|
|
25
|
+
const open = () => {
|
|
26
|
+
visible.value = true;
|
|
27
|
+
};
|
|
28
|
+
const close = () => {
|
|
29
|
+
visible.value = false;
|
|
30
|
+
};
|
|
31
|
+
expose({
|
|
32
|
+
open,
|
|
33
|
+
close
|
|
34
|
+
});
|
|
35
|
+
return () => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return createVNode(ElDrawer, mergeProps({
|
|
38
|
+
"class": styles.container,
|
|
39
|
+
"modelValue": visible.value,
|
|
40
|
+
"onUpdate:modelValue": ($event) => visible.value = $event
|
|
41
|
+
}, attrs, {
|
|
42
|
+
"title": props2.title,
|
|
43
|
+
"size": props2.size,
|
|
44
|
+
"destroyOnClose": true,
|
|
45
|
+
"appendToBody": true
|
|
46
|
+
}), {
|
|
47
|
+
default: () => {
|
|
48
|
+
var _a2;
|
|
49
|
+
return [((_a2 = slots.default) == null ? void 0 : _a2.call(slots)) || createVNode(ElEmpty, {
|
|
50
|
+
"description": "No Data"
|
|
51
|
+
}, null)];
|
|
52
|
+
},
|
|
53
|
+
title: (_a = slots.title) == null ? void 0 : _a.call(slots),
|
|
54
|
+
footer: (_b = slots.footer) == null ? void 0 : _b.call(slots)
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export { index as default };
|
|
61
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonDrawer/index.tsx"],"sourcesContent":["import { defineComponent, ref } from 'vue'\nimport { ElDrawer, ElEmpty } from 'element-plus'\nimport styles from './index.module.scss'\n\nimport type { ICommonDrawerExpose } from './interfaces'\n\nconst props = {\n title: {\n type: String,\n default: '默认标题',\n },\n size: {\n type: String,\n default: '70%',\n },\n}\n\nexport * from './interfaces'\nexport default defineComponent({\n name: 'CommonEditor',\n inheritAttrs: false,\n props,\n setup(props, { expose, slots, attrs }) {\n const visible = ref(false)\n /** 打开抽屉 */\n const open = () => {\n visible.value = true\n }\n /** 关闭抽屉 */\n const close = () => {\n visible.value = false\n }\n expose<ICommonDrawerExpose>({\n open,\n close,\n })\n return () => (\n <ElDrawer\n class={styles.container}\n v-model={visible.value}\n {...attrs}\n title={props.title}\n size={props.size}\n destroyOnClose\n appendToBody\n v-slots={{\n title: slots.title?.(),\n footer: slots.footer?.(),\n }}\n >\n {slots.default?.() || <ElEmpty description='No Data' />}\n </ElDrawer>\n )\n },\n})\n"],"names":["props","title","type","String","default","size","defineComponent","name","inheritAttrs","setup","expose","slots","attrs","visible","ref","open","value","close","_createVNode","ElDrawer","_mergeProps","styles","container","$event","_a","ElEmpty","footer"],"mappings":";;;;AAMA,MAAMA,KAAQ,GAAA;AAAA,EACZC,KAAO,EAAA;AAAA,IACLC,IAAMC,EAAAA,MAAAA;AAAAA,IACNC,OAAS,EAAA,0BAAA;AAAA,GACX;AAAA,EACAC,IAAM,EAAA;AAAA,IACJH,IAAMC,EAAAA,MAAAA;AAAAA,IACNC,OAAS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AAAA,OAAAA,KAANO,gBAAAA,GAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA,KAAiBO,YAAAO,OAAA,EAAA;AAAA,YAAA,aAAA,EAAA,SAAA;AAAA,WAAA,EAAqC,IAAA,CAAA,CAAA,CAAA;AAAA,SAAA;AAAA,QAJrDxB,KAAAA,EAAAA,CAAOU,WAAMV,KAANU,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA;AAAAA,QACPe,MAAAA,EAAAA,CAAQf,WAAMe,MAANf,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA;AAAAA,OAKb,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** locations节点种类 */
|
|
2
|
+
export declare enum Type {
|
|
3
|
+
/** 运营商 全选 */
|
|
4
|
+
IS_ISP = "IS_ISP",
|
|
5
|
+
/** 组 全选 */
|
|
6
|
+
IS_GROUP = "IS_GROUP",
|
|
7
|
+
/** 全选 */
|
|
8
|
+
IS_ALL = "IS_ALL",
|
|
9
|
+
/** 叶子结点 */
|
|
10
|
+
IS_LEAF = "IS_LEAF"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 值是根据nodeId
|
|
14
|
+
* 归类是根据TypeKey
|
|
15
|
+
*/
|
|
16
|
+
/** 值的键名 */
|
|
17
|
+
export declare const valueKey = "nodeId";
|
|
18
|
+
/** 存储节点值的key */
|
|
19
|
+
export declare enum TypeKey {
|
|
20
|
+
/** 运营商 全选 */
|
|
21
|
+
IS_ISP = "asn",
|
|
22
|
+
/** 组 全选 */
|
|
23
|
+
IS_GROUP = "regionId",
|
|
24
|
+
/** 全选 */
|
|
25
|
+
IS_ALL = "regionId",
|
|
26
|
+
/** 叶子结点 */
|
|
27
|
+
IS_LEAF = "regionId"
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2
|
+
Type2["IS_ISP"] = "IS_ISP";
|
|
3
|
+
Type2["IS_GROUP"] = "IS_GROUP";
|
|
4
|
+
Type2["IS_ALL"] = "IS_ALL";
|
|
5
|
+
Type2["IS_LEAF"] = "IS_LEAF";
|
|
6
|
+
return Type2;
|
|
7
|
+
})(Type || {});
|
|
8
|
+
const valueKey = "nodeId";
|
|
9
|
+
var TypeKey = /* @__PURE__ */ ((TypeKey2) => {
|
|
10
|
+
TypeKey2["IS_ISP"] = "asn";
|
|
11
|
+
TypeKey2["IS_GROUP"] = "regionId";
|
|
12
|
+
TypeKey2["IS_ALL"] = "regionId";
|
|
13
|
+
TypeKey2["IS_LEAF"] = "regionId";
|
|
14
|
+
return TypeKey2;
|
|
15
|
+
})(TypeKey || {});
|
|
16
|
+
|
|
17
|
+
export { Type, TypeKey, valueKey };
|
|
18
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../../../packages/components/commonLocations/constants.ts"],"sourcesContent":["/** locations节点种类 */\nexport enum Type {\n /** 运营商 全选 */\n IS_ISP = 'IS_ISP',\n /** 组 全选 */\n IS_GROUP = 'IS_GROUP',\n /** 全选 */\n IS_ALL = 'IS_ALL',\n /** 叶子结点 */\n IS_LEAF = 'IS_LEAF',\n}\n\n/**\n * 值是根据nodeId\n * 归类是根据TypeKey\n */\n/** 值的键名 */\n// export const valueKey = 'friendlyArea'\nexport const valueKey = 'nodeId'\n\n/** 存储节点值的key */\nexport enum TypeKey {\n /** 运营商 全选 */\n IS_ISP = 'asn',\n /** 组 全选 */\n IS_GROUP = 'regionId',\n /** 全选 */\n IS_ALL = 'regionId',\n /** 叶子结点 */\n IS_LEAF = 'regionId',\n}\n"],"names":["Type","TypeKey"],"mappings":"AACY,IAAA,IAAA,qBAAAA,KAAL,KAAA;AAEL,EAAAA,MAAA,QAAS,CAAA,GAAA,QAAA,CAAA;AAET,EAAAA,MAAA,UAAW,CAAA,GAAA,UAAA,CAAA;AAEX,EAAAA,MAAA,QAAS,CAAA,GAAA,QAAA,CAAA;AAET,EAAAA,MAAA,SAAU,CAAA,GAAA,SAAA,CAAA;AARA,EAAAA,OAAAA,KAAAA,CAAAA;AAAA,CAAA,EAAA,IAAA,IAAA,EAAA,EAAA;AAiBL,MAAM,QAAW,GAAA,SAAA;AAGZ,IAAA,OAAA,qBAAAC,QAAL,KAAA;AAEL,EAAAA,SAAA,QAAS,CAAA,GAAA,KAAA,CAAA;AAET,EAAAA,SAAA,UAAW,CAAA,GAAA,UAAA,CAAA;AAEX,EAAAA,SAAA,QAAS,CAAA,GAAA,UAAA,CAAA;AAET,EAAAA,SAAA,SAAU,CAAA,GAAA,UAAA,CAAA;AARA,EAAAA,OAAAA,QAAAA,CAAAA;AAAA,CAAA,EAAA,OAAA,IAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ILocationItem } from './interfaces';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/** value */
|
|
5
|
+
value: {
|
|
6
|
+
type: PropType<string[]>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
/** 主要用于做数据回显 */
|
|
10
|
+
options: {
|
|
11
|
+
type: PropType<ILocationItem[]>;
|
|
12
|
+
default: () => any[];
|
|
13
|
+
};
|
|
14
|
+
/** 禁用 */
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
/** value */
|
|
21
|
+
value: {
|
|
22
|
+
type: PropType<string[]>;
|
|
23
|
+
default: () => any[];
|
|
24
|
+
};
|
|
25
|
+
/** 主要用于做数据回显 */
|
|
26
|
+
options: {
|
|
27
|
+
type: PropType<ILocationItem[]>;
|
|
28
|
+
default: () => any[];
|
|
29
|
+
};
|
|
30
|
+
/** 禁用 */
|
|
31
|
+
disabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
value: string[];
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
options: ILocationItem[];
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent, watch, createVNode, resolveComponent, mergeProps, isVNode } from 'vue';
|
|
2
|
+
import { useLocations } from './useLocations.mjs';
|
|
3
|
+
import { valueKey } from './constants.mjs';
|
|
4
|
+
import styles from './index.module.mjs';
|
|
5
|
+
|
|
6
|
+
function _isSlot(s) {
|
|
7
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
+
}
|
|
9
|
+
const props = {
|
|
10
|
+
/** value */
|
|
11
|
+
value: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
/** 主要用于做数据回显 */
|
|
16
|
+
options: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
/** 禁用 */
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var index = defineComponent({
|
|
27
|
+
name: "Locations",
|
|
28
|
+
props,
|
|
29
|
+
setup(props2, {
|
|
30
|
+
emit
|
|
31
|
+
}) {
|
|
32
|
+
const {
|
|
33
|
+
locations,
|
|
34
|
+
allLocations
|
|
35
|
+
} = useLocations(props2);
|
|
36
|
+
watch(() => allLocations.value.selectedChildren, (val) => {
|
|
37
|
+
emit("change", val);
|
|
38
|
+
});
|
|
39
|
+
return () => {
|
|
40
|
+
let _slot2;
|
|
41
|
+
return createVNode(resolveComponent("el-space"), {
|
|
42
|
+
"class": styles.container,
|
|
43
|
+
"direction": "column",
|
|
44
|
+
"alignment": "space-between",
|
|
45
|
+
"fill": true,
|
|
46
|
+
"style": {
|
|
47
|
+
padding: "0 16px"
|
|
48
|
+
}
|
|
49
|
+
}, _isSlot(_slot2 = Object.entries(locations.value).sort(([aKey]) => aKey === "all" ? -1 : 0).map(([k, v]) => {
|
|
50
|
+
let _slot;
|
|
51
|
+
return createVNode("div", {
|
|
52
|
+
"style": {
|
|
53
|
+
width: "100%",
|
|
54
|
+
display: "flex",
|
|
55
|
+
alignItems: "flex-start",
|
|
56
|
+
justifyContent: "space-between"
|
|
57
|
+
}
|
|
58
|
+
}, [createVNode(resolveComponent("el-checkbox"), {
|
|
59
|
+
"modelValue": v.isAllChecked,
|
|
60
|
+
"onUpdate:modelValue": ($event) => v.isAllChecked = $event,
|
|
61
|
+
"indeterminate": v.isHalfChecked,
|
|
62
|
+
"disabled": props2.disabled,
|
|
63
|
+
"onChange": v.onChange
|
|
64
|
+
}, {
|
|
65
|
+
default: () => [v.label]
|
|
66
|
+
}), createVNode(resolveComponent("el-checkbox-group"), {
|
|
67
|
+
"modelValue": v.selectedChildren,
|
|
68
|
+
"onUpdate:modelValue": ($event) => v.selectedChildren = $event,
|
|
69
|
+
"disabled": props2.disabled,
|
|
70
|
+
"style": {
|
|
71
|
+
width: "calc(100% - 132px - 8px)"
|
|
72
|
+
}
|
|
73
|
+
}, _isSlot(_slot = v.children.map((v1) => createVNode(resolveComponent("el-checkbox"), mergeProps({
|
|
74
|
+
"key": v1.label,
|
|
75
|
+
"label": v1.label,
|
|
76
|
+
"value": v1[valueKey]
|
|
77
|
+
}, v.label === "\u5168\u9009" ? {
|
|
78
|
+
indeterminate: v1.isHalfChecked
|
|
79
|
+
} : {}, {
|
|
80
|
+
"onChange": v1.onChange
|
|
81
|
+
}), {
|
|
82
|
+
default: () => [v1.label]
|
|
83
|
+
}))) ? _slot : {
|
|
84
|
+
default: () => [_slot]
|
|
85
|
+
})]);
|
|
86
|
+
})) ? _slot2 : {
|
|
87
|
+
default: () => [_slot2]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export { index as default };
|
|
94
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonLocations/index.tsx"],"sourcesContent":["import { defineComponent, watch } from 'vue'\nimport { useLocations } from './useLocations'\nimport { valueKey } from './constants'\nimport styles from './index.module.scss'\n\nimport type { PropType } from 'vue'\nimport type { ILocationItem } from './interfaces'\n\nconst props = {\n /** value */\n value: {\n type: Array as PropType<string[]>,\n default: () => ([]),\n },\n /** 主要用于做数据回显 */\n options: {\n type: Array as PropType<ILocationItem[]>,\n default: () => ([]),\n },\n /** 禁用 */\n disabled: {\n type: Boolean,\n default: false,\n },\n}\n\nexport default defineComponent({\n name: 'Locations',\n props,\n setup(props, { emit }) {\n const {\n locations,\n allLocations,\n } = useLocations(props)\n\n /** 配合formily的value/change模式 */\n watch(() => allLocations.value.selectedChildren, (val) => {\n emit('change', val)\n })\n \n return () => {\n return (\n <el-space class={styles.container} direction='column' alignment='space-between' fill={true} style={{ padding: '0 16px' }}>\n {\n Object.entries(locations.value)\n .sort(([aKey]) => aKey === 'all' ? -1 : 0)\n .map(([k, v]) => (\n <div \n style={{ \n width: '100%', \n display: 'flex', \n alignItems: 'flex-start', \n justifyContent: 'space-between'\n }}\n >\n <el-checkbox\n v-model={v.isAllChecked}\n indeterminate={v.isHalfChecked}\n disabled={props.disabled}\n onChange={v.onChange}\n >{v.label}</el-checkbox>\n <el-checkbox-group\n v-model={v.selectedChildren}\n disabled={props.disabled}\n style={{\n width: 'calc(100% - 132px - 8px)'\n }}\n >\n {v.children.map(v1 => (\n <el-checkbox \n key={v1.label} \n label={v1.label} \n value={v1[valueKey]} \n {...(v.label === '全选' ? { indeterminate: v1.isHalfChecked } : {})}\n onChange={v1.onChange}\n >{v1.label}</el-checkbox>\n ))}\n </el-checkbox-group>\n </div>\n ))\n }\n </el-space>\n )\n }\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","props","value","type","Array","default","options","disabled","Boolean","defineComponent","name","setup","emit","locations","allLocations","useLocations","watch","selectedChildren","val","_slot2","_createVNode","_resolveComponent","styles","container","padding","entries","sort","aKey","map","k","v","_slot","width","display","alignItems","justifyContent","isAllChecked","$event","isHalfChecked","onChange","label","children","v1","_mergeProps","valueKey","indeterminate"],"mappings":";;;;;AAGwC,SAAAA,QAAAC,CAAA,EAAA;AAAA,EAAA,OAAA,OAAAA,CAAAA,KAAA,UAAAC,IAAAA,MAAAA,CAAAC,SAAAC,CAAAA,QAAAA,CAAAC,IAAAJ,CAAAA,CAAA,CAAAK,KAAAA,iBAAAA,IAAAA,CAAAA,OAAAA,CAAAL,CAAA,CAAA,CAAA;AAAA,CAAA;AAKxC,MAAMM,KAAQ,GAAA;AAAA;AAAA,EAEZC,KAAO,EAAA;AAAA,IACLC,IAAMC,EAAAA,KAAAA;AAAAA,IACNC,OAAAA,EAASA,MAAO,EAAA;AAAA,GAClB;AAAA;AAAA,EAEAC,OAAS,EAAA;AAAA,IACPH,IAAMC,EAAAA,KAAAA;AAAAA,IACNC,OAAAA,EAASA,MAAO,EAAA;AAAA,GAClB;AAAA;AAAA,EAEAE,QAAU,EAAA;AAAA,IACRJ,IAAMK,EAAAA,OAAAA;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