@aplus-frontend/ui 0.5.36 → 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/editable/form-item.vue.mjs +62 -56
- package/es/src/ap-grid/editable/index.vue.mjs +82 -76
- 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-list/index.vue.mjs +145 -138
- package/es/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.mjs +28 -30
- 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/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/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-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.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 +66 -4
- package/theme/ap-list/index.less +41 -3
- 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 +378 -19
- 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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const q=require("@ant-design/icons-vue"),L=require("@aplus-frontend/hooks"),S=require("../../ap-table/context.js"),N=require("../../config-provider/hooks/use-namespace.js"),x=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-global-config.js"),b=require("./MenuItemGroup.vue2.js"),R=require("../../ap-button/ap-button.vue.js"),D=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(_,{expose:h}){const{b:d}=N.useNamespace("ap-batch-action-group"),{t:P}=x.useLocale(),{columns:w,dataSource:y}=S.useInjectApTable(),t=_,g=A.useGlobalConfig("uiMode"),{hasPermission:C}=L.usePermission(),i=e.useSlots(),p=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.dropdownType)||"default"}),s=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.type)||"borderLink"}),m=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.content)||P("ap.apApBatchActionGroup.batchOperation")}),k=e.computed(()=>(t==null?void 0:t.selectedRows)||[]),l=e.computed(()=>{var o;return((o=t==null?void 0:t.buttonProps)==null?void 0:o.disabled)??(Array.isArray(t.selectedRows)?k.value.length===0:!1)}),B=e.computed(()=>{const o={aplus:"#0070FF",admin:"#34b77c"};return s.value==="borderLink"?l.value?void 0:o[g.value]||o.aplus:void 0}),a=e.computed(()=>{var o;return((o=t==null?void 0:t.menuList)==null?void 0:o.filter(n=>{let r=n==null?void 0:n.ifShow;return!(n!=null&&n.ifShow)&&(n!=null&&n.auth)&&(r=()=>C(n.auth)),(r==null?void 0:r())??!0}))||[]});function v(){return t!=null&&t.buttonProps?{...t.buttonProps,type:s.value==="borderLink"?"default":s.value}:{}}return h({columns:w,dataSource:y}),(o,n)=>a.value.length&&p.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(f.DropdownButton),e.mergeProps({key:0,class:[e.unref(d)()]},{...o.$attrs,...v(),disabled:l.value}),e.createSlots({overlay:e.withCtx(()=>[e.createVNode(b.default,e.mergeProps({...t},{"menu-list":a.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:B.value})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[m.value]))))],4)]),_:2},[e.renderList(i,(r,u)=>({name:u,fn:e.withCtx(c=>[e.renderSlot(o.$slots,u,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040,["class"])):a.value.length&&p.value==="default"?(e.openBlock(),e.createBlock(e.unref(f.Dropdown),{key:1,class:e.normalizeClass([e.unref(d)()]),disabled:l.value},e.createSlots({overlay:e.withCtx(()=>[e.createVNode(b.default,e.mergeProps({...t},{"menu-list":a.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(R.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...v(),type:s.value})),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[m.value])))),e.createVNode(e.unref(q.DownOutlined))]),_:1},16)]),_:2},[e.renderList(i,(r,u)=>({name:u,fn:e.withCtx(c=>[e.renderSlot(o.$slots,u,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1032,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=D;
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ap-view.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const L=require("./icons/line-down.vue.js"),P=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const B=require("./hooks/use-view-provide.js"),G=require("../../ap-table/context.js"),y=require("./utils/enum.js"),W=require("../../config-provider/hooks/use-global-config.js"),k=require("../../config-provider/hooks/use-namespace.js"),A=require("../../config-provider/hooks/use-locale.js"),F=require("./components/main-button-content.vue2.js"),j=require("./components/menu-list-content.vue2.js"),z=e.defineComponent({__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20}},setup(b){const m=b,g=W.useGlobalConfig("viewCacheOption"),{b:d}=k.useNamespace("ap-view"),{t:q}=A.useLocale(),p=e.computed(()=>({viewKey:y.SYSTEM_VIEW_KEY,viewName:q("ap.apView.systemView")})),{getSearchFormValues:E,setSearchFormValues:N,submit:S,reset:T}=G.useInjectApTable(),Y=e.ref(!1),V=e.ref(!1),r=e.ref("system"),x={dropdownType:"dropdown",content:e.createVNode(F.default,{maxViewNum:m.maxViewNum},null)},s=e.ref([p.value]),M=e.computed(()=>s.value.map(a=>({id:a.viewKey,content:e.createVNode(j.default,{view:a},null)}))),i={getSearchFormValues:E,setSearchFormValues:N,submit:S,reset:T,...m.saveDataSource},t={...g.value,...m.viewCacheOption},K=()=>{const a=s.value.find(n=>n.isDefault);return(a==null?void 0:a.viewKey)??y.SYSTEM_VIEW_KEY},v={getViewList:async a=>{var n;try{const{tableKey:u}=a,l=await((n=t==null?void 0:t.getViewList)==null?void 0:n.call(t,{tableKey:u}));return s.value=[p.value,...l??[]],r.value=K(),s.value}catch{return s.value=[p.value],r.value=y.SYSTEM_VIEW_KEY,s.value}},addView:async a=>{var c;const{tableKey:n,viewKey:u,viewName:l,isDefault:o,viewConfig:f}=a;await((c=t==null?void 0:t.addView)==null?void 0:c.call(t,{tableKey:n,viewKey:u,viewName:l,isDefault:o,viewConfig:f})),o&&(s.value=s.value.map(w=>({...w,isDefault:!1}))),s.value=[...s.value,{viewKey:u,viewName:l,isDefault:o,viewConfig:f}],r.value=u},changeView:async a=>{var w;const{tableKey:n,viewKey:u,viewName:l,isDefault:o,viewConfig:f}=a;await((w=t==null?void 0:t.changeView)==null?void 0:w.call(t,{tableKey:n,viewKey:u,viewName:l,isDefault:o,viewConfig:f})),o&&(s.value=s.value.map(_=>({..._,isDefault:!1})));const c=s.value.find(_=>_.viewKey===u);c&&(c.viewName=l,c.isDefault=o,c.viewConfig=f),r.value=u},removeView:async a=>{var l;const{tableKey:n,viewKey:u}=a;await((l=t==null?void 0:t.removeView)==null?void 0:l.call(t,{tableKey:n,viewKey:u})),s.value=s.value.filter(o=>o.viewKey!==u),u===r.value&&(r.value=K())}},I={tableKey:m.tableKey,currentViewKey:r,popoverOpen:Y,menuOpen:V,viewList:s,viewListCRUD:v,saveDataSource:i};return e.watch(r,a=>{const n=s.value.find(u=>u.viewKey===a);n&&setTimeout(()=>{var u,l,o;n.viewKey===y.SYSTEM_VIEW_KEY?(u=i.reset)==null||u.call(i):((l=i.setSearchFormValues)==null||l.call(i,n.viewConfig??{}),(o=i.submit)==null||o.call(i))})}),B.useViewProvide(I),e.onMounted(()=>{var a;(a=v==null?void 0:v.getViewList)==null||a.call(v,{tableKey:m.tableKey})}),(a,n)=>(e.openBlock(),e.createBlock(e.unref(P.ApBatchActionGroup),{open:V.value,"onUpdate:open":n[0]||(n[0]=u=>V.value=u),class:e.normalizeClass([e.unref(d)()]),"button-props":x,"menu-list":M.value,"overlay-class-name":[e.unref(d)("overlay")],trigger:"click",placement:"bottom"},{icon:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(d)("icon")])},[e.createVNode(L.default)],2)]),_:1},8,["open","class","menu-list","overlay-class-name"]))}});exports.default=z;
|