@gct-paas/core-web 0.0.1-dev.14 → 0.0.1-dev.16
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/core-web.css +1 -0
- package/dist/index.min.cjs +3 -3
- package/dist/index.system.min.js +3 -3
- package/es/components/code-editor/code-editor.d.ts +28 -2
- package/es/components/code-editor/code-editor.mjs +39 -8
- package/es/components/code-editor/code-editor.scss +1 -1
- package/es/components/index.d.ts +4 -0
- package/es/components/index.mjs +4 -0
- package/es/components/layout/flex-container/flex-container.d.ts +15 -0
- package/es/components/layout/flex-container/flex-container.mjs +90 -0
- package/es/components/layout/flex-container/flex-container.scss +3 -0
- package/es/components/layout/flex-item/flex-item.d.ts +14 -0
- package/es/components/layout/flex-item/flex-item.mjs +53 -0
- package/es/components/layout/flex-item/flex-item.scss +17 -0
- package/es/components/layout/grid-container/grid-container.d.ts +13 -0
- package/es/components/layout/grid-container/grid-container.mjs +47 -0
- package/es/components/layout/view-container/view-container.d.ts +25 -0
- package/es/components/layout/view-container/view-container.mjs +39 -0
- package/es/components/layout/view-container/view-container.scss +19 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +40 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +53 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.d.ts +13 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +6 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +10 -0
- package/es/editor/gct-form-check-switch/index.d.ts +4 -0
- package/es/editor/gct-form-check-switch/index.mjs +12 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +41 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +70 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +56 -0
- package/es/editor/gct-form-checkbox/index.d.ts +11 -0
- package/es/editor/gct-form-checkbox/index.mjs +19 -0
- package/es/editor/gct-form-color/gct-form-color.d.ts +37 -0
- package/es/editor/gct-form-color/gct-form-color.mjs +43 -0
- package/es/editor/gct-form-color/gct-form-color.provider.d.ts +13 -0
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +6 -0
- package/es/editor/gct-form-color/gct-form-color.scss +3 -0
- package/es/editor/gct-form-color/index.d.ts +4 -0
- package/es/editor/gct-form-color/index.mjs +12 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +38 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +62 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.d.ts +13 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +6 -0
- package/es/editor/gct-form-i18n/index.d.ts +4 -0
- package/es/editor/gct-form-i18n/index.mjs +12 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +29 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +74 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +14 -0
- package/es/editor/gct-form-icon-select/index.d.ts +8 -0
- package/es/editor/gct-form-icon-select/index.mjs +14 -0
- package/es/editor/gct-form-info/gct-form-info.d.ts +28 -0
- package/es/editor/gct-form-info/gct-form-info.mjs +40 -0
- package/es/editor/gct-form-info/gct-form-info.scss +8 -0
- package/es/editor/gct-form-info/index.d.ts +8 -0
- package/es/editor/gct-form-info/index.mjs +14 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +39 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +43 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.d.ts +13 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +6 -0
- package/es/editor/gct-form-length-unit/index.d.ts +4 -0
- package/es/editor/gct-form-length-unit/index.mjs +12 -0
- package/es/editor/gct-form-number/gct-form-number.d.ts +29 -0
- package/es/editor/gct-form-number/gct-form-number.mjs +46 -0
- package/es/editor/gct-form-number/gct-form-number.provider.d.ts +4 -0
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +6 -0
- package/es/editor/gct-form-number/index.d.ts +4 -0
- package/es/editor/gct-form-number/index.mjs +12 -0
- package/es/editor/gct-form-picker/gct-form-picker.d.ts +39 -0
- package/es/editor/gct-form-picker/gct-form-picker.mjs +92 -0
- package/es/editor/gct-form-picker/gct-form-picker.provider.d.ts +13 -0
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +6 -0
- package/es/editor/gct-form-picker/index.d.ts +4 -0
- package/es/editor/gct-form-picker/index.mjs +12 -0
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +37 -0
- package/es/editor/gct-form-radio/gct-form-radio.mjs +70 -0
- package/es/editor/gct-form-radio/gct-form-radio.scss +68 -0
- package/es/editor/gct-form-radio/index.d.ts +11 -0
- package/es/editor/gct-form-radio/index.mjs +19 -0
- package/es/editor/gct-form-select/gct-form-select.d.ts +38 -0
- package/es/editor/gct-form-select/gct-form-select.mjs +50 -0
- package/es/editor/gct-form-select/gct-form-select.provider.d.ts +13 -0
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +6 -0
- package/es/editor/gct-form-select/index.d.ts +4 -0
- package/es/editor/gct-form-select/index.mjs +12 -0
- package/es/editor/gct-form-span/gct-form-span.d.ts +43 -0
- package/es/editor/gct-form-span/gct-form-span.mjs +89 -0
- package/es/editor/gct-form-span/gct-form-span.provider.d.ts +13 -0
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +6 -0
- package/es/editor/gct-form-span/gct-form-span.scss +10 -0
- package/es/editor/gct-form-span/index.d.ts +4 -0
- package/es/editor/gct-form-span/index.mjs +12 -0
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +26 -0
- package/es/editor/gct-form-switch/gct-form-switch.mjs +35 -0
- package/es/editor/gct-form-switch/gct-form-switch.provider.d.ts +13 -0
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +6 -0
- package/es/editor/gct-form-switch/index.d.ts +7 -0
- package/es/editor/gct-form-switch/index.mjs +17 -0
- package/es/editor/gct-form-text/gct-form-text.d.ts +32 -0
- package/es/editor/gct-form-text/gct-form-text.mjs +45 -0
- package/es/editor/gct-form-text/gct-form-text.provider.d.ts +13 -0
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +6 -0
- package/es/editor/gct-form-text/index.d.ts +7 -0
- package/es/editor/gct-form-text/index.mjs +17 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +28 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +40 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.d.ts +4 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +6 -0
- package/es/editor/gct-form-textarea/index.d.ts +4 -0
- package/es/editor/gct-form-textarea/index.mjs +12 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +42 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +15 -1
- package/es/types/index.d.ts +1 -0
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +62 -0
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +126 -0
- package/es/widgets/gct-edit-form/index.d.ts +5 -0
- package/es/widgets/gct-edit-form/index.mjs +10 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +31 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +73 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +62 -0
- package/es/widgets/gct-form/gct-form-collapse/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +29 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +71 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +13 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +23 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +30 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +88 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +28 -0
- package/es/widgets/gct-form/gct-form-group/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-group/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +13 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +35 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +141 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +115 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +28 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +53 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +63 -0
- package/es/widgets/gct-form/gct-form-tab/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab/index.mjs +12 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +29 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +65 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +16 -0
- package/es/widgets/gct-form/gct-form-tab-pane/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +30 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +71 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +25 -0
- package/es/widgets/gct-form/gct-form-title-group/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +16 -0
- package/es/widgets/gct-form/gct-form.d.ts +31 -0
- package/es/widgets/gct-form/gct-form.mjs +109 -0
- package/es/widgets/gct-form/gct-form.scss +11 -0
- package/es/widgets/gct-form/index.d.ts +5 -0
- package/es/widgets/gct-form/index.mjs +31 -0
- package/package.json +7 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormColor as GctFormColor$1 } from './gct-form-color.mjs';
|
|
3
|
+
import { GctFormColorProvider } from './gct-form-color.provider.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var GctFormColor = widthEditorInstall(
|
|
7
|
+
EditorType.COLOR,
|
|
8
|
+
() => new GctFormColorProvider(),
|
|
9
|
+
GctFormColor$1
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { GctFormColor as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IFormItemController, INumberEditor } from '@gct-paas/core';
|
|
3
|
+
export declare const GctFormI18n: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
c: {
|
|
5
|
+
type: PropType<IFormItemController>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
model: {
|
|
9
|
+
type: PropType<INumberEditor>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
value: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>, {
|
|
17
|
+
ns: import('@gct-paas/core').Namespace;
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
|
+
i18nConfigValue: import('vue').WritableComputedRef<any, any>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
c: {
|
|
22
|
+
type: PropType<IFormItemController>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
model: {
|
|
26
|
+
type: PropType<INumberEditor>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
value: string;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default GctFormI18n;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, mergeProps, computed } from 'vue';
|
|
2
|
+
import { useNamespace, useForm, useGctFormValue } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const GctFormI18n = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "GctFormI18n",
|
|
7
|
+
props: {
|
|
8
|
+
c: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:value"],
|
|
22
|
+
setup() {
|
|
23
|
+
const ns = useNamespace("gct-form-i18n");
|
|
24
|
+
const form = useForm();
|
|
25
|
+
const i18nConfig = form.item.i18nConfig;
|
|
26
|
+
const val = useGctFormValue();
|
|
27
|
+
const i18nConfigValue = computed({
|
|
28
|
+
get: () => {
|
|
29
|
+
if (i18nConfig) {
|
|
30
|
+
return i18nConfig.value;
|
|
31
|
+
}
|
|
32
|
+
return "";
|
|
33
|
+
},
|
|
34
|
+
set: (val2) => {
|
|
35
|
+
if (!i18nConfig) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
i18nConfig.value = val2;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
ns,
|
|
43
|
+
val,
|
|
44
|
+
i18nConfigValue
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
render() {
|
|
48
|
+
return createVNode(resolveComponent("i18n-select-input"), mergeProps(this.model.props || {}, {
|
|
49
|
+
"i18nText": this.val,
|
|
50
|
+
"onUpdate:i18nText": ($event) => this.val = $event,
|
|
51
|
+
"i18nConfig": this.i18nConfigValue,
|
|
52
|
+
"onUpdate:i18nConfig": ($event) => this.i18nConfigValue = $event,
|
|
53
|
+
"inputExtraProps": {
|
|
54
|
+
showCount: true,
|
|
55
|
+
maxlength: 32,
|
|
56
|
+
disabled: this.c.state.disabled
|
|
57
|
+
}
|
|
58
|
+
}), null);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export { GctFormI18n, GctFormI18n as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IEditorProvider } from '@gct-paas/core';
|
|
2
|
+
/**
|
|
3
|
+
* 多语言文本选择编辑器
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-04-02 17:04:13
|
|
7
|
+
* @export
|
|
8
|
+
* @class GctFormI18nProvider
|
|
9
|
+
* @implements {IEditorProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class GctFormI18nProvider implements IEditorProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormI18nProvider } from './gct-form-i18n.provider.mjs';
|
|
3
|
+
import { GctFormI18n as GctFormI18n$1 } from './gct-form-i18n.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var GctFormI18n = widthEditorInstall(
|
|
7
|
+
EditorType.I18N,
|
|
8
|
+
() => new GctFormI18nProvider(),
|
|
9
|
+
GctFormI18n$1
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { GctFormI18n as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IIconSelectEditor } from '@gct-paas/core';
|
|
3
|
+
export declare const GctFormIconSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
type: PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
model: {
|
|
8
|
+
type: PropType<IIconSelectEditor>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>, {
|
|
12
|
+
ns: import('@gct-paas/core').Namespace;
|
|
13
|
+
icon: import('vue').Ref<string, string>;
|
|
14
|
+
color: import('vue').Ref<string, string>;
|
|
15
|
+
background: import('vue').Ref<string, string>;
|
|
16
|
+
nextPickerStyle: import('vue').ComputedRef<{
|
|
17
|
+
'--box-size': string;
|
|
18
|
+
} | undefined>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
value: {
|
|
21
|
+
type: PropType<any>;
|
|
22
|
+
};
|
|
23
|
+
model: {
|
|
24
|
+
type: PropType<IIconSelectEditor>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{
|
|
28
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, ref, watch, computed } from 'vue';
|
|
2
|
+
import { useNamespace } from '@gct-paas/core';
|
|
3
|
+
import './gct-form-icon-select.scss';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const GctFormIconSelect = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "GctFormIconSelect",
|
|
8
|
+
props: {
|
|
9
|
+
value: {
|
|
10
|
+
type: Object
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(props, {
|
|
19
|
+
emit
|
|
20
|
+
}) {
|
|
21
|
+
const ns = useNamespace("gct-form-icon-select");
|
|
22
|
+
const val = ref(props.value);
|
|
23
|
+
const icon = ref(val.value?.icon || props.model.defaultIcon);
|
|
24
|
+
const color = ref(val.value?.color || props.model.defaultColor);
|
|
25
|
+
const background = ref(val.value?.background || props.model.defaultBackground);
|
|
26
|
+
watch(() => props.value, (newVal) => {
|
|
27
|
+
val.value = newVal;
|
|
28
|
+
if (newVal) {
|
|
29
|
+
icon.value = newVal.icon;
|
|
30
|
+
color.value = newVal.color;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
watch([icon, color, background], () => {
|
|
34
|
+
val.value = {
|
|
35
|
+
icon: icon.value,
|
|
36
|
+
color: color.value
|
|
37
|
+
};
|
|
38
|
+
emit("update:value", val.value);
|
|
39
|
+
});
|
|
40
|
+
const nextPickerStyle = computed(() => {
|
|
41
|
+
if (!props.model.size) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
"--box-size": props.model.size + "px"
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
ns,
|
|
50
|
+
icon,
|
|
51
|
+
color,
|
|
52
|
+
background,
|
|
53
|
+
nextPickerStyle
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
render() {
|
|
57
|
+
return createVNode("div", {
|
|
58
|
+
"class": this.ns.b()
|
|
59
|
+
}, [createVNode(resolveComponent("icon-next-picker"), {
|
|
60
|
+
"value": this.icon,
|
|
61
|
+
"onUpdate:value": ($event) => this.icon = $event,
|
|
62
|
+
"color": this.color,
|
|
63
|
+
"onUpdate:color": ($event) => this.color = $event,
|
|
64
|
+
"background": "#f5f5f5",
|
|
65
|
+
"disabled": this.model.disabled,
|
|
66
|
+
"showColor": this.model.showColor === false ? false : true,
|
|
67
|
+
"style": this.nextPickerStyle
|
|
68
|
+
}, null), this.model.label ? createVNode("span", {
|
|
69
|
+
"class": this.ns.e("title")
|
|
70
|
+
}, [this.model.label]) : null]);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export { GctFormIconSelect };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormIconSelect as GctFormIconSelect$1 } from './gct-form-icon-select.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
class Provider {
|
|
6
|
+
component = "gct-form-icon-select";
|
|
7
|
+
}
|
|
8
|
+
var GctFormIconSelect = widthEditorInstall(
|
|
9
|
+
EditorType.ICON_SELECT,
|
|
10
|
+
() => new Provider(),
|
|
11
|
+
GctFormIconSelect$1
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export { Provider, GctFormIconSelect as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IInfoEditor } from '@gct-paas/core';
|
|
3
|
+
export declare const GctFormInfo: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
model: {
|
|
9
|
+
type: PropType<IInfoEditor>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {
|
|
13
|
+
ns: import('@gct-paas/core').Namespace;
|
|
14
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
value: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
model: {
|
|
21
|
+
type: PropType<IInfoEditor>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{
|
|
25
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
value: string;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, createVNode } from 'vue';
|
|
2
|
+
import { useNamespace, useGctFormValue } from '@gct-paas/core';
|
|
3
|
+
import './gct-form-info.scss';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const GctFormInfo = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "GctFormInfo",
|
|
8
|
+
props: {
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
model: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:value"],
|
|
19
|
+
setup() {
|
|
20
|
+
const ns = useNamespace("gct-form-info");
|
|
21
|
+
const val = useGctFormValue();
|
|
22
|
+
return {
|
|
23
|
+
ns,
|
|
24
|
+
val
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
render() {
|
|
28
|
+
return createVNode("div", {
|
|
29
|
+
"class": this.ns.b()
|
|
30
|
+
}, [this.model.icon ? createVNode("span", {
|
|
31
|
+
"class": this.ns.e("icon")
|
|
32
|
+
}, [createVNode("i", {
|
|
33
|
+
"class": `iconfont ${this.model.icon}`
|
|
34
|
+
}, null)]) : null, createVNode("span", {
|
|
35
|
+
"class": this.ns.e("content")
|
|
36
|
+
}, [this.val || this.model.content])]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { GctFormInfo };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormInfo as GctFormInfo$1 } from './gct-form-info.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
class Provider {
|
|
6
|
+
component = "gct-form-info";
|
|
7
|
+
}
|
|
8
|
+
var GctFormInfo = widthEditorInstall(
|
|
9
|
+
EditorType.INFO,
|
|
10
|
+
() => new Provider(),
|
|
11
|
+
GctFormInfo$1
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export { Provider, GctFormInfo as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LengthUnitEditorController, ILengthUnitEditor, IFormItem } from '@gct-paas/core';
|
|
3
|
+
/**
|
|
4
|
+
* 带单位长度字符串编辑器
|
|
5
|
+
*/
|
|
6
|
+
export declare const GctFormLengthUnit: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
|
+
itemModel: {
|
|
8
|
+
type: PropType<IFormItem>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
model: {
|
|
12
|
+
type: PropType<ILengthUnitEditor>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
ns: import('@gct-paas/core').Namespace;
|
|
21
|
+
c: LengthUnitEditorController;
|
|
22
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
itemModel: {
|
|
25
|
+
type: PropType<IFormItem>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
model: {
|
|
29
|
+
type: PropType<ILengthUnitEditor>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{
|
|
37
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default GctFormLengthUnit;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
|
+
import { useNamespace, LengthUnitEditorController, useGctFormValue } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const GctFormLengthUnit = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "GctFormLengthUnit",
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
props: {
|
|
9
|
+
itemModel: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
model: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
value: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:value"],
|
|
23
|
+
setup(props) {
|
|
24
|
+
const ns = useNamespace("form-length-unit");
|
|
25
|
+
const c = new LengthUnitEditorController(props.model);
|
|
26
|
+
const val = useGctFormValue();
|
|
27
|
+
return {
|
|
28
|
+
ns,
|
|
29
|
+
c,
|
|
30
|
+
val
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
render() {
|
|
34
|
+
return createVNode(resolveComponent("length-unit-editor"), mergeProps({
|
|
35
|
+
"value": this.val,
|
|
36
|
+
"onUpdate:value": ($event) => this.val = $event
|
|
37
|
+
}, this.model.props || {}, {
|
|
38
|
+
"class": [this.ns.b(), this.ns.is("readonly", this.model.readonly)]
|
|
39
|
+
}), null);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { GctFormLengthUnit, GctFormLengthUnit as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IEditorProvider } from '@gct-paas/core';
|
|
2
|
+
/**
|
|
3
|
+
* 带单位长度字符串编辑器
|
|
4
|
+
*
|
|
5
|
+
* @author lingxiaoming
|
|
6
|
+
* @date 2024-07-17 04:48:33
|
|
7
|
+
* @export
|
|
8
|
+
* @class GctFormLengthUnitProvider
|
|
9
|
+
* @implements {IEditorProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class GctFormLengthUnitProvider implements IEditorProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormLengthUnit as GctFormLengthUnit$1 } from './gct-form-length-unit.mjs';
|
|
3
|
+
import { GctFormLengthUnitProvider } from './gct-form-length-unit.provider.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var GctFormLengthUnit = widthEditorInstall(
|
|
7
|
+
EditorType.LENGTH_UNIT,
|
|
8
|
+
() => new GctFormLengthUnitProvider(),
|
|
9
|
+
GctFormLengthUnit$1
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { GctFormLengthUnit as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { INumberEditor, EditorController } from '@gct-paas/core';
|
|
3
|
+
export declare const GctFormNumber: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
model: {
|
|
5
|
+
type: PropType<INumberEditor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
value: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {
|
|
13
|
+
ns: import('@gct-paas/core').Namespace;
|
|
14
|
+
c: EditorController<INumberEditor>;
|
|
15
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
model: {
|
|
18
|
+
type: PropType<INumberEditor>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
value: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
value: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
|
+
import { useNamespace, EditorController, useGctFormValue } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const GctFormNumber = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "GctFormNumber",
|
|
7
|
+
props: {
|
|
8
|
+
model: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
value: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(props) {
|
|
19
|
+
const ns = useNamespace("gct-form-number");
|
|
20
|
+
const c = new EditorController(props.model);
|
|
21
|
+
const val = useGctFormValue();
|
|
22
|
+
return {
|
|
23
|
+
ns,
|
|
24
|
+
c,
|
|
25
|
+
val
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
render() {
|
|
29
|
+
return createVNode(resolveComponent("a-input-number"), mergeProps({
|
|
30
|
+
"value": this.val,
|
|
31
|
+
"onUpdate:value": ($event) => this.val = $event
|
|
32
|
+
}, this.model.props || {}, {
|
|
33
|
+
"class": this.ns.b(),
|
|
34
|
+
"prefix": this.model.prefix,
|
|
35
|
+
"suffix": this.model.suffix,
|
|
36
|
+
"addonBefore": this.model.addonBefore,
|
|
37
|
+
"addonAfter": this.model.addonAfter,
|
|
38
|
+
"placeholder": this.model.placeholder,
|
|
39
|
+
"max": this.model.max,
|
|
40
|
+
"min": this.model.min,
|
|
41
|
+
"precision": this.model.precision
|
|
42
|
+
}), null);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { GctFormNumber };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { widthEditorInstall, EditorType } from '@gct-paas/core';
|
|
2
|
+
import { GctFormNumberProvider } from './gct-form-number.provider.mjs';
|
|
3
|
+
import { GctFormNumber as GctFormNumber$1 } from './gct-form-number.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var GctFormNumber = widthEditorInstall(
|
|
7
|
+
EditorType.NUMBER,
|
|
8
|
+
() => new GctFormNumberProvider(),
|
|
9
|
+
GctFormNumber$1
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { GctFormNumber as default };
|