@gct-paas/core-web 0.1.5-dev.7 → 0.1.5-dev.9
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/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +2 -2
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_8e75ca4b_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css} +16 -15
- package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +5 -1
- package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +1 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_53df3982_lang.css +6 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_406c02b4_lang.css +3 -0
- package/es/components/copy-module-key/copy-module-key.vue.mjs +2 -2
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +1 -0
- package/es/components/copy-module-key/{copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css → copy-module-key.vue_vue_type_style_index_0_scoped_66e22862_lang.css} +4 -4
- package/es/components/index.mjs +2 -1
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.d.ts +1 -5
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +18 -23
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.d.ts +1 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +31 -38
- package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +9 -9
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_5f75bfb2_lang.css +0 -6
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_b4baf3ec_lang.css +0 -3
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default from "./i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs";
|
|
3
|
-
import './i18n-select-btn.
|
|
3
|
+
import './i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-btn.vue
|
|
5
|
-
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-b86f4068"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_btn_default as default };
|
|
@@ -53,11 +53,11 @@ var i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_def
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
return (_ctx, _cache) => {
|
|
56
|
-
const
|
|
56
|
+
const _component_icon_next = resolveComponent("icon-next");
|
|
57
57
|
const _component_assets_svg_icon = resolveComponent("assets-svg-icon");
|
|
58
58
|
const _component_a_button = resolveComponent("a-button");
|
|
59
59
|
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
60
|
-
return __props.simpleBtn ? (openBlock(), createBlock(
|
|
60
|
+
return __props.simpleBtn ? (openBlock(), createBlock(_component_icon_next, {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: normalizeClass(["i18n-icon simple-btn", { "is-highlight": isHighlight.value }]),
|
|
63
63
|
icon: "ion:language",
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
.ant-btn[data-v-
|
|
1
|
+
.ant-btn[data-v-b86f4068] {
|
|
2
2
|
background-color: #fff !important;
|
|
3
3
|
}
|
|
4
|
-
.ant-btn.ant-btn-icon-only[data-v-
|
|
4
|
+
.ant-btn.ant-btn-icon-only[data-v-b86f4068] {
|
|
5
5
|
width: var(--btn-width, 32px);
|
|
6
6
|
height: var(--btn-height, 32px);
|
|
7
7
|
}
|
|
8
|
-
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
8
|
+
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-b86f4068] {
|
|
9
|
+
width: 28px;
|
|
10
|
+
height: 28px;
|
|
11
|
+
padding: 0 6px;
|
|
11
12
|
}
|
|
12
|
-
.ant-btn:hover .i18n-icon[data-v-
|
|
13
|
+
.ant-btn:hover .i18n-icon[data-v-b86f4068] {
|
|
13
14
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
14
15
|
color: var(--ant-primary-color);
|
|
15
16
|
}
|
|
16
|
-
.ant-btn.is-highlight[data-v-
|
|
17
|
+
.ant-btn.is-highlight[data-v-b86f4068] {
|
|
17
18
|
color: var(--ant-primary-color);
|
|
18
19
|
border-color: var(--ant-primary-color);
|
|
19
20
|
}
|
|
20
|
-
.ant-btn.is-highlight .i18n-icon[data-v-
|
|
21
|
+
.ant-btn.is-highlight .i18n-icon[data-v-b86f4068] {
|
|
21
22
|
color: var(--ant-primary-color);
|
|
22
23
|
}
|
|
23
|
-
.i18n-icon[data-v-
|
|
24
|
+
.i18n-icon[data-v-b86f4068] {
|
|
24
25
|
color: #7f8695;
|
|
25
26
|
display: flex !important;
|
|
26
27
|
}
|
|
27
|
-
.simple-btn[data-v-
|
|
28
|
+
.simple-btn[data-v-b86f4068]:hover {
|
|
28
29
|
color: var(--ant-primary-color);
|
|
29
30
|
}
|
|
30
|
-
.simple-btn.is-highlight[data-v-
|
|
31
|
+
.simple-btn.is-highlight[data-v-b86f4068] {
|
|
31
32
|
color: var(--ant-primary-color);
|
|
32
33
|
}
|
|
33
|
-
.i18n-tooltip-title[data-v-
|
|
34
|
+
.i18n-tooltip-title[data-v-b86f4068] {
|
|
34
35
|
color: #303133;
|
|
35
36
|
font-size: 16px;
|
|
36
37
|
line-height: 1;
|
|
37
38
|
margin-bottom: 12px;
|
|
38
39
|
}
|
|
39
|
-
.i18n-tooltip-item[data-v-
|
|
40
|
+
.i18n-tooltip-item[data-v-b86f4068] {
|
|
40
41
|
color: #606266;
|
|
41
42
|
font-size: 14px;
|
|
42
43
|
}
|
|
43
|
-
.custom-i18n-btn[data-v-
|
|
44
|
+
.custom-i18n-btn[data-v-b86f4068] {
|
|
44
45
|
vertical-align: middle;
|
|
45
46
|
background: #fff;
|
|
46
47
|
color: #303133;
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
align-items: center;
|
|
52
53
|
padding: 0;
|
|
53
54
|
}
|
|
54
|
-
.custom-i18n-btn.reg-i18n[data-v-
|
|
55
|
+
.custom-i18n-btn.reg-i18n[data-v-b86f4068] {
|
|
55
56
|
position: absolute;
|
|
56
57
|
right: -32px;
|
|
57
58
|
bottom: 0;
|
|
@@ -3,7 +3,11 @@ export interface Prop {
|
|
|
3
3
|
destroyCallback?: () => void;
|
|
4
4
|
saveCallback?: (params: IObject) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<Prop, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Prop, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
register: (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<Prop> & Readonly<{
|
|
9
|
+
onRegister?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
11
|
formRef: unknown;
|
|
8
12
|
tableRef: unknown;
|
|
9
13
|
}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default from "./i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs";
|
|
3
|
-
import './i18n-select-container.
|
|
3
|
+
import './i18n-select-container.vue_vue_type_style_index_0_scoped_53df3982_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-container.vue
|
|
5
|
-
var i18n_select_container_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_container_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default, [["__scopeId", "data-v-53df3982"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_container_default as default };
|
|
@@ -14,6 +14,7 @@ var i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_contai
|
|
|
14
14
|
destroyCallback: { type: Function },
|
|
15
15
|
saveCallback: { type: Function }
|
|
16
16
|
},
|
|
17
|
+
emits: ["register"],
|
|
17
18
|
setup(__props) {
|
|
18
19
|
const [registerInner, { closeModal }] = useModalInner();
|
|
19
20
|
const [userRegister, { openModal }] = useModal$1();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default from "./i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs";
|
|
3
|
-
import './i18n-select-input.
|
|
3
|
+
import './i18n-select-input.vue_vue_type_style_index_0_scoped_406c02b4_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-input.vue
|
|
5
|
-
var i18n_select_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-406c02b4"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_input_default as default };
|
|
@@ -86,8 +86,8 @@ var i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang
|
|
|
86
86
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
87
87
|
valueModifiers: { trim: true },
|
|
88
88
|
style: {
|
|
89
|
-
height: __props.btnHeight ? __props.btnHeight : __props.size === unref(ButtonSize).SMALL ? "
|
|
90
|
-
width: !isApp.value ? "100%" : `calc(100% - ${__props.btnWidth ? __props.btnWidth : __props.size === unref(ButtonSize).SMALL ? "
|
|
89
|
+
height: __props.btnHeight ? __props.btnHeight : __props.size === unref(ButtonSize).SMALL ? "28px" : "32px",
|
|
90
|
+
width: !isApp.value ? "100%" : `calc(100% - ${__props.btnWidth ? __props.btnWidth : __props.size === unref(ButtonSize).SMALL ? "28px" : "32px"}`
|
|
91
91
|
},
|
|
92
92
|
placeholder: __props.placeholderText,
|
|
93
93
|
size: __props.size,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default from "./copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs";
|
|
3
|
-
import './copy-module-key.
|
|
3
|
+
import './copy-module-key.vue_vue_type_style_index_0_scoped_66e22862_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/copy-module-key/copy-module-key.vue
|
|
5
|
-
var copy_module_key_default = /* @__PURE__ */ _plugin_vue_export_helper_default(copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var copy_module_key_default = /* @__PURE__ */ _plugin_vue_export_helper_default(copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default, [["__scopeId", "data-v-66e22862"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { copy_module_key_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
.copy-wrap[data-v-
|
|
2
|
+
.copy-wrap[data-v-66e22862] {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
5
|
-
.iconfont.icon-fuzhi[data-v-
|
|
5
|
+
.iconfont.icon-fuzhi[data-v-66e22862] {
|
|
6
6
|
margin-left: 4px;
|
|
7
7
|
line-height: 0.8;
|
|
8
8
|
cursor: pointer;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
top: 2px;
|
|
11
11
|
}
|
|
12
12
|
.copy-wrap-tooltip {
|
|
13
|
-
&[data-v-
|
|
13
|
+
&[data-v-66e22862] {
|
|
14
14
|
display: flex;
|
|
15
15
|
}
|
|
16
|
-
.copy-key[data-v-
|
|
16
|
+
.copy-key[data-v-66e22862] {
|
|
17
17
|
display: inline-block;
|
|
18
18
|
width: 100%;
|
|
19
19
|
overflow: hidden;
|
package/es/components/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./base-button/base-button.vue.mjs";
|
|
2
2
|
import "./basic-button/basic-button.vue.mjs";
|
|
3
3
|
import "./double-input/double-input.vue.mjs";
|
|
4
|
-
import "./copy-module-key/copy-module-key.vue.mjs";
|
|
4
|
+
import copy_module_key_default from "./copy-module-key/copy-module-key.vue.mjs";
|
|
5
5
|
import "./image-upload/index.mjs";
|
|
6
6
|
import "./field-upload/index.mjs";
|
|
7
7
|
import "./paas-bpmn-log/paas-bpmn-log.vue.mjs";
|
|
@@ -30,6 +30,7 @@ import "./number-range/number-range.vue.mjs";
|
|
|
30
30
|
import { defineAsyncComponent } from "vue";
|
|
31
31
|
//#region src/components/index.ts
|
|
32
32
|
var components_default = { install(app) {
|
|
33
|
+
app.component(copy_module_key_default.name, copy_module_key_default);
|
|
33
34
|
app.component("IconNextPicker", defineAsyncComponent(() => import("./icon-next-picker/icon-next-picker.vue.mjs")));
|
|
34
35
|
} };
|
|
35
36
|
//#endregion
|
|
@@ -15,11 +15,7 @@ export declare const GctFormText: import('vue').DefineComponent<import('vue').Ex
|
|
|
15
15
|
size: {
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
};
|
|
18
|
-
}>, {
|
|
19
|
-
ns: import('@gct-paas/core').Namespace;
|
|
20
|
-
val: import('vue').WritableComputedRef<string, string>;
|
|
21
|
-
handleBlur: () => void;
|
|
22
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
19
|
model: {
|
|
24
20
|
type: PropType<ITextEditor>;
|
|
25
21
|
required: true;
|
|
@@ -24,31 +24,26 @@ var GctFormText = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
setup(props) {
|
|
25
25
|
const ns = useNamespace("gct-form-text");
|
|
26
26
|
const val = useGctFormValueByText(props.model.prefix || props.model.addonBefore, props.model.suffix || props.model.addonAfter);
|
|
27
|
-
|
|
27
|
+
function handleBlur() {
|
|
28
28
|
if (typeof val.value === "string") val.value = val.value.trim();
|
|
29
|
+
}
|
|
30
|
+
return () => {
|
|
31
|
+
return createVNode(resolveComponent("a-input"), mergeProps({
|
|
32
|
+
"value": val.value,
|
|
33
|
+
"onUpdate:value": ($event) => val.value = $event,
|
|
34
|
+
"size": props.size
|
|
35
|
+
}, props.model.props || {}, {
|
|
36
|
+
"class": ns.b(),
|
|
37
|
+
"prefix": props.model.prefix,
|
|
38
|
+
"suffix": props.model.suffix,
|
|
39
|
+
"addonBefore": props.model.addonBefore,
|
|
40
|
+
"addonAfter": props.model.addonAfter,
|
|
41
|
+
"placeholder": props.model.placeholder,
|
|
42
|
+
"show-count": props.model.max != null,
|
|
43
|
+
"maxlength": props.model.max,
|
|
44
|
+
"onBlur": handleBlur
|
|
45
|
+
}), null);
|
|
29
46
|
};
|
|
30
|
-
return {
|
|
31
|
-
ns,
|
|
32
|
-
val,
|
|
33
|
-
handleBlur
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
render() {
|
|
37
|
-
return createVNode(resolveComponent("a-input"), mergeProps({
|
|
38
|
-
"value": this.val,
|
|
39
|
-
"onUpdate:value": ($event) => this.val = $event,
|
|
40
|
-
"size": this.size
|
|
41
|
-
}, this.model.props || {}, {
|
|
42
|
-
"class": this.ns.b(),
|
|
43
|
-
"prefix": this.model.prefix,
|
|
44
|
-
"suffix": this.model.suffix,
|
|
45
|
-
"addonBefore": this.model.addonBefore,
|
|
46
|
-
"addonAfter": this.model.addonAfter,
|
|
47
|
-
"placeholder": this.model.placeholder,
|
|
48
|
-
"show-count": this.model.max != null,
|
|
49
|
-
"maxlength": this.model.max,
|
|
50
|
-
"onBlur": this.handleBlur
|
|
51
|
-
}), null);
|
|
52
47
|
}
|
|
53
48
|
});
|
|
54
49
|
//#endregion
|
|
@@ -16,12 +16,7 @@ export declare const GctFormGroup: import('vue').DefineComponent<import('vue').E
|
|
|
16
16
|
type: PropType<IContext>;
|
|
17
17
|
default: () => {};
|
|
18
18
|
};
|
|
19
|
-
}>, {
|
|
20
|
-
ns: import('@gct-paas/core').Namespace;
|
|
21
|
-
keys: import('vue').Ref<number[], number[]>;
|
|
22
|
-
style: IParams;
|
|
23
|
-
renderContainer: (items: IObject[]) => import("vue/jsx-runtime").JSX.Element | undefined;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
20
|
c: {
|
|
26
21
|
type: PropType<IFormGroupController>;
|
|
27
22
|
required: true;
|
|
@@ -24,53 +24,46 @@ var GctFormGroup = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
default: () => ({})
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
setup(props) {
|
|
27
|
+
setup(props, { slots }) {
|
|
28
28
|
const ns = useNamespace("form-group");
|
|
29
29
|
const keys = ref([0]);
|
|
30
|
-
function renderContainer(
|
|
31
|
-
if (props.model.layout === "flex") return createVNode(resolveComponent("flex-container"), { "layout": props.model.flex },
|
|
32
|
-
if (props.model.layout === "grid") return createVNode(resolveComponent("grid-container"), { "layout": props.model.grid },
|
|
30
|
+
function renderContainer() {
|
|
31
|
+
if (props.model.layout === "flex") return createVNode(resolveComponent("flex-container"), { "layout": props.model.flex }, { default: () => slots.default?.() });
|
|
32
|
+
if (props.model.layout === "grid") return createVNode(resolveComponent("grid-container"), { "layout": props.model.grid }, { default: () => slots.default?.() });
|
|
33
33
|
console.error("不支持的layout类型" + props.model.layout);
|
|
34
34
|
}
|
|
35
35
|
const style = {};
|
|
36
36
|
if (props.model.width) style[ns.cssVarName("form-group-width")] = props.model.width;
|
|
37
37
|
if (props.model.height) style[ns.cssVarName("form-group-height")] = props.model.height;
|
|
38
|
-
return {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
return () => {
|
|
39
|
+
if (props.c.state.keepalive !== true && props.c.state.visible === false) return null;
|
|
40
|
+
if (props.model.isCollapse) {
|
|
41
|
+
let _slot;
|
|
42
|
+
return createVNode(resolveComponent("a-collapse"), {
|
|
43
|
+
"activeKey": keys.value,
|
|
44
|
+
"onUpdate:activeKey": ($event) => keys.value = $event,
|
|
45
|
+
"class": [
|
|
46
|
+
ns.b(),
|
|
47
|
+
ns.is("hidden-header", props.model.showHeader === false),
|
|
48
|
+
ns.is("hidden", props.c.state.visible === false)
|
|
49
|
+
],
|
|
50
|
+
"style": style,
|
|
51
|
+
"ghost": true
|
|
52
|
+
}, { default: () => [createVNode(resolveComponent("a-collapse-panel"), {
|
|
53
|
+
"key": "0",
|
|
54
|
+
"header": props.model.title
|
|
55
|
+
}, _isSlot(_slot = renderContainer()) ? _slot : { default: () => [_slot] })] });
|
|
56
|
+
}
|
|
57
|
+
return createVNode("div", {
|
|
53
58
|
"class": [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
ns.b(),
|
|
60
|
+
ns.is("hidden-header", props.model.showHeader === false),
|
|
61
|
+
ns.is("hidden", props.c.state.visible === false),
|
|
62
|
+
props.model.class
|
|
57
63
|
],
|
|
58
|
-
"style":
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"key": "0",
|
|
62
|
-
"header": this.model.title
|
|
63
|
-
}, _isSlot(_slot = this.renderContainer(items)) ? _slot : { default: () => [_slot] })] });
|
|
64
|
-
}
|
|
65
|
-
return createVNode("div", {
|
|
66
|
-
"class": [
|
|
67
|
-
this.ns.b(),
|
|
68
|
-
this.ns.is("hidden-header", this.model.showHeader === false),
|
|
69
|
-
this.ns.is("hidden", this.c.state.visible === false),
|
|
70
|
-
this.model.class
|
|
71
|
-
],
|
|
72
|
-
"style": this.style
|
|
73
|
-
}, [this.model.showHeader === false ? createVNode("div", { "class": this.ns.e("title") }, [this.model.title]) : null, createVNode("div", { "class": this.ns.e("content") }, [this.renderContainer(items)])]);
|
|
64
|
+
"style": style
|
|
65
|
+
}, [props.model.showHeader === false ? createVNode("div", { "class": ns.e("title") }, [props.model.title]) : null, createVNode("div", { "class": ns.e("content") }, [renderContainer()])]);
|
|
66
|
+
};
|
|
74
67
|
}
|
|
75
68
|
});
|
|
76
69
|
//#endregion
|
|
@@ -73,7 +73,7 @@ var GctForm = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
class: item.class,
|
|
74
74
|
style: item.style,
|
|
75
75
|
context: props.context
|
|
76
|
-
}, renderChildren(item.children || []));
|
|
76
|
+
}, { default: () => renderChildren(item.children || []) });
|
|
77
77
|
else console.error(`未找到表单容器适配器:${item.name} - ${item.type}`);
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-date/gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.5-dev.
|
|
3
|
+
"version": "0.1.5-dev.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons-vue": "^6.1.0",
|
|
35
35
|
"@floating-ui/dom": "^1.7.6",
|
|
36
|
-
"@gct-paas/api": "0.1.4-dev.
|
|
36
|
+
"@gct-paas/api": "0.1.4-dev.3",
|
|
37
37
|
"@gct-paas/flow": "0.0.1-dev.1",
|
|
38
38
|
"@gct-paas/platform-icons": "^0.0.2",
|
|
39
39
|
"@icon-park/vue-next": "^1.4.2",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"vuedraggable": "^4.1.0",
|
|
58
58
|
"wujie": "^1.0.29",
|
|
59
59
|
"wujie-vue3": "^1.0.29",
|
|
60
|
-
"@gct-paas/core": "0.1.5-dev.
|
|
61
|
-
"@gct-paas/
|
|
62
|
-
"@gct-paas/
|
|
60
|
+
"@gct-paas/core": "0.1.5-dev.9",
|
|
61
|
+
"@gct-paas/core-components": "0.1.5-dev.9",
|
|
62
|
+
"@gct-paas/scss": "0.1.5-dev.9"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@gct-paas/api": "0.1.4-dev.
|
|
65
|
+
"@gct-paas/api": "0.1.4-dev.3",
|
|
66
66
|
"@types/sortablejs": "^1.15.1",
|
|
67
67
|
"vant": ">=4",
|
|
68
68
|
"vue": ">=3",
|
|
69
|
-
"@gct-paas/core": "0.1.5-dev.
|
|
70
|
-
"@gct-paas/core-components": "0.1.5-dev.
|
|
71
|
-
"@gct-paas/scss": "0.1.5-dev.
|
|
69
|
+
"@gct-paas/core": "0.1.5-dev.9",
|
|
70
|
+
"@gct-paas/core-components": "0.1.5-dev.9",
|
|
71
|
+
"@gct-paas/scss": "0.1.5-dev.9"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
File without changes
|