@aplus-frontend/ui 7.6.0 → 7.7.1
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/components/tooltip/index.vue.d.ts +1 -1
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -11
- 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/components/tooltip/index.vue.d.ts +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +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
|
@@ -2,11 +2,11 @@ import { defineComponent as C, ref as N, computed as D, unref as t, createElemen
|
|
|
2
2
|
import { InputNumber as M } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as T, omit as F } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
import { addZeroToDecimalPlaces as w } from "./helper.mjs";
|
|
5
|
+
import { addZeroToDecimalPlaces as W } from "./helper.mjs";
|
|
7
6
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useDefaultPlaceholder as
|
|
9
|
-
import
|
|
7
|
+
import { useDefaultPlaceholder as _ } from "../hooks/use-default-placeholder.mjs";
|
|
8
|
+
import w from "../style/index.mjs";
|
|
9
|
+
import { roundWith as L, toDecimalMark as O } from "../../utils/format.mjs";
|
|
10
10
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
12
12
|
const re = /* @__PURE__ */ C({
|
|
@@ -60,16 +60,16 @@ const re = /* @__PURE__ */ C({
|
|
|
60
60
|
},
|
|
61
61
|
emits: ["update:value"],
|
|
62
62
|
setup(m, { expose: c, emit: y }) {
|
|
63
|
-
const v = y, { b: l } = Z("field-number"), h =
|
|
63
|
+
const v = y, { b: l } = Z("field-number"), h = w("field"), o = m, n = N(), { value: p, updateValue: B } = j(
|
|
64
64
|
o,
|
|
65
65
|
v
|
|
66
|
-
), b =
|
|
66
|
+
), b = _("Number", o), k = D(() => {
|
|
67
67
|
let e = t(p);
|
|
68
68
|
if (T(e))
|
|
69
69
|
return o.emptyText;
|
|
70
|
-
o.precision && (e =
|
|
71
|
-
let a = o.thousands ?
|
|
72
|
-
return o.precision && o.limitDecimalsRetain && (a =
|
|
70
|
+
o.precision && (e = L(e, o.precision));
|
|
71
|
+
let a = o.thousands ? O(e) : String(e);
|
|
72
|
+
return o.precision && o.limitDecimalsRetain && (a = W(a, o.precision)), a;
|
|
73
73
|
});
|
|
74
74
|
function g() {
|
|
75
75
|
n.value?.focus();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as m, renderSlot as l, toDisplayString as u } from "vue";
|
|
2
2
|
import { isNil as c } from "lodash-unified";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { addZeroToDecimalPlaces as f } from "./helper.mjs";
|
|
4
|
+
import { roundWith as y, toDecimalMark as B } from "../../utils/format.mjs";
|
|
5
5
|
const h = {
|
|
6
6
|
key: 0,
|
|
7
7
|
style: { "padding-right": "4px" }
|
|
@@ -62,9 +62,9 @@ const h = {
|
|
|
62
62
|
let e = o.value;
|
|
63
63
|
if (c(e))
|
|
64
64
|
return o.emptyText;
|
|
65
|
-
o.precision && (e =
|
|
66
|
-
let t = o.thousands ?
|
|
67
|
-
return o.precision && o.limitDecimalsRetain && (t =
|
|
65
|
+
o.precision && (e = y(e, o.precision));
|
|
66
|
+
let t = o.thousands ? B(e) : String(e);
|
|
67
|
+
return o.precision && o.limitDecimalsRetain && (t = f(t, o.precision)), t;
|
|
68
68
|
});
|
|
69
69
|
return (e, t) => (n(), a("span", null, [
|
|
70
70
|
e.$slots.prefix ? (n(), a("span", h, [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genCheckboxStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genCheckboxStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genNumberStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genNumberStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genRadioStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genRadioStyle: GenStyleFunc;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const genTextareaStyle: GenStyleFunc
|
|
1
|
+
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
+
export declare const genTextareaStyle: GenStyleFunc;
|
|
@@ -2,9 +2,10 @@ import { defineComponent as z, useSlots as D, ref as T, unref as o, computed as
|
|
|
2
2
|
import { Switch as A, Popconfirm as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, isFunction as R, omit as P } from "lodash-unified";
|
|
5
|
-
import
|
|
5
|
+
import "../../utils/index.mjs";
|
|
6
6
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
7
|
-
|
|
7
|
+
import { isDef as d } from "../../utils/is.mjs";
|
|
8
|
+
const Q = /* @__PURE__ */ z({
|
|
8
9
|
name: "ApFieldSwitch",
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: {
|
|
@@ -121,5 +122,5 @@ const O = /* @__PURE__ */ z({
|
|
|
121
122
|
}
|
|
122
123
|
});
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
Q as default
|
|
125
126
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as te, reactive as re, ref as O, unref as h, nextTick as oe, toRaw as P, watch as ne, onWatcherCleanup as ie, computed as le, createBlock as se, openBlock as ae, mergeProps as ue, withCtx as ce, renderSlot as fe } from "vue";
|
|
2
2
|
import { Form as de } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useProvideForm as ge } from "./context.mjs";
|
|
4
|
-
import { isArray as f, cloneDeep as
|
|
4
|
+
import { isArray as f, cloneDeep as me, isEqual as pe, isFunction as M, isPlainObject as R, omit as he } from "lodash-unified";
|
|
5
5
|
import { useUrlSearchParams as Fe } from "@vueuse/core";
|
|
6
6
|
import { INTERNAL_FORM_INSTANCE_MARK as j } from "./constant.mjs";
|
|
7
|
-
import { getRouteType as ye
|
|
7
|
+
import { getRouteType as ye } from "../utils/index.mjs";
|
|
8
8
|
import Te from "./utils/set.mjs";
|
|
9
9
|
import { genParams as B, setToParams as x } from "./utils/params.mjs";
|
|
10
10
|
import { useInjectFormProvider as Ve } from "./provider/context.mjs";
|
|
11
11
|
import { getModelValue as W } from "./utils/get.mjs";
|
|
12
12
|
import { useDevWarning as ve } from "../utils/warning.mjs";
|
|
13
|
-
|
|
13
|
+
import { isDef as T } from "../utils/is.mjs";
|
|
14
|
+
const je = /* @__PURE__ */ te({
|
|
14
15
|
name: "ApForm",
|
|
15
16
|
__name: "ap-form",
|
|
16
17
|
props: {
|
|
@@ -62,9 +63,9 @@ const Oe = /* @__PURE__ */ te({
|
|
|
62
63
|
const s = O(), v = Fe(ye()), F = Ve(), q = ve("ApForm"), C = O(
|
|
63
64
|
n.syncToUrl ? B(n.syncToUrl, v, "get") : {}
|
|
64
65
|
);
|
|
65
|
-
let d =
|
|
66
|
+
let d = me(_()), g = {};
|
|
66
67
|
const l = re(_());
|
|
67
|
-
let
|
|
68
|
+
let m = [];
|
|
68
69
|
function _() {
|
|
69
70
|
const e = n.initialValues || {};
|
|
70
71
|
return n.syncToUrlPriority ? {
|
|
@@ -76,7 +77,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
function D(e) {
|
|
79
|
-
const t =
|
|
80
|
+
const t = p(e, g);
|
|
80
81
|
F.triggerFormFinish(n.name, e), n.syncToUrl && x(v, B(n.syncToUrl, t, "set")), n.onFinish?.(t);
|
|
81
82
|
}
|
|
82
83
|
const K = async () => {
|
|
@@ -85,7 +86,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
85
86
|
v,
|
|
86
87
|
B(
|
|
87
88
|
n.syncToUrl,
|
|
88
|
-
|
|
89
|
+
p(d, g),
|
|
89
90
|
"set"
|
|
90
91
|
)
|
|
91
92
|
);
|
|
@@ -97,10 +98,10 @@ const Oe = /* @__PURE__ */ te({
|
|
|
97
98
|
e,
|
|
98
99
|
t
|
|
99
100
|
);
|
|
100
|
-
return
|
|
101
|
+
return p(r, g);
|
|
101
102
|
}, b = (e) => e === !0 ? P(l) : s.value?.getFieldsValue(e), G = (e) => {
|
|
102
103
|
const t = b(e);
|
|
103
|
-
return
|
|
104
|
+
return p(t, g);
|
|
104
105
|
}, H = (e, t) => s.value?.validate(e, t), J = (e, t = {}) => {
|
|
105
106
|
s.value?.scrollToField(e, t);
|
|
106
107
|
}, Q = (e) => {
|
|
@@ -109,8 +110,8 @@ const Oe = /* @__PURE__ */ te({
|
|
|
109
110
|
V(e, t, r, o), y();
|
|
110
111
|
};
|
|
111
112
|
function U(e) {
|
|
112
|
-
return e(P(l)),
|
|
113
|
-
|
|
113
|
+
return e(P(l)), m.push(e), () => {
|
|
114
|
+
m = m.filter((t) => t !== e);
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
function X(e, t) {
|
|
@@ -126,7 +127,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
126
127
|
if (!T(e) || !T(t))
|
|
127
128
|
return;
|
|
128
129
|
const r = W(d, t);
|
|
129
|
-
if (
|
|
130
|
+
if (pe(r, e))
|
|
130
131
|
return;
|
|
131
132
|
const o = W(h(C), t);
|
|
132
133
|
T(o) && n.syncToUrlPriority || (V(t, e, !1), X(t, e));
|
|
@@ -159,14 +160,14 @@ const Oe = /* @__PURE__ */ te({
|
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
162
|
function y() {
|
|
162
|
-
if (
|
|
163
|
+
if (m.length) {
|
|
163
164
|
const e = P(l);
|
|
164
|
-
|
|
165
|
+
m.forEach((t) => {
|
|
165
166
|
t(e);
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function p(e, t) {
|
|
170
171
|
if (e == null)
|
|
171
172
|
return;
|
|
172
173
|
let r = f(e) ? [] : {};
|
|
@@ -179,7 +180,7 @@ const Oe = /* @__PURE__ */ te({
|
|
|
179
180
|
...c
|
|
180
181
|
} : r[o] = c : r[o] = c;
|
|
181
182
|
} else if (R(a) || f(a)) {
|
|
182
|
-
const c =
|
|
183
|
+
const c = p(
|
|
183
184
|
a,
|
|
184
185
|
i
|
|
185
186
|
);
|
|
@@ -247,5 +248,5 @@ const Oe = /* @__PURE__ */ te({
|
|
|
247
248
|
}
|
|
248
249
|
});
|
|
249
250
|
export {
|
|
250
|
-
|
|
251
|
+
je as default
|
|
251
252
|
};
|
|
@@ -6,9 +6,9 @@ import { apFormItemColPropKeys as le } from "../constant.mjs";
|
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ae } from "../context.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import ue from "
|
|
9
|
+
import { getValidVNodeList as ie } from "../../utils/slot.mjs";
|
|
10
|
+
import se from "../style/item.mjs";
|
|
11
|
+
import { isPromise as ue } from "../../utils/is.mjs";
|
|
12
12
|
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
const Ce = /* @__PURE__ */ _({
|
|
14
14
|
name: "ApFormItem",
|
|
@@ -58,10 +58,10 @@ const Ce = /* @__PURE__ */ _({
|
|
|
58
58
|
disabled: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(g, { expose: h }) {
|
|
61
|
-
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P =
|
|
61
|
+
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = se("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
|
|
62
62
|
E(async () => {
|
|
63
63
|
let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
64
|
-
|
|
64
|
+
ue(e) && (e = await e), C?.registerField({
|
|
65
65
|
name: o.name,
|
|
66
66
|
initialValue: te(e),
|
|
67
67
|
transform: o.transform
|
|
@@ -78,7 +78,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
78
78
|
const e = m.default?.() || [];
|
|
79
79
|
if (!o.name)
|
|
80
80
|
return e[0];
|
|
81
|
-
const t =
|
|
81
|
+
const t = ie(e)[0];
|
|
82
82
|
if (!t)
|
|
83
83
|
return null;
|
|
84
84
|
const l = t?.type?.props ?? {}, n = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { isFunction as c, isArray as u } from "lodash-unified";
|
|
2
|
-
import
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import { isDef as p } from "../../utils/is.mjs";
|
|
3
4
|
const s = (r) => r <= 1 ? 1 : r, o = (r, t = 1) => {
|
|
4
5
|
const n = Math.floor(24 / r), e = n * t;
|
|
5
6
|
return e > 24 ? n : e;
|
|
6
|
-
},
|
|
7
|
+
}, y = (r, t = 1) => ({
|
|
7
8
|
xs: o(s(r - 3), t),
|
|
8
9
|
sm: o(s(r - 2), t),
|
|
9
10
|
md: o(s(r - 1), t),
|
|
@@ -29,15 +30,15 @@ function f(r) {
|
|
|
29
30
|
t.push(i(e));
|
|
30
31
|
return t;
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
+
const N = (r) => {
|
|
33
34
|
const t = [];
|
|
34
35
|
return t.push(...f(r)), t;
|
|
35
36
|
};
|
|
36
|
-
function
|
|
37
|
+
function d(r) {
|
|
37
38
|
return p(r) ? (u(r) ? r : [r]).join("") : Date.now();
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y as buildColSpan,
|
|
42
|
+
N as genRealChildren,
|
|
43
|
+
d as getStringName
|
|
43
44
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as
|
|
1
|
+
import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as s, withCtx as R, createElementBlock as b, Fragment as x, renderList as j, resolveDynamicComponent as v } from "vue";
|
|
2
2
|
import { Col as F, Row as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as D, isBoolean as O, omit as V } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as $ } from "../constant.mjs";
|
|
5
5
|
import { genRealChildren as A, buildColSpan as E, getStringName as G } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useNamespace as
|
|
7
|
+
import "../../utils/index.mjs";
|
|
8
|
+
import H from "../style/item-group.mjs";
|
|
9
|
+
import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { isDef as L } from "../../utils/is.mjs";
|
|
10
11
|
function U(o) {
|
|
11
12
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !C(o);
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const ee = /* @__PURE__ */ P({
|
|
14
15
|
name: "ApFormItemGroup",
|
|
15
16
|
__name: "index",
|
|
16
17
|
props: {
|
|
@@ -29,20 +30,20 @@ const Z = /* @__PURE__ */ P({
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(o) {
|
|
32
|
-
const
|
|
33
|
+
const a = o, m = k(), {
|
|
33
34
|
b: i
|
|
34
|
-
} =
|
|
35
|
+
} = K("ap-form-item-group"), g = H("ap-form-item-group"), p = w([]);
|
|
35
36
|
S(() => {
|
|
36
|
-
|
|
37
|
+
p.value = c(m.default());
|
|
37
38
|
}), B(() => m.default(), (n) => {
|
|
38
|
-
|
|
39
|
+
p.value = c(n);
|
|
39
40
|
}, {
|
|
40
41
|
immediate: !0
|
|
41
42
|
});
|
|
42
43
|
function c(n) {
|
|
43
44
|
const l = A(n || []);
|
|
44
45
|
return r(l).map((e, y) => {
|
|
45
|
-
const t = e.props, u = D(t, $), _ = u?.span ? {} : E(
|
|
46
|
+
const t = e.props, u = D(t, $), _ = u?.span ? {} : E(a.countPerRow), h = O(t.hidden) ? !!t.hidden : L(t.hidden);
|
|
46
47
|
return {
|
|
47
48
|
key: `${y}-${G(t.name)}`,
|
|
48
49
|
node: N(F, d(_, u, {
|
|
@@ -53,10 +54,10 @@ const Z = /* @__PURE__ */ P({
|
|
|
53
54
|
};
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
|
-
return (n, l) => (
|
|
57
|
+
return (n, l) => (s(), f(r(I), d({
|
|
57
58
|
class: [r(i)(), r(g)]
|
|
58
|
-
}, r(V)(
|
|
59
|
-
default: R(() => [(
|
|
59
|
+
}, r(V)(a, ["countPerRow"])), {
|
|
60
|
+
default: R(() => [(s(!0), b(x, null, j(p.value, (e) => (s(), f(v(e.node), {
|
|
60
61
|
key: e.key
|
|
61
62
|
}))), 128))]),
|
|
62
63
|
_: 1
|
|
@@ -64,5 +65,5 @@ const Z = /* @__PURE__ */ P({
|
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
ee as default
|
|
68
69
|
};
|
|
@@ -143,7 +143,7 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
143
143
|
delay?: number;
|
|
144
144
|
};
|
|
145
145
|
danger: boolean;
|
|
146
|
-
htmlType:
|
|
146
|
+
htmlType: ButtonHTMLType;
|
|
147
147
|
ghost: boolean;
|
|
148
148
|
iconPosition: ButtonIconPosition;
|
|
149
149
|
}> | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as y, toRef as w, createBlock as
|
|
1
|
+
import { defineComponent as S, ref as y, toRef as w, createBlock as u, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as l, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as k } from "vue";
|
|
2
2
|
import { Popover as P, Tooltip as T, Button as g, Row as V, Col as $, Divider as z, Flex as A } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as E } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
@@ -14,15 +14,15 @@ const Y = /* @__PURE__ */ S({
|
|
|
14
14
|
onSubmit: { type: Function },
|
|
15
15
|
submitLoading: { type: Boolean }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const C =
|
|
17
|
+
setup(b) {
|
|
18
|
+
const C = b, F = y(), { e: s, b: c } = U("ap-form-search-form"), h = O("ap-form-search-form"), { t: m } = q(), a = y(!1), B = w(() => C.config), { count: v } = j(B);
|
|
19
19
|
function _(r) {
|
|
20
20
|
return r?.closest(".ant-form") || document.body;
|
|
21
21
|
}
|
|
22
|
-
return (r,
|
|
23
|
-
open:
|
|
24
|
-
"onUpdate:open":
|
|
25
|
-
"overlay-class-name": `${e(
|
|
22
|
+
return (r, p) => (i(), u(e(P), {
|
|
23
|
+
open: a.value,
|
|
24
|
+
"onUpdate:open": p[1] || (p[1] = (n) => a.value = n),
|
|
25
|
+
"overlay-class-name": `${e(s)("popover")} ${e(h)}`,
|
|
26
26
|
trigger: "click",
|
|
27
27
|
placement: "bottom",
|
|
28
28
|
mask: "",
|
|
@@ -31,18 +31,18 @@ const Y = /* @__PURE__ */ S({
|
|
|
31
31
|
"force-render": !0
|
|
32
32
|
}, {
|
|
33
33
|
content: o(() => [
|
|
34
|
-
|
|
35
|
-
class:
|
|
34
|
+
f("div", {
|
|
35
|
+
class: l([e(s)("popover-content")]),
|
|
36
36
|
style: { paddingBottom: "4px", width: "825px" }
|
|
37
37
|
}, [
|
|
38
38
|
t(e(V), { gutter: 8 }, {
|
|
39
39
|
default: o(() => [
|
|
40
|
-
(
|
|
40
|
+
(i(!0), D(L, null, N(r.config, (n) => (i(), u(e($), {
|
|
41
41
|
key: n.key,
|
|
42
42
|
span: 8
|
|
43
43
|
}, {
|
|
44
44
|
default: o(() => [
|
|
45
|
-
(
|
|
45
|
+
(i(), u(I(n.node)))
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
48
48
|
}, 1024))), 128))
|
|
@@ -51,30 +51,32 @@ const Y = /* @__PURE__ */ S({
|
|
|
51
51
|
})
|
|
52
52
|
], 2),
|
|
53
53
|
t(e(z), { style: { margin: "0" } }),
|
|
54
|
-
|
|
55
|
-
class:
|
|
54
|
+
f("div", {
|
|
55
|
+
class: l(e(s)("popover-footer"))
|
|
56
56
|
}, [
|
|
57
|
-
t(e(A), {
|
|
57
|
+
t(e(A), {
|
|
58
|
+
justify: "end",
|
|
59
|
+
gap: 10
|
|
60
|
+
}, {
|
|
58
61
|
default: o(() => [
|
|
59
62
|
t(e(g), {
|
|
60
|
-
onClick:
|
|
63
|
+
onClick: p[0] || (p[0] = (n) => a.value = !1)
|
|
61
64
|
}, {
|
|
62
65
|
default: o(() => [
|
|
63
|
-
|
|
66
|
+
k(d(e(m)("ap.common.cancelText")), 1)
|
|
64
67
|
]),
|
|
65
68
|
_: 1
|
|
66
69
|
}),
|
|
67
70
|
t(e(g), {
|
|
68
|
-
class: a(e(p)("popover-footer-confirm-btn")),
|
|
69
71
|
type: "primary",
|
|
70
72
|
loading: r.submitLoading,
|
|
71
73
|
onClick: r.onSubmit
|
|
72
74
|
}, {
|
|
73
75
|
default: o(() => [
|
|
74
|
-
|
|
76
|
+
k(d(e(m)("ap.apForm.search.search")), 1)
|
|
75
77
|
]),
|
|
76
78
|
_: 1
|
|
77
|
-
}, 8, ["
|
|
79
|
+
}, 8, ["loading", "onClick"])
|
|
78
80
|
]),
|
|
79
81
|
_: 1
|
|
80
82
|
})
|
|
@@ -89,11 +91,11 @@ const Y = /* @__PURE__ */ S({
|
|
|
89
91
|
t(e(g), {
|
|
90
92
|
ref_key: "triggerBtnRef",
|
|
91
93
|
ref: F,
|
|
92
|
-
class:
|
|
94
|
+
class: l([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: a.value }])
|
|
93
95
|
}, {
|
|
94
96
|
icon: o(() => [
|
|
95
|
-
x(
|
|
96
|
-
class:
|
|
97
|
+
x(f("sup", {
|
|
98
|
+
class: l(e(c)("trigger-btn-badge"))
|
|
97
99
|
}, d(e(v)), 3), [
|
|
98
100
|
[R, e(v) !== 0]
|
|
99
101
|
]),
|
|
@@ -97,7 +97,10 @@ const X = /* @__PURE__ */ S({
|
|
|
97
97
|
n("div", {
|
|
98
98
|
class: o(e(f)("popover-footer"))
|
|
99
99
|
}, [
|
|
100
|
-
t(e(_), {
|
|
100
|
+
t(e(_), {
|
|
101
|
+
justify: "end",
|
|
102
|
+
gap: 8
|
|
103
|
+
}, {
|
|
101
104
|
default: r(() => [
|
|
102
105
|
t(e(g), {
|
|
103
106
|
onClick: u[0] || (u[0] = (d) => p.value = !1)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isBoolean as p } from "lodash-unified";
|
|
2
2
|
import { ref as f, computed as c } from "vue";
|
|
3
|
-
import { getStringName as
|
|
4
|
-
import
|
|
5
|
-
import { getTargetNode as
|
|
3
|
+
import { getStringName as m } from "../../item-group/helper.mjs";
|
|
4
|
+
import "../../../utils/index.mjs";
|
|
5
|
+
import { getTargetNode as d } from "./use-collapse-input-count.mjs";
|
|
6
|
+
import { isDef as u } from "../../../utils/is.mjs";
|
|
6
7
|
function l(n, r) {
|
|
7
8
|
const i = new Set(n.map((o) => o.name)), a = /* @__PURE__ */ new Map();
|
|
8
9
|
for (const o of r) {
|
|
9
|
-
const e = String(d(
|
|
10
|
+
const e = String(m(d(o).props?.name));
|
|
10
11
|
e && i.has(e) && a.set(e, o);
|
|
11
12
|
}
|
|
12
13
|
const s = /* @__PURE__ */ new Set(), t = [];
|
|
@@ -18,12 +19,12 @@ function l(n, r) {
|
|
|
18
19
|
s.has(o) || t.push(o);
|
|
19
20
|
return t;
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const C = (n) => {
|
|
22
23
|
const r = f(!1), i = c(() => (n.value || []).map((t) => {
|
|
23
|
-
const e =
|
|
24
|
+
const e = d(t).props;
|
|
24
25
|
return {
|
|
25
26
|
label: e.description || e.label || e.placeholder,
|
|
26
|
-
name:
|
|
27
|
+
name: m(e.name),
|
|
27
28
|
isHidden: p(e.hidden) ? !!e.hidden : u(e.hidden)
|
|
28
29
|
};
|
|
29
30
|
}));
|
|
@@ -41,5 +42,5 @@ const w = (n) => {
|
|
|
41
42
|
};
|
|
42
43
|
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
C as useSorter
|
|
45
46
|
};
|
|
@@ -5,18 +5,19 @@ import "../item/index.vue2.mjs";
|
|
|
5
5
|
import { genRealChildren as G } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
|
|
8
|
-
import
|
|
9
|
-
import { execFunc as
|
|
8
|
+
import "../../utils/index.mjs";
|
|
9
|
+
import { execFunc as J, diffFormItem as Se } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
11
11
|
import { useCountPerRow as Ce } from "./hooks/use-count-per-row.mjs";
|
|
12
12
|
import "./components/popover-sorter/index.vue.mjs";
|
|
13
13
|
import { useSorter as we } from "./hooks/use-sorter.mjs";
|
|
14
14
|
import { getTargetNode as Re } from "./hooks/use-collapse-input-count.mjs";
|
|
15
|
-
import { floorWith as Q } from "@fruits-chain/utils";
|
|
16
15
|
import { useDevWarning as _e } from "../../utils/warning.mjs";
|
|
17
16
|
import be from "../style/search-form.mjs";
|
|
17
|
+
import { floorWith as K } from "../../utils/format.mjs";
|
|
18
18
|
import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
19
19
|
import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
|
|
20
|
+
import { isDef as Q } from "../../utils/is.mjs";
|
|
20
21
|
import X from "../item/index.vue.mjs";
|
|
21
22
|
import Ne from "./components/popover-filter.vue2.mjs";
|
|
22
23
|
import Be from "./components/popover-sorter/index.vue2.mjs";
|
|
@@ -24,7 +25,7 @@ import Ie from "../ap-form.vue2.mjs";
|
|
|
24
25
|
function Te(d) {
|
|
25
26
|
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ce(d);
|
|
26
27
|
}
|
|
27
|
-
const r = 100,
|
|
28
|
+
const r = 100, nt = /* @__PURE__ */ ue({
|
|
28
29
|
name: "ApFormSearchForm",
|
|
29
30
|
__name: "index",
|
|
30
31
|
props: {
|
|
@@ -133,14 +134,14 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
133
134
|
} = Ae(), v = B(), E = B(), ee = Ce(t, E), W = B();
|
|
134
135
|
function z() {
|
|
135
136
|
const e = v.value?.getFieldsValueTransformed(!0);
|
|
136
|
-
|
|
137
|
+
J(t.onSubmit, e);
|
|
137
138
|
}
|
|
138
139
|
function te() {
|
|
139
|
-
t.customReset || v.value?.resetFields?.(),
|
|
140
|
+
t.customReset || v.value?.resetFields?.(), J(t.onReset);
|
|
140
141
|
}
|
|
141
|
-
const oe = (e) =>
|
|
142
|
+
const oe = (e) => Q(e) ? (xe(e) ? e : [e]).join("") : Date.now();
|
|
142
143
|
let O = [];
|
|
143
|
-
const m = M(G(y.default())), c = M(y.extra?.()), L = w(() =>
|
|
144
|
+
const m = M(G(y.default())), c = M(y.extra?.()), L = w(() => K(r / a(ee), 4)), {
|
|
144
145
|
items: b,
|
|
145
146
|
sorted: $,
|
|
146
147
|
handleClickConfirm: F
|
|
@@ -151,7 +152,7 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
151
152
|
c.value = e;
|
|
152
153
|
});
|
|
153
154
|
function ae(e) {
|
|
154
|
-
return
|
|
155
|
+
return K(e * (r / 24), 4);
|
|
155
156
|
}
|
|
156
157
|
const n = w(() => {
|
|
157
158
|
const e = m.value, u = [], l = [], g = [], s = a(L);
|
|
@@ -162,7 +163,7 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
162
163
|
if (!D)
|
|
163
164
|
return;
|
|
164
165
|
const i = D.props;
|
|
165
|
-
if (ye(i.hidden) ? !!i.hidden :
|
|
166
|
+
if (ye(i.hidden) ? !!i.hidden : Q(i.hidden))
|
|
166
167
|
u.push(N);
|
|
167
168
|
else {
|
|
168
169
|
let C = i.span ? ae(i.span) : s;
|
|
@@ -280,5 +281,5 @@ const r = 100, at = /* @__PURE__ */ ue({
|
|
|
280
281
|
}
|
|
281
282
|
});
|
|
282
283
|
export {
|
|
283
|
-
|
|
284
|
+
nt as default
|
|
284
285
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, useSlots as u, cloneVNode as p, onMounted as f, createElementBlock as d, openBlock as o, Fragment as V, renderList as _, createBlock as y, resolveDynamicComponent as C } from "vue";
|
|
2
2
|
import { useInjectForm as F } from "../context.mjs";
|
|
3
3
|
import { isFunction as k, cloneDeep as g } from "lodash-unified";
|
|
4
|
-
import { isPromise as h } from "
|
|
4
|
+
import { isPromise as h } from "../../utils/is.mjs";
|
|
5
5
|
const I = /* @__PURE__ */ c({
|
|
6
6
|
name: "ApFormSet",
|
|
7
7
|
__name: "index",
|