@gct-paas/core-web 0.1.4-dev.6 → 0.1.4-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.esm.min.mjs +24964 -0
- package/dist/index.min.cjs +59 -12
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +59 -12
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +35 -0
- package/es/components/code-editor/code-editor.mjs +15 -20
- package/es/components/index.d.ts +1 -0
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.d.ts +4 -4
- package/es/components/layout/flex-item/flex-item.d.ts +4 -4
- package/es/components/layout/grid-container/grid-container.d.ts +4 -4
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.d.ts +4 -4
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +7 -7
- package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +6 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.d.ts +17 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue.d.ts +3 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +8 -8
- package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +8 -8
- package/es/editor/gct-form-info/gct-form-info.d.ts +7 -7
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +6 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +8 -8
- package/es/editor/gct-form-number/gct-form-number.d.ts +7 -7
- package/es/editor/gct-form-picker/gct-form-picker.d.ts +8 -8
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +7 -7
- package/es/editor/gct-form-select/gct-form-select.d.ts +7 -7
- package/es/editor/gct-form-span/gct-form-span.d.ts +5 -5
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +6 -6
- package/es/editor/gct-form-text/gct-form-text.d.ts +7 -7
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +7 -7
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +5 -6
- package/es/index.mjs +19 -24
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +24 -0
- package/es/modules/gct-dnd/constants/index.mjs +9 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/types/index.d.ts +1 -1
- package/es/utils/with-install.mjs +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +9 -9
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +6 -6
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form.d.ts +5 -5
- package/package.json +15 -13
- package/dist/core-web.css +0 -1
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/index.mjs +0 -7
- package/es/components/layout/flex-container/flex-container.mjs +0 -90
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.mjs +0 -53
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/grid-container/grid-container.mjs +0 -47
- package/es/components/layout/view-container/view-container.mjs +0 -39
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/utils/index.mjs +0 -3
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -110
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -1,40 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorTypeOld } 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
|
-
EditorTypeOld.INFO,
|
|
10
|
-
() => new Provider(),
|
|
11
|
-
GctFormInfo$1
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
export { Provider, GctFormInfo as default };
|
|
@@ -1,43 +0,0 @@
|
|
|
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 };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorTypeOld } 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
|
-
EditorTypeOld.LENGTH_UNIT,
|
|
8
|
-
() => new GctFormLengthUnitProvider(),
|
|
9
|
-
GctFormLengthUnit$1
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { GctFormLengthUnit as default };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, mergeProps, ref, computed } from 'vue';
|
|
2
|
-
import { useNamespace, useGctFormValue } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-modal-select.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const GctFormModalSelect = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "GctFormModalSelect",
|
|
8
|
-
props: {
|
|
9
|
-
c: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
model: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
value: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["update:value"],
|
|
23
|
-
setup() {
|
|
24
|
-
const ns = useNamespace("gct-form-modal-select");
|
|
25
|
-
const modelCategory = ref("1");
|
|
26
|
-
const val = useGctFormValue();
|
|
27
|
-
const selectValue = computed({
|
|
28
|
-
get() {
|
|
29
|
-
return val.value || void 0;
|
|
30
|
-
},
|
|
31
|
-
set(v) {
|
|
32
|
-
val.value = v;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const options = computed(() => {
|
|
36
|
-
return [{
|
|
37
|
-
label: "\u9ED8\u8BA4",
|
|
38
|
-
options: [{
|
|
39
|
-
value: "1",
|
|
40
|
-
label: "\u6A21\u578B\u4E00"
|
|
41
|
-
}, {
|
|
42
|
-
value: "2",
|
|
43
|
-
label: "\u6A21\u578B\u4E8C"
|
|
44
|
-
}]
|
|
45
|
-
}, {
|
|
46
|
-
label: "\u4EA7\u54C1\u5EFA\u6A21",
|
|
47
|
-
options: [{
|
|
48
|
-
value: "3",
|
|
49
|
-
label: "\u4EA7\u54C1\u4FE1\u606F"
|
|
50
|
-
}, {
|
|
51
|
-
value: "4",
|
|
52
|
-
label: "\u4EA7\u54C1\u7C7B\u578B"
|
|
53
|
-
}]
|
|
54
|
-
}];
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
ns,
|
|
58
|
-
val: selectValue,
|
|
59
|
-
options,
|
|
60
|
-
modelCategory
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
render() {
|
|
64
|
-
return createVNode(resolveComponent("a-input-group"), {
|
|
65
|
-
"class": this.ns.b()
|
|
66
|
-
}, {
|
|
67
|
-
default: () => [createVNode(resolveComponent("a-form-item-rest"), null, {
|
|
68
|
-
default: () => [createVNode(resolveComponent("a-select"), mergeProps({
|
|
69
|
-
"value": this.modelCategory,
|
|
70
|
-
"onUpdate:value": ($event) => this.modelCategory = $event
|
|
71
|
-
}, this.model.props || {}, {
|
|
72
|
-
"placeholder": "\u8BF7\u9009\u62E9",
|
|
73
|
-
"options": [{
|
|
74
|
-
value: "1",
|
|
75
|
-
label: "\u5B9E\u4F53"
|
|
76
|
-
}, {
|
|
77
|
-
value: "2",
|
|
78
|
-
label: "\u89C6\u56FE"
|
|
79
|
-
}, {
|
|
80
|
-
value: "3",
|
|
81
|
-
label: "\u6570\u636E"
|
|
82
|
-
}],
|
|
83
|
-
"disabled": this.c.state.disabled
|
|
84
|
-
}), null)]
|
|
85
|
-
}), createVNode(resolveComponent("a-select"), mergeProps({
|
|
86
|
-
"class": this.ns.e("select"),
|
|
87
|
-
"value": this.val,
|
|
88
|
-
"onUpdate:value": ($event) => this.val = $event
|
|
89
|
-
}, this.model.props || {}, {
|
|
90
|
-
"placeholder": "\u8BF7\u9009\u62E9",
|
|
91
|
-
"options": this.options,
|
|
92
|
-
"allowClear": true,
|
|
93
|
-
"disabled": this.c.state.disabled
|
|
94
|
-
}), null)]
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
export { GctFormModalSelect, GctFormModalSelect as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
|
|
2
|
-
import { GctFormModalSelectProvider } from './gct-form-modal-select.provider.mjs';
|
|
3
|
-
import { GctFormModalSelect as GctFormModalSelect$1 } from './gct-form-modal-select.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var GctFormModalSelect = widthEditorInstall(
|
|
7
|
-
EditorTypeOld.MODEL_SELECT,
|
|
8
|
-
() => new GctFormModalSelectProvider(),
|
|
9
|
-
GctFormModalSelect$1
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { GctFormModalSelect as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
|
-
import { useNamespace, useGctFormValue } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-number.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const GctFormNumber = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "GctFormNumber",
|
|
8
|
-
props: {
|
|
9
|
-
model: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
value: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:value"],
|
|
19
|
-
setup() {
|
|
20
|
-
const ns = useNamespace("gct-form-number");
|
|
21
|
-
const val = useGctFormValue();
|
|
22
|
-
return {
|
|
23
|
-
ns,
|
|
24
|
-
val
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
render() {
|
|
28
|
-
return createVNode(resolveComponent("a-input-number"), mergeProps({
|
|
29
|
-
"value": this.val,
|
|
30
|
-
"onUpdate:value": ($event) => this.val = $event,
|
|
31
|
-
"class": this.ns.b(),
|
|
32
|
-
"prefix": this.model.prefix,
|
|
33
|
-
"suffix": this.model.suffix,
|
|
34
|
-
"addonBefore": this.model.addonBefore,
|
|
35
|
-
"addonAfter": this.model.addonAfter,
|
|
36
|
-
"placeholder": this.model.placeholder,
|
|
37
|
-
"max": this.model.max,
|
|
38
|
-
"min": this.model.min,
|
|
39
|
-
"precision": this.model.precision
|
|
40
|
-
}, this.model.props || {}), null);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export { GctFormNumber };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorType, EditorTypeOld } 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
|
-
const oldNumberCom = widthEditorInstall(
|
|
12
|
-
EditorTypeOld.NUMBER,
|
|
13
|
-
() => new GctFormNumberProvider(),
|
|
14
|
-
GctFormNumber$1
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
export { GctFormNumber as default, oldNumberCom };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, mergeProps, computed } from 'vue';
|
|
2
|
-
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
const GctFormPicker = /* @__PURE__ */ defineComponent({
|
|
6
|
-
name: "GctFormPicker",
|
|
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: null
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:value"],
|
|
22
|
-
setup(props, {
|
|
23
|
-
emit
|
|
24
|
-
}) {
|
|
25
|
-
const ns = useNamespace("gct-form-picker");
|
|
26
|
-
const nameVal = computed({
|
|
27
|
-
get() {
|
|
28
|
-
if (props.model.nameField) {
|
|
29
|
-
return props.c.data[props.model.nameField];
|
|
30
|
-
}
|
|
31
|
-
return "";
|
|
32
|
-
},
|
|
33
|
-
set(v) {
|
|
34
|
-
if (props.model.nameField) {
|
|
35
|
-
props.c.data[props.model.nameField] = v;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const val = computed({
|
|
40
|
-
get: () => {
|
|
41
|
-
const opt = props.c.state.options.find((_) => {
|
|
42
|
-
return _.value === props.value;
|
|
43
|
-
});
|
|
44
|
-
if (!opt && nameVal.value) {
|
|
45
|
-
return nameVal.value;
|
|
46
|
-
}
|
|
47
|
-
return props.value;
|
|
48
|
-
},
|
|
49
|
-
set: (newVal) => {
|
|
50
|
-
if (typeof newVal === "string") {
|
|
51
|
-
newVal = newVal.trim();
|
|
52
|
-
}
|
|
53
|
-
if (typeof newVal != "object" && props.value == newVal) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
emit("update:value", newVal);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
const loadOptions = () => {
|
|
60
|
-
return props.c.loadDictionary();
|
|
61
|
-
};
|
|
62
|
-
if (val.value != null) {
|
|
63
|
-
props.c.loadDictionary();
|
|
64
|
-
}
|
|
65
|
-
const onChange = (_val, data) => {
|
|
66
|
-
nameVal.value = data.label;
|
|
67
|
-
};
|
|
68
|
-
return {
|
|
69
|
-
ns,
|
|
70
|
-
val,
|
|
71
|
-
nameVal,
|
|
72
|
-
loadOptions,
|
|
73
|
-
onChange
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
render() {
|
|
77
|
-
return createVNode(resolveComponent("a-select"), mergeProps({
|
|
78
|
-
"value": this.val,
|
|
79
|
-
"onUpdate:value": ($event) => this.val = $event
|
|
80
|
-
}, this.model.props || {}, {
|
|
81
|
-
"class": this.ns.b(),
|
|
82
|
-
"disabled": this.c.state.disabled,
|
|
83
|
-
"loading": this.c.state.loading,
|
|
84
|
-
"options": this.c.state.options,
|
|
85
|
-
"placeholder": this.model.placeholder,
|
|
86
|
-
"onDropdownVisibleChange": this.loadOptions,
|
|
87
|
-
"onChange": this.onChange
|
|
88
|
-
}), null);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
export { GctFormPicker };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
|
|
2
|
-
import { GctFormPickerProvider } from './gct-form-picker.provider.mjs';
|
|
3
|
-
import { GctFormPicker as GctFormPicker$1 } from './gct-form-picker.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var GctFormPicker = widthEditorInstall(
|
|
7
|
-
EditorTypeOld.PICKER,
|
|
8
|
-
() => new GctFormPickerProvider(),
|
|
9
|
-
GctFormPicker$1
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { GctFormPicker as default };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { isVNode, defineComponent, createVNode, mergeProps } from 'vue';
|
|
2
|
-
import { useNamespace, useGctFormValue } from '@gct-paas/core';
|
|
3
|
-
import { RadioGroup, RadioButton } from 'ant-design-vue';
|
|
4
|
-
import './gct-form-radio.scss';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
function _isSlot(s) {
|
|
8
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
-
}
|
|
10
|
-
const GctFormRadio = /* @__PURE__ */ defineComponent({
|
|
11
|
-
name: "GctFormRadio",
|
|
12
|
-
props: {
|
|
13
|
-
c: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
model: {
|
|
18
|
-
type: Object,
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
value: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:value"],
|
|
27
|
-
setup() {
|
|
28
|
-
const ns = useNamespace("gct-form-radio");
|
|
29
|
-
const val = useGctFormValue();
|
|
30
|
-
return {
|
|
31
|
-
ns,
|
|
32
|
-
val
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
render() {
|
|
36
|
-
const attrs = {
|
|
37
|
-
...this.model.props || {},
|
|
38
|
-
class: [this.ns.b()],
|
|
39
|
-
allowClear: true,
|
|
40
|
-
disabled: this.c.state.disabled
|
|
41
|
-
};
|
|
42
|
-
if (this.model.buttonMode) {
|
|
43
|
-
let _slot;
|
|
44
|
-
attrs.class.push(this.ns.m("button"));
|
|
45
|
-
return createVNode(RadioGroup, mergeProps({
|
|
46
|
-
"value": this.val,
|
|
47
|
-
"onUpdate:value": ($event) => this.val = $event,
|
|
48
|
-
"size": "small",
|
|
49
|
-
"button-style": "solid"
|
|
50
|
-
}, attrs), _isSlot(_slot = this.c.state.options.map((option) => {
|
|
51
|
-
return createVNode(RadioButton, {
|
|
52
|
-
"key": option.value,
|
|
53
|
-
"value": option.value
|
|
54
|
-
}, {
|
|
55
|
-
default: () => [option.label]
|
|
56
|
-
});
|
|
57
|
-
})) ? _slot : {
|
|
58
|
-
default: () => [_slot]
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
attrs.class.push(this.ns.m("radio"));
|
|
62
|
-
return createVNode(RadioGroup, mergeProps({
|
|
63
|
-
"value": this.val,
|
|
64
|
-
"onUpdate:value": ($event) => this.val = $event,
|
|
65
|
-
"options": this.c.state.options
|
|
66
|
-
}, attrs), null);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export { GctFormRadio, GctFormRadio as default };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@include b(gct-form-radio) {
|
|
2
|
-
@include m(radio){
|
|
3
|
-
&.ant-radio-group {
|
|
4
|
-
height: 32px;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.#{bem(gct-form-radio)}.#{bem(gct-form-radio,'',button)}.ant-radio-group{
|
|
12
|
-
width: 100%;
|
|
13
|
-
padding: 2px;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
background-color: #f2f4f7;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
display: flex;
|
|
18
|
-
|
|
19
|
-
.ant-radio-button-wrapper {
|
|
20
|
-
border-width: 0;
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
color: #212528;
|
|
23
|
-
border-radius: 2px;
|
|
24
|
-
padding: 0;
|
|
25
|
-
flex: 1;
|
|
26
|
-
text-align: center;
|
|
27
|
-
|
|
28
|
-
&:not(:first-child)::before {
|
|
29
|
-
width: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
span:last-child {
|
|
33
|
-
padding: 4px;
|
|
34
|
-
border-radius: 2px;
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
line-height: 1;
|
|
37
|
-
vertical-align: -1px;
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
background-color: #e6e9ef;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.ant-radio-button-wrapper-checked {
|
|
45
|
-
background-color: #fff;
|
|
46
|
-
|
|
47
|
-
span:last-child:hover {
|
|
48
|
-
background-color: transparent;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.ant-radio-group-solid
|
|
54
|
-
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
|
|
55
|
-
box-shadow: 0 0 0 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.ant-radio-group-solid
|
|
59
|
-
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
|
60
|
-
color: #212528;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.ant-radio-group-small .ant-radio-button-wrapper {
|
|
64
|
-
height: 24px;
|
|
65
|
-
line-height: 24px;
|
|
66
|
-
font-size: 12px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorType, EditorTypeOld } from '@gct-paas/core';
|
|
2
|
-
import { GctFormRadio as GctFormRadio$1 } from './gct-form-radio.mjs';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
class Provider {
|
|
6
|
-
component = "gct-form-radio";
|
|
7
|
-
}
|
|
8
|
-
var GctFormRadio = widthEditorInstall(
|
|
9
|
-
EditorType.RADIO,
|
|
10
|
-
() => new Provider(),
|
|
11
|
-
GctFormRadio$1
|
|
12
|
-
);
|
|
13
|
-
const oldRadioCom = widthEditorInstall(
|
|
14
|
-
EditorTypeOld.RADIO,
|
|
15
|
-
() => new Provider(),
|
|
16
|
-
GctFormRadio$1
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
export { Provider, GctFormRadio as default, oldRadioCom };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, mergeProps, computed } from 'vue';
|
|
2
|
-
import { useNamespace, useGctFormValue } from '@gct-paas/core';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
const GctFormSelect = /* @__PURE__ */ defineComponent({
|
|
6
|
-
name: "GctFormSelect",
|
|
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(props) {
|
|
23
|
-
const ns = useNamespace("gct-form-select");
|
|
24
|
-
const val = useGctFormValue();
|
|
25
|
-
const options = computed(() => {
|
|
26
|
-
if (props.c.state.options && props.c.state.options.length > 0) {
|
|
27
|
-
return props.c.state.options;
|
|
28
|
-
}
|
|
29
|
-
return [];
|
|
30
|
-
});
|
|
31
|
-
return {
|
|
32
|
-
ns,
|
|
33
|
-
val,
|
|
34
|
-
options
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
render() {
|
|
38
|
-
return createVNode(resolveComponent("a-select"), mergeProps({
|
|
39
|
-
"value": this.val,
|
|
40
|
-
"onUpdate:value": ($event) => this.val = $event
|
|
41
|
-
}, this.model.props || {}, {
|
|
42
|
-
"class": this.ns.b(),
|
|
43
|
-
"options": this.options,
|
|
44
|
-
"allowClear": true,
|
|
45
|
-
"disabled": this.c.state.disabled
|
|
46
|
-
}), null);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export { GctFormSelect, GctFormSelect as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
|
|
2
|
-
import { GctFormSelectProvider } from './gct-form-select.provider.mjs';
|
|
3
|
-
import { GctFormSelect as GctFormSelect$1 } from './gct-form-select.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var GctFormSelect = widthEditorInstall(
|
|
7
|
-
EditorTypeOld.SELECT,
|
|
8
|
-
() => new GctFormSelectProvider(),
|
|
9
|
-
GctFormSelect$1
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export { GctFormSelect as default };
|