@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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/es/index.mjs +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +31 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +127 -127
- package/es/src/ap-grid/index.vue.mjs +97 -93
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +31 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/full-screen/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +28 -0
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +35 -1
- package/theme/ap-action/item.less +1 -2
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +28 -0
- package/theme/ap-field/index.css +28 -0
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +28 -0
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +28 -0
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +169 -0
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +169 -0
- package/theme/ap-form/search-form.less +56 -0
- package/theme/ap-grid/editable.css +28 -0
- package/theme/ap-grid/index.css +176 -1
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +28 -0
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +190 -13
- package/theme/ap-table/ap-table.less +0 -1
- package/theme/ap-table/setting/index.css +42 -0
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +34 -0
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +190 -13
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +28 -0
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +49 -1
- package/theme/check-card/index.less +3 -4
- package/theme/editable-table/index.css +176 -1
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +340 -15
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +1 -0
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +28 -0
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
|
@@ -163,20 +163,20 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
163
163
|
title: string;
|
|
164
164
|
onChange: Function;
|
|
165
165
|
value: string | unknown[] | Record<string, any>;
|
|
166
|
-
|
|
167
|
-
dirName: string;
|
|
166
|
+
maxCount: number;
|
|
168
167
|
needName: boolean | Record<string, any>;
|
|
168
|
+
getOssAccess: GetOssAccess;
|
|
169
169
|
accept: string;
|
|
170
|
-
maxSize: number;
|
|
171
|
-
subTitle: string | VNode< RendererNode, RendererElement, {
|
|
172
|
-
[key: string]: any;
|
|
173
|
-
}>;
|
|
174
170
|
beforeUpload: BeforeUpload;
|
|
171
|
+
onRemove: Function;
|
|
175
172
|
customRequest: CustomRequest;
|
|
173
|
+
maxSize: number;
|
|
174
|
+
dirName: string;
|
|
176
175
|
maxSizeErrorMsg: string;
|
|
177
176
|
acceptErrorMsg: string;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
subTitle: string | VNode< RendererNode, RendererElement, {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
}>;
|
|
180
180
|
maxCountErrorMsg: string;
|
|
181
181
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
182
182
|
uploadRef: unknown;
|
|
@@ -2,8 +2,21 @@ import { ApBatchActionGroupProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
type __VLS_Props = ApBatchActionGroupProps;
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
6
13
|
columns: ComputedRef<TableColumnsType<any>> | undefined;
|
|
7
14
|
dataSource: ComputedRef<any[]> | undefined;
|
|
8
15
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
17
|
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DropdownButton as
|
|
1
|
+
import { defineComponent as F, useSlots as O, computed as n, createBlock as m, createCommentVNode as j, openBlock as d, unref as s, mergeProps as b, createSlots as g, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as k, h as A, createVNode as i, renderList as B, renderSlot as C, normalizeProps as v, guardReactiveProps as y, normalizeClass as I } from "vue";
|
|
2
|
+
import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/index.mjs";
|
|
4
4
|
import "./MenuItemGroup.vue.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { usePermission as
|
|
8
|
-
import { useInjectApTable as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
6
|
+
import { DownOutlined as J } from "@ant-design/icons-vue";
|
|
7
|
+
import { usePermission as K } from "@aplus-frontend/hooks";
|
|
8
|
+
import { useInjectApTable as Q } from "../../ap-table/context.mjs";
|
|
9
|
+
import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
import S from "./MenuItemGroup.vue2.mjs";
|
|
13
|
+
import Y from "../../ap-button/ap-button.vue.mjs";
|
|
14
|
+
const ie = /* @__PURE__ */ F({
|
|
15
15
|
__name: "ApBatchActionGroup",
|
|
16
16
|
props: {
|
|
17
17
|
selectedRows: {},
|
|
18
18
|
buttonProps: {},
|
|
19
19
|
menuList: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const { b:
|
|
21
|
+
setup($, { expose: D }) {
|
|
22
|
+
const { b: h } = U("ap-batch-action-group"), { t: R } = W(), { columns: T, dataSource: N } = Q(), e = $, z = X("uiMode"), { hasPermission: G } = K(), w = O(), P = n(
|
|
23
23
|
() => {
|
|
24
24
|
var t;
|
|
25
25
|
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
|
|
@@ -29,88 +29,102 @@ const re = /* @__PURE__ */ T({
|
|
|
29
29
|
var t;
|
|
30
30
|
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.type) || "borderLink";
|
|
31
31
|
}
|
|
32
|
-
),
|
|
32
|
+
), _ = n(
|
|
33
33
|
() => {
|
|
34
34
|
var t;
|
|
35
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) ||
|
|
35
|
+
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || R("ap.apApBatchActionGroup.batchOperation");
|
|
36
36
|
}
|
|
37
|
-
),
|
|
37
|
+
), M = n(() => (e == null ? void 0 : e.selectedRows) || []), p = n(
|
|
38
38
|
() => {
|
|
39
39
|
var t;
|
|
40
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ?
|
|
40
|
+
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? M.value.length === 0 : !1);
|
|
41
41
|
}
|
|
42
|
-
),
|
|
42
|
+
), V = n(() => {
|
|
43
43
|
const t = {
|
|
44
44
|
aplus: "#0070FF",
|
|
45
45
|
admin: "#34b77c"
|
|
46
46
|
};
|
|
47
|
-
return u.value === "borderLink" ?
|
|
48
|
-
}),
|
|
47
|
+
return u.value === "borderLink" ? p.value ? void 0 : t[z.value] || t.aplus : void 0;
|
|
48
|
+
}), c = n(() => {
|
|
49
49
|
var t;
|
|
50
50
|
return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
|
|
51
|
-
let
|
|
52
|
-
return !(o != null && o.ifShow) && (o != null && o.auth) && (
|
|
51
|
+
let a = o == null ? void 0 : o.ifShow;
|
|
52
|
+
return !(o != null && o.ifShow) && (o != null && o.auth) && (a = () => G(o.auth)), (a == null ? void 0 : a()) ?? !0;
|
|
53
53
|
})) || [];
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function L() {
|
|
56
56
|
return e != null && e.buttonProps ? {
|
|
57
57
|
...e.buttonProps,
|
|
58
58
|
type: u.value === "borderLink" ? "default" : u.value
|
|
59
59
|
} : {};
|
|
60
60
|
}
|
|
61
|
-
return
|
|
62
|
-
columns:
|
|
63
|
-
dataSource:
|
|
64
|
-
}), (t, o) =>
|
|
61
|
+
return D({
|
|
62
|
+
columns: T,
|
|
63
|
+
dataSource: N
|
|
64
|
+
}), (t, o) => c.value.length && P.value === "dropdown" ? (d(), m(s(q), b({
|
|
65
65
|
key: 0,
|
|
66
|
-
class: [
|
|
66
|
+
class: [s(h)()]
|
|
67
67
|
}, {
|
|
68
68
|
...t.$attrs,
|
|
69
|
-
...
|
|
70
|
-
disabled:
|
|
71
|
-
}), {
|
|
69
|
+
...L(),
|
|
70
|
+
disabled: p.value
|
|
71
|
+
}), g({
|
|
72
72
|
overlay: r(() => [
|
|
73
|
-
|
|
73
|
+
i(S, b({
|
|
74
74
|
...e
|
|
75
|
-
}, { "menu-list":
|
|
75
|
+
}, { "menu-list": c.value }), null, 16, ["menu-list"])
|
|
76
76
|
]),
|
|
77
77
|
default: r(() => [
|
|
78
|
-
|
|
79
|
-
style:
|
|
80
|
-
color:
|
|
78
|
+
x("span", {
|
|
79
|
+
style: E({
|
|
80
|
+
color: V.value
|
|
81
81
|
})
|
|
82
82
|
}, [
|
|
83
|
-
(
|
|
83
|
+
(d(), m(k(A("span", [_.value]))))
|
|
84
84
|
], 4)
|
|
85
85
|
]),
|
|
86
|
-
_:
|
|
87
|
-
},
|
|
86
|
+
_: 2
|
|
87
|
+
}, [
|
|
88
|
+
B(w, (a, l) => ({
|
|
89
|
+
name: l,
|
|
90
|
+
fn: r((f) => [
|
|
91
|
+
C(t.$slots, l, v(y(f || {})))
|
|
92
|
+
])
|
|
93
|
+
}))
|
|
94
|
+
]), 1040, ["class"])) : c.value.length && P.value === "default" ? (d(), m(s(H), {
|
|
88
95
|
key: 1,
|
|
89
|
-
class:
|
|
90
|
-
disabled:
|
|
91
|
-
}, {
|
|
96
|
+
class: I([s(h)()]),
|
|
97
|
+
disabled: p.value
|
|
98
|
+
}, g({
|
|
92
99
|
overlay: r(() => [
|
|
93
|
-
|
|
100
|
+
i(S, b({
|
|
94
101
|
...e
|
|
95
|
-
}, { "menu-list":
|
|
102
|
+
}, { "menu-list": c.value }), null, 16, ["menu-list"])
|
|
96
103
|
]),
|
|
97
104
|
default: r(() => [
|
|
98
|
-
|
|
105
|
+
i(s(Y), v(y({
|
|
99
106
|
...t.$attrs,
|
|
100
|
-
...
|
|
107
|
+
...L(),
|
|
101
108
|
type: u.value
|
|
102
109
|
})), {
|
|
103
110
|
default: r(() => [
|
|
104
|
-
(
|
|
105
|
-
|
|
111
|
+
(d(), m(k(A("span", [_.value])))),
|
|
112
|
+
i(s(J))
|
|
106
113
|
]),
|
|
107
114
|
_: 1
|
|
108
115
|
}, 16)
|
|
109
116
|
]),
|
|
110
|
-
_:
|
|
111
|
-
},
|
|
117
|
+
_: 2
|
|
118
|
+
}, [
|
|
119
|
+
B(w, (a, l) => ({
|
|
120
|
+
name: l,
|
|
121
|
+
fn: r((f) => [
|
|
122
|
+
C(t.$slots, l, v(y(f || {})))
|
|
123
|
+
])
|
|
124
|
+
}))
|
|
125
|
+
]), 1032, ["class", "disabled"])) : j("", !0);
|
|
112
126
|
}
|
|
113
127
|
});
|
|
114
128
|
export {
|
|
115
|
-
|
|
129
|
+
ie as default
|
|
116
130
|
};
|
|
@@ -904,7 +904,9 @@ declare const ApBatchActionGroup: {
|
|
|
904
904
|
}> & Readonly<{}>, {
|
|
905
905
|
columns: ComputedRef<TableColumnsType<any>> | undefined;
|
|
906
906
|
dataSource: ComputedRef<any[]> | undefined;
|
|
907
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (
|
|
907
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
908
|
+
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
909
|
+
}) & ( Plugin & (new (...args: any[]) => {
|
|
908
910
|
$props: {
|
|
909
911
|
onClick?: () => void;
|
|
910
912
|
};
|
|
@@ -74,10 +74,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
74
74
|
}>> & Readonly<{}>, {
|
|
75
75
|
step: number;
|
|
76
76
|
value: (string | number)[];
|
|
77
|
-
placeholder: string[];
|
|
78
77
|
max: number;
|
|
79
78
|
min: number;
|
|
80
79
|
editable: boolean;
|
|
80
|
+
placeholder: string[];
|
|
81
81
|
precision: number;
|
|
82
82
|
perfix: string;
|
|
83
83
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -40,10 +40,10 @@ declare const ApSizeInput: {
|
|
|
40
40
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
41
41
|
step: number;
|
|
42
42
|
value: (string | number)[];
|
|
43
|
-
placeholder: string[];
|
|
44
43
|
max: number;
|
|
45
44
|
min: number;
|
|
46
45
|
editable: boolean;
|
|
46
|
+
placeholder: string[];
|
|
47
47
|
precision: number;
|
|
48
48
|
perfix: string;
|
|
49
49
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
@@ -92,10 +92,10 @@ declare const ApSizeInput: {
|
|
|
92
92
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
93
93
|
step: number;
|
|
94
94
|
value: (string | number)[];
|
|
95
|
-
placeholder: string[];
|
|
96
95
|
max: number;
|
|
97
96
|
min: number;
|
|
98
97
|
editable: boolean;
|
|
98
|
+
placeholder: string[];
|
|
99
99
|
precision: number;
|
|
100
100
|
perfix: string;
|
|
101
101
|
}>;
|
|
@@ -141,10 +141,10 @@ declare const ApSizeInput: {
|
|
|
141
141
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
142
142
|
step: number;
|
|
143
143
|
value: (string | number)[];
|
|
144
|
-
placeholder: string[];
|
|
145
144
|
max: number;
|
|
146
145
|
min: number;
|
|
147
146
|
editable: boolean;
|
|
147
|
+
placeholder: string[];
|
|
148
148
|
precision: number;
|
|
149
149
|
perfix: string;
|
|
150
150
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
@@ -45,19 +45,19 @@ declare const ApTableModal: {
|
|
|
45
45
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
46
46
|
}, PublicProps, {
|
|
47
47
|
mask: boolean;
|
|
48
|
-
api: (params: any) => Promise<{
|
|
49
|
-
records: any[];
|
|
50
|
-
total: number;
|
|
51
|
-
}>;
|
|
52
|
-
maskClosable: boolean;
|
|
53
48
|
confirmLoading: boolean;
|
|
54
49
|
closable: boolean;
|
|
55
50
|
centered: boolean;
|
|
51
|
+
maskClosable: boolean;
|
|
56
52
|
forceRender: boolean;
|
|
57
53
|
destroyOnClose: boolean;
|
|
58
54
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
59
55
|
keyboard: boolean;
|
|
60
56
|
focusTriggerAfterClose: boolean;
|
|
57
|
+
api: (params: any) => Promise<{
|
|
58
|
+
records: any[];
|
|
59
|
+
total: number;
|
|
60
|
+
}>;
|
|
61
61
|
maxCount: number;
|
|
62
62
|
isRenderModalTitleSuffix: boolean;
|
|
63
63
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
@@ -131,19 +131,19 @@ declare const ApTableModal: {
|
|
|
131
131
|
} | null;
|
|
132
132
|
}, {}, {}, {}, {
|
|
133
133
|
mask: boolean;
|
|
134
|
-
api: (params: any) => Promise<{
|
|
135
|
-
records: any[];
|
|
136
|
-
total: number;
|
|
137
|
-
}>;
|
|
138
|
-
maskClosable: boolean;
|
|
139
134
|
confirmLoading: boolean;
|
|
140
135
|
closable: boolean;
|
|
141
136
|
centered: boolean;
|
|
137
|
+
maskClosable: boolean;
|
|
142
138
|
forceRender: boolean;
|
|
143
139
|
destroyOnClose: boolean;
|
|
144
140
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
145
141
|
keyboard: boolean;
|
|
146
142
|
focusTriggerAfterClose: boolean;
|
|
143
|
+
api: (params: any) => Promise<{
|
|
144
|
+
records: any[];
|
|
145
|
+
total: number;
|
|
146
|
+
}>;
|
|
147
147
|
maxCount: number;
|
|
148
148
|
isRenderModalTitleSuffix: boolean;
|
|
149
149
|
}>;
|
|
@@ -187,19 +187,19 @@ declare const ApTableModal: {
|
|
|
187
187
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
188
188
|
}, string, {
|
|
189
189
|
mask: boolean;
|
|
190
|
-
api: (params: any) => Promise<{
|
|
191
|
-
records: any[];
|
|
192
|
-
total: number;
|
|
193
|
-
}>;
|
|
194
|
-
maskClosable: boolean;
|
|
195
190
|
confirmLoading: boolean;
|
|
196
191
|
closable: boolean;
|
|
197
192
|
centered: boolean;
|
|
193
|
+
maskClosable: boolean;
|
|
198
194
|
forceRender: boolean;
|
|
199
195
|
destroyOnClose: boolean;
|
|
200
196
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
201
197
|
keyboard: boolean;
|
|
202
198
|
focusTriggerAfterClose: boolean;
|
|
199
|
+
api: (params: any) => Promise<{
|
|
200
|
+
records: any[];
|
|
201
|
+
total: number;
|
|
202
|
+
}>;
|
|
203
203
|
maxCount: number;
|
|
204
204
|
isRenderModalTitleSuffix: boolean;
|
|
205
205
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
@@ -40,19 +40,19 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
40
40
|
onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
42
|
mask: boolean;
|
|
43
|
-
api: (params: any) => Promise<{
|
|
44
|
-
records: any[];
|
|
45
|
-
total: number;
|
|
46
|
-
}>;
|
|
47
|
-
maskClosable: boolean;
|
|
48
43
|
confirmLoading: boolean;
|
|
49
44
|
closable: boolean;
|
|
50
45
|
centered: boolean;
|
|
46
|
+
maskClosable: boolean;
|
|
51
47
|
forceRender: boolean;
|
|
52
48
|
destroyOnClose: boolean;
|
|
53
49
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
54
50
|
keyboard: boolean;
|
|
55
51
|
focusTriggerAfterClose: boolean;
|
|
52
|
+
api: (params: any) => Promise<{
|
|
53
|
+
records: any[];
|
|
54
|
+
total: number;
|
|
55
|
+
}>;
|
|
56
56
|
maxCount: number;
|
|
57
57
|
isRenderModalTitleSuffix: boolean;
|
|
58
58
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApViewProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
|
|
4
|
+
maxViewNum: number;
|
|
5
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { defineComponent as M, computed as N, ref as p, createVNode as g, watch as S, onMounted as Y, createBlock as $, openBlock as j, unref as w, normalizeClass as x, withCtx as z, createElementVNode as W } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import q from "./icons/line-down.vue.mjs";
|
|
4
|
+
import { ApBatchActionGroup as H } from "../ap-batch-action-group/index.mjs";
|
|
5
|
+
import "./components/main-button-content.vue.mjs";
|
|
6
|
+
import "./components/menu-list-content.vue.mjs";
|
|
7
|
+
import { useViewProvide as J } from "./hooks/use-view-provide.mjs";
|
|
8
|
+
import { useInjectApTable as Q } from "../../ap-table/context.mjs";
|
|
9
|
+
import { SYSTEM_VIEW_KEY as y } from "./utils/enum.mjs";
|
|
10
|
+
import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import h from "./components/main-button-content.vue2.mjs";
|
|
14
|
+
import R from "./components/menu-list-content.vue2.mjs";
|
|
15
|
+
const fe = /* @__PURE__ */ M({
|
|
16
|
+
__name: "ap-view",
|
|
17
|
+
props: {
|
|
18
|
+
tableKey: {},
|
|
19
|
+
saveDataSource: {},
|
|
20
|
+
viewCacheOption: {},
|
|
21
|
+
maxViewNum: {
|
|
22
|
+
default: 20
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(E) {
|
|
26
|
+
const c = E, L = X("viewCacheOption"), {
|
|
27
|
+
b: d
|
|
28
|
+
} = Z("ap-view"), {
|
|
29
|
+
t: T
|
|
30
|
+
} = U(), V = N(() => ({
|
|
31
|
+
viewKey: y,
|
|
32
|
+
viewName: T("ap.apView.systemView")
|
|
33
|
+
})), {
|
|
34
|
+
getSearchFormValues: k,
|
|
35
|
+
setSearchFormValues: A,
|
|
36
|
+
submit: B,
|
|
37
|
+
reset: F
|
|
38
|
+
} = Q(), G = p(!1), K = p(!1), r = p("system"), P = {
|
|
39
|
+
dropdownType: "dropdown",
|
|
40
|
+
content: g(h, {
|
|
41
|
+
maxViewNum: c.maxViewNum
|
|
42
|
+
}, null)
|
|
43
|
+
}, o = p([V.value]), D = N(() => o.value.map((t) => ({
|
|
44
|
+
id: t.viewKey,
|
|
45
|
+
content: g(R, {
|
|
46
|
+
view: t
|
|
47
|
+
}, null)
|
|
48
|
+
}))), n = {
|
|
49
|
+
getSearchFormValues: k,
|
|
50
|
+
setSearchFormValues: A,
|
|
51
|
+
submit: B,
|
|
52
|
+
reset: F,
|
|
53
|
+
...c.saveDataSource
|
|
54
|
+
}, e = {
|
|
55
|
+
...L.value,
|
|
56
|
+
...c.viewCacheOption
|
|
57
|
+
}, _ = () => {
|
|
58
|
+
const t = o.value.find((s) => s.isDefault);
|
|
59
|
+
return (t == null ? void 0 : t.viewKey) ?? y;
|
|
60
|
+
}, m = {
|
|
61
|
+
getViewList: async (t) => {
|
|
62
|
+
var s;
|
|
63
|
+
try {
|
|
64
|
+
const {
|
|
65
|
+
tableKey: a
|
|
66
|
+
} = t, l = await ((s = e == null ? void 0 : e.getViewList) == null ? void 0 : s.call(e, {
|
|
67
|
+
tableKey: a
|
|
68
|
+
}));
|
|
69
|
+
return o.value = [V.value, ...l ?? []], r.value = _(), o.value;
|
|
70
|
+
} catch {
|
|
71
|
+
return o.value = [V.value], r.value = y, o.value;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
addView: async (t) => {
|
|
75
|
+
var u;
|
|
76
|
+
const {
|
|
77
|
+
tableKey: s,
|
|
78
|
+
viewKey: a,
|
|
79
|
+
viewName: l,
|
|
80
|
+
isDefault: i,
|
|
81
|
+
viewConfig: f
|
|
82
|
+
} = t;
|
|
83
|
+
await ((u = e == null ? void 0 : e.addView) == null ? void 0 : u.call(e, {
|
|
84
|
+
tableKey: s,
|
|
85
|
+
viewKey: a,
|
|
86
|
+
viewName: l,
|
|
87
|
+
isDefault: i,
|
|
88
|
+
viewConfig: f
|
|
89
|
+
})), i && (o.value = o.value.map((v) => ({
|
|
90
|
+
...v,
|
|
91
|
+
isDefault: !1
|
|
92
|
+
}))), o.value = [...o.value, {
|
|
93
|
+
viewKey: a,
|
|
94
|
+
viewName: l,
|
|
95
|
+
isDefault: i,
|
|
96
|
+
viewConfig: f
|
|
97
|
+
}], r.value = a;
|
|
98
|
+
},
|
|
99
|
+
changeView: async (t) => {
|
|
100
|
+
var v;
|
|
101
|
+
const {
|
|
102
|
+
tableKey: s,
|
|
103
|
+
viewKey: a,
|
|
104
|
+
viewName: l,
|
|
105
|
+
isDefault: i,
|
|
106
|
+
viewConfig: f
|
|
107
|
+
} = t;
|
|
108
|
+
await ((v = e == null ? void 0 : e.changeView) == null ? void 0 : v.call(e, {
|
|
109
|
+
tableKey: s,
|
|
110
|
+
viewKey: a,
|
|
111
|
+
viewName: l,
|
|
112
|
+
isDefault: i,
|
|
113
|
+
viewConfig: f
|
|
114
|
+
})), i && (o.value = o.value.map((b) => ({
|
|
115
|
+
...b,
|
|
116
|
+
isDefault: !1
|
|
117
|
+
})));
|
|
118
|
+
const u = o.value.find((b) => b.viewKey === a);
|
|
119
|
+
u && (u.viewName = l, u.isDefault = i, u.viewConfig = f), r.value = a;
|
|
120
|
+
},
|
|
121
|
+
removeView: async (t) => {
|
|
122
|
+
var l;
|
|
123
|
+
const {
|
|
124
|
+
tableKey: s,
|
|
125
|
+
viewKey: a
|
|
126
|
+
} = t;
|
|
127
|
+
await ((l = e == null ? void 0 : e.removeView) == null ? void 0 : l.call(e, {
|
|
128
|
+
tableKey: s,
|
|
129
|
+
viewKey: a
|
|
130
|
+
})), o.value = o.value.filter((i) => i.viewKey !== a), a === r.value && (r.value = _());
|
|
131
|
+
}
|
|
132
|
+
}, I = {
|
|
133
|
+
tableKey: c.tableKey,
|
|
134
|
+
currentViewKey: r,
|
|
135
|
+
popoverOpen: G,
|
|
136
|
+
menuOpen: K,
|
|
137
|
+
viewList: o,
|
|
138
|
+
viewListCRUD: m,
|
|
139
|
+
saveDataSource: n
|
|
140
|
+
};
|
|
141
|
+
return S(r, (t) => {
|
|
142
|
+
const s = o.value.find((a) => a.viewKey === t);
|
|
143
|
+
s && setTimeout(() => {
|
|
144
|
+
var a, l, i;
|
|
145
|
+
s.viewKey === y ? (a = n.reset) == null || a.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, s.viewConfig ?? {}), (i = n.submit) == null || i.call(n));
|
|
146
|
+
});
|
|
147
|
+
}), J(I), Y(() => {
|
|
148
|
+
var t;
|
|
149
|
+
(t = m == null ? void 0 : m.getViewList) == null || t.call(m, {
|
|
150
|
+
tableKey: c.tableKey
|
|
151
|
+
});
|
|
152
|
+
}), (t, s) => (j(), $(w(H), {
|
|
153
|
+
open: K.value,
|
|
154
|
+
"onUpdate:open": s[0] || (s[0] = (a) => K.value = a),
|
|
155
|
+
class: x([w(d)()]),
|
|
156
|
+
"button-props": P,
|
|
157
|
+
"menu-list": D.value,
|
|
158
|
+
"overlay-class-name": [w(d)("overlay")],
|
|
159
|
+
trigger: "click",
|
|
160
|
+
placement: "bottom"
|
|
161
|
+
}, {
|
|
162
|
+
icon: z(() => [W("div", {
|
|
163
|
+
class: x([w(d)("icon")])
|
|
164
|
+
}, [g(q)], 2)]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["open", "class", "menu-list", "overlay-class-name"]));
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
export {
|
|
170
|
+
fe as default
|
|
171
|
+
};
|