@gct-paas/core-web 0.1.6-dev.17 → 0.1.6-dev.18
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/{JsBarcode-hbJ0aUTj.js → JsBarcode-BHGaO9dz.js} +2 -2
- package/dist/{_plugin-vue_export-helper-B8JDTS5A.js → _plugin-vue_export-helper-CVA7dXVu.js} +2 -2
- package/dist/{chunk-FrdinjiM.js → chunk-BNkb119g.js} +1 -1
- package/dist/components-DjUk_DX6.js +2 -0
- package/dist/{cropper-kXOaEuXy.js → cropper-CYj8Bfd1.js} +2 -2
- package/dist/{de_DE-CMOqPpMk.js → de_DE-CqvjMewI.js} +2 -2
- package/dist/{defineProperty-DAxeR2uH.js → defineProperty-YzDFxjHJ.js} +1 -1
- package/dist/{diagram-config-item-DUh3mUtV.js → diagram-config-item-C0dNHnv8.js} +2 -2
- package/dist/{diagram-config-item-reverse-C-lK_M8W.js → diagram-config-item-reverse-CPqmFsFd.js} +2 -2
- package/dist/{diagram-config-item-virtual-2m1EFdOj.js → diagram-config-item-virtual-CqPkYosK.js} +2 -2
- package/dist/{en_US-DW_aBniN.js → en_US-Cy3_1Rt6.js} +2 -2
- package/dist/{es_ES-Bog1JAla.js → es_ES-C6ghJagB.js} +2 -2
- package/dist/{fr_FR-B88CF-a2.js → fr_FR-B_boR4BS.js} +2 -2
- package/dist/{hooks-xq807tVG.js → hooks-BqvX2KLt.js} +2 -2
- package/dist/{icon-next-picker-COelGwZZ.js → icon-next-picker-CMsbLe7r.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-DQorABU8.js → ja_JP-DhLuasFw.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-C9gHdPuf.js → monaco-editor-Cl_E7g__.js} +2 -2
- package/dist/{objectSpread2-DPfqyX1h.js → objectSpread2-B962Mxf_.js} +1 -1
- package/dist/{overlayscrollbars-vue-DMDFLsJ4.js → overlayscrollbars-vue-BfwUd3EM.js} +1 -1
- package/dist/{pt_PT-fO3ABuZp.js → pt_PT-BdlIINyT.js} +2 -2
- package/dist/{relationship-diagram-config-D7HC1Hk4.js → relationship-diagram-config-GxEGtkql.js} +2 -2
- package/dist/{rich-editor-BYF_B5mz.js → rich-editor-D7vzpB9U.js} +2 -2
- package/dist/{ru_RU-DqC5EhBW.js → ru_RU-Bw0Fk9MV.js} +2 -2
- package/dist/template-CbCwf9Cr.js +2 -0
- package/dist/{tr_TR-Dau_nW2e.js → tr_TR-CUUs9qjY.js} +2 -2
- package/dist/{useMonacoEditor-Zk3dJDl-.js → useMonacoEditor-BDC4VLbE.js} +2 -2
- package/dist/{vi_VN-BWVyxMZC.js → vi_VN--jG2lM6p.js} +2 -2
- package/dist/{zh_CN-CwWZ2JFL.js → zh_CN-Br1qCqWn.js} +2 -2
- package/dist/{zh_TW-NtzRUp8G.js → zh_TW-BMGkBv3z.js} +2 -2
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/components/app-drawer/app-drawer-component.css +82 -0
- package/es/components/app-drawer/app-drawer-component.d.ts +26 -0
- package/es/components/app-drawer/app-drawer-component.mjs +84 -0
- package/es/components/batch-select-list/batch-select-list.css +119 -0
- package/es/components/batch-select-list/batch-select-list.d.ts +158 -0
- package/es/components/batch-select-list/batch-select-list.mjs +133 -0
- package/es/components/data-rules-modal/data-rules-modal.d.ts +67 -0
- package/es/components/data-rules-modal/data-rules-modal.mjs +99 -0
- package/es/components/design-save-tip/design-save-tip.css +107 -0
- package/es/components/design-save-tip/design-save-tip.d.ts +44 -0
- package/es/components/design-save-tip/design-save-tip.mjs +81 -0
- package/es/components/design-step-check/design-step-check.css +133 -0
- package/es/components/design-step-check/design-step-check.d.ts +30 -0
- package/es/components/design-step-check/design-step-check.mjs +96 -0
- package/es/components/design-view-layout/design-view-layout.css +157 -0
- package/es/components/design-view-layout/design-view-layout.d.ts +1 -0
- package/es/components/design-view-layout/design-view-layout.mjs +139 -0
- package/es/components/field-cascader/index.d.ts +2 -1
- package/es/components/index.d.ts +9 -2
- package/es/components/index.mjs +16 -0
- package/es/components/label-design/designer.vue.d.ts +2 -0
- package/es/components/label-design/designer.vue.mjs +7 -0
- package/es/components/label-design/designer.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/components/label-design/designer.vue_vue_type_style_index_0_scoped_260222c9_lang.css +32 -0
- package/es/components/label-design/header/header.vue.d.ts +6 -0
- package/es/components/label-design/header/header.vue.mjs +7 -0
- package/es/components/label-design/header/header.vue_vue_type_script_setup_true_lang.mjs +232 -0
- package/es/components/label-design/header/header.vue_vue_type_style_index_0_scoped_aa2b4235_lang.css +39 -0
- package/es/components/label-design/header/test-var-modal.vue.d.ts +204 -0
- package/es/components/label-design/header/test-var-modal.vue.mjs +7 -0
- package/es/components/label-design/header/test-var-modal.vue_vue_type_script_setup_true_lang.mjs +202 -0
- package/es/components/label-design/header/test-var-modal.vue_vue_type_style_index_0_scoped_972496bb_lang.css +69 -0
- package/es/components/label-design/index.d.ts +11 -1
- package/es/components/label-design/index.mjs +9 -0
- package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/panels/widget/components/label-params-select.vue.d.ts +35 -0
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +1 -1
- package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/type/index.d.ts +15 -0
- package/es/components/label-design/type/index.mjs +11 -0
- package/es/components/modal-name-editor/modal-name-editor.css +117 -0
- package/es/components/modal-name-editor/modal-name-editor.d.ts +34 -0
- package/es/components/modal-name-editor/modal-name-editor.mjs +124 -0
- package/es/components/shrink-panel/shrink-panel.css +130 -0
- package/es/components/shrink-panel/shrink-panel.d.ts +23 -0
- package/es/components/shrink-panel/shrink-panel.mjs +41 -0
- package/es/create-app-vue.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/usePrinter.d.ts +19 -0
- package/es/hooks/usePrinter.mjs +50 -0
- package/es/index.mjs +21 -3
- package/es/interface/i-view-step/i-view-step.d.ts +32 -0
- package/es/interface/index.d.ts +1 -0
- package/es/modules/category/category-sider.vue.d.ts +1 -1
- package/es/modules/category/category-sider.vue.mjs +2 -2
- package/es/modules/category/{category-sider.vue_vue_type_style_index_0_scoped_5b8c3a8d_lang.css → category-sider.vue_vue_type_style_index_0_scoped_2ad0d132_lang.css} +33 -33
- package/es/modules/color-picker/index.mjs +1 -1
- package/es/modules/gct-form/controller/editor-item/editor-item.controller.d.ts +1 -0
- package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +11 -0
- package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.css +67 -0
- package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.d.ts +50 -0
- package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.mjs +61 -0
- package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.provider.d.ts +13 -0
- package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.provider.mjs +15 -0
- package/es/modules/gct-form/editor/gct-form-date-range/index.d.ts +4 -0
- package/es/modules/gct-form/editor/gct-form-date-range/index.mjs +8 -0
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +1 -1
- package/es/modules/gct-form/editor/index.mjs +2 -1
- package/es/modules/gct-form/hooks/index.d.ts +1 -0
- package/es/modules/gct-form/hooks/index.mjs +1 -0
- package/es/modules/gct-form/hooks/use-form-value/use-form-value.d.ts +11 -0
- package/es/modules/gct-form/hooks/use-form-value/use-form-value.mjs +27 -0
- package/es/modules/gct-form/index.mjs +3 -0
- package/es/modules/gct-form/widgets/gct-search-form/form/app-form.css +70 -0
- package/es/modules/gct-form/widgets/gct-search-form/form/app-form.d.ts +22 -0
- package/es/modules/gct-form/widgets/gct-search-form/form/app-form.mjs +106 -0
- package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.css +73 -0
- package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.d.ts +15 -0
- package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.mjs +22 -0
- package/es/modules/gct-form/widgets/gct-search-form/form.controller.d.ts +46 -0
- package/es/modules/gct-form/widgets/gct-search-form/form.controller.mjs +69 -0
- package/es/modules/gct-form/widgets/gct-search-form/form.state.d.ts +10 -0
- package/es/modules/gct-form/widgets/gct-search-form/form.state.mjs +13 -0
- package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.css +83 -0
- package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.d.ts +33 -0
- package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.mjs +56 -0
- 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/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -1
- package/es/types/index.d.ts +1 -1
- package/es/utils/overlay-controller/overlay-controller.d.ts +3 -1
- package/es/utils/overlay-controller/overlay-controller.mjs +9 -0
- package/package.json +10 -8
- package/dist/ColorPicker-BGXmyt7q.js +0 -2
- package/dist/template-DwBghb9z.js +0 -2
- /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FormState } from './form.state';
|
|
2
|
+
import { IForm } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* 表单控制器
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-03-27 09:03:56
|
|
8
|
+
* @export
|
|
9
|
+
* @class FormController
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormController {
|
|
12
|
+
readonly model: IForm;
|
|
13
|
+
/**
|
|
14
|
+
* 表单状态数据,和界面 UI 相关
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghanrui
|
|
17
|
+
* @date 2024-03-27 10:03:34
|
|
18
|
+
*/
|
|
19
|
+
state: FormState;
|
|
20
|
+
constructor(model: IForm);
|
|
21
|
+
/**
|
|
22
|
+
* 获取当前表单数据
|
|
23
|
+
*
|
|
24
|
+
* @author zhanghanrui
|
|
25
|
+
* @date 2024-03-27 18:03:33
|
|
26
|
+
* @return {*} {IData}
|
|
27
|
+
*/
|
|
28
|
+
getData(): IData;
|
|
29
|
+
/**
|
|
30
|
+
* 重置表单数据
|
|
31
|
+
*
|
|
32
|
+
* @author zhanghanrui
|
|
33
|
+
* @date 2024-03-27 18:03:09
|
|
34
|
+
*/
|
|
35
|
+
resetData(): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 获取表单控制器实例
|
|
39
|
+
*
|
|
40
|
+
* @author zhanghanrui
|
|
41
|
+
* @date 2024-03-27 10:03:30
|
|
42
|
+
* @export
|
|
43
|
+
* @param {IForm} model
|
|
44
|
+
* @return {*} {FormController}
|
|
45
|
+
*/
|
|
46
|
+
export declare function useFormController(model: IForm): FormController;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { FormState } from "./form.state.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
import { reactive } from "vue";
|
|
4
|
+
//#region src/modules/gct-form/widgets/gct-search-form/form.controller.ts
|
|
5
|
+
/**
|
|
6
|
+
* 表单控制器
|
|
7
|
+
*
|
|
8
|
+
* @author zhanghanrui
|
|
9
|
+
* @date 2024-03-27 09:03:56
|
|
10
|
+
* @export
|
|
11
|
+
* @class FormController
|
|
12
|
+
*/
|
|
13
|
+
var FormController = class {
|
|
14
|
+
model;
|
|
15
|
+
/**
|
|
16
|
+
* 表单状态数据,和界面 UI 相关
|
|
17
|
+
*
|
|
18
|
+
* @author zhanghanrui
|
|
19
|
+
* @date 2024-03-27 10:03:34
|
|
20
|
+
*/
|
|
21
|
+
state = new FormState();
|
|
22
|
+
constructor(model) {
|
|
23
|
+
this.model = model;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 获取当前表单数据
|
|
27
|
+
*
|
|
28
|
+
* @author zhanghanrui
|
|
29
|
+
* @date 2024-03-27 18:03:33
|
|
30
|
+
* @return {*} {IData}
|
|
31
|
+
*/
|
|
32
|
+
getData() {
|
|
33
|
+
const data = {};
|
|
34
|
+
this.model?.fields?.forEach((field) => {
|
|
35
|
+
if (this.state.data[field] != null) data[field] = this.state.data[field];
|
|
36
|
+
});
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 重置表单数据
|
|
41
|
+
*
|
|
42
|
+
* @author zhanghanrui
|
|
43
|
+
* @date 2024-03-27 18:03:09
|
|
44
|
+
*/
|
|
45
|
+
resetData() {
|
|
46
|
+
Object.keys(this.state.data).forEach((key) => {
|
|
47
|
+
const val = this.state.data[key];
|
|
48
|
+
if (val) if (typeof val === "object") if (Array.isArray(val)) this.state.data[key] = [];
|
|
49
|
+
else this.state.data[key] = {};
|
|
50
|
+
else this.state.data[key] = null;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 获取表单控制器实例
|
|
56
|
+
*
|
|
57
|
+
* @author zhanghanrui
|
|
58
|
+
* @date 2024-03-27 10:03:30
|
|
59
|
+
* @export
|
|
60
|
+
* @param {IForm} model
|
|
61
|
+
* @return {*} {FormController}
|
|
62
|
+
*/
|
|
63
|
+
function useFormController(model) {
|
|
64
|
+
const c = new FormController(model);
|
|
65
|
+
c.state = reactive(c.state);
|
|
66
|
+
return c;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { useFormController };
|
|
@@ -0,0 +1,83 @@
|
|
|
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-gct-search-form {
|
|
66
|
+
position: relative;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.gct-gct-search-form-actions {
|
|
70
|
+
padding: 0 16px 16px;
|
|
71
|
+
text-align: right;
|
|
72
|
+
}
|
|
73
|
+
.gct-gct-search-form-actions .ant-btn {
|
|
74
|
+
margin-right: 12px;
|
|
75
|
+
}
|
|
76
|
+
.gct-gct-search-form-actions .ant-btn:last-child {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
.gct-gct-search-form-actions.is-fixed {
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: 0;
|
|
82
|
+
bottom: 0;
|
|
83
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IForm } from '../..';
|
|
3
|
+
export declare const GctSearchForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
model: {
|
|
5
|
+
type: PropType<IForm>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
isFixed: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}>, {
|
|
13
|
+
ns: import('@gct-paas/core').Namespace;
|
|
14
|
+
formRef: import('vue').Ref<any, any>;
|
|
15
|
+
getData: () => IData;
|
|
16
|
+
resetData: () => void;
|
|
17
|
+
onSearch: () => void;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("reset" | "search")[], "reset" | "search", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
model: {
|
|
20
|
+
type: PropType<IForm>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
isFixed: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{
|
|
28
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
isFixed: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default GctSearchForm;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import './gct-search-form.css';/* empty css */
|
|
2
|
+
import AppForm from "./form/app-form.mjs";
|
|
3
|
+
import { computed, createTextVNode, createVNode, defineComponent, ref, resolveComponent } from "vue";
|
|
4
|
+
import { useNamespace } from "@gct-paas/core";
|
|
5
|
+
//#region src/modules/gct-form/widgets/gct-search-form/gct-search-form.tsx
|
|
6
|
+
var GctSearchForm = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "GctSearchForm",
|
|
8
|
+
props: {
|
|
9
|
+
model: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
isFixed: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["search", "reset"],
|
|
19
|
+
setup(_, { emit }) {
|
|
20
|
+
const ns = useNamespace("gct-search-form");
|
|
21
|
+
const formRef = ref(null);
|
|
22
|
+
const c = computed(() => formRef.value?.c);
|
|
23
|
+
const getData = () => {
|
|
24
|
+
return c.value.getData();
|
|
25
|
+
};
|
|
26
|
+
const resetData = () => {
|
|
27
|
+
c.value.resetData();
|
|
28
|
+
emit("reset", {});
|
|
29
|
+
};
|
|
30
|
+
const onSearch = () => {
|
|
31
|
+
emit("search", getData());
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
ns,
|
|
35
|
+
formRef,
|
|
36
|
+
getData,
|
|
37
|
+
resetData,
|
|
38
|
+
onSearch
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
render() {
|
|
42
|
+
return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": this.ns.b("wrapper") }, [createVNode(AppForm, {
|
|
43
|
+
"ref": "formRef",
|
|
44
|
+
"model": this.model
|
|
45
|
+
}, null)]), createVNode("div", { "class": [this.ns.b("actions"), this.ns.is("fixed", this.isFixed)] }, [createVNode(resolveComponent("a-button"), {
|
|
46
|
+
"class": this.ns.e("reset"),
|
|
47
|
+
"onClick": this.resetData
|
|
48
|
+
}, { default: () => [createTextVNode("重置")] }), createVNode(resolveComponent("a-button"), {
|
|
49
|
+
"class": this.ns.e("query"),
|
|
50
|
+
"type": "primary",
|
|
51
|
+
"onClick": this.onSearch
|
|
52
|
+
}, { default: () => [createTextVNode("查询")] })])]);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { GctSearchForm as default };
|
|
@@ -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-text/gct-table-text.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-text.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createModalContext } from "../hooks/useModalContext.mjs";
|
|
2
1
|
import { GctOverlayScrollbars } from "../../../../components/overlay-scrollbars/gct-overlay-scrollbars.mjs";
|
|
2
|
+
import { createModalContext } from "../hooks/useModalContext.mjs";
|
|
3
3
|
import { computed, defineComponent, nextTick, onMounted, onUnmounted, ref, unref, watch, watchEffect } from "vue";
|
|
4
4
|
import { useNamespace } from "@gct-paas/core";
|
|
5
5
|
import { useMutationObserver, useWindowSize } from "@vueuse/core";
|
package/es/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppFullScreenContainerOptions, IModalData, IModalOptions, IOverlayContainer, IOverlayController, IOverlayPopoverContainer, IPopoverOptions } from '@gct-paas/core';
|
|
1
|
+
import { IAppFullScreenContainerOptions, IDrawerOptions, IModalData, IModalOptions, IOverlayContainer, IOverlayController, IOverlayPopoverContainer, IPopoverOptions } from '@gct-paas/core';
|
|
2
2
|
import { Placement, Strategy, Middleware, Platform } from '@floating-ui/dom';
|
|
3
3
|
/**
|
|
4
4
|
* 用不同呈现方式绘制组件的通用工具类
|
|
@@ -12,6 +12,8 @@ import { Placement, Strategy, Middleware, Platform } from '@floating-ui/dom';
|
|
|
12
12
|
export declare class OverlayController implements IOverlayController {
|
|
13
13
|
modal<T = IModalData>(component: unknown, props?: IParams, opts?: IModalOptions): Promise<T>;
|
|
14
14
|
createModal(component: unknown, props?: IParams, opts?: IModalOptions): IOverlayContainer;
|
|
15
|
+
drawer<T = IModalData>(component: unknown, props?: IParams, opts?: IDrawerOptions): Promise<T>;
|
|
16
|
+
createDrawer(component: unknown, props?: IParams, opts?: IDrawerOptions): IOverlayContainer;
|
|
15
17
|
popover<T = void>(element: HTMLElement, component: unknown, props?: IParams, opts?: IPopoverOptions<Partial<{
|
|
16
18
|
placement?: Placement | undefined;
|
|
17
19
|
strategy?: Strategy | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createModal } from "../../components/app-modal/app-modal-component.mjs";
|
|
2
|
+
import { createDrawer } from "../../components/app-drawer/app-drawer-component.mjs";
|
|
2
3
|
import { createPopover } from "../../components/app-popover/app-popover-component.mjs";
|
|
3
4
|
import { createAppFullScreenContainer } from "../../components/app-full-screen-container/app-full-screen-container.mjs";
|
|
4
5
|
import { h, resolveComponent } from "vue";
|
|
@@ -25,6 +26,14 @@ var OverlayController = class {
|
|
|
25
26
|
createModal(component, props, opts) {
|
|
26
27
|
return createModal(isFunction(component) ? component : () => h(resolveComponentOrStr(component), { ...props }), opts);
|
|
27
28
|
}
|
|
29
|
+
drawer(component, props, opts) {
|
|
30
|
+
const drawer = this.createDrawer(component, props, opts);
|
|
31
|
+
drawer.present();
|
|
32
|
+
return drawer.onWillDismiss();
|
|
33
|
+
}
|
|
34
|
+
createDrawer(component, props, opts) {
|
|
35
|
+
return createDrawer(isFunction(component) ? component : () => h(resolveComponentOrStr(component), { ...props }), opts);
|
|
36
|
+
}
|
|
28
37
|
popover(element, component, props, opts) {
|
|
29
38
|
const popover = this.createPopover(component, props, opts);
|
|
30
39
|
popover.present(element);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"bwip-js": "^4.9.2",
|
|
47
47
|
"cropperjs": "^1.5.13",
|
|
48
48
|
"dayjs": "^1.11.19",
|
|
49
|
+
"dom-to-image": "^2.6.0",
|
|
49
50
|
"jsbarcode": "^3.12.3",
|
|
50
51
|
"lodash-es": "^4.17.23",
|
|
51
52
|
"monaco-editor": "^0.55.1",
|
|
@@ -64,21 +65,22 @@
|
|
|
64
65
|
"vxe-table": "npm:@gct-paas/vxe-table@4.6.19",
|
|
65
66
|
"wujie": "^1.0.29",
|
|
66
67
|
"wujie-vue3": "^1.0.29",
|
|
67
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
68
|
-
"@gct-paas/
|
|
69
|
-
"@gct-paas/
|
|
68
|
+
"@gct-paas/core": "0.1.6-dev.18",
|
|
69
|
+
"@gct-paas/core-components": "0.1.6-dev.18",
|
|
70
|
+
"@gct-paas/scss": "0.1.6-dev.18"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@gct-paas/api": "^0.1.6-dev.11",
|
|
73
74
|
"@types/sortablejs": "^1.15.1",
|
|
74
75
|
"vant": ">=4",
|
|
75
76
|
"vue": ">=3",
|
|
76
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
77
|
-
"@gct-paas/core
|
|
78
|
-
"@gct-paas/scss": "0.1.6-dev.
|
|
77
|
+
"@gct-paas/core-components": "0.1.6-dev.18",
|
|
78
|
+
"@gct-paas/core": "0.1.6-dev.18",
|
|
79
|
+
"@gct-paas/scss": "0.1.6-dev.18"
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
|
-
"@types/bwip-js": "^3.2.3"
|
|
82
|
+
"@types/bwip-js": "^3.2.3",
|
|
83
|
+
"@types/dom-to-image": "^2.6.7"
|
|
82
84
|
},
|
|
83
85
|
"scripts": {
|
|
84
86
|
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|