@gct-paas/design 0.1.5-dev.6 → 0.1.5-dev.8
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/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/es/components/design/design-content/design-content.css +76 -0
- package/es/components/design/design-content/design-content.d.ts +190 -0
- package/es/components/design/design-content/design-content.mjs +274 -0
- package/es/components/design/design-drag-item/design-drag-item.css +179 -0
- package/es/components/design/design-drag-item/design-drag-item.d.ts +56 -0
- package/es/components/design/design-drag-item/design-drag-item.mjs +237 -0
- package/es/components/design/design-drop-container/design-drop-container.css +103 -0
- package/es/components/design/design-drop-container/design-drop-container.d.ts +92 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +182 -0
- package/es/components/design/design-drop-line/design-drop-line.css +165 -0
- package/es/components/design/design-drop-line/design-drop-line.d.ts +73 -0
- package/es/components/design/design-drop-line/design-drop-line.mjs +136 -0
- package/es/components/design/design-item-actions/design-item-actions.css +97 -0
- package/es/components/design/design-item-actions/design-item-actions.d.ts +42 -0
- package/es/components/design/design-item-actions/design-item-actions.mjs +147 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.css +70 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.d.ts +168 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.mjs +155 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.css +85 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.d.ts +53 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.mjs +169 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.css +12 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.d.ts +60 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.mjs +60 -0
- package/es/components/design/design-item-preview/design-item-preview.css +91 -0
- package/es/components/design/design-item-preview/design-item-preview.d.ts +1 -0
- package/es/components/design/design-item-preview/design-item-preview.mjs +32 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.css +67 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.d.ts +50 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.mjs +68 -0
- package/es/components/design/design-not-found/design-not-found.css +68 -0
- package/es/components/design/design-not-found/design-not-found.d.ts +14 -0
- package/es/components/design/design-not-found/design-not-found.mjs +19 -0
- package/es/components/design/index.d.ts +2 -0
- package/es/components/design/index.mjs +2 -0
- package/es/components/design-save-tip/design-save-tip.mjs +1 -1
- package/es/components/editor/index.mjs +2 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue.d.ts +13 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue.mjs +5 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue_vue_type_script_setup_true_name_length-unit-editor_lang.mjs +47 -0
- package/es/components/field-transfer/components/field-transfer-modal.vue.d.ts +5 -1
- package/es/components/field-transfer/components/field-transfer-modal.vue.mjs +2 -2
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_script_setup_true_name_field-transfer-modal_lang.mjs +2 -1
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_711e6992_lang.css +8 -0
- package/es/components/field-transfer/index.d.ts +2 -0
- package/es/components/field-transfer/index.mjs +1 -0
- package/es/components/index.d.ts +5 -2
- package/es/components/index.mjs +10 -2
- package/es/components/material/index.d.ts +1 -0
- package/es/components/material/index.mjs +1 -0
- package/es/components/material/material-content/material-content.css +86 -0
- package/es/components/material/material-content/material-content.d.ts +1 -0
- package/es/components/material/material-content/material-content.mjs +49 -0
- package/es/components/material/material-module/material-module.css +104 -0
- package/es/components/material/material-module/material-module.d.ts +60 -0
- package/es/components/material/material-module/material-module.mjs +67 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.css +69 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts +56 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.mjs +21 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.css +83 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.d.ts +13 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.mjs +66 -0
- package/es/components/material/material-outline-tree/material-outline-tree.css +81 -0
- package/es/components/material/material-outline-tree/material-outline-tree.d.ts +13 -0
- package/es/components/material/material-outline-tree/material-outline-tree.mjs +67 -0
- package/es/components/material/material-tab-pane/material-tab-pane.css +68 -0
- package/es/components/material/material-tab-pane/material-tab-pane.d.ts +13 -0
- package/es/components/material/material-tab-pane/material-tab-pane.mjs +19 -0
- package/es/components/material/material-tabs/material-tabs.css +105 -0
- package/es/components/material/material-tabs/material-tabs.d.ts +103 -0
- package/es/components/material/material-tabs/material-tabs.mjs +44 -0
- package/es/components/modal-name-editor/modal-name-editor.d.ts +1 -11
- package/es/components/modal-name-editor/modal-name-editor.mjs +27 -38
- package/es/components/multi-field/index.d.ts +2 -0
- package/es/components/multi-field/index.mjs +1 -0
- package/es/components/multi-field/multi-field-display.vue.d.ts +8 -0
- package/es/components/multi-field/multi-field-display.vue.mjs +7 -0
- package/es/components/multi-field/multi-field-display.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/components/multi-field/multi-field-display.vue_vue_type_style_index_0_scoped_802ade7b_lang.css +4 -0
- package/es/components/multi-field/multi-field-item.vue.d.ts +6 -0
- package/es/components/multi-field/multi-field-item.vue.mjs +7 -0
- package/es/components/multi-field/multi-field-item.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/es/components/multi-field/multi-field-item.vue_vue_type_style_index_0_scoped_881cb08e_lang.css +31 -0
- package/es/components/panel/index.d.ts +1 -0
- package/es/components/panel/index.mjs +1 -0
- package/es/components/panel/panel-content/panel-content.css +189 -0
- package/es/components/panel/panel-content/panel-content.d.ts +19 -0
- package/es/components/panel/panel-content/panel-content.mjs +48 -0
- package/es/components/panel/panel-form/panel-form.css +67 -0
- package/es/components/panel/panel-form/panel-form.d.ts +62 -0
- package/es/components/panel/panel-form/panel-form.mjs +59 -0
- package/es/components/panel/panel-path/panel-path.css +89 -0
- package/es/components/panel/panel-path/panel-path.d.ts +35 -0
- package/es/components/panel/panel-path/panel-path.mjs +52 -0
- package/es/components/user-occupy/user-occupy.vue.mjs +2 -2
- package/es/components/user-occupy/user-occupy.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/user-occupy/{user-occupy.vue_vue_type_style_index_0_scoped_24cb9749_lang.css → user-occupy.vue_vue_type_style_index_0_scoped_9b136922_lang.css} +6 -6
- package/es/controller/index.d.ts +1 -0
- package/es/controller/index.mjs +1 -0
- package/es/controller/view/design-view.controller.d.ts +48 -0
- package/es/controller/view/design-view.controller.mjs +150 -0
- package/es/create-app-vue.mjs +2 -0
- package/es/editor/content-tag-style/content-tag-style.css +164 -0
- package/es/editor/content-tag-style/content-tag-style.d.ts +112 -0
- package/es/editor/content-tag-style/content-tag-style.mjs +80 -0
- package/es/editor/content-tag-style/index.d.ts +8 -0
- package/es/editor/content-tag-style/index.mjs +11 -0
- package/es/editor/field-info-editor/field-info-editor.css +125 -0
- package/es/editor/field-info-editor/field-info-editor.d.ts +111 -0
- package/es/editor/field-info-editor/field-info-editor.mjs +38 -0
- package/es/editor/field-info-editor/index.d.ts +8 -0
- package/es/editor/field-info-editor/index.mjs +9 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +19 -0
- package/es/editor/model-field-select/index.d.ts +8 -0
- package/es/editor/model-field-select/index.mjs +9 -0
- package/es/editor/model-field-select/model-field-select.css +148 -0
- package/es/editor/model-field-select/model-field-select.d.ts +42 -0
- package/es/editor/model-field-select/model-field-select.mjs +217 -0
- package/es/editor/style-border/index.d.ts +4 -0
- package/es/editor/style-border/index.mjs +11 -0
- package/es/editor/style-border/style-border.d.ts +35 -0
- package/es/editor/style-border/style-border.mjs +38 -0
- package/es/editor/style-font/index.d.ts +4 -0
- package/es/editor/style-font/index.mjs +11 -0
- package/es/editor/style-font/style-font.css +86 -0
- package/es/editor/style-font/style-font.d.ts +35 -0
- package/es/editor/style-font/style-font.mjs +36 -0
- package/es/editor/style-position/index.d.ts +4 -0
- package/es/editor/style-position/index.mjs +11 -0
- package/es/editor/style-position/style-position.d.ts +35 -0
- package/es/editor/style-position/style-position.mjs +35 -0
- package/es/editor/style-spacing/index.d.ts +4 -0
- package/es/editor/style-spacing/index.mjs +11 -0
- package/es/editor/style-spacing/style-spacing.d.ts +34 -0
- package/es/editor/style-spacing/style-spacing.mjs +60 -0
- package/es/hooks/design-view/designer/useDesignSave.mjs +3 -1
- package/es/hooks/index.d.ts +2 -1
- package/es/hooks/index.mjs +3 -2
- package/es/hooks/use-design-view-controller/use-design-view-controller.d.ts +11 -0
- package/es/hooks/use-design-view-controller/use-design-view-controller.mjs +31 -0
- package/es/index.d.ts +5 -2
- package/es/index.mjs +23 -8
- package/es/interface/controller/i-design-view.controller.d.ts +3 -5
- package/es/interface/form-editor/child-list-editor/child-list-editor.d.ts +114 -0
- package/es/interface/form-editor/index.d.ts +9 -0
- package/es/interface/form-editor/style-border/i-style-border.controller.d.ts +11 -0
- package/es/interface/form-editor/style-border/i-style-border.d.ts +22 -0
- package/es/interface/form-editor/style-font/i-style-font.controller.d.ts +11 -0
- package/es/interface/form-editor/style-font/i-style-font.d.ts +13 -0
- package/es/interface/form-editor/style-position/i-style-position.controller.d.ts +11 -0
- package/es/interface/form-editor/style-position/i-style-position.d.ts +13 -0
- package/es/interface/form-editor/style-spacing/i-style-spacing.controller.d.ts +11 -0
- package/es/interface/form-editor/style-spacing/i-style-spacing.d.ts +22 -0
- package/es/interface/index.d.ts +2 -0
- package/es/interface/provider/i-node-provider.d.ts +140 -0
- package/es/provider/design-editor-node/design-editor-node.provider.d.ts +41 -0
- package/es/provider/design-editor-node/design-editor-node.provider.mjs +57 -0
- package/es/provider/index.d.ts +2 -0
- package/es/provider/index.mjs +2 -0
- package/es/provider/node-base/node-base.provider.d.ts +25 -0
- package/es/provider/node-base/node-base.provider.mjs +34 -0
- package/es/register/index.d.ts +1 -0
- package/es/register/index.mjs +1 -0
- package/es/register/node/node.register.d.ts +113 -0
- package/es/register/node/node.register.mjs +141 -0
- package/es/store/index.d.ts +1 -0
- package/es/store/index.mjs +1 -0
- package/es/store/view/design-view.store.d.ts +12 -0
- package/es/store/view/design-view.store.mjs +327 -0
- package/es/utils/can-drop/can-drop.d.ts +12 -0
- package/es/utils/can-drop/can-drop.mjs +48 -0
- package/es/utils/design-plugin-pkg-util/design-plugin-pkg-util.d.ts +1 -1
- package/es/utils/design-plugin-pkg-util/design-plugin-pkg-util.mjs +29 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/package.json +12 -11
- package/es/components/field-cascader/index.d.ts +0 -2
- package/es/components/field-cascader/index.mjs +0 -1
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +0 -87
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +0 -6
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +0 -115
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +0 -69
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +0 -11
- package/es/components/field-cascader/src/SearchInput.vue.mjs +0 -7
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +0 -38
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +0 -9
- package/es/components/field-cascader/src/hooks.d.ts +0 -129
- package/es/components/field-cascader/src/hooks.mjs +0 -163
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_0c9dd8a1_lang.css +0 -5
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const MaterialTabs: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
tabs: {
|
|
3
|
+
type: {
|
|
4
|
+
(arrayLength: number): {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}[];
|
|
9
|
+
(...items: {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
}[]): {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
}[];
|
|
18
|
+
new (arrayLength: number): {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
}[];
|
|
23
|
+
new (...items: {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
}[]): {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
}[];
|
|
32
|
+
isArray(arg: any): arg is any[];
|
|
33
|
+
readonly prototype: any[];
|
|
34
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
35
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
36
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
37
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
38
|
+
of<T>(...items: T[]): T[];
|
|
39
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
40
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
41
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
42
|
+
};
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
active: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
}>, {
|
|
50
|
+
ns: import('@gct-paas/core').Namespace;
|
|
51
|
+
onChange: (e: MouseEvent, tag: string) => void;
|
|
52
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:active")[], "change" | "update:active", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
tabs: {
|
|
54
|
+
type: {
|
|
55
|
+
(arrayLength: number): {
|
|
56
|
+
id: string;
|
|
57
|
+
label: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
}[];
|
|
60
|
+
(...items: {
|
|
61
|
+
id: string;
|
|
62
|
+
label: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
}[]): {
|
|
65
|
+
id: string;
|
|
66
|
+
label: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
}[];
|
|
69
|
+
new (arrayLength: number): {
|
|
70
|
+
id: string;
|
|
71
|
+
label: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
}[];
|
|
74
|
+
new (...items: {
|
|
75
|
+
id: string;
|
|
76
|
+
label: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
}[]): {
|
|
79
|
+
id: string;
|
|
80
|
+
label: string;
|
|
81
|
+
icon: string;
|
|
82
|
+
}[];
|
|
83
|
+
isArray(arg: any): arg is any[];
|
|
84
|
+
readonly prototype: any[];
|
|
85
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
86
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
87
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
88
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
89
|
+
of<T>(...items: T[]): T[];
|
|
90
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
91
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
92
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
93
|
+
};
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
active: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
"onUpdate:active"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import './material-tabs.css';/* empty css */
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { createVNode, defineComponent } from "vue";
|
|
4
|
+
//#region src/components/material/material-tabs/material-tabs.tsx
|
|
5
|
+
var MaterialTabs = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "MaterialTabs",
|
|
7
|
+
props: {
|
|
8
|
+
tabs: {
|
|
9
|
+
type: Array,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
active: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:active", "change"],
|
|
18
|
+
setup(_props, { emit }) {
|
|
19
|
+
const ns = useNamespace("material-tabs");
|
|
20
|
+
const onChange = (e, tag) => {
|
|
21
|
+
e.stopPropagation();
|
|
22
|
+
emit("update:active", tag);
|
|
23
|
+
emit("change", tag);
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
ns,
|
|
27
|
+
onChange
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
render() {
|
|
31
|
+
const slots = this.$slots.default ? this.$slots.default() : [];
|
|
32
|
+
return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": this.ns.b("left") }, [this.tabs.map((tab) => createVNode("div", {
|
|
33
|
+
"class": [this.ns.e("item"), this.ns.is("active", tab.id === this.active)],
|
|
34
|
+
"onClick": (e) => this.onChange(e, tab.id)
|
|
35
|
+
}, [createVNode("div", { "class": this.ns.e("item-icon") }, [createVNode("i", { "class": `iconfont ${tab.icon}` }, null)]), createVNode("div", { "class": this.ns.e("item-label") }, [tab.label])]))]), createVNode("div", { "class": this.ns.b("right") }, [slots.map((slot) => {
|
|
36
|
+
const { props } = slot;
|
|
37
|
+
if (props) if (props.tabTag === this.active) props.style = { display: "block" };
|
|
38
|
+
else props.style = { display: "none" };
|
|
39
|
+
return slot;
|
|
40
|
+
})])]);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { MaterialTabs };
|
|
@@ -11,17 +11,7 @@ export declare const ModalNameEditor: import('vue').DefineComponent<import('vue'
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
}>, {
|
|
15
|
-
ns: import('@gct-paas/core').Namespace;
|
|
16
|
-
isEdit: import('vue').Ref<boolean, boolean>;
|
|
17
|
-
isError: import('vue').ComputedRef<boolean>;
|
|
18
|
-
isSaving: import('vue').Ref<boolean, boolean>;
|
|
19
|
-
val: import('vue').WritableComputedRef<string, string>;
|
|
20
|
-
nameInputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
21
|
-
onEditName: () => void;
|
|
22
|
-
onBlurOrEnter: () => void;
|
|
23
|
-
onChange: () => void;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
15
|
value: {
|
|
26
16
|
type: StringConstructor;
|
|
27
17
|
default: string;
|
|
@@ -90,45 +90,34 @@ var ModalNameEditor = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
const onChange = () => {
|
|
91
91
|
emit("change");
|
|
92
92
|
};
|
|
93
|
-
return {
|
|
94
|
-
ns,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
return () => {
|
|
94
|
+
return createVNode("div", { "class": ns.b() }, [
|
|
95
|
+
createVNode("div", {
|
|
96
|
+
"class": [ns.e("name"), ns.is("hidden", isEdit.value)],
|
|
97
|
+
"title": val.value,
|
|
98
|
+
"onDblclick": onEditName
|
|
99
|
+
}, [val.value]),
|
|
100
|
+
createVNode("div", { "class": [ns.e("input"), ns.is("hidden", !isEdit.value)] }, [
|
|
101
|
+
isSaving.value ? createVNode(resolveComponent("loading-outlined"), null, null) : null,
|
|
102
|
+
createVNode(resolveComponent("a-input"), {
|
|
103
|
+
"value": val.value,
|
|
104
|
+
"onUpdate:value": ($event) => val.value = $event,
|
|
105
|
+
"ref": nameInputRef,
|
|
106
|
+
"size": "small",
|
|
107
|
+
"bordered": false,
|
|
108
|
+
"onBlur": onBlurOrEnter,
|
|
109
|
+
"onPressEnter": onBlurOrEnter,
|
|
110
|
+
"disabled": isSaving.value,
|
|
111
|
+
"onChange": onChange
|
|
112
|
+
}, null),
|
|
113
|
+
createVNode("div", { "class": [ns.e("error-info"), ns.is("hidden", !isError.value)] }, [`最大${props.max}字`])
|
|
114
|
+
]),
|
|
115
|
+
createVNode("div", {
|
|
116
|
+
"class": [ns.e("edit"), ns.is("hidden", isEdit.value)],
|
|
117
|
+
"onClick": onEditName
|
|
118
|
+
}, [createVNode("i", { "class": "iconfont icon-bianji" }, null)])
|
|
119
|
+
]);
|
|
103
120
|
};
|
|
104
|
-
},
|
|
105
|
-
render() {
|
|
106
|
-
return createVNode("div", { "class": this.ns.b() }, [
|
|
107
|
-
createVNode("div", {
|
|
108
|
-
"class": [this.ns.e("name"), this.ns.is("hidden", this.isEdit)],
|
|
109
|
-
"title": this.val,
|
|
110
|
-
"onDblclick": this.onEditName
|
|
111
|
-
}, [this.val]),
|
|
112
|
-
createVNode("div", { "class": [this.ns.e("input"), this.ns.is("hidden", !this.isEdit)] }, [
|
|
113
|
-
this.isSaving ? createVNode(resolveComponent("loading-outlined"), null, null) : null,
|
|
114
|
-
createVNode(resolveComponent("a-input"), {
|
|
115
|
-
"value": this.val,
|
|
116
|
-
"onUpdate:value": ($event) => this.val = $event,
|
|
117
|
-
"ref": "nameInputRef",
|
|
118
|
-
"size": "small",
|
|
119
|
-
"bordered": false,
|
|
120
|
-
"onBlur": this.onBlurOrEnter,
|
|
121
|
-
"onPressEnter": this.onBlurOrEnter,
|
|
122
|
-
"disabled": this.isSaving,
|
|
123
|
-
"onChange": this.onChange
|
|
124
|
-
}, null),
|
|
125
|
-
createVNode("div", { "class": [this.ns.e("error-info"), this.ns.is("hidden", !this.isError)] }, [`最大${this.max}字`])
|
|
126
|
-
]),
|
|
127
|
-
createVNode("div", {
|
|
128
|
-
"class": [this.ns.e("edit"), this.ns.is("hidden", this.isEdit)],
|
|
129
|
-
"onClick": this.onEditName
|
|
130
|
-
}, [createVNode("i", { "class": "iconfont icon-bianji" }, null)])
|
|
131
|
-
]);
|
|
132
121
|
}
|
|
133
122
|
});
|
|
134
123
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./multi-field-display.vue.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBasicSchema } from '@gct-paas/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
widget: IBasicSchema;
|
|
4
|
+
rowReadonly?: boolean;
|
|
5
|
+
isDesign?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import multi_field_display_vue_vue_type_script_setup_true_lang_default from "./multi-field-display.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './multi-field-display.vue_vue_type_style_index_0_scoped_802ade7b_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/multi-field/multi-field-display.vue
|
|
5
|
+
var multi_field_display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(multi_field_display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-802ade7b"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { multi_field_display_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import multi_field_item_default from "./multi-field-item.vue.mjs";
|
|
2
|
+
import { MaterialEnum } from "@gct-paas/core";
|
|
3
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createVNode, defineComponent, openBlock, renderList } from "vue";
|
|
4
|
+
//#region src/components/multi-field/multi-field-display.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex tag-area"
|
|
8
|
+
};
|
|
9
|
+
var multi_field_display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "multi-field-display",
|
|
11
|
+
props: {
|
|
12
|
+
widget: {},
|
|
13
|
+
rowReadonly: { type: Boolean },
|
|
14
|
+
isDesign: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const defProps = __props;
|
|
18
|
+
const showTag = computed(() => {
|
|
19
|
+
return defProps.rowReadonly && defProps.widget.materialType === MaterialEnum.MaterialTableField && defProps.widget.props.multiFieldDisplay;
|
|
20
|
+
});
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return showTag.value ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(defProps.widget.props.multiFieldConfig, (item, idx) => {
|
|
23
|
+
return openBlock(), createElementBlock("div", { key: idx }, [createVNode(multi_field_item_default, {
|
|
24
|
+
config: item,
|
|
25
|
+
"is-design": defProps.isDesign
|
|
26
|
+
}, null, 8, ["config", "is-design"])]);
|
|
27
|
+
}), 128))])) : createCommentVNode("", true);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { multi_field_display_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
config: IObject;
|
|
3
|
+
isDesign: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import multi_field_item_vue_vue_type_script_setup_true_lang_default from "./multi-field-item.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './multi-field-item.vue_vue_type_style_index_0_scoped_881cb08e_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/multi-field/multi-field-item.vue
|
|
5
|
+
var multi_field_item_default = /* @__PURE__ */ _plugin_vue_export_helper_default(multi_field_item_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-881cb08e"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { multi_field_item_default as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString } from "vue";
|
|
2
|
+
import { colord } from "colord";
|
|
3
|
+
//#region src/components/multi-field/multi-field-item.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var multi_field_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "multi-field-item",
|
|
6
|
+
props: {
|
|
7
|
+
config: {},
|
|
8
|
+
isDesign: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const runName = ref();
|
|
13
|
+
const name = computed(() => {
|
|
14
|
+
if (!props.config?.event?.name) return "";
|
|
15
|
+
if (props.isDesign) return "辅助字段";
|
|
16
|
+
return runName.value;
|
|
17
|
+
});
|
|
18
|
+
const style = computed(() => {
|
|
19
|
+
if (props.config.style.labelType.includes("surface_")) return {
|
|
20
|
+
background: props.config.style.color,
|
|
21
|
+
color: "#fff"
|
|
22
|
+
};
|
|
23
|
+
if (props.config.style.labelType.includes("line_dashed_")) return {
|
|
24
|
+
border: `1px dashed ${colord(props.config.style.color).alpha(.5).toRgbString()}`,
|
|
25
|
+
color: props.config.style.color
|
|
26
|
+
};
|
|
27
|
+
if (props.config.style.labelType.includes("line_")) return {
|
|
28
|
+
border: `1px solid ${colord(props.config.style.color).alpha(.5).toRgbString()}`,
|
|
29
|
+
color: props.config.style.color
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
background: colord(props.config.style.color).alpha(.1).toRgbString(),
|
|
33
|
+
color: props.config.style.color,
|
|
34
|
+
border: `1px solid ${colord(props.config.style.color).alpha(.5).toRgbString()}`
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return name.value ? (openBlock(), createElementBlock("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: normalizeClass(["tag", props.config.style.labelType]),
|
|
41
|
+
style: normalizeStyle(style.value)
|
|
42
|
+
}, toDisplayString(name.value), 7)) : createCommentVNode("", true);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { multi_field_item_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.tag[data-v-881cb08e] {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
height: 22px;
|
|
5
|
+
margin-left: 8px;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
line-height: 22px;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
}
|
|
10
|
+
.radius[data-v-881cb08e],
|
|
11
|
+
.surface_radius[data-v-881cb08e],
|
|
12
|
+
.line_radius[data-v-881cb08e],
|
|
13
|
+
.line_dashed_radius[data-v-881cb08e] {
|
|
14
|
+
padding-right: 6px;
|
|
15
|
+
padding-left: 6px;
|
|
16
|
+
border-radius: 3px;
|
|
17
|
+
}
|
|
18
|
+
.big_radius[data-v-881cb08e],
|
|
19
|
+
.surface_big_radius[data-v-881cb08e],
|
|
20
|
+
.line_big_radius[data-v-881cb08e] {
|
|
21
|
+
padding-right: 8px;
|
|
22
|
+
padding-left: 8px;
|
|
23
|
+
border-radius: 50px;
|
|
24
|
+
}
|
|
25
|
+
.line_status[data-v-881cb08e],
|
|
26
|
+
.surface_status[data-v-881cb08e],
|
|
27
|
+
.status[data-v-881cb08e] {
|
|
28
|
+
padding-right: 8px;
|
|
29
|
+
padding-left: 8px;
|
|
30
|
+
border-radius: 11px 3px 3px;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PanelContent } from './panel-content/panel-content';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./panel-content/panel-content.mjs";
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-panel-content {
|
|
66
|
+
height: 100%;
|
|
67
|
+
overflow: hidden auto;
|
|
68
|
+
background-color: #FFF;
|
|
69
|
+
border-left: 1px solid #e0e3ea;
|
|
70
|
+
--gct-form-item-label-color: #242424;
|
|
71
|
+
}
|
|
72
|
+
.gct-panel-content .gct-form-item .ant-form-item-label {
|
|
73
|
+
--gct-form-item-label-align: left;
|
|
74
|
+
}
|
|
75
|
+
.gct-panel-content .gct-form-item__left {
|
|
76
|
+
float: right;
|
|
77
|
+
}
|
|
78
|
+
.gct-panel-content .gct-form-item__label, .gct-panel-content .ant-form-item-label, .gct-panel-content .ant-checkbox-group {
|
|
79
|
+
--gct-form-item-label-font-size: 12px;
|
|
80
|
+
--gct-form-item-checkbox-width: 5px;
|
|
81
|
+
--gct-form-item-checkbox-height: 7px;
|
|
82
|
+
}
|
|
83
|
+
.gct-panel-content__paths {
|
|
84
|
+
height: 42px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.gct-panel-content__content {
|
|
88
|
+
height: calc(100% - 42px);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.gct-panel-content .gct-form-collapse {
|
|
92
|
+
border-right: none;
|
|
93
|
+
border-left: none;
|
|
94
|
+
}
|
|
95
|
+
.gct-panel-content .gct-form-collapse:first-child {
|
|
96
|
+
border-top: none;
|
|
97
|
+
}
|
|
98
|
+
.gct-panel-content .gct-form-collapse.ant-collapse > .ant-collapse-item {
|
|
99
|
+
border-bottom-width: 0;
|
|
100
|
+
}
|
|
101
|
+
.gct-panel-content .ant-input,
|
|
102
|
+
.gct-panel-content .ant-select {
|
|
103
|
+
color: #666;
|
|
104
|
+
}
|
|
105
|
+
.gct-panel-content .ant-input-show-count-suffix {
|
|
106
|
+
color: #c3c3c3;
|
|
107
|
+
}
|
|
108
|
+
.gct-panel-content .ant-input-affix-wrapper-sm {
|
|
109
|
+
padding: 2px 7px;
|
|
110
|
+
}
|
|
111
|
+
.gct-panel-content .ant-input-number-sm input {
|
|
112
|
+
height: 26px;
|
|
113
|
+
}
|
|
114
|
+
.gct-panel-content .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {
|
|
115
|
+
height: 28px;
|
|
116
|
+
}
|
|
117
|
+
.gct-panel-content .ant-select-multiple.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {
|
|
118
|
+
min-height: 28px;
|
|
119
|
+
}
|
|
120
|
+
.gct-panel-content .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,
|
|
121
|
+
.gct-panel-content .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder,
|
|
122
|
+
.gct-panel-content .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector::after {
|
|
123
|
+
line-height: 26px;
|
|
124
|
+
}
|
|
125
|
+
.gct-panel-content {
|
|
126
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
127
|
+
}
|
|
128
|
+
.gct-panel-content .ant-select-multiple.ant-select-sm .ant-select-selection-item {
|
|
129
|
+
height: 20px;
|
|
130
|
+
line-height: 17px;
|
|
131
|
+
}
|
|
132
|
+
.gct-panel-content {
|
|
133
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
134
|
+
}
|
|
135
|
+
.gct-panel-content .ant-select-selection-placeholder,
|
|
136
|
+
.gct-panel-content .ant-input::placeholder {
|
|
137
|
+
color: #c3c3c3;
|
|
138
|
+
}
|
|
139
|
+
.gct-panel-content .ant-form .ant-form-item {
|
|
140
|
+
margin-bottom: 8px;
|
|
141
|
+
}
|
|
142
|
+
.gct-panel-content .in-row-no-bottom {
|
|
143
|
+
margin-bottom: 0 !important;
|
|
144
|
+
}
|
|
145
|
+
.gct-panel-content .ant-form-vertical .ant-form-item-label {
|
|
146
|
+
padding-bottom: 2px;
|
|
147
|
+
}
|
|
148
|
+
.gct-panel-content .ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
|
|
149
|
+
right: 12px;
|
|
150
|
+
}
|
|
151
|
+
.gct-panel-content .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
|
|
152
|
+
padding: 0;
|
|
153
|
+
}
|
|
154
|
+
.gct-panel-content .ant-collapse,
|
|
155
|
+
.gct-panel-content .ant-input,
|
|
156
|
+
.gct-panel-content .ant-collapse-header,
|
|
157
|
+
.gct-panel-content .ant-btn,
|
|
158
|
+
.gct-panel-content .ant-select,
|
|
159
|
+
.gct-panel-content .ant-form .ant-form-item,
|
|
160
|
+
.gct-panel-content .ant-breadcrumb {
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
}
|
|
163
|
+
.gct-panel-content span.ant-radio + * {
|
|
164
|
+
padding-right: 8px;
|
|
165
|
+
padding-left: 6px;
|
|
166
|
+
}
|
|
167
|
+
.gct-panel-content .ant-radio-inner {
|
|
168
|
+
width: 12px;
|
|
169
|
+
height: 12px;
|
|
170
|
+
}
|
|
171
|
+
.gct-panel-content .ant-input-number,
|
|
172
|
+
.gct-panel-content .ant-input-number-group-addon {
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
}
|
|
175
|
+
.gct-panel-content .style-pane .ant-form-item {
|
|
176
|
+
min-height: 28px;
|
|
177
|
+
margin-bottom: 8px;
|
|
178
|
+
}
|
|
179
|
+
.gct-panel-content .suffix-number-input .ant-input-number-group > .ant-input-number:first-child {
|
|
180
|
+
border-radius: 2px;
|
|
181
|
+
}
|
|
182
|
+
.gct-panel-content .suffix-number-input .ant-input-number-group-addon {
|
|
183
|
+
padding: 0 16px 0 8px;
|
|
184
|
+
background-color: transparent;
|
|
185
|
+
border: 0;
|
|
186
|
+
}
|
|
187
|
+
.gct-panel-content {
|
|
188
|
+
--gct-form-item-label-color: #242424;
|
|
189
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IEditForm } from '@gct-paas/core-web';
|
|
3
|
+
export declare const PanelContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
context: {
|
|
5
|
+
type: PropType<IContext>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, {
|
|
9
|
+
ns: import('@gct-paas/core').Namespace;
|
|
10
|
+
c: import('../../..').IDesignViewController;
|
|
11
|
+
formModel: import('vue').ComputedRef<IEditForm | null>;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
context: {
|
|
14
|
+
type: PropType<IContext>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{}>, {
|
|
18
|
+
context: IContext;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NodeRegister } from "../../../register/node/node.register.mjs";
|
|
2
|
+
import "../../../register/index.mjs";
|
|
3
|
+
import { useDesignViewController } from "../../../hooks/use-design-view-controller/use-design-view-controller.mjs";
|
|
4
|
+
import "../../../hooks/index.mjs";
|
|
5
|
+
import { PanelPath } from "../panel-path/panel-path.mjs";
|
|
6
|
+
import { PanelForm } from "../panel-form/panel-form.mjs";
|
|
7
|
+
import './panel-content.css';/* empty css */
|
|
8
|
+
import { isFunction } from "lodash-es";
|
|
9
|
+
import { useNamespace } from "@gct-paas/core";
|
|
10
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
11
|
+
//#region src/components/panel/panel-content/panel-content.tsx
|
|
12
|
+
var PanelContent = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "PanelContent",
|
|
14
|
+
props: { context: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
} },
|
|
20
|
+
setup(props) {
|
|
21
|
+
const ns = useNamespace("panel-content");
|
|
22
|
+
const c = useDesignViewController();
|
|
23
|
+
return {
|
|
24
|
+
ns,
|
|
25
|
+
c,
|
|
26
|
+
formModel: computed(() => {
|
|
27
|
+
if (c.store.selected) {
|
|
28
|
+
const p = NodeRegister.get(c.store.selected.type, c.store.prefix);
|
|
29
|
+
if (p) {
|
|
30
|
+
if (isFunction(p.model)) return p.model(props.context, c.store.selected);
|
|
31
|
+
return p.model;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
})
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": this.ns.e("paths") }, [createVNode(PanelPath, null, null)]), createVNode("div", { "class": this.ns.e("content") }, [this.c.store.selected && this.formModel ? createVNode(PanelForm, {
|
|
40
|
+
"key": this.c.store.selected.id,
|
|
41
|
+
"model": this.formModel,
|
|
42
|
+
"node": this.c.store.selected,
|
|
43
|
+
"context": this.context
|
|
44
|
+
}, null) : null])]);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { PanelContent };
|