xkit-ui 2.0.0-alpha.0
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/lib/assets/icon-add-circle-fill.vue.d.ts +3 -0
- package/lib/assets/icon-add-circle-fill.vue.d.ts.map +1 -0
- package/lib/assets/icon-close-line.vue.d.ts +3 -0
- package/lib/assets/icon-close-line.vue.d.ts.map +1 -0
- package/lib/assets/icon-drag.vue.d.ts +3 -0
- package/lib/assets/icon-drag.vue.d.ts.map +1 -0
- package/lib/assets/icon-minus-circle.vue.d.ts +3 -0
- package/lib/assets/icon-minus-circle.vue.d.ts.map +1 -0
- package/lib/components/_public/form-item-cols.vue.d.ts +17 -0
- package/lib/components/_public/form-item-cols.vue.d.ts.map +1 -0
- package/lib/components/button/type.d.ts +85 -0
- package/lib/components/button/type.d.ts.map +1 -0
- package/lib/components/cascader/index.vue.d.ts +66 -0
- package/lib/components/cascader/index.vue.d.ts.map +1 -0
- package/lib/components/cascader/type.d.ts +125 -0
- package/lib/components/cascader/type.d.ts.map +1 -0
- package/lib/components/checkbox/index.vue.d.ts +30 -0
- package/lib/components/checkbox/index.vue.d.ts.map +1 -0
- package/lib/components/checkbox/type.d.ts +36 -0
- package/lib/components/checkbox/type.d.ts.map +1 -0
- package/lib/components/checkboxes/index.vue.d.ts +42 -0
- package/lib/components/checkboxes/index.vue.d.ts.map +1 -0
- package/lib/components/checkboxes/type.d.ts +56 -0
- package/lib/components/checkboxes/type.d.ts.map +1 -0
- package/lib/components/component/index.d.ts +7 -0
- package/lib/components/component/index.d.ts.map +1 -0
- package/lib/components/condition-builder/condition-node.vue.d.ts +32 -0
- package/lib/components/condition-builder/condition-node.vue.d.ts.map +1 -0
- package/lib/components/condition-builder/group-bracket.vue.d.ts +19 -0
- package/lib/components/condition-builder/group-bracket.vue.d.ts.map +1 -0
- package/lib/components/condition-builder/group-indent.vue.d.ts +19 -0
- package/lib/components/condition-builder/group-indent.vue.d.ts.map +1 -0
- package/lib/components/condition-builder/index.vue.d.ts +160 -0
- package/lib/components/condition-builder/index.vue.d.ts.map +1 -0
- package/lib/components/condition-builder/type.d.ts +88 -0
- package/lib/components/condition-builder/type.d.ts.map +1 -0
- package/lib/components/crud/action-type.d.ts +80 -0
- package/lib/components/crud/action-type.d.ts.map +1 -0
- package/lib/components/crud/index.vue.d.ts +78 -0
- package/lib/components/crud/index.vue.d.ts.map +1 -0
- package/lib/components/crud/multi-action.vue.d.ts +8 -0
- package/lib/components/crud/multi-action.vue.d.ts.map +1 -0
- package/lib/components/crud/single-action.vue.d.ts +7 -0
- package/lib/components/crud/single-action.vue.d.ts.map +1 -0
- package/lib/components/crud/type.d.ts +171 -0
- package/lib/components/crud/type.d.ts.map +1 -0
- package/lib/components/crud-form/index.vue.d.ts +22 -0
- package/lib/components/crud-form/index.vue.d.ts.map +1 -0
- package/lib/components/crud-form/type.d.ts +65 -0
- package/lib/components/crud-form/type.d.ts.map +1 -0
- package/lib/components/date-picker/index.vue.d.ts +35 -0
- package/lib/components/date-picker/index.vue.d.ts.map +1 -0
- package/lib/components/date-picker/type.d.ts +139 -0
- package/lib/components/date-picker/type.d.ts.map +1 -0
- package/lib/components/date-range-picker/index.vue.d.ts +15 -0
- package/lib/components/date-range-picker/index.vue.d.ts.map +1 -0
- package/lib/components/date-range-picker/type.d.ts +137 -0
- package/lib/components/date-range-picker/type.d.ts.map +1 -0
- package/lib/components/date-range-picker-v2/index.vue.d.ts +22 -0
- package/lib/components/date-range-picker-v2/index.vue.d.ts.map +1 -0
- package/lib/components/date-range-picker-v2/type.d.ts +37 -0
- package/lib/components/date-range-picker-v2/type.d.ts.map +1 -0
- package/lib/components/description/index.vue.d.ts +28 -0
- package/lib/components/description/index.vue.d.ts.map +1 -0
- package/lib/components/description/type.d.ts +120 -0
- package/lib/components/description/type.d.ts.map +1 -0
- package/lib/components/dialog/type.d.ts +100 -0
- package/lib/components/dialog/type.d.ts.map +1 -0
- package/lib/components/dropdown/type.d.ts +62 -0
- package/lib/components/dropdown/type.d.ts.map +1 -0
- package/lib/components/ellipsis/index.vue.d.ts +34 -0
- package/lib/components/ellipsis/index.vue.d.ts.map +1 -0
- package/lib/components/ellipsis/type.d.ts +26 -0
- package/lib/components/ellipsis/type.d.ts.map +1 -0
- package/lib/components/event-menu/index.vue.d.ts +25 -0
- package/lib/components/event-menu/index.vue.d.ts.map +1 -0
- package/lib/components/form/form-item.type.d.ts +304 -0
- package/lib/components/form/form-item.type.d.ts.map +1 -0
- package/lib/components/form/form-item.vue.d.ts +50 -0
- package/lib/components/form/form-item.vue.d.ts.map +1 -0
- package/lib/components/form/form-layout-renderer.vue.d.ts +71 -0
- package/lib/components/form/form-layout-renderer.vue.d.ts.map +1 -0
- package/lib/components/form/index.vue.d.ts +220 -0
- package/lib/components/form/index.vue.d.ts.map +1 -0
- package/lib/components/form/query-form.d.ts +4 -0
- package/lib/components/form/query-form.d.ts.map +1 -0
- package/lib/components/form/type.d.ts +312 -0
- package/lib/components/form/type.d.ts.map +1 -0
- package/lib/components/group/group-item.vue.d.ts +9 -0
- package/lib/components/group/group-item.vue.d.ts.map +1 -0
- package/lib/components/group/index.vue.d.ts +24 -0
- package/lib/components/group/index.vue.d.ts.map +1 -0
- package/lib/components/group/type.d.ts +119 -0
- package/lib/components/group/type.d.ts.map +1 -0
- package/lib/components/icon-select/__tests__/icon-sources.test.d.ts +2 -0
- package/lib/components/icon-select/__tests__/icon-sources.test.d.ts.map +1 -0
- package/lib/components/icon-select/icon-parser.vue.d.ts +41 -0
- package/lib/components/icon-select/icon-parser.vue.d.ts.map +1 -0
- package/lib/components/icon-select/icon-sources.d.ts +22 -0
- package/lib/components/icon-select/icon-sources.d.ts.map +1 -0
- package/lib/components/icon-select/index.vue.d.ts +15 -0
- package/lib/components/icon-select/index.vue.d.ts.map +1 -0
- package/lib/components/icon-select/type.d.ts +24 -0
- package/lib/components/icon-select/type.d.ts.map +1 -0
- package/lib/components/index.d.ts +107 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/input/index.vue.d.ts +20 -0
- package/lib/components/input/index.vue.d.ts.map +1 -0
- package/lib/components/input/type.d.ts +121 -0
- package/lib/components/input/type.d.ts.map +1 -0
- package/lib/components/input-array/__tests__/layout.test.d.ts +2 -0
- package/lib/components/input-array/__tests__/layout.test.d.ts.map +1 -0
- package/lib/components/input-array/index.vue.d.ts +28 -0
- package/lib/components/input-array/index.vue.d.ts.map +1 -0
- package/lib/components/input-array/layout.d.ts +11 -0
- package/lib/components/input-array/layout.d.ts.map +1 -0
- package/lib/components/input-array/type.d.ts +89 -0
- package/lib/components/input-array/type.d.ts.map +1 -0
- package/lib/components/input-collapse/index.vue.d.ts +7 -0
- package/lib/components/input-collapse/index.vue.d.ts.map +1 -0
- package/lib/components/input-collapse/type.d.ts +50 -0
- package/lib/components/input-collapse/type.d.ts.map +1 -0
- package/lib/components/input-linked/index.vue.d.ts +13 -0
- package/lib/components/input-linked/index.vue.d.ts.map +1 -0
- package/lib/components/input-linked/type.d.ts +32 -0
- package/lib/components/input-linked/type.d.ts.map +1 -0
- package/lib/components/input-number/index.vue.d.ts +29 -0
- package/lib/components/input-number/index.vue.d.ts.map +1 -0
- package/lib/components/input-number/type.d.ts +57 -0
- package/lib/components/input-number/type.d.ts.map +1 -0
- package/lib/components/input-number-range/index.vue.d.ts +28 -0
- package/lib/components/input-number-range/index.vue.d.ts.map +1 -0
- package/lib/components/input-number-range/type.d.ts +49 -0
- package/lib/components/input-number-range/type.d.ts.map +1 -0
- package/lib/components/input-table/index.vue.d.ts +25 -0
- package/lib/components/input-table/index.vue.d.ts.map +1 -0
- package/lib/components/input-table/type.d.ts +37 -0
- package/lib/components/input-table/type.d.ts.map +1 -0
- package/lib/components/input-upload/index.vue.d.ts +11 -0
- package/lib/components/input-upload/index.vue.d.ts.map +1 -0
- package/lib/components/input-upload/type.d.ts +59 -0
- package/lib/components/input-upload/type.d.ts.map +1 -0
- package/lib/components/json/index.vue.d.ts +10 -0
- package/lib/components/json/index.vue.d.ts.map +1 -0
- package/lib/components/link/index.vue.d.ts +21 -0
- package/lib/components/link/index.vue.d.ts.map +1 -0
- package/lib/components/link/type.d.ts +28 -0
- package/lib/components/link/type.d.ts.map +1 -0
- package/lib/components/radios/index.vue.d.ts +42 -0
- package/lib/components/radios/index.vue.d.ts.map +1 -0
- package/lib/components/radios/type.d.ts +36 -0
- package/lib/components/radios/type.d.ts.map +1 -0
- package/lib/components/search-bar/index.vue.d.ts +37 -0
- package/lib/components/search-bar/index.vue.d.ts.map +1 -0
- package/lib/components/select/index.vue.d.ts +48 -0
- package/lib/components/select/index.vue.d.ts.map +1 -0
- package/lib/components/select/type.d.ts +222 -0
- package/lib/components/select/type.d.ts.map +1 -0
- package/lib/components/static/options-viewer.vue.d.ts +16 -0
- package/lib/components/static/options-viewer.vue.d.ts.map +1 -0
- package/lib/components/static/rich-text-viewer.vue.d.ts +8 -0
- package/lib/components/static/rich-text-viewer.vue.d.ts.map +1 -0
- package/lib/components/static/textarea-viewer.vue.d.ts +6 -0
- package/lib/components/static/textarea-viewer.vue.d.ts.map +1 -0
- package/lib/components/switch/index.vue.d.ts +38 -0
- package/lib/components/switch/index.vue.d.ts.map +1 -0
- package/lib/components/switch/type.d.ts +72 -0
- package/lib/components/switch/type.d.ts.map +1 -0
- package/lib/components/table/index.vue.d.ts +1317 -0
- package/lib/components/table/index.vue.d.ts.map +1 -0
- package/lib/components/table/table-column.vue.d.ts +44 -0
- package/lib/components/table/table-column.vue.d.ts.map +1 -0
- package/lib/components/table/type.d.ts +306 -0
- package/lib/components/table/type.d.ts.map +1 -0
- package/lib/components/table-select/const.d.ts +14 -0
- package/lib/components/table-select/const.d.ts.map +1 -0
- package/lib/components/table-select/index.vue.d.ts +22471 -0
- package/lib/components/table-select/index.vue.d.ts.map +1 -0
- package/lib/components/table-select/table-selector-main.vue.d.ts +4795 -0
- package/lib/components/table-select/table-selector-main.vue.d.ts.map +1 -0
- package/lib/components/table-select/type.d.ts +71 -0
- package/lib/components/table-select/type.d.ts.map +1 -0
- package/lib/components/tabs/index.vue.d.ts +6 -0
- package/lib/components/tabs/index.vue.d.ts.map +1 -0
- package/lib/components/tabs/type.d.ts +23 -0
- package/lib/components/tabs/type.d.ts.map +1 -0
- package/lib/components/text/index.vue.d.ts +7 -0
- package/lib/components/text/index.vue.d.ts.map +1 -0
- package/lib/components/text/type.d.ts +7 -0
- package/lib/components/text/type.d.ts.map +1 -0
- package/lib/components/textarea/type.d.ts +79 -0
- package/lib/components/textarea/type.d.ts.map +1 -0
- package/lib/components/toolbar/index.vue.d.ts +15 -0
- package/lib/components/toolbar/index.vue.d.ts.map +1 -0
- package/lib/components/transitions/TransitionHeight.vue.d.ts +30 -0
- package/lib/components/transitions/TransitionHeight.vue.d.ts.map +1 -0
- package/lib/components/tree/index.vue.d.ts +17 -0
- package/lib/components/tree/index.vue.d.ts.map +1 -0
- package/lib/components/tree/tree-node.vue.d.ts +8 -0
- package/lib/components/tree/tree-node.vue.d.ts.map +1 -0
- package/lib/components/tree/tree-state.d.ts +35 -0
- package/lib/components/tree/tree-state.d.ts.map +1 -0
- package/lib/components/tree/type.d.ts +50 -0
- package/lib/components/tree/type.d.ts.map +1 -0
- package/lib/components/tree-select/index.vue.d.ts +94 -0
- package/lib/components/tree-select/index.vue.d.ts.map +1 -0
- package/lib/components/tree-select/type.d.ts +156 -0
- package/lib/components/tree-select/type.d.ts.map +1 -0
- package/lib/components/tree-select-crud/index.vue.d.ts +3102 -0
- package/lib/components/tree-select-crud/index.vue.d.ts.map +1 -0
- package/lib/components/tree-select-crud/type.d.ts +88 -0
- package/lib/components/tree-select-crud/type.d.ts.map +1 -0
- package/lib/components/upload/index.vue.d.ts +54 -0
- package/lib/components/upload/index.vue.d.ts.map +1 -0
- package/lib/composables/__tests__/use-option-static.test.d.ts +2 -0
- package/lib/composables/__tests__/use-option-static.test.d.ts.map +1 -0
- package/lib/composables/index.d.ts +3 -0
- package/lib/composables/index.d.ts.map +1 -0
- package/lib/composables/use-action.d.ts +21 -0
- package/lib/composables/use-action.d.ts.map +1 -0
- package/lib/composables/use-component.d.ts +74 -0
- package/lib/composables/use-component.d.ts.map +1 -0
- package/lib/composables/use-config.d.ts +76 -0
- package/lib/composables/use-config.d.ts.map +1 -0
- package/lib/composables/use-draggable.d.ts +22 -0
- package/lib/composables/use-draggable.d.ts.map +1 -0
- package/lib/composables/use-input-array.d.ts +45 -0
- package/lib/composables/use-input-array.d.ts.map +1 -0
- package/lib/composables/use-label.d.ts +2 -0
- package/lib/composables/use-label.d.ts.map +1 -0
- package/lib/composables/use-loading.d.ts +6 -0
- package/lib/composables/use-loading.d.ts.map +1 -0
- package/lib/composables/use-option-static.d.ts +51 -0
- package/lib/composables/use-option-static.d.ts.map +1 -0
- package/lib/composables/use-options.d.ts +66 -0
- package/lib/composables/use-options.d.ts.map +1 -0
- package/lib/composables/use-paging.d.ts +134 -0
- package/lib/composables/use-paging.d.ts.map +1 -0
- package/lib/composables/use-scaffold.d.ts +54 -0
- package/lib/composables/use-scaffold.d.ts.map +1 -0
- package/lib/composables/use-toggle.d.ts +11 -0
- package/lib/composables/use-toggle.d.ts.map +1 -0
- package/lib/composables/use-tree-static-path.d.ts +45 -0
- package/lib/composables/use-tree-static-path.d.ts.map +1 -0
- package/lib/composables/use-visible.d.ts +11 -0
- package/lib/composables/use-visible.d.ts.map +1 -0
- package/lib/config/layout.d.ts +9 -0
- package/lib/config/layout.d.ts.map +1 -0
- package/lib/constants/injection.d.ts +11 -0
- package/lib/constants/injection.d.ts.map +1 -0
- package/lib/directives/highlight.d.ts +7 -0
- package/lib/directives/highlight.d.ts.map +1 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.d.ts.map +1 -0
- package/lib/favicon.ico +0 -0
- package/lib/index.d.ts +59 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/ri/icons.json +8728 -0
- package/lib/ri/metadata.json +2938 -0
- package/lib/types/api.d.ts +8 -0
- package/lib/types/api.d.ts.map +1 -0
- package/lib/types/base.d.ts +306 -0
- package/lib/types/base.d.ts.map +1 -0
- package/lib/types/form.d.ts +82 -0
- package/lib/types/form.d.ts.map +1 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/option.d.ts +115 -0
- package/lib/types/option.d.ts.map +1 -0
- package/lib/types/pagination.d.ts +35 -0
- package/lib/types/pagination.d.ts.map +1 -0
- package/lib/types/table.d.ts +34 -0
- package/lib/types/table.d.ts.map +1 -0
- package/lib/types/util.d.ts +6 -0
- package/lib/types/util.d.ts.map +1 -0
- package/lib/utils/__tests__/condition.test.d.ts +2 -0
- package/lib/utils/__tests__/condition.test.d.ts.map +1 -0
- package/lib/utils/__tests__/editor-container.test.d.ts +2 -0
- package/lib/utils/__tests__/editor-container.test.d.ts.map +1 -0
- package/lib/utils/__tests__/form.test.d.ts +2 -0
- package/lib/utils/__tests__/form.test.d.ts.map +1 -0
- package/lib/utils/__tests__/tree.test.d.ts +2 -0
- package/lib/utils/__tests__/tree.test.d.ts.map +1 -0
- package/lib/utils/common.d.ts +13 -0
- package/lib/utils/common.d.ts.map +1 -0
- package/lib/utils/computed-state-manager.d.ts +3 -0
- package/lib/utils/computed-state-manager.d.ts.map +1 -0
- package/lib/utils/condition.d.ts +4 -0
- package/lib/utils/condition.d.ts.map +1 -0
- package/lib/utils/editor-container.d.ts +25 -0
- package/lib/utils/editor-container.d.ts.map +1 -0
- package/lib/utils/form-item.d.ts +23 -0
- package/lib/utils/form-item.d.ts.map +1 -0
- package/lib/utils/form.d.ts +75 -0
- package/lib/utils/form.d.ts.map +1 -0
- package/lib/utils/id.d.ts +24 -0
- package/lib/utils/id.d.ts.map +1 -0
- package/lib/utils/options.d.ts +14 -0
- package/lib/utils/options.d.ts.map +1 -0
- package/lib/utils/reactive.d.ts +13 -0
- package/lib/utils/reactive.d.ts.map +1 -0
- package/lib/utils/style.d.ts +5 -0
- package/lib/utils/style.d.ts.map +1 -0
- package/lib/utils/tree.d.ts +51 -0
- package/lib/utils/tree.d.ts.map +1 -0
- package/lib/xkit-ui.css +2 -0
- package/lib/xkit-ui.js +7478 -0
- package/lib/xkit-ui.umd.cjs +3 -0
- package/package.json +66 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { XConditionBuilderBase } from './type';
|
|
2
|
+
import { nextTick } from 'vue';
|
|
3
|
+
export interface XConditionBuilderProps extends XConditionBuilderBase {
|
|
4
|
+
modelValue?: any;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Partial<Record<number, (_: any) => any>> & Partial<Record<number, (_: any) => any>>;
|
|
9
|
+
refs: {
|
|
10
|
+
conditionNodeRef: {
|
|
11
|
+
$: import('vue').ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: {
|
|
14
|
+
readonly [x: string]: any;
|
|
15
|
+
readonly [x: number]: any;
|
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
17
|
+
$attrs: import('vue').Attrs;
|
|
18
|
+
$refs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$slots: Readonly<{
|
|
22
|
+
[name: string]: import('vue').Slot<any>;
|
|
23
|
+
}>;
|
|
24
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
25
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
26
|
+
$host: Element | null;
|
|
27
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
+
$el: any;
|
|
29
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
[x: string]: {
|
|
31
|
+
type: import('vue').PropType<any>;
|
|
32
|
+
};
|
|
33
|
+
[x: number]: {
|
|
34
|
+
type: import('vue').PropType<any>;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
addCondition: () => void;
|
|
38
|
+
addGroup: () => void;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
40
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
41
|
+
created?: (() => void) | (() => void)[];
|
|
42
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
43
|
+
mounted?: (() => void) | (() => void)[];
|
|
44
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
45
|
+
updated?: (() => void) | (() => void)[];
|
|
46
|
+
activated?: (() => void) | (() => void)[];
|
|
47
|
+
deactivated?: (() => void) | (() => void)[];
|
|
48
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
49
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
50
|
+
destroyed?: (() => void) | (() => void)[];
|
|
51
|
+
unmounted?: (() => void) | (() => void)[];
|
|
52
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
53
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
54
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
55
|
+
};
|
|
56
|
+
$forceUpdate: () => void;
|
|
57
|
+
$nextTick: typeof nextTick;
|
|
58
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
59
|
+
} & Readonly<{}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
[x: string]: {
|
|
61
|
+
type: import('vue').PropType<any>;
|
|
62
|
+
};
|
|
63
|
+
[x: number]: {
|
|
64
|
+
type: import('vue').PropType<any>;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, "addCondition" | "addGroup"> & import('vue').ShallowUnwrapRef<{
|
|
67
|
+
addCondition: () => void;
|
|
68
|
+
addGroup: () => void;
|
|
69
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
70
|
+
$slots: any;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
rootEl: HTMLDivElement;
|
|
74
|
+
};
|
|
75
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
76
|
+
declare const __VLS_component: import('vue').DefineComponent<XConditionBuilderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
77
|
+
"update:modelValue": (value: any) => any;
|
|
78
|
+
}, string, import('vue').PublicProps, Readonly<XConditionBuilderProps> & Readonly<{
|
|
79
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
80
|
+
}>, {
|
|
81
|
+
items: import('..').XFormItem[];
|
|
82
|
+
draggable: boolean;
|
|
83
|
+
idField: string;
|
|
84
|
+
variant: "indent" | "bracket";
|
|
85
|
+
useScaffoldValue: boolean;
|
|
86
|
+
groupTypeValue: string;
|
|
87
|
+
conditionTypeValue: string;
|
|
88
|
+
showClearButton: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
90
|
+
conditionNodeRef: {
|
|
91
|
+
$: import('vue').ComponentInternalInstance;
|
|
92
|
+
$data: {};
|
|
93
|
+
$props: {
|
|
94
|
+
readonly [x: string]: any;
|
|
95
|
+
readonly [x: number]: any;
|
|
96
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
97
|
+
$attrs: import('vue').Attrs;
|
|
98
|
+
$refs: {
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
$slots: Readonly<{
|
|
102
|
+
[name: string]: import('vue').Slot<any>;
|
|
103
|
+
}>;
|
|
104
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
105
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
106
|
+
$host: Element | null;
|
|
107
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
108
|
+
$el: any;
|
|
109
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
110
|
+
[x: string]: {
|
|
111
|
+
type: import('vue').PropType<any>;
|
|
112
|
+
};
|
|
113
|
+
[x: number]: {
|
|
114
|
+
type: import('vue').PropType<any>;
|
|
115
|
+
};
|
|
116
|
+
}>> & Readonly<{}>, {
|
|
117
|
+
addCondition: () => void;
|
|
118
|
+
addGroup: () => void;
|
|
119
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
120
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
121
|
+
created?: (() => void) | (() => void)[];
|
|
122
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
123
|
+
mounted?: (() => void) | (() => void)[];
|
|
124
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
125
|
+
updated?: (() => void) | (() => void)[];
|
|
126
|
+
activated?: (() => void) | (() => void)[];
|
|
127
|
+
deactivated?: (() => void) | (() => void)[];
|
|
128
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
129
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
130
|
+
destroyed?: (() => void) | (() => void)[];
|
|
131
|
+
unmounted?: (() => void) | (() => void)[];
|
|
132
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
133
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
134
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
135
|
+
};
|
|
136
|
+
$forceUpdate: () => void;
|
|
137
|
+
$nextTick: typeof nextTick;
|
|
138
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
139
|
+
} & Readonly<{}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
140
|
+
[x: string]: {
|
|
141
|
+
type: import('vue').PropType<any>;
|
|
142
|
+
};
|
|
143
|
+
[x: number]: {
|
|
144
|
+
type: import('vue').PropType<any>;
|
|
145
|
+
};
|
|
146
|
+
}>> & Readonly<{}>, "addCondition" | "addGroup"> & import('vue').ShallowUnwrapRef<{
|
|
147
|
+
addCondition: () => void;
|
|
148
|
+
addGroup: () => void;
|
|
149
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
150
|
+
$slots: any;
|
|
151
|
+
};
|
|
152
|
+
}, HTMLDivElement>;
|
|
153
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
154
|
+
export default _default;
|
|
155
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
156
|
+
new (): {
|
|
157
|
+
$slots: S;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/condition-builder/index.vue"],"names":[],"mappings":"AAmBA;AAiKA,OAAO,KAAK,EAAE,qBAAqB,EAAkB,MAAM,QAAQ,CAAA;AACnE,OAAO,EAAwB,QAAQ,EAA2C,MAAM,KAAK,CAAA;AAO7F,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,UAAU,CAAC,EAAE,GAAG,CAAA;CACjB;AAsID,iBAAS,cAAc;WA4GT,OAAO,IAA6B;8CAbmC,GAAG,wCACnB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkE0vZ,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;EAjDv7Z;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+B6yZ,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;kBArBt7Z,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { XLayout } from '../../types';
|
|
2
|
+
import { XCrudToolbarProps } from '../crud/type';
|
|
3
|
+
import { XFormItem } from '../form/type';
|
|
4
|
+
import { ElButtonSchema } from '../button/type';
|
|
5
|
+
import { StyleValue } from 'vue';
|
|
6
|
+
/**
|
|
7
|
+
* 条件树节点
|
|
8
|
+
*/
|
|
9
|
+
export type XConditionNode = {
|
|
10
|
+
level: number;
|
|
11
|
+
type: string;
|
|
12
|
+
children?: XConditionNode[];
|
|
13
|
+
data: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export interface XConditionBuilderBase {
|
|
19
|
+
/**
|
|
20
|
+
* 节点 id 字段, 默认 id
|
|
21
|
+
*/
|
|
22
|
+
idField?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 分组节点类型值,默认`group`
|
|
25
|
+
*/
|
|
26
|
+
groupTypeValue?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 条件节点类型值,默认`condition`
|
|
29
|
+
*/
|
|
30
|
+
conditionTypeValue?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 表单项配置
|
|
33
|
+
*/
|
|
34
|
+
items?: XFormItem[];
|
|
35
|
+
/**
|
|
36
|
+
* 是否静态,默认`false`
|
|
37
|
+
*/
|
|
38
|
+
static?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 底部工具栏配置
|
|
41
|
+
*/
|
|
42
|
+
footerToolbar?: XCrudToolbarProps;
|
|
43
|
+
/**
|
|
44
|
+
* 是否使用布局
|
|
45
|
+
*/
|
|
46
|
+
useLayout?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 布局配置
|
|
49
|
+
*/
|
|
50
|
+
layout?: XLayout;
|
|
51
|
+
/**
|
|
52
|
+
* 是否使用脚手架值
|
|
53
|
+
*/
|
|
54
|
+
useScaffoldValue?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 初始化按钮配置
|
|
57
|
+
*/
|
|
58
|
+
initButtonAttrs?: ElButtonSchema & {
|
|
59
|
+
label?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 是否显示清空按钮
|
|
63
|
+
*/
|
|
64
|
+
showClearButton?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 是否启用拖拽
|
|
67
|
+
*/
|
|
68
|
+
draggable?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 行样式类
|
|
71
|
+
*/
|
|
72
|
+
rowClass?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 行样式
|
|
75
|
+
*/
|
|
76
|
+
rowStyle?: StyleValue;
|
|
77
|
+
/**
|
|
78
|
+
* 组节点 UI 变体:indent(缩进型,默认)或 bracket(括号型)
|
|
79
|
+
*/
|
|
80
|
+
variant?: 'indent' | 'bracket';
|
|
81
|
+
}
|
|
82
|
+
export interface XConditionBuilderSchema extends XConditionBuilderBase {
|
|
83
|
+
/**
|
|
84
|
+
* 条件构建器
|
|
85
|
+
*/
|
|
86
|
+
type: 'x-condition-builder';
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/condition-builder/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,IAAI,EAAE;QACJ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KACnB,CAAA;IACD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAA;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAErD;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAA;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC/B;AAED,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAA;CAC5B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DownloadFile, ConditionValue, IVisible } from '../../types';
|
|
2
|
+
import { ElButtonSchema, XButtonSchema } from '../button/type';
|
|
3
|
+
import { ElDropdownItemSchema, XDropdownSchema } from '../dropdown/type';
|
|
4
|
+
import { XLinkSchema } from '../link/type';
|
|
5
|
+
/**
|
|
6
|
+
* 动作项基础属性
|
|
7
|
+
*/
|
|
8
|
+
export interface ActionBase {
|
|
9
|
+
/**
|
|
10
|
+
* 动作项名称
|
|
11
|
+
*/
|
|
12
|
+
label?: string | false;
|
|
13
|
+
/**
|
|
14
|
+
* 动态类型,batch表示批量操作,upload表示上传
|
|
15
|
+
*/
|
|
16
|
+
actionType?: 'batch' | 'upload' | 'download';
|
|
17
|
+
/**
|
|
18
|
+
* 动作
|
|
19
|
+
*/
|
|
20
|
+
action: string | ((row?: any, context?: any) => void | boolean | Promise<void | boolean | DownloadFile>);
|
|
21
|
+
disabled?: ConditionValue<any, any>;
|
|
22
|
+
attrs?: Record<string, any>;
|
|
23
|
+
/**
|
|
24
|
+
* 是否显示loading
|
|
25
|
+
*/
|
|
26
|
+
showLoading?: boolean;
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 是否显示
|
|
30
|
+
*/
|
|
31
|
+
visible?: ConditionValue<any, any>;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 原子动作组件
|
|
36
|
+
*/
|
|
37
|
+
export type ActionComponentSchema = XButtonSchema | XLinkSchema;
|
|
38
|
+
export type SingleActionItem = ActionBase & ActionComponentSchema;
|
|
39
|
+
export type DropdownActionItem = ActionBase & ElDropdownItemSchema;
|
|
40
|
+
/**
|
|
41
|
+
* 动作容器的基础属性
|
|
42
|
+
*/
|
|
43
|
+
export interface MultipleActionBase {
|
|
44
|
+
/**
|
|
45
|
+
* 动作项名称
|
|
46
|
+
*/
|
|
47
|
+
label: string;
|
|
48
|
+
/**
|
|
49
|
+
* 为dropdown时,外层也可以触发action
|
|
50
|
+
*/
|
|
51
|
+
action?: string | ((row?: any, context?: any) => void | boolean | Promise<void | boolean | DownloadFile>);
|
|
52
|
+
/**
|
|
53
|
+
* 动态类型,batch表示批量操作,upload表示上传
|
|
54
|
+
*/
|
|
55
|
+
actionType?: 'batch' | 'upload' | 'download';
|
|
56
|
+
/**
|
|
57
|
+
* 动作项
|
|
58
|
+
*/
|
|
59
|
+
body: DropdownActionItem[];
|
|
60
|
+
/**
|
|
61
|
+
* 触发动作的目标组件
|
|
62
|
+
*/
|
|
63
|
+
target?: ActionComponentSchema;
|
|
64
|
+
/**
|
|
65
|
+
* 按钮配置
|
|
66
|
+
*/
|
|
67
|
+
buttonProps?: ElButtonSchema;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 多个动作
|
|
71
|
+
*/
|
|
72
|
+
export type MultipleActionItem = MultipleActionBase & XDropdownSchema;
|
|
73
|
+
/**
|
|
74
|
+
* 动作项
|
|
75
|
+
*/
|
|
76
|
+
export type ActionItem = (SingleActionItem | MultipleActionItem) & IVisible;
|
|
77
|
+
/**
|
|
78
|
+
* 多动作容器
|
|
79
|
+
*/
|
|
80
|
+
//# sourceMappingURL=action-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-type.d.ts","sourceRoot":"","sources":["../../../src/components/crud/action-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,GAAG,YAAY,CAAC,CAAC,CAAA;IAExG,QAAQ,CAAC,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAEnC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAElC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,WAAW,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,qBAAqB,CAAA;AAEjE,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,oBAAoB,CAAA;AAClE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,GAAG,YAAY,CAAC,CAAC,CAAA;IAEzG;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC5C;;OAEG;IACH,IAAI,EAAE,kBAAkB,EAAE,CAAA;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAA;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAA;CAC7B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,eAAe,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,GAAG,QAAQ,CAAA;AAE3E;;GAEG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { FetchListProps } from '../../composables/use-paging';
|
|
2
|
+
import { XCrudPropsBase, XCrudSlots } from './type';
|
|
3
|
+
export type XCrudProps<T = any> = XCrudPropsBase<T> & FetchListProps<T> & {
|
|
4
|
+
[prop: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export interface XCrudInstance {
|
|
7
|
+
refresh: (resetPage?: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<XCrudSlots<any>> & XCrudSlots<any>;
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<XCrudPropsBase<any> & import('../../composables/use-paging').WithoutPagination<any> & {
|
|
17
|
+
[prop: string]: any;
|
|
18
|
+
}>, {
|
|
19
|
+
table: () => {
|
|
20
|
+
columns: any[];
|
|
21
|
+
};
|
|
22
|
+
showLoading: boolean;
|
|
23
|
+
detailCfg: () => {};
|
|
24
|
+
pagination: boolean;
|
|
25
|
+
parentNameField: string;
|
|
26
|
+
parentIdField: string;
|
|
27
|
+
refreshOnParamsChange: boolean;
|
|
28
|
+
idField: () => "id";
|
|
29
|
+
nameField: () => "name";
|
|
30
|
+
indexAutoComputed: boolean;
|
|
31
|
+
}>>, {
|
|
32
|
+
/**
|
|
33
|
+
* 刷新列表数据
|
|
34
|
+
* @param resetPage 是否重置页码
|
|
35
|
+
*/
|
|
36
|
+
refresh(resetPage?: boolean): void;
|
|
37
|
+
clearSelection: () => void;
|
|
38
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<XCrudPropsBase<any> & import('../../composables/use-paging').WithoutPagination<any> & {
|
|
39
|
+
[prop: string]: any;
|
|
40
|
+
}>, {
|
|
41
|
+
table: () => {
|
|
42
|
+
columns: any[];
|
|
43
|
+
};
|
|
44
|
+
showLoading: boolean;
|
|
45
|
+
detailCfg: () => {};
|
|
46
|
+
pagination: boolean;
|
|
47
|
+
parentNameField: string;
|
|
48
|
+
parentIdField: string;
|
|
49
|
+
refreshOnParamsChange: boolean;
|
|
50
|
+
idField: () => "id";
|
|
51
|
+
nameField: () => "name";
|
|
52
|
+
indexAutoComputed: boolean;
|
|
53
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
62
|
+
type __VLS_TypePropsToOption<T> = {
|
|
63
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
64
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
65
|
+
} : {
|
|
66
|
+
type: import('vue').PropType<T[K]>;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type __VLS_PrettifyLocal<T> = {
|
|
76
|
+
[K in keyof T]: T[K];
|
|
77
|
+
} & {};
|
|
78
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/crud/index.vue"],"names":[],"mappings":"AA0EA;AA+yBA,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAO3F,OAAO,KAAK,EAAE,cAAc,EAAkB,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKxE,MAA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O,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC;AACF,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MultipleActionBase } from './action-type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<MultipleActionBase, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
click: (...args: any[]) => void;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<MultipleActionBase> & Readonly<{
|
|
5
|
+
onClick?: (...args: any[]) => any;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=multi-action.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-action.vue.d.ts","sourceRoot":"","sources":["../../../src/components/crud/multi-action.vue"],"names":[],"mappings":"AAkBA;AAyEA,OAAO,KAAK,EAAyB,kBAAkB,EAAE,MAAM,eAAe,CAAA;;;;;;AA+M9E,wBAQG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionBase } from './action-type';
|
|
2
|
+
export interface SingleActionProps extends ActionBase {
|
|
3
|
+
type: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=single-action.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-action.vue.d.ts","sourceRoot":"","sources":["../../../src/components/crud/single-action.vue"],"names":[],"mappings":"AAOA;AAuCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/C,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,IAAI,EAAE,MAAM,CAAA;CACb;;AA0ED,wBAOG"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { XCrudDialog } from '../../composables/use-config';
|
|
2
|
+
import { XFormSubmitContext, XFormProps } from '../form/type';
|
|
3
|
+
import { XTableProps } from '../table/type';
|
|
4
|
+
import { XDescriptionProps } from '../description/type';
|
|
5
|
+
import { ActionItem } from './action-type';
|
|
6
|
+
export interface XCrudToolbarProps {
|
|
7
|
+
left?: ActionItem[];
|
|
8
|
+
right?: ActionItem[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* XCrud 插槽统一上下文
|
|
12
|
+
*/
|
|
13
|
+
export interface XCrudSlotScope<T = any> {
|
|
14
|
+
/**
|
|
15
|
+
* 当前列表数据
|
|
16
|
+
*/
|
|
17
|
+
list: T[];
|
|
18
|
+
/**
|
|
19
|
+
* 当前总数(分页场景下为总记录数)
|
|
20
|
+
*/
|
|
21
|
+
total: number;
|
|
22
|
+
/**
|
|
23
|
+
* 当前加载状态
|
|
24
|
+
*/
|
|
25
|
+
loading: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 过滤表单参数(rtQueryParams 对外暴露别名)
|
|
28
|
+
*/
|
|
29
|
+
filterParams: Record<string, any>;
|
|
30
|
+
/**
|
|
31
|
+
* 列表请求参数(过滤+分页+排序)
|
|
32
|
+
*/
|
|
33
|
+
queryParams: Record<string, any>;
|
|
34
|
+
/**
|
|
35
|
+
* 刷新列表
|
|
36
|
+
*/
|
|
37
|
+
refresh: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* 清空 table 选中项
|
|
40
|
+
*/
|
|
41
|
+
clearSelection: () => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* XCrud 支持的插槽签名
|
|
45
|
+
*/
|
|
46
|
+
export interface XCrudSlots<T = any> {
|
|
47
|
+
default?: (scope: XCrudSlotScope<T>) => any;
|
|
48
|
+
'header-toolbar-top'?: (scope: XCrudSlotScope<T>) => any;
|
|
49
|
+
'header-toolbar'?: (scope: XCrudSlotScope<T>) => any;
|
|
50
|
+
'header-toolbar-left-before'?: (scope: XCrudSlotScope<T>) => any;
|
|
51
|
+
'header-toolbar-left-after'?: (scope: XCrudSlotScope<T>) => any;
|
|
52
|
+
'header-toolbar-right-before'?: (scope: XCrudSlotScope<T>) => any;
|
|
53
|
+
'header-toolbar-right-after'?: (scope: XCrudSlotScope<T>) => any;
|
|
54
|
+
'header-toolbar-bottom'?: (scope: XCrudSlotScope<T>) => any;
|
|
55
|
+
}
|
|
56
|
+
export interface XCrudContext {
|
|
57
|
+
refresh: () => void;
|
|
58
|
+
}
|
|
59
|
+
export type XCrudActionContext = XCrudContext & XFormSubmitContext;
|
|
60
|
+
export interface XCrudTableProps extends XTableProps {
|
|
61
|
+
on?: {
|
|
62
|
+
[prop: string]: (...args: any[]) => void;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface XCrudPropsBase<T> {
|
|
66
|
+
/**
|
|
67
|
+
* 过滤条件表单(查询表单)配置
|
|
68
|
+
*/
|
|
69
|
+
filter?: XFormProps<T> & {
|
|
70
|
+
[prop: string]: any;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 查询表单和table之间的部分配置
|
|
74
|
+
*/
|
|
75
|
+
headerToolbar?: XCrudToolbarProps;
|
|
76
|
+
/**
|
|
77
|
+
* 表格的配置
|
|
78
|
+
*/
|
|
79
|
+
table?: XCrudTableProps;
|
|
80
|
+
/**
|
|
81
|
+
* [钩子函数]-查询一条数据
|
|
82
|
+
* @param row
|
|
83
|
+
*/
|
|
84
|
+
findOne?: (row: T) => Promise<any>;
|
|
85
|
+
/**
|
|
86
|
+
* [钩子函数]-新增
|
|
87
|
+
* @param row
|
|
88
|
+
* @param context
|
|
89
|
+
*/
|
|
90
|
+
add?: (row: T, context: XCrudActionContext) => Promise<any> | void;
|
|
91
|
+
/**
|
|
92
|
+
* [钩子函数]-提交编辑结果
|
|
93
|
+
* @param row
|
|
94
|
+
* @param context
|
|
95
|
+
*/
|
|
96
|
+
edit?: (row: T, context: XCrudActionContext) => Promise<any> | void;
|
|
97
|
+
/**
|
|
98
|
+
*[钩子函数]-删除
|
|
99
|
+
* @param row
|
|
100
|
+
* @param context
|
|
101
|
+
*/
|
|
102
|
+
delete?: (row: T, context: XCrudContext) => Promise<any> | void;
|
|
103
|
+
/**
|
|
104
|
+
* 新增/编辑表单的配置
|
|
105
|
+
*/
|
|
106
|
+
form?: XFormProps<T>;
|
|
107
|
+
/**
|
|
108
|
+
* 详情XDescription的配置
|
|
109
|
+
*/
|
|
110
|
+
detailCfg?: Omit<XDescriptionProps, 'body' | 'values'>;
|
|
111
|
+
/**
|
|
112
|
+
* 加载数据时,是否显示loading,默认显示
|
|
113
|
+
*/
|
|
114
|
+
showLoading?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 父节点名称字段
|
|
117
|
+
*/
|
|
118
|
+
parentNameField?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 父节点id字段
|
|
121
|
+
*/
|
|
122
|
+
parentIdField?: string;
|
|
123
|
+
/**
|
|
124
|
+
* id字段
|
|
125
|
+
*/
|
|
126
|
+
idField?: string;
|
|
127
|
+
/**
|
|
128
|
+
* name字段
|
|
129
|
+
*/
|
|
130
|
+
nameField?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 弹窗配置
|
|
133
|
+
*/
|
|
134
|
+
dialog?: XCrudDialog;
|
|
135
|
+
/**
|
|
136
|
+
* 从父节点获取属性,用于add-child的表单,当需要获取列表中行数据时使用
|
|
137
|
+
*/
|
|
138
|
+
getFieldsFromParentNode?: (parentNode: any) => Record<string, any>;
|
|
139
|
+
/**
|
|
140
|
+
* 排序字段,`[ascValue,descValue]`,用于后端排序,默认值为`['asc','desc']`
|
|
141
|
+
*/
|
|
142
|
+
sortOrderValues?: [string, string];
|
|
143
|
+
/**
|
|
144
|
+
* 排序【字段】参数名,默认值为`sortField`
|
|
145
|
+
*/
|
|
146
|
+
sortByField?: string;
|
|
147
|
+
/**
|
|
148
|
+
* 排序【顺序】参数名,默认值为`sortOrder`
|
|
149
|
+
*/
|
|
150
|
+
sortOrderField?: string;
|
|
151
|
+
/**
|
|
152
|
+
* 默认排序字段
|
|
153
|
+
*/
|
|
154
|
+
defaultSortField?: string;
|
|
155
|
+
/**
|
|
156
|
+
* 默认排序顺序,取值为sortOrderValues中的一个
|
|
157
|
+
*/
|
|
158
|
+
defaultSortOrder?: string;
|
|
159
|
+
/**
|
|
160
|
+
* 序号自动计算
|
|
161
|
+
*/
|
|
162
|
+
indexAutoComputed?: boolean;
|
|
163
|
+
[prop: string]: any;
|
|
164
|
+
}
|
|
165
|
+
export interface XCrudSchema<T = any> extends XCrudPropsBase<T> {
|
|
166
|
+
/**
|
|
167
|
+
* 增删改查组件
|
|
168
|
+
*/
|
|
169
|
+
type: 'crud';
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/crud/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,iB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CrudFormProps;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: any) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
labelWidth: string | number;
|
|
11
|
+
detailCfg: Omit<import('..').XDescriptionProps, "body" | "values">;
|
|
12
|
+
border: boolean | import('vue').Ref<boolean, boolean> | import('vue').ShallowRef<boolean, boolean> | import('vue').WritableComputedRef<boolean, boolean> | import('vue').ComputedRef<boolean> | (() => boolean) | ((row: any, context?: any) => import('../..').Falsy | import('../..').Truthy);
|
|
13
|
+
collapseLength: number;
|
|
14
|
+
submitButtonText: string;
|
|
15
|
+
resetButtonVisible: boolean;
|
|
16
|
+
buttonAlign: import('../..').AlignEnum;
|
|
17
|
+
showButtonGroup: boolean;
|
|
18
|
+
formType: import('vue').MaybeRefOrGetter<string>;
|
|
19
|
+
hideRequiredAsterisk: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/crud-form/index.vue"],"names":[],"mappings":"AAGA;AAsJA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAahD,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;CAAI;AAE1E,KAAK,WAAW,GAAG,cAAc,CAAC;;;;;;;;;;;;;;;;;AA0LlC,wBASG"}
|