@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
|
@@ -11,6 +11,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
11
11
|
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
14
|
+
import { ViewCacheOption } from '..';
|
|
14
15
|
import { RecursivePartial } from '../type';
|
|
15
16
|
export declare const globalConfigCached: Ref<ConfigProviderProps>;
|
|
16
17
|
export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
@@ -166,6 +167,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
166
167
|
scrollYDomName: {
|
|
167
168
|
type: StringConstructor;
|
|
168
169
|
};
|
|
170
|
+
viewCacheOption: {
|
|
171
|
+
type: PropType<ViewCacheOption>;
|
|
172
|
+
default: () => {};
|
|
173
|
+
};
|
|
169
174
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
170
175
|
iconPrefixCls: StringConstructor;
|
|
171
176
|
getTargetContainer: {
|
|
@@ -319,6 +324,10 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
319
324
|
scrollYDomName: {
|
|
320
325
|
type: StringConstructor;
|
|
321
326
|
};
|
|
327
|
+
viewCacheOption: {
|
|
328
|
+
type: PropType<ViewCacheOption>;
|
|
329
|
+
default: () => {};
|
|
330
|
+
};
|
|
322
331
|
}>> & Readonly<{}>, {
|
|
323
332
|
input: {
|
|
324
333
|
autocomplete?: string;
|
|
@@ -338,6 +347,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
338
347
|
pagination: {
|
|
339
348
|
showSizeChanger?: boolean;
|
|
340
349
|
};
|
|
350
|
+
apUpload: ApUploadConfig;
|
|
341
351
|
csp: CSPConfig;
|
|
342
352
|
autoInsertSpaceInButton: boolean;
|
|
343
353
|
locale: Locale;
|
|
@@ -352,7 +362,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
352
362
|
disabled?: boolean;
|
|
353
363
|
};
|
|
354
364
|
api: ApiType;
|
|
355
|
-
apUpload: ApUploadConfig;
|
|
356
365
|
apDescriptions: ApDescriptionsConfig;
|
|
357
366
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
358
367
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
@@ -469,7 +478,22 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
469
478
|
};
|
|
470
479
|
};
|
|
471
480
|
};
|
|
481
|
+
'ap-view': {
|
|
482
|
+
icon: {
|
|
483
|
+
color: string;
|
|
484
|
+
};
|
|
485
|
+
bg: {
|
|
486
|
+
color: string;
|
|
487
|
+
};
|
|
488
|
+
message: {
|
|
489
|
+
color: string;
|
|
490
|
+
};
|
|
491
|
+
border: {
|
|
492
|
+
color: string;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
472
495
|
}>;
|
|
473
496
|
exportField: ExportField;
|
|
497
|
+
viewCacheOption: ViewCacheOption;
|
|
474
498
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
475
499
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { isVNode as v, ref as P, defineComponent as V, computed as i, unref as r, watch as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { useGlobalConfig as d, provideGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { mergeAntdProviderConfigWithCache as
|
|
6
|
-
import { generateCssVar as
|
|
7
|
-
import { DEFAULT_NAMESPACE as
|
|
8
|
-
function
|
|
1
|
+
import { isVNode as v, ref as P, defineComponent as V, computed as i, unref as r, watch as u, createVNode as M, renderSlot as b } from "vue";
|
|
2
|
+
import { ConfigProvider as w } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useGlobalConfig as d, provideGlobalConfig as A } from "./hooks/use-global-config.mjs";
|
|
4
|
+
import { configProviderProps as D } from "./config-provider-props.mjs";
|
|
5
|
+
import { mergeAntdProviderConfigWithCache as N, mergeAntdProvideConfig as U } from "../utils/config-provider-preset.mjs";
|
|
6
|
+
import { generateCssVar as h, aplusCssVar as S, adminCssVar as T, setCSSVariables as y } from "./css-var.mjs";
|
|
7
|
+
import { DEFAULT_NAMESPACE as E, DEFAULT_UIMODE as O } from "./constants.mjs";
|
|
8
|
+
function F(e) {
|
|
9
9
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
|
|
10
10
|
}
|
|
11
11
|
const n = P({}), W = /* @__PURE__ */ V({
|
|
12
12
|
name: "AplusConfigProvider",
|
|
13
|
-
props:
|
|
13
|
+
props: D(),
|
|
14
14
|
setup(e, {
|
|
15
15
|
slots: f
|
|
16
16
|
}) {
|
|
17
|
-
const a = d("namespace"),
|
|
17
|
+
const a = d("namespace"), c = d("uiMode"), m = i(() => e.namespace ? e.namespace : r(a) ? r(a) : E), l = i(() => e.uiMode ? e.uiMode : r(c) ? r(c) : O), s = i(() => ({
|
|
18
18
|
namespace: r(m),
|
|
19
19
|
aplusLocale: e.aplusLocale,
|
|
20
20
|
api: e.api,
|
|
21
|
-
uiMode: r(
|
|
21
|
+
uiMode: r(l),
|
|
22
22
|
apUpload: e.apUpload,
|
|
23
23
|
apDescriptions: e.apDescriptions,
|
|
24
24
|
valueTypeMap: e.valueTypeMap,
|
|
25
25
|
downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
|
|
26
26
|
exportField: e.exportField,
|
|
27
|
-
scrollYDomName: e.scrollYDomName
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
scrollYDomName: e.scrollYDomName,
|
|
28
|
+
viewCacheOption: e.viewCacheOption
|
|
29
|
+
})), t = A(s);
|
|
30
|
+
return u(() => e, (o) => {
|
|
31
|
+
n.value = N(U(o), n.value);
|
|
31
32
|
}, {
|
|
32
33
|
deep: !0,
|
|
33
34
|
immediate: !0
|
|
34
|
-
}), typeof window < "u" &&
|
|
35
|
-
const g =
|
|
36
|
-
...o === "aplus" ?
|
|
35
|
+
}), typeof window < "u" && u(() => [r(l), e.cssVar], ([o, C]) => {
|
|
36
|
+
const g = h(C), p = {
|
|
37
|
+
...o === "aplus" ? S : T,
|
|
37
38
|
...g
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
y(p);
|
|
40
41
|
}, {
|
|
41
42
|
immediate: !0
|
|
42
43
|
}), () => {
|
|
43
44
|
let o;
|
|
44
|
-
return M(
|
|
45
|
+
return M(w, n.value, F(o = b(f, "default", {
|
|
45
46
|
config: t == null ? void 0 : t.value
|
|
46
47
|
})) ? o : {
|
|
47
48
|
default: () => [o]
|
|
@@ -112,6 +112,20 @@ declare const aplusCssVarObj: {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
+
'ap-view': {
|
|
116
|
+
icon: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
119
|
+
bg: {
|
|
120
|
+
color: string;
|
|
121
|
+
};
|
|
122
|
+
message: {
|
|
123
|
+
color: string;
|
|
124
|
+
};
|
|
125
|
+
border: {
|
|
126
|
+
color: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
115
129
|
};
|
|
116
130
|
export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
|
|
117
131
|
export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
|
|
@@ -110,6 +110,20 @@ const b = {
|
|
|
110
110
|
minor: "#8896B0"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
},
|
|
114
|
+
"ap-view": {
|
|
115
|
+
icon: {
|
|
116
|
+
color: "#8896B0"
|
|
117
|
+
},
|
|
118
|
+
bg: {
|
|
119
|
+
color: "#F6F9FA"
|
|
120
|
+
},
|
|
121
|
+
message: {
|
|
122
|
+
color: "#abb7cc"
|
|
123
|
+
},
|
|
124
|
+
border: {
|
|
125
|
+
color: "#DEE4ED"
|
|
126
|
+
}
|
|
113
127
|
}
|
|
114
128
|
}, F = {
|
|
115
129
|
"ap-form": {
|
|
@@ -223,28 +237,42 @@ const b = {
|
|
|
223
237
|
minor: "#999999"
|
|
224
238
|
}
|
|
225
239
|
}
|
|
240
|
+
},
|
|
241
|
+
"ap-view": {
|
|
242
|
+
icon: {
|
|
243
|
+
color: "#999999"
|
|
244
|
+
},
|
|
245
|
+
bg: {
|
|
246
|
+
color: "#fafafa"
|
|
247
|
+
},
|
|
248
|
+
message: {
|
|
249
|
+
color: "#bfbfbf"
|
|
250
|
+
},
|
|
251
|
+
border: {
|
|
252
|
+
color: "#d9d9d9"
|
|
253
|
+
}
|
|
226
254
|
}
|
|
227
255
|
};
|
|
228
|
-
function
|
|
256
|
+
function n(a) {
|
|
229
257
|
const o = {};
|
|
230
|
-
function r(
|
|
231
|
-
const s = Object.keys(
|
|
258
|
+
function r(t, i) {
|
|
259
|
+
const s = Object.keys(t);
|
|
232
260
|
for (const c of s) {
|
|
233
|
-
const
|
|
234
|
-
|
|
261
|
+
const e = t[c], l = [...i, c];
|
|
262
|
+
e !== null && typeof e == "object" ? r(e, l) : o[`--${l.join("-")}`] = e;
|
|
235
263
|
}
|
|
236
264
|
}
|
|
237
|
-
return r(
|
|
265
|
+
return r(a, []), o;
|
|
238
266
|
}
|
|
239
|
-
const
|
|
240
|
-
function u(
|
|
241
|
-
Object.entries(
|
|
267
|
+
const d = n(b), p = n(F);
|
|
268
|
+
function u(a) {
|
|
269
|
+
Object.entries(a).forEach(([o, r]) => {
|
|
242
270
|
document.documentElement.style.setProperty(o, r);
|
|
243
271
|
});
|
|
244
272
|
}
|
|
245
273
|
export {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
274
|
+
p as adminCssVar,
|
|
275
|
+
d as aplusCssVar,
|
|
276
|
+
n as generateCssVar,
|
|
249
277
|
u as setCSSVariables
|
|
250
278
|
};
|
|
@@ -12,6 +12,7 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
|
|
14
14
|
import { CssVarType } from '../css-var';
|
|
15
|
+
import { ViewCacheOption } from '../..';
|
|
15
16
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
16
17
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
17
18
|
export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
|
|
@@ -168,4 +169,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
168
169
|
scrollYDomName: {
|
|
169
170
|
type: StringConstructor;
|
|
170
171
|
};
|
|
172
|
+
viewCacheOption: {
|
|
173
|
+
type: PropType<ViewCacheOption>;
|
|
174
|
+
default: () => {};
|
|
175
|
+
};
|
|
171
176
|
}>>>> | undefined;
|
|
@@ -10,6 +10,7 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
|
10
10
|
import { LocaleType } from '../locale';
|
|
11
11
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
12
12
|
import { RecursivePartial } from '../type';
|
|
13
|
+
import { ViewCacheOption } from '..';
|
|
13
14
|
import { CssVarType } from './css-var';
|
|
14
15
|
export * from './config-provider-props';
|
|
15
16
|
export * from './constants';
|
|
@@ -274,6 +275,20 @@ export declare const APConfigProvider: {
|
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
};
|
|
278
|
+
'ap-view': {
|
|
279
|
+
icon: {
|
|
280
|
+
color: string;
|
|
281
|
+
};
|
|
282
|
+
bg: {
|
|
283
|
+
color: string;
|
|
284
|
+
};
|
|
285
|
+
message: {
|
|
286
|
+
color: string;
|
|
287
|
+
};
|
|
288
|
+
border: {
|
|
289
|
+
color: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
277
292
|
}>>;
|
|
278
293
|
default: () => {};
|
|
279
294
|
};
|
|
@@ -284,6 +299,10 @@ export declare const APConfigProvider: {
|
|
|
284
299
|
scrollYDomName: {
|
|
285
300
|
type: StringConstructor;
|
|
286
301
|
};
|
|
302
|
+
viewCacheOption: {
|
|
303
|
+
type: PropType<ViewCacheOption>;
|
|
304
|
+
default: () => {};
|
|
305
|
+
};
|
|
287
306
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
288
307
|
input: {
|
|
289
308
|
autocomplete?: string;
|
|
@@ -303,6 +322,7 @@ export declare const APConfigProvider: {
|
|
|
303
322
|
pagination: {
|
|
304
323
|
showSizeChanger?: boolean;
|
|
305
324
|
};
|
|
325
|
+
apUpload: ApUploadConfig;
|
|
306
326
|
csp: CSPConfig;
|
|
307
327
|
autoInsertSpaceInButton: boolean;
|
|
308
328
|
locale: Locale;
|
|
@@ -317,7 +337,6 @@ export declare const APConfigProvider: {
|
|
|
317
337
|
disabled?: boolean;
|
|
318
338
|
};
|
|
319
339
|
api: ApiType;
|
|
320
|
-
apUpload: ApUploadConfig;
|
|
321
340
|
apDescriptions: ApDescriptionsConfig;
|
|
322
341
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
323
342
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
@@ -434,8 +453,23 @@ export declare const APConfigProvider: {
|
|
|
434
453
|
};
|
|
435
454
|
};
|
|
436
455
|
};
|
|
456
|
+
'ap-view': {
|
|
457
|
+
icon: {
|
|
458
|
+
color: string;
|
|
459
|
+
};
|
|
460
|
+
bg: {
|
|
461
|
+
color: string;
|
|
462
|
+
};
|
|
463
|
+
message: {
|
|
464
|
+
color: string;
|
|
465
|
+
};
|
|
466
|
+
border: {
|
|
467
|
+
color: string;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
437
470
|
}>;
|
|
438
471
|
exportField: ExportField;
|
|
472
|
+
viewCacheOption: ViewCacheOption;
|
|
439
473
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
440
474
|
P: {};
|
|
441
475
|
B: {};
|
|
@@ -699,6 +733,20 @@ export declare const APConfigProvider: {
|
|
|
699
733
|
};
|
|
700
734
|
};
|
|
701
735
|
};
|
|
736
|
+
'ap-view': {
|
|
737
|
+
icon: {
|
|
738
|
+
color: string;
|
|
739
|
+
};
|
|
740
|
+
bg: {
|
|
741
|
+
color: string;
|
|
742
|
+
};
|
|
743
|
+
message: {
|
|
744
|
+
color: string;
|
|
745
|
+
};
|
|
746
|
+
border: {
|
|
747
|
+
color: string;
|
|
748
|
+
};
|
|
749
|
+
};
|
|
702
750
|
}>>;
|
|
703
751
|
default: () => {};
|
|
704
752
|
};
|
|
@@ -709,6 +757,10 @@ export declare const APConfigProvider: {
|
|
|
709
757
|
scrollYDomName: {
|
|
710
758
|
type: StringConstructor;
|
|
711
759
|
};
|
|
760
|
+
viewCacheOption: {
|
|
761
|
+
type: PropType<ViewCacheOption>;
|
|
762
|
+
default: () => {};
|
|
763
|
+
};
|
|
712
764
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
713
765
|
input: {
|
|
714
766
|
autocomplete?: string;
|
|
@@ -728,6 +780,7 @@ export declare const APConfigProvider: {
|
|
|
728
780
|
pagination: {
|
|
729
781
|
showSizeChanger?: boolean;
|
|
730
782
|
};
|
|
783
|
+
apUpload: ApUploadConfig;
|
|
731
784
|
csp: CSPConfig;
|
|
732
785
|
autoInsertSpaceInButton: boolean;
|
|
733
786
|
locale: Locale;
|
|
@@ -742,7 +795,6 @@ export declare const APConfigProvider: {
|
|
|
742
795
|
disabled?: boolean;
|
|
743
796
|
};
|
|
744
797
|
api: ApiType;
|
|
745
|
-
apUpload: ApUploadConfig;
|
|
746
798
|
apDescriptions: ApDescriptionsConfig;
|
|
747
799
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
748
800
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
@@ -859,8 +911,23 @@ export declare const APConfigProvider: {
|
|
|
859
911
|
};
|
|
860
912
|
};
|
|
861
913
|
};
|
|
914
|
+
'ap-view': {
|
|
915
|
+
icon: {
|
|
916
|
+
color: string;
|
|
917
|
+
};
|
|
918
|
+
bg: {
|
|
919
|
+
color: string;
|
|
920
|
+
};
|
|
921
|
+
message: {
|
|
922
|
+
color: string;
|
|
923
|
+
};
|
|
924
|
+
border: {
|
|
925
|
+
color: string;
|
|
926
|
+
};
|
|
927
|
+
};
|
|
862
928
|
}>;
|
|
863
929
|
exportField: ExportField;
|
|
930
|
+
viewCacheOption: ViewCacheOption;
|
|
864
931
|
}>;
|
|
865
932
|
__isFragment?: never;
|
|
866
933
|
__isTeleport?: never;
|
|
@@ -1018,6 +1085,10 @@ export declare const APConfigProvider: {
|
|
|
1018
1085
|
scrollYDomName: {
|
|
1019
1086
|
type: StringConstructor;
|
|
1020
1087
|
};
|
|
1088
|
+
viewCacheOption: {
|
|
1089
|
+
type: PropType<ViewCacheOption>;
|
|
1090
|
+
default: () => {};
|
|
1091
|
+
};
|
|
1021
1092
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1022
1093
|
input: {
|
|
1023
1094
|
autocomplete?: string;
|
|
@@ -1037,6 +1108,7 @@ export declare const APConfigProvider: {
|
|
|
1037
1108
|
pagination: {
|
|
1038
1109
|
showSizeChanger?: boolean;
|
|
1039
1110
|
};
|
|
1111
|
+
apUpload: ApUploadConfig;
|
|
1040
1112
|
csp: CSPConfig;
|
|
1041
1113
|
autoInsertSpaceInButton: boolean;
|
|
1042
1114
|
locale: Locale;
|
|
@@ -1051,7 +1123,6 @@ export declare const APConfigProvider: {
|
|
|
1051
1123
|
disabled?: boolean;
|
|
1052
1124
|
};
|
|
1053
1125
|
api: ApiType;
|
|
1054
|
-
apUpload: ApUploadConfig;
|
|
1055
1126
|
apDescriptions: ApDescriptionsConfig;
|
|
1056
1127
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
1057
1128
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
@@ -1168,8 +1239,23 @@ export declare const APConfigProvider: {
|
|
|
1168
1239
|
};
|
|
1169
1240
|
};
|
|
1170
1241
|
};
|
|
1242
|
+
'ap-view': {
|
|
1243
|
+
icon: {
|
|
1244
|
+
color: string;
|
|
1245
|
+
};
|
|
1246
|
+
bg: {
|
|
1247
|
+
color: string;
|
|
1248
|
+
};
|
|
1249
|
+
message: {
|
|
1250
|
+
color: string;
|
|
1251
|
+
};
|
|
1252
|
+
border: {
|
|
1253
|
+
color: string;
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1171
1256
|
}>;
|
|
1172
1257
|
exportField: ExportField;
|
|
1258
|
+
viewCacheOption: ViewCacheOption;
|
|
1173
1259
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
1174
1260
|
$props: {
|
|
1175
1261
|
onClick?: () => void;
|