@aplus-frontend/ui 7.6.0 → 7.7.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/src/ag-grid/hooks/use-columns-def.mjs +32 -31
- package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
- package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
- package/es/src/ag-grid/index.vue.mjs +22 -21
- package/es/src/ag-grid/renderer/number.mjs +7 -7
- package/es/src/ag-grid/style/custom-header.mjs +3 -3
- package/es/src/ag-grid/style/index.mjs +1 -1
- package/es/src/ap-action/style/index.mjs +1 -1
- package/es/src/ap-drawer/style/index.mjs +12 -12
- package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
- package/es/src/ap-field/number/helper.mjs +1 -1
- package/es/src/ap-field/number/index.vue.mjs +9 -9
- package/es/src/ap-field/number/read.vue2.mjs +5 -5
- package/es/src/ap-field/style/checkbox.d.ts +2 -2
- package/es/src/ap-field/style/number.d.ts +2 -2
- package/es/src/ap-field/style/radio.d.ts +2 -2
- package/es/src/ap-field/style/textarea.d.ts +2 -2
- package/es/src/ap-field/switch/index.vue.mjs +4 -3
- package/es/src/ap-form/ap-form.vue2.mjs +18 -17
- package/es/src/ap-form/item/index.vue.mjs +6 -6
- package/es/src/ap-form/item-group/helper.mjs +8 -7
- package/es/src/ap-form/item-group/index.vue.mjs +15 -14
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
- package/es/src/ap-form/search-form/index.vue.mjs +12 -11
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-form/style/item.mjs +15 -15
- package/es/src/ap-form/style/modal-form.mjs +2 -1
- package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
- package/es/src/ap-form/style/search-form.d.ts +7 -1
- package/es/src/ap-form/style/search-form.mjs +37 -34
- package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
- package/es/src/ap-grid/editable/index.vue.mjs +4 -3
- package/es/src/ap-grid/index.vue.mjs +13 -12
- package/es/src/ap-grid/style/editable.mjs +7 -7
- package/es/src/ap-grid/style/index.mjs +11 -11
- package/es/src/ap-grid/utils/table.mjs +14 -13
- package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
- package/es/src/ap-list/style/index.mjs +1 -1
- package/es/src/ap-pro-card/style/divider.mjs +2 -2
- package/es/src/ap-pro-card/style/index.mjs +14 -14
- package/es/src/ap-pro-card/style/operation.mjs +1 -2
- package/es/src/ap-pro-card/style/statistic.mjs +12 -12
- package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
- package/es/src/ap-pro-card/style/title.mjs +13 -33
- package/es/src/ap-table/ap-table.vue2.mjs +4 -3
- package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
- package/es/src/ap-table/style/index-comp.d.ts +2 -1
- package/es/src/ap-table/style/index-comp.mjs +15 -12
- package/es/src/ap-table/style/index.d.ts +3 -0
- package/es/src/ap-table/style/index.mjs +14 -11
- package/es/src/ap-table/style/setting.d.ts +2 -1
- package/es/src/ap-table/style/setting.mjs +73 -61
- package/es/src/ap-table/utils.mjs +61 -62
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
- package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
- package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
- package/es/src/business/ap-appendix/style/index.mjs +20 -21
- package/es/src/business/ap-attachment/style/index.d.ts +6 -0
- package/es/src/business/ap-attachment/style/index.mjs +28 -25
- package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/es/src/business/ap-batch-action/style/index.mjs +18 -18
- package/es/src/business/ap-card/style/index.d.ts +2 -2
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.mjs +16 -22
- package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
- package/es/src/business/ap-descriptions/style/index.mjs +6 -5
- package/es/src/business/ap-download/style/index.mjs +4 -4
- package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
- package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
- package/es/src/business/ap-image/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.mjs +8 -7
- package/es/src/business/ap-input-radio/style/index.mjs +1 -1
- package/es/src/business/ap-label/style/index.d.ts +14 -0
- package/es/src/business/ap-label/style/index.mjs +29 -19
- package/es/src/business/ap-ladder/style/index.mjs +7 -6
- package/es/src/business/ap-product-info/style/index.d.ts +10 -0
- package/es/src/business/ap-product-info/style/index.mjs +35 -28
- package/es/src/business/ap-radio-group/style/index.mjs +3 -3
- package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/es/src/business/ap-select-layout/style/index.mjs +59 -53
- package/es/src/business/ap-size-input/style/index.mjs +3 -3
- package/es/src/business/ap-status/style/index.mjs +1 -1
- package/es/src/business/ap-summary/style/index.d.ts +10 -0
- package/es/src/business/ap-summary/style/index.mjs +18 -11
- package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/es/src/business/ap-table-modal/style/index.mjs +17 -12
- package/es/src/business/ap-tag/style/index.mjs +33 -31
- package/es/src/business/ap-title/style/index.d.ts +2 -1
- package/es/src/business/ap-title/style/index.mjs +41 -49
- package/es/src/business/ap-upload/style/index.mjs +10 -5
- package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
- package/es/src/business/ap-upload/style/picture.d.ts +3 -2
- package/es/src/business/ap-upload/style/picture.mjs +26 -26
- package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/es/src/business/ap-upload/style/single-file.mjs +30 -29
- package/es/src/business/ap-upload/style/token.d.ts +19 -0
- package/es/src/business/ap-upload/style/token.mjs +9 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
- package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
- package/es/src/business/ap-view/style/index.d.ts +6 -2
- package/es/src/business/ap-view/style/index.mjs +43 -35
- package/es/src/business/batch-input-group/index.vue.mjs +23 -22
- package/es/src/business/batch-input-group/style/index.mjs +2 -2
- package/es/src/check-card/style/index.mjs +17 -17
- package/es/src/design-token/constants.mjs +9 -1
- package/es/src/design-token/interface.d.ts +137 -12
- package/es/src/editable-table/form-item.vue.mjs +4 -3
- package/es/src/editable-table/index.vue.mjs +4 -3
- package/es/src/editable-table/style/index.mjs +11 -11
- package/es/src/editable-table/utils.d.ts +1 -1
- package/es/src/editable-table/utils.mjs +27 -26
- package/es/src/hooks/useMessage.mjs +4 -4
- package/es/src/loading-bar/index.vue2.mjs +4 -3
- package/es/src/loading-bar/style/index.mjs +10 -10
- package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
- package/es/src/scroll-view/index.vue.mjs +4 -3
- package/es/src/splitter/style/index.mjs +11 -11
- package/es/src/text/index.vue.mjs +8 -7
- package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
- package/es/src/utils/decimal.d.ts +36 -0
- package/es/src/utils/decimal.mjs +45 -0
- package/es/src/utils/format.d.ts +21 -0
- package/es/src/utils/format.mjs +32 -0
- package/es/src/utils/index.d.ts +2 -1
- package/es/src/utils/index.mjs +20 -22
- package/es/src/utils/is.d.ts +54 -0
- package/es/src/utils/is.mjs +26 -0
- package/es/src/utils/slot.mjs +1 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/renderer/number.js +1 -1
- package/lib/src/ag-grid/style/custom-header.js +1 -1
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-drawer/style/index.js +1 -1
- package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/style/checkbox.d.ts +2 -2
- package/lib/src/ap-field/style/number.d.ts +2 -2
- package/lib/src/ap-field/style/radio.d.ts +2 -2
- package/lib/src/ap-field/style/textarea.d.ts +2 -2
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/helper.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/search-form.d.ts +7 -1
- package/lib/src/ap-form/style/search-form.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-grid/style/editable.js +1 -1
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/divider.js +1 -1
- package/lib/src/ap-pro-card/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/operation.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
- package/lib/src/ap-pro-card/style/title.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/style/index-comp.d.ts +2 -1
- package/lib/src/ap-table/style/index-comp.js +1 -1
- package/lib/src/ap-table/style/index.d.ts +3 -0
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.d.ts +2 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
- package/lib/src/business/ag-grid-modal/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/business/ap-descriptions/style/index.js +1 -1
- package/lib/src/business/ap-download/style/index.js +1 -1
- package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/style/index.js +1 -1
- package/lib/src/business/ap-image/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.js +1 -1
- package/lib/src/business/ap-label/style/index.d.ts +14 -0
- package/lib/src/business/ap-label/style/index.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
- package/lib/src/business/ap-select-layout/style/index.js +1 -1
- package/lib/src/business/ap-size-input/style/index.js +1 -1
- package/lib/src/business/ap-status/style/index.js +1 -1
- package/lib/src/business/ap-summary/style/index.d.ts +10 -0
- package/lib/src/business/ap-summary/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-tag/style/index.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -1
- package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
- package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
- package/lib/src/business/ap-upload/style/picture.js +1 -1
- package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
- package/lib/src/business/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-upload/style/token.d.ts +19 -0
- package/lib/src/business/ap-upload/style/token.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/style/index.d.ts +6 -2
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +137 -12
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/style/index.js +1 -1
- package/lib/src/editable-table/utils.d.ts +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/loading-bar/index.vue2.js +1 -1
- package/lib/src/loading-bar/style/index.js +3 -3
- package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
- package/lib/src/utils/decimal.d.ts +36 -0
- package/lib/src/utils/decimal.js +1 -0
- package/lib/src/utils/format.d.ts +21 -0
- package/lib/src/utils/format.js +1 -0
- package/lib/src/utils/index.d.ts +2 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/is.d.ts +54 -0
- package/lib/src/utils/is.js +1 -0
- package/lib/src/utils/slot.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +4 -4
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
- package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/es/src/utils/tree.d.ts +0 -38
- package/es/src/utils/uuid.d.ts +0 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
- package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
- package/lib/src/utils/tree.d.ts +0 -38
- package/lib/src/utils/uuid.d.ts +0 -2
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
export type SearchFormToken = {
|
|
4
|
+
/**
|
|
5
|
+
* 查询表单筛选弹框触发按钮徽标记尺寸
|
|
6
|
+
*/
|
|
7
|
+
searchFormPopoverFilterBadgeSize: number;
|
|
8
|
+
};
|
|
3
9
|
export declare const genPopoverStyle: StyleMixin;
|
|
4
|
-
export declare const genSearchFormStyle: GenStyleFunc
|
|
10
|
+
export declare const genSearchFormStyle: GenStyleFunc<SearchFormToken>;
|
|
5
11
|
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
12
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
3
|
-
const { namespace:
|
|
1
|
+
import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const i = (r) => {
|
|
3
|
+
const { namespace: e } = r, o = `.${e}-ap-form-search-form__popover`;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[o]: {
|
|
6
6
|
".ant-form-item": {
|
|
7
|
-
marginBlockEnd:
|
|
7
|
+
marginBlockEnd: r.space
|
|
8
8
|
},
|
|
9
9
|
".ant-popover-arrow": {
|
|
10
10
|
display: "none"
|
|
@@ -12,29 +12,26 @@ const a = (o) => {
|
|
|
12
12
|
".ant-popover-inner": {
|
|
13
13
|
padding: 0
|
|
14
14
|
},
|
|
15
|
-
[`${
|
|
16
|
-
padding: `${
|
|
15
|
+
[`${o}-content`]: {
|
|
16
|
+
padding: `${r.spaceLG} ${r.spaceXL} ${r.spaceXL}`,
|
|
17
17
|
textarea: {
|
|
18
18
|
padding: 0
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
[`${
|
|
22
|
-
padding: `${
|
|
23
|
-
"&-confirm-btn": {
|
|
24
|
-
marginLeft: "10px"
|
|
25
|
-
},
|
|
21
|
+
[`${o}-footer`]: {
|
|
22
|
+
padding: `${r.spaceLG} ${r.spaceXL}`,
|
|
26
23
|
"& button.ant-btn": {
|
|
27
|
-
paddingInline:
|
|
24
|
+
paddingInline: r.spaceXL
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
|
-
}, t = (
|
|
33
|
-
const { componentCls:
|
|
29
|
+
}, t = (r) => {
|
|
30
|
+
const { componentCls: e } = r;
|
|
34
31
|
return {
|
|
35
|
-
[
|
|
32
|
+
[e]: {
|
|
36
33
|
".ant-form-item": {
|
|
37
|
-
marginBlockEnd:
|
|
34
|
+
marginBlockEnd: r.space
|
|
38
35
|
},
|
|
39
36
|
".ant-form-item-control": {
|
|
40
37
|
".ant-picker": {
|
|
@@ -45,22 +42,22 @@ const a = (o) => {
|
|
|
45
42
|
}
|
|
46
43
|
},
|
|
47
44
|
// for more filter trigger button
|
|
48
|
-
[`${
|
|
45
|
+
[`${e}-trigger-btn`]: {
|
|
49
46
|
fontSize: 0,
|
|
50
47
|
"&-active": {
|
|
51
|
-
color:
|
|
52
|
-
borderColor:
|
|
48
|
+
color: r.hoverColorBase,
|
|
49
|
+
borderColor: r.hoverColorBase,
|
|
53
50
|
zIndex: 1
|
|
54
51
|
},
|
|
55
52
|
"&-badge": {
|
|
56
53
|
display: "inline-block",
|
|
57
|
-
padding:
|
|
58
|
-
minWidth:
|
|
59
|
-
height:
|
|
60
|
-
backgroundColor:
|
|
61
|
-
fontSize:
|
|
54
|
+
padding: r.spaceXXS,
|
|
55
|
+
minWidth: r.searchFormPopoverFilterBadgeSize,
|
|
56
|
+
height: r.searchFormPopoverFilterBadgeSize,
|
|
57
|
+
backgroundColor: r.colorPrimary,
|
|
58
|
+
fontSize: r.fontSizeSM,
|
|
62
59
|
lineHeight: 1,
|
|
63
|
-
borderRadius:
|
|
60
|
+
borderRadius: r.calc(r.searchFormPopoverFilterBadgeSize).div(2).equal(),
|
|
64
61
|
color: "#fff",
|
|
65
62
|
position: "absolute",
|
|
66
63
|
top: 0,
|
|
@@ -69,7 +66,7 @@ const a = (o) => {
|
|
|
69
66
|
boxShadow: "0 0 0 1px #fff"
|
|
70
67
|
}
|
|
71
68
|
},
|
|
72
|
-
[`${
|
|
69
|
+
[`${e}-column-setting-trigger-wrapper`]: {
|
|
73
70
|
flexShrink: 0,
|
|
74
71
|
".ant-btn:not(:only-child)": {
|
|
75
72
|
"&:first-child": {
|
|
@@ -89,18 +86,24 @@ const a = (o) => {
|
|
|
89
86
|
}
|
|
90
87
|
}
|
|
91
88
|
},
|
|
92
|
-
[`${
|
|
93
|
-
paddingInline:
|
|
89
|
+
[`${e}-action-btn`]: {
|
|
90
|
+
paddingInline: r.spaceLG
|
|
94
91
|
},
|
|
95
|
-
[`${
|
|
96
|
-
backgroundColor:
|
|
92
|
+
[`${e}-action-btn-reset`]: {
|
|
93
|
+
backgroundColor: r.colorBg1
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
|
-
...
|
|
96
|
+
...i(r)
|
|
100
97
|
};
|
|
101
|
-
}, p =
|
|
98
|
+
}, p = a(
|
|
99
|
+
"ApForm.SearchForm",
|
|
100
|
+
(r) => [t(r)],
|
|
101
|
+
{
|
|
102
|
+
searchFormPopoverFilterBadgeSize: 14
|
|
103
|
+
}
|
|
104
|
+
);
|
|
102
105
|
export {
|
|
103
106
|
p as default,
|
|
104
|
-
|
|
107
|
+
i as genPopoverStyle,
|
|
105
108
|
t as genSearchFormStyle
|
|
106
109
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as z, useSlots as G, toRef as K, ref as c, unref as s,
|
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isUndefined as Y, isNumber as d, cloneDeep as Z, isArray as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import "../../utils/index.mjs";
|
|
6
6
|
import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
8
|
import { useInjectForm as ae } from "../../ap-form/context.mjs";
|
|
@@ -11,8 +11,9 @@ import { useDevWarning as ne } from "../../utils/warning.mjs";
|
|
|
11
11
|
import le from "../style/editable.mjs";
|
|
12
12
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import { isDef as C } from "../../utils/is.mjs";
|
|
14
15
|
import ie from "../index.vue.mjs";
|
|
15
|
-
const
|
|
16
|
+
const Fe = /* @__PURE__ */ z({
|
|
16
17
|
name: "EditableGridFormItem",
|
|
17
18
|
__name: "form-item",
|
|
18
19
|
props: {
|
|
@@ -285,5 +286,5 @@ const Se = /* @__PURE__ */ z({
|
|
|
285
286
|
}
|
|
286
287
|
});
|
|
287
288
|
export {
|
|
288
|
-
|
|
289
|
+
Fe as default
|
|
289
290
|
};
|
|
@@ -3,7 +3,7 @@ import { ApForm as m } from "../../ap-form/index.mjs";
|
|
|
3
3
|
import { isEqual as ee, isArray as c, isUndefined as te, isNumber as g, cloneDeep as ae, omit as oe } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import "../../utils/index.mjs";
|
|
7
7
|
import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
|
|
8
8
|
import "../index.vue2.mjs";
|
|
9
9
|
import { useDevWarning as le } from "../../utils/warning.mjs";
|
|
@@ -11,8 +11,9 @@ import se from "../style/editable.mjs";
|
|
|
11
11
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
import { useControllableValue as ie } from "../../hooks/useControllableValue.mjs";
|
|
13
13
|
import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import { isDef as b } from "../../utils/is.mjs";
|
|
14
15
|
import de from "../index.vue.mjs";
|
|
15
|
-
const
|
|
16
|
+
const Ee = /* @__PURE__ */ W({
|
|
16
17
|
name: "EditableGrid",
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: {
|
|
@@ -313,5 +314,5 @@ const Fe = /* @__PURE__ */ W({
|
|
|
313
314
|
}
|
|
314
315
|
});
|
|
315
316
|
export {
|
|
316
|
-
|
|
317
|
+
Ee as default
|
|
317
318
|
};
|
|
@@ -16,16 +16,17 @@ import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as wt, sizeMap as St
|
|
|
16
16
|
import { useRenderColumns as bt } from "./hooks/use-render-columns.mjs";
|
|
17
17
|
import { useToken as xt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
18
18
|
import "../scroll-bar/index.mjs";
|
|
19
|
-
import
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useTableStyle as
|
|
22
|
-
import { useDevWarning as
|
|
23
|
-
import
|
|
24
|
-
import { useNamespace as
|
|
19
|
+
import "../utils/index.mjs";
|
|
20
|
+
import { getValidVNodeList as kt } from "../utils/slot.mjs";
|
|
21
|
+
import { useTableStyle as Ft } from "./hooks/use-table-style.mjs";
|
|
22
|
+
import { useDevWarning as Et } from "../utils/warning.mjs";
|
|
23
|
+
import It from "./style/index.mjs";
|
|
24
|
+
import { useNamespace as Bt } from "../config-provider/hooks/use-namespace.mjs";
|
|
25
25
|
import { useGlobalConfig as ce } from "../config-provider/hooks/use-global-config.mjs";
|
|
26
|
-
import { useLocale as
|
|
26
|
+
import { useLocale as Tt } from "../config-provider/hooks/use-locale.mjs";
|
|
27
|
+
import { isDef as Nt } from "../utils/is.mjs";
|
|
27
28
|
import Pt from "../scroll-bar/index.vue.mjs";
|
|
28
|
-
const
|
|
29
|
+
const io = /* @__PURE__ */ Qe({
|
|
29
30
|
name: "ApGrid",
|
|
30
31
|
__name: "index",
|
|
31
32
|
props: {
|
|
@@ -119,12 +120,12 @@ const so = /* @__PURE__ */ Qe({
|
|
|
119
120
|
},
|
|
120
121
|
setup(pe, { expose: fe }) {
|
|
121
122
|
const T = Ye(), o = pe, x = Ze()?.appContext.app;
|
|
122
|
-
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0),
|
|
123
|
+
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0), Et("ApGrid")(
|
|
123
124
|
!1,
|
|
124
125
|
"breaking",
|
|
125
126
|
"AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
|
|
126
127
|
);
|
|
127
|
-
const { e: k, b: u, be: me } =
|
|
128
|
+
const { e: k, b: u, be: me } = Bt("ap-grid"), ge = It("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = Ft(), [, ye] = xt(), { t: we } = Tt(), N = y(!0);
|
|
128
129
|
ne.setConfig({
|
|
129
130
|
i18n: (e, a) => we(`ap.${e}`, a)
|
|
130
131
|
});
|
|
@@ -167,7 +168,7 @@ const so = /* @__PURE__ */ Qe({
|
|
|
167
168
|
r,
|
|
168
169
|
t(he)
|
|
169
170
|
), r;
|
|
170
|
-
}) || [])), xe = n(() =>
|
|
171
|
+
}) || [])), xe = n(() => Nt(o.manual) ? o.manual : kt(T.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
|
|
171
172
|
u(),
|
|
172
173
|
o.card ? null : u("wrapper"),
|
|
173
174
|
o.adaptive ? u("adaptive") : null,
|
|
@@ -548,5 +549,5 @@ const so = /* @__PURE__ */ Qe({
|
|
|
548
549
|
}
|
|
549
550
|
});
|
|
550
551
|
export {
|
|
551
|
-
|
|
552
|
+
io as default
|
|
552
553
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { multiRows as
|
|
1
|
+
import { multiRows as r } from "../../style/index.mjs";
|
|
2
2
|
import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
|
|
3
|
-
const
|
|
3
|
+
const i = (e) => {
|
|
4
4
|
const { componentCls: t } = e;
|
|
5
5
|
return {
|
|
6
6
|
[t]: {
|
|
7
7
|
[`${t}__header-cell--required`]: {
|
|
8
|
-
color:
|
|
9
|
-
paddingRight:
|
|
8
|
+
color: e.colorError,
|
|
9
|
+
paddingRight: e.spaceXXS
|
|
10
10
|
},
|
|
11
11
|
[`${t}-table-header`]: {
|
|
12
12
|
"&__title": {
|
|
13
|
-
...
|
|
13
|
+
...r(e),
|
|
14
14
|
textAlign: "right"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -24,9 +24,9 @@ const o = (e) => {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
}, d = l("EditableGrid", (e) => [
|
|
27
|
-
|
|
27
|
+
i(e)
|
|
28
28
|
]);
|
|
29
29
|
export {
|
|
30
30
|
d as default,
|
|
31
|
-
|
|
31
|
+
i as genEditableGridStyle
|
|
32
32
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { genSettingTriggerBtnStyle as
|
|
1
|
+
import { genSettingTriggerBtnStyle as n } from "../../ap-table/style/index.mjs";
|
|
2
2
|
import { multiRows as o, resetScrollbar as d } from "../../style/index.mjs";
|
|
3
3
|
import { genComponentStyleHook as p } from "../../utils/cssinjs/index.mjs";
|
|
4
4
|
import { aplusApGridIconFont as c } from "./font.mjs";
|
|
5
5
|
const g = (e) => {
|
|
6
|
-
const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`,
|
|
6
|
+
const { componentCls: i, namespace: t } = e, l = `${i}-vxe-wrapper`, a = `${i}-pagination-wrapper`, r = `.${t}-scroll-bar`;
|
|
7
7
|
return [
|
|
8
8
|
c,
|
|
9
9
|
{
|
|
@@ -50,11 +50,11 @@ const g = (e) => {
|
|
|
50
50
|
position: "sticky",
|
|
51
51
|
bottom: 0
|
|
52
52
|
},
|
|
53
|
-
[`&:has(${
|
|
53
|
+
[`&:has(${r})`]: {
|
|
54
54
|
[a]: {
|
|
55
55
|
"ul.ant-pagination": {
|
|
56
56
|
marginBlockStart: 0,
|
|
57
|
-
paddingBlockStart:
|
|
57
|
+
paddingBlockStart: e.spaceXS
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
".vxe-table--scroll-x-wrapper": {
|
|
@@ -85,7 +85,7 @@ const g = (e) => {
|
|
|
85
85
|
paddingBlockEnd: 0,
|
|
86
86
|
backgroundColor: "#fff",
|
|
87
87
|
borderRadius: e.borderRadius,
|
|
88
|
-
marginBlockEnd:
|
|
88
|
+
marginBlockEnd: e.spaceMD
|
|
89
89
|
},
|
|
90
90
|
[`${i}__table-wrapper`]: {
|
|
91
91
|
flex: 1,
|
|
@@ -109,7 +109,7 @@ const g = (e) => {
|
|
|
109
109
|
display: "flex",
|
|
110
110
|
flexWrap: "wrap",
|
|
111
111
|
alignItems: "center",
|
|
112
|
-
rowGap:
|
|
112
|
+
rowGap: e.space,
|
|
113
113
|
".ant-pagination-total-text": {
|
|
114
114
|
flex: 1,
|
|
115
115
|
height: "unset",
|
|
@@ -142,7 +142,7 @@ const g = (e) => {
|
|
|
142
142
|
color: e.textColor1
|
|
143
143
|
},
|
|
144
144
|
[`${i}-pagination--total-right`]: {
|
|
145
|
-
paddingInlineStart:
|
|
145
|
+
paddingInlineStart: e.spaceLG
|
|
146
146
|
},
|
|
147
147
|
[`${i}-pagination-total-wrapper`]: {
|
|
148
148
|
color: e.textColor2
|
|
@@ -157,7 +157,7 @@ const g = (e) => {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
...
|
|
160
|
+
...n(e),
|
|
161
161
|
// 实现表头不换行排列
|
|
162
162
|
"th.vxe-header--column .vxe-cell--wrapper": {
|
|
163
163
|
display: "flex",
|
|
@@ -196,7 +196,7 @@ const g = (e) => {
|
|
|
196
196
|
},
|
|
197
197
|
".vxe-cell--checkbox.is--disabled > .vxe-checkbox--icon": {
|
|
198
198
|
backgroundColor: e.tableHeaderBg,
|
|
199
|
-
borderRadius:
|
|
199
|
+
borderRadius: e.borderRadius
|
|
200
200
|
},
|
|
201
201
|
".vxe-cell--checkbox span.vxe-checkbox--icon": {
|
|
202
202
|
verticalAlign: "text-wrap"
|
|
@@ -208,7 +208,7 @@ const g = (e) => {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
];
|
|
211
|
-
},
|
|
211
|
+
}, b = p(
|
|
212
212
|
"ApGrid",
|
|
213
213
|
(e) => [g(e)],
|
|
214
214
|
{
|
|
@@ -216,6 +216,6 @@ const g = (e) => {
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
export {
|
|
219
|
-
|
|
219
|
+
b as default,
|
|
220
220
|
g as genApGridStyle
|
|
221
221
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { omit as d, isUndefined as s, isFunction as g, isNumber as m } from "lodash-unified";
|
|
2
|
-
import
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isDef as C } from "../../utils/is.mjs";
|
|
3
4
|
const b = 20, y = 50, v = (e) => e.some((i) => !!i.html);
|
|
4
|
-
function
|
|
5
|
+
function z(e, i) {
|
|
5
6
|
const t = {
|
|
6
7
|
...d(e, [
|
|
7
8
|
"columns",
|
|
@@ -62,9 +63,9 @@ function k(e, i) {
|
|
|
62
63
|
}, t;
|
|
63
64
|
}
|
|
64
65
|
function l(e, i, t) {
|
|
65
|
-
const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig",
|
|
66
|
+
const n = i === "X", r = n ? "x" : "y", a = n ? "virtualXConfig" : "virtualYConfig", o = t?.[r], u = o !== !1, f = n ? b : y, c = m(o) && o >= 0 ? o : f;
|
|
66
67
|
e[a] = {
|
|
67
|
-
enabled:
|
|
68
|
+
enabled: u,
|
|
68
69
|
gt: c,
|
|
69
70
|
oSize: t?.oSize || 0
|
|
70
71
|
};
|
|
@@ -72,18 +73,18 @@ function l(e, i, t) {
|
|
|
72
73
|
function x(e) {
|
|
73
74
|
return e === !0 ? "left" : e;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function F(e, i, t) {
|
|
76
77
|
const n = e === !0 || !e.type ? "checkbox" : e.type, r = (t === "mini" ? 9 * 2 : 12 * 2) + 16, a = e === !0 ? r : e.columnWidth || r;
|
|
77
|
-
let
|
|
78
|
-
return
|
|
79
|
-
(
|
|
78
|
+
let o = e === !0 ? void 0 : x(e.fixed);
|
|
79
|
+
return o || (o === !1 ? o = void 0 : o = i.some(
|
|
80
|
+
(u) => u.fixed === "left" || u.fixed === !0
|
|
80
81
|
) ? "left" : void 0), {
|
|
81
82
|
type: n,
|
|
82
83
|
width: a,
|
|
83
|
-
fixed:
|
|
84
|
+
fixed: o
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function K(e) {
|
|
87
88
|
const i = e?.width || "auto";
|
|
88
89
|
return {
|
|
89
90
|
type: "expand",
|
|
@@ -106,7 +107,7 @@ function R(e, i) {
|
|
|
106
107
|
return n += r, e.querySelector("span.anticon-question-circle") && (n += 20), n += h(e.querySelector(".vxe-cell--sort")) + h(e.querySelector(".vxe-cell--filter")), Math.ceil(n);
|
|
107
108
|
}
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
K as getRowExpandProps,
|
|
111
|
+
F as getRowSelectionProps,
|
|
112
|
+
z as toVxeProps
|
|
112
113
|
};
|
|
@@ -12,8 +12,8 @@ export declare const useOfflineList: <DataType = Recordable>(params: ApListProps
|
|
|
12
12
|
current: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
total: number;
|
|
15
|
-
showSizeChanger: boolean
|
|
16
|
-
showQuickJumper: boolean
|
|
15
|
+
showSizeChanger: NonNullable<boolean | undefined>;
|
|
16
|
+
showQuickJumper: NonNullable<boolean | undefined>;
|
|
17
17
|
showLessItems: boolean | undefined;
|
|
18
18
|
size: "default" | "small";
|
|
19
19
|
pageSizeOptions: (string | number)[];
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { ref as c, computed as g, unref as n } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { isUndefined as
|
|
4
|
-
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isUndefined as d } from "lodash-unified";
|
|
4
|
+
import { isDef as f } from "../../utils/is.mjs";
|
|
5
|
+
const C = (e) => {
|
|
5
6
|
const i = c(
|
|
6
7
|
e.pagination && e.pagination.defaultCurrent || 1
|
|
7
8
|
), o = c(
|
|
8
9
|
e.pagination && e.pagination.defaultPageSize || 10
|
|
9
10
|
);
|
|
10
|
-
function s(t,
|
|
11
|
-
i.value = t, o.value =
|
|
11
|
+
function s(t, r) {
|
|
12
|
+
i.value = t, o.value = r;
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const p = g(() => e.dataSource ? e.pagination === !1 ? [...e.dataSource] : e.dataSource.slice(
|
|
14
15
|
(n(i) - 1) * n(o),
|
|
15
16
|
n(i) * n(o)
|
|
16
17
|
) : []);
|
|
17
18
|
return {
|
|
18
19
|
pagination: g(() => {
|
|
19
|
-
const { showLessItems: t, showSizeChanger:
|
|
20
|
+
const { showLessItems: t, showSizeChanger: r, showQuickJumper: a, pageSizeOptions: u } = e.pagination || {};
|
|
20
21
|
return {
|
|
21
22
|
current: n(i),
|
|
22
23
|
pageSize: n(o),
|
|
23
24
|
total: e.dataSource?.length || 0,
|
|
24
|
-
showSizeChanger: f(
|
|
25
|
-
showQuickJumper: f(
|
|
25
|
+
showSizeChanger: f(r) ? r : !t,
|
|
26
|
+
showQuickJumper: f(a) ? a : !t,
|
|
26
27
|
showLessItems: t,
|
|
27
28
|
size: "default",
|
|
28
|
-
pageSizeOptions:
|
|
29
|
+
pageSizeOptions: d(u) ? ["10", "20", "50", "100"] : u
|
|
29
30
|
};
|
|
30
31
|
}),
|
|
31
|
-
dataSource:
|
|
32
|
+
dataSource: p,
|
|
32
33
|
onChange: s
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
C as useOfflineList
|
|
37
38
|
};
|
|
@@ -8,7 +8,7 @@ const a = (r) => {
|
|
|
8
8
|
backgroundColor: r.apProCardBorderColorSplit,
|
|
9
9
|
"&-vertical": {
|
|
10
10
|
position: "relative",
|
|
11
|
-
marginInline:
|
|
11
|
+
marginInline: r.space,
|
|
12
12
|
"&::after": {
|
|
13
13
|
position: "absolute",
|
|
14
14
|
height: r.apProCardDividerLineHeight,
|
|
@@ -21,7 +21,7 @@ const a = (r) => {
|
|
|
21
21
|
},
|
|
22
22
|
"&-horizontal": {
|
|
23
23
|
position: "relative",
|
|
24
|
-
marginBlock:
|
|
24
|
+
marginBlock: r.space,
|
|
25
25
|
"&::after": {
|
|
26
26
|
position: "absolute",
|
|
27
27
|
width: r.apProCardDividerLineHeight,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
import { defaultToken as
|
|
3
|
-
const
|
|
1
|
+
import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
import { defaultToken as e } from "./token.mjs";
|
|
3
|
+
const t = () => {
|
|
4
4
|
const r = {};
|
|
5
5
|
r["&-span-0"] = {
|
|
6
6
|
display: "none"
|
|
@@ -13,7 +13,7 @@ const i = () => {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
return r;
|
|
16
|
-
},
|
|
16
|
+
}, d = (r) => {
|
|
17
17
|
const { componentCls: o } = r, a = `${r.apProCardBorderLineWidth} ${r.apProCardBorderLineType} ${r.apProCardBorderColorSplit}`;
|
|
18
18
|
return {
|
|
19
19
|
[o]: {
|
|
@@ -23,7 +23,7 @@ const i = () => {
|
|
|
23
23
|
boxSizing: "border-box",
|
|
24
24
|
padding: 0,
|
|
25
25
|
width: "100%",
|
|
26
|
-
transition:
|
|
26
|
+
transition: `all ${r.motionDurationSlow}`,
|
|
27
27
|
backgroundColor: r.apProCardColorBgContainer,
|
|
28
28
|
borderRadius: r.apProCardBorderRadius,
|
|
29
29
|
fontSize: r.fontSize,
|
|
@@ -37,7 +37,7 @@ const i = () => {
|
|
|
37
37
|
},
|
|
38
38
|
"&-hoverable": {
|
|
39
39
|
cursor: "pointer",
|
|
40
|
-
transition:
|
|
40
|
+
transition: `box-shadow ${r.motionDurationSlow}, border-color ${r.motionDurationSlow}`,
|
|
41
41
|
"&:hover": {
|
|
42
42
|
borderColor: "transparent",
|
|
43
43
|
boxShadow: r.apProCardBoxShadow
|
|
@@ -53,7 +53,7 @@ const i = () => {
|
|
|
53
53
|
color: r.apProCardHeaderTitleFontColor,
|
|
54
54
|
fontWeight: "500",
|
|
55
55
|
"&-tooltip": {
|
|
56
|
-
marginLeft:
|
|
56
|
+
marginLeft: r.spaceXS,
|
|
57
57
|
fontSize: r.fontSize,
|
|
58
58
|
color: r.apProCardTooltipColor
|
|
59
59
|
}
|
|
@@ -70,10 +70,10 @@ const i = () => {
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
[`${o}-collapsible-icon`]: {
|
|
73
|
-
marginInlineEnd:
|
|
73
|
+
marginInlineEnd: r.spaceXS,
|
|
74
74
|
color: r.apProCardHeaderTitleFontColor,
|
|
75
75
|
fontSize: r.fontSizeLG,
|
|
76
|
-
transition:
|
|
76
|
+
transition: `transform ${r.motionDurationSlow}`,
|
|
77
77
|
"&:hover": {
|
|
78
78
|
color: r.hoverColorBase
|
|
79
79
|
},
|
|
@@ -142,7 +142,7 @@ const i = () => {
|
|
|
142
142
|
content: '""'
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
...
|
|
145
|
+
...t(r)
|
|
146
146
|
},
|
|
147
147
|
[`${o}-actions`]: {
|
|
148
148
|
borderBlockStart: a,
|
|
@@ -158,12 +158,12 @@ const i = () => {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
}, p =
|
|
161
|
+
}, p = i(
|
|
162
162
|
"ProCard",
|
|
163
|
-
(r) => [
|
|
164
|
-
|
|
163
|
+
(r) => [d(r)],
|
|
164
|
+
e
|
|
165
165
|
);
|
|
166
166
|
export {
|
|
167
167
|
p as default,
|
|
168
|
-
|
|
168
|
+
d as genProCardStyle
|
|
169
169
|
};
|