@aplus-frontend/ui 0.5.18 → 0.5.20
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 +231 -227
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.d.ts +3 -1
- package/es/src/ap-field/index.mjs +39 -35
- package/es/src/ap-field/interface.d.ts +33 -1
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +251 -0
- package/es/src/ap-field/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/css.js +1 -0
- package/es/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/index.js +1 -0
- package/es/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/es/src/ap-field/tree-select/use-request.mjs +66 -0
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/css.js +1 -0
- package/es/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/index.js +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +3 -2
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/es/src/ap-form/items/select/index.vue.mjs +25 -22
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +107 -0
- package/es/src/ap-form/items/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +32 -31
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +11 -10
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +102 -99
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +4055 -1945
- package/es/src/ap-table/constants.mjs +53 -49
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/ap-table/utils.d.ts +1462 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/index.mjs +230 -226
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/path-map.mjs +2 -0
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +33 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -0
- package/lib/src/ap-field/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-field/tree-select/style/css.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-field/tree-select/style/index.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/lib/src/ap-field/tree-select/use-request.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item-tree-select/style/css.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -0
- package/lib/src/ap-form/items/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +4055 -1945
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/ap-table/utils.d.ts +1462 -6
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as B, ref as x, useSlots as S, computed as g, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as u, withCtx as p, createVNode as C, mergeProps as P, renderList as m, renderSlot as c } from "vue";
|
|
2
|
+
import "../../item/index.vue2.mjs";
|
|
3
|
+
import "../../../ap-field/index.mjs";
|
|
4
|
+
import { isUndefined as q, omit as b, pick as $ } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as _ } from "../../constant.mjs";
|
|
6
|
+
import N from "../../item/index.vue.mjs";
|
|
7
|
+
import R from "../../../ap-field/tree-select/index.vue.mjs";
|
|
8
|
+
const E = /* @__PURE__ */ B({
|
|
9
|
+
name: "ApFormItemTreeSelect",
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
htmlFor: {},
|
|
13
|
+
prefixCls: {},
|
|
14
|
+
label: {},
|
|
15
|
+
help: {},
|
|
16
|
+
extra: {},
|
|
17
|
+
labelCol: {},
|
|
18
|
+
wrapperCol: {},
|
|
19
|
+
hasFeedback: { type: Boolean, default: !1 },
|
|
20
|
+
colon: { type: Boolean, default: void 0 },
|
|
21
|
+
labelAlign: {},
|
|
22
|
+
prop: {},
|
|
23
|
+
name: {},
|
|
24
|
+
rules: {},
|
|
25
|
+
autoLink: { type: Boolean, default: !0 },
|
|
26
|
+
required: { type: Boolean, default: void 0 },
|
|
27
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
28
|
+
validateStatus: {},
|
|
29
|
+
validateTrigger: {},
|
|
30
|
+
messageVariables: {},
|
|
31
|
+
hidden: { type: Boolean },
|
|
32
|
+
noStyle: { type: Boolean },
|
|
33
|
+
tooltip: {},
|
|
34
|
+
span: {},
|
|
35
|
+
order: {},
|
|
36
|
+
offset: {},
|
|
37
|
+
push: {},
|
|
38
|
+
pull: {},
|
|
39
|
+
xs: {},
|
|
40
|
+
sm: {},
|
|
41
|
+
md: {},
|
|
42
|
+
lg: {},
|
|
43
|
+
xl: {},
|
|
44
|
+
xxl: {},
|
|
45
|
+
flex: {},
|
|
46
|
+
bordered: { type: Boolean },
|
|
47
|
+
valuePropName: {},
|
|
48
|
+
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
50
|
+
transform: {},
|
|
51
|
+
field: { default: () => ({}) },
|
|
52
|
+
placeholder: {},
|
|
53
|
+
disabled: { type: Boolean, default: void 0 }
|
|
54
|
+
},
|
|
55
|
+
setup(v, { expose: h }) {
|
|
56
|
+
const o = v, a = x();
|
|
57
|
+
h({
|
|
58
|
+
focus: () => {
|
|
59
|
+
var e;
|
|
60
|
+
(e = a.value) == null || e.focus();
|
|
61
|
+
},
|
|
62
|
+
blur: () => {
|
|
63
|
+
var e;
|
|
64
|
+
(e = a.value) == null || e.blur();
|
|
65
|
+
},
|
|
66
|
+
request: (e, r) => {
|
|
67
|
+
var d;
|
|
68
|
+
(d = a.value) == null || d.request(e, r);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const f = S(), y = g(() => {
|
|
72
|
+
var e, r;
|
|
73
|
+
return {
|
|
74
|
+
placeholder: o.placeholder,
|
|
75
|
+
disabled: o.disabled,
|
|
76
|
+
...o.field || {},
|
|
77
|
+
bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (r = o.field) == null ? void 0 : r.bordered
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
return (e, r) => (F(), k(N, n(i(l(b)(o, ["field", "placeholder", "disabled"]))), u({
|
|
81
|
+
default: p(() => [
|
|
82
|
+
C(l(R), P(y.value, {
|
|
83
|
+
ref_key: "treeSelectRef",
|
|
84
|
+
ref: a
|
|
85
|
+
}), u({ _: 2 }, [
|
|
86
|
+
m(l(b)(f, l(_)), (d, t) => ({
|
|
87
|
+
name: t,
|
|
88
|
+
fn: p((s) => [
|
|
89
|
+
c(e.$slots, t, n(i(s || {})))
|
|
90
|
+
])
|
|
91
|
+
}))
|
|
92
|
+
]), 1040)
|
|
93
|
+
]),
|
|
94
|
+
_: 2
|
|
95
|
+
}, [
|
|
96
|
+
m(l($)(f, l(_)), (d, t) => ({
|
|
97
|
+
name: t,
|
|
98
|
+
fn: p((s) => [
|
|
99
|
+
c(e.$slots, t, n(i(s || {})))
|
|
100
|
+
])
|
|
101
|
+
}))
|
|
102
|
+
]), 1040));
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
E as default
|
|
107
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
@@ -8,7 +8,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
118
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
118
|
readonly initialValues?: Recordable | undefined;
|
|
120
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
123
|
$attrs: {
|
|
@@ -1248,7 +1247,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1248
1247
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1249
1248
|
readonly initialValues?: Recordable | undefined;
|
|
1250
1249
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1251
|
-
readonly syncToUrl?:
|
|
1250
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1252
1251
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1253
1252
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1254
1253
|
$attrs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s,
|
|
1
|
+
import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, createElementBlock as W, openBlock as g, Fragment as H, createBlock as P, createCommentVNode as J, withCtx as F, createElementVNode as Q, normalizeClass as X, normalizeStyle as Y, renderSlot as w, resolveDynamicComponent as N, createTextVNode as Z, toDisplayString as ee } from "vue";
|
|
2
2
|
import { Button as V, Flex as te, Space as le, Modal as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -241,7 +241,7 @@ const Me = /* @__PURE__ */ L({
|
|
|
241
241
|
"onUpdate:open": $,
|
|
242
242
|
onCancel: k
|
|
243
243
|
}), {
|
|
244
|
-
title: F(() => [
|
|
244
|
+
title: F(() => [w(e.$slots, "title", {}, () => [Z(ee(o.title), 1)])]),
|
|
245
245
|
default: F(() => [u(de, b({
|
|
246
246
|
ref_key: "formRef",
|
|
247
247
|
ref: a
|
|
@@ -250,17 +250,17 @@ const Me = /* @__PURE__ */ L({
|
|
|
250
250
|
}), {
|
|
251
251
|
default: F(() => {
|
|
252
252
|
var l;
|
|
253
|
-
return [
|
|
253
|
+
return [Q("div", {
|
|
254
254
|
style: Y((l = e.modalProps) == null ? void 0 : l.bodyStyle),
|
|
255
|
-
class:
|
|
256
|
-
}, [
|
|
255
|
+
class: X(s(h)("content"))
|
|
256
|
+
}, [w(e.$slots, "default")], 6), (g(), P(N(O.value)))];
|
|
257
257
|
}),
|
|
258
258
|
_: 3
|
|
259
259
|
}, 16)]),
|
|
260
260
|
_: 3
|
|
261
|
-
}, 16, ["open", "width", "class"]), s(B) ? (g(),
|
|
261
|
+
}, 16, ["open", "width", "class"]), s(B) ? (g(), P(N(s(B)), {
|
|
262
262
|
key: 0
|
|
263
|
-
})) :
|
|
263
|
+
})) : J("", !0)], 64));
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, useSlots as c,
|
|
1
|
+
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
|
|
2
2
|
import { omit as g } from "lodash-unified";
|
|
3
3
|
import { ApForm as p } from "../index.mjs";
|
|
4
4
|
const S = /* @__PURE__ */ m({
|
|
@@ -47,7 +47,7 @@ const S = /* @__PURE__ */ m({
|
|
|
47
47
|
},
|
|
48
48
|
setup(d) {
|
|
49
49
|
const u = d, i = c();
|
|
50
|
-
return (a, h) => (
|
|
50
|
+
return (a, h) => (v(), B(e(p).FormItem, o(l(u)), y({
|
|
51
51
|
default: t(() => [
|
|
52
52
|
x(e(p).ControlRender, null, {
|
|
53
53
|
default: t((r) => [
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath,
|
|
4
|
+
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
|
|
|
116
115
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
117
116
|
readonly initialValues?: Recordable | undefined;
|
|
118
117
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
119
|
-
readonly syncToUrl?:
|
|
118
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
120
119
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
121
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
122
121
|
$attrs: {
|
|
@@ -953,7 +952,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
953
952
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
954
953
|
readonly initialValues?: Recordable | undefined;
|
|
955
954
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
956
|
-
readonly syncToUrl?:
|
|
955
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
957
956
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
958
957
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
959
958
|
$attrs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F,
|
|
1
|
+
import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
|
|
2
2
|
import { Col as B, Flex as $, Space as he, Button as v, Row as xe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V,
|
|
1
|
+
import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as m, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
|
|
2
2
|
import { useInjectForm as v } from "../context.mjs";
|
|
3
3
|
import { isFunction as w, cloneDeep as x } from "lodash-unified";
|
|
4
4
|
import { isPromise as B } from "@fruits-chain/utils";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, useSlots as P, toRef as H, ref as g, unref as r, watch as W, nextTick as G, createBlock as K, openBlock as M, mergeProps as y, withCtx as C, createVNode as U, createSlots as $, renderList as q, renderSlot as J, normalizeProps as Q, guardReactiveProps as X } from "vue";
|
|
2
2
|
import { ApForm as w } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as Y, isNumber as d, cloneDeep as f, omit as Z } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -7,17 +7,13 @@ import { useGetEditableColumns as I } from "../hooks/use-editable-columns.mjs";
|
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
8
|
import { useInjectForm as ee } from "../../ap-form/context.mjs";
|
|
9
9
|
import { useNamespace as oe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import
|
|
12
|
-
const he = /* @__PURE__ */
|
|
10
|
+
import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import te from "../index.vue.mjs";
|
|
12
|
+
const he = /* @__PURE__ */ O({
|
|
13
13
|
name: "EditableGrid",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
16
16
|
dropdownPrefixCls: {},
|
|
17
|
-
loading: {
|
|
18
|
-
type: [Boolean, Object],
|
|
19
|
-
default: void 0
|
|
20
|
-
},
|
|
21
17
|
bordered: {
|
|
22
18
|
type: Boolean,
|
|
23
19
|
default: !1
|
|
@@ -105,6 +101,11 @@ const he = /* @__PURE__ */ A({
|
|
|
105
101
|
mergeCells: {},
|
|
106
102
|
mergeFooterItems: {},
|
|
107
103
|
cellConfig: {},
|
|
104
|
+
loading: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: void 0
|
|
107
|
+
},
|
|
108
|
+
loadingConfig: {},
|
|
108
109
|
rowSelection: {
|
|
109
110
|
type: Boolean,
|
|
110
111
|
default: void 0
|
|
@@ -153,47 +154,47 @@ const he = /* @__PURE__ */ A({
|
|
|
153
154
|
setup(x, {
|
|
154
155
|
expose: b
|
|
155
156
|
}) {
|
|
156
|
-
const R = P(),
|
|
157
|
+
const R = P(), t = x, {
|
|
157
158
|
b: B
|
|
158
159
|
} = oe("editable-grid");
|
|
159
160
|
function S(e, o) {
|
|
160
161
|
return Y(o) ? o.reduce((n, l) => n == null ? void 0 : n[l], e) : e == null ? void 0 : e[o];
|
|
161
162
|
}
|
|
162
163
|
const {
|
|
163
|
-
internalInstance:
|
|
164
|
+
internalInstance: a,
|
|
164
165
|
model: F
|
|
165
|
-
} = ee(), i = H(
|
|
166
|
+
} = ee(), i = H(t.name), u = g(S(r(F), i.value) || []), N = w.useWatch(i);
|
|
166
167
|
W(() => N.value, async (e) => {
|
|
167
168
|
var o;
|
|
168
|
-
await G(), u.value = e, (o =
|
|
169
|
+
await G(), u.value = e, (o = t.onChange) == null || o.call(t, e);
|
|
169
170
|
}, {
|
|
170
171
|
deep: !0
|
|
171
172
|
});
|
|
172
|
-
const p =
|
|
173
|
+
const p = g(), v = ae("valueTypeMap"), D = I(t, v);
|
|
173
174
|
function L(e, o) {
|
|
174
175
|
var s;
|
|
175
176
|
const n = ((s = r(u)) == null ? void 0 : s.length) || 0;
|
|
176
|
-
if (m(
|
|
177
|
+
if (m(t.maxLength) && n >= t.maxLength)
|
|
177
178
|
return;
|
|
178
179
|
const l = [...r(u) || []];
|
|
179
180
|
m(o) ? l.splice(o, 0, {
|
|
180
181
|
...e || {}
|
|
181
182
|
}) : l.push({
|
|
182
183
|
...e || {}
|
|
183
|
-
}),
|
|
184
|
+
}), a == null || a.setFieldValue(t.name, l);
|
|
184
185
|
}
|
|
185
186
|
function V(e, o = "suffix") {
|
|
186
187
|
var h;
|
|
187
188
|
const n = ((h = r(u)) == null ? void 0 : h.length) || 0, l = d(e) ? e : e.length;
|
|
188
|
-
if (m(
|
|
189
|
+
if (m(t.maxLength) && n + l > t.maxLength)
|
|
189
190
|
return;
|
|
190
191
|
const s = [...r(u) || []], c = d(e) ? new Array(e).fill(0).map(() => ({})) : f(e);
|
|
191
|
-
o === "suffix" ? s.push(...c) : s.unshift(...c),
|
|
192
|
+
o === "suffix" ? s.push(...c) : s.unshift(...c), a == null || a.setFieldValue(t.name, s);
|
|
192
193
|
}
|
|
193
194
|
function _(e) {
|
|
194
195
|
let o = f(r(u) || []);
|
|
195
196
|
const n = d(e) ? [e] : e;
|
|
196
|
-
o = o.filter((l, s) => !n.includes(s)),
|
|
197
|
+
o = o.filter((l, s) => !n.includes(s)), a == null || a.setFieldValue(t.name, o);
|
|
197
198
|
}
|
|
198
199
|
function E() {
|
|
199
200
|
return r(u);
|
|
@@ -202,40 +203,40 @@ const he = /* @__PURE__ */ A({
|
|
|
202
203
|
var o;
|
|
203
204
|
return (o = r(u)) == null ? void 0 : o[e];
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function k(e, o, n = !0) {
|
|
206
207
|
const l = f(r(u));
|
|
207
208
|
l[e] && (l[e] = {
|
|
208
209
|
...n ? l[e] : {},
|
|
209
210
|
...o
|
|
210
|
-
},
|
|
211
|
+
}, a == null || a.setFieldValue(t.name, [...l]));
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
213
|
+
function j(e) {
|
|
214
|
+
a == null || a.setFieldValue(t.name, e);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function z(e) {
|
|
216
217
|
var n;
|
|
217
218
|
const o = e === "end" ? u.value.length - 1 : e;
|
|
218
219
|
(n = p.value) == null || n.scrollToRow(o);
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
+
function A() {
|
|
221
222
|
var e;
|
|
222
|
-
(e =
|
|
223
|
+
(e = a == null ? void 0 : a.setFieldValue) == null || e.call(a, t.name, []);
|
|
223
224
|
}
|
|
224
225
|
return b({
|
|
225
226
|
add: L,
|
|
226
227
|
remove: _,
|
|
227
228
|
getRowData: T,
|
|
228
229
|
getRowsData: E,
|
|
229
|
-
setRowData:
|
|
230
|
+
setRowData: k,
|
|
230
231
|
addMultiple: V,
|
|
231
|
-
scrollTo:
|
|
232
|
-
setTableData:
|
|
233
|
-
clear:
|
|
234
|
-
}), (e, o) => (
|
|
232
|
+
scrollTo: z,
|
|
233
|
+
setTableData: j,
|
|
234
|
+
clear: A
|
|
235
|
+
}), (e, o) => (M(), K(r(w).FormItem, y(e.formItem, {
|
|
235
236
|
name: e.name,
|
|
236
237
|
label: e.label
|
|
237
238
|
}), {
|
|
238
|
-
default: C(() => [U(
|
|
239
|
+
default: C(() => [U(te, y(r(Z)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
239
240
|
ref_key: "tableRef",
|
|
240
241
|
ref: p,
|
|
241
242
|
class: r(B)(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, useSlots as U, ref as w, watch as v, unref as n,
|
|
1
|
+
import { defineComponent as M, useSlots as U, ref as w, watch as v, unref as n, createBlock as $, openBlock as q, withCtx as c, createVNode as R, mergeProps as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as ee } from "vue";
|
|
2
2
|
import { ApForm as p } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isEqual as ae, isArray as b, isNumber as h, cloneDeep as y, omit as te } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -15,10 +15,6 @@ const we = /* @__PURE__ */ M({
|
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
17
17
|
dropdownPrefixCls: {},
|
|
18
|
-
loading: {
|
|
19
|
-
type: [Boolean, Object],
|
|
20
|
-
default: void 0
|
|
21
|
-
},
|
|
22
18
|
bordered: {
|
|
23
19
|
type: Boolean,
|
|
24
20
|
default: !1
|
|
@@ -106,6 +102,11 @@ const we = /* @__PURE__ */ M({
|
|
|
106
102
|
mergeCells: {},
|
|
107
103
|
mergeFooterItems: {},
|
|
108
104
|
cellConfig: {},
|
|
105
|
+
loading: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: void 0
|
|
108
|
+
},
|
|
109
|
+
loadingConfig: {},
|
|
109
110
|
rowSelection: {
|
|
110
111
|
type: Boolean,
|
|
111
112
|
default: void 0
|
|
@@ -196,7 +197,7 @@ const we = /* @__PURE__ */ M({
|
|
|
196
197
|
...e || {}
|
|
197
198
|
}), (i = (d = u.value) == null ? void 0 : d.setFieldValue) == null || i.call(d, t.name, l);
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function z(e, a = "suffix") {
|
|
200
201
|
var i, f, x;
|
|
201
202
|
const o = ((i = n(s)) == null ? void 0 : i.length) || 0, l = h(e) ? e : e.length;
|
|
202
203
|
if (g(t.maxLength) && o + l > t.maxLength)
|
|
@@ -204,7 +205,7 @@ const we = /* @__PURE__ */ M({
|
|
|
204
205
|
const r = [...n(s) || []], d = h(e) ? new Array(e).fill(0).map(() => ({})) : y(e);
|
|
205
206
|
a === "suffix" ? r.push(...d) : r.unshift(...d), (x = (f = u.value) == null ? void 0 : f.setFieldValue) == null || x.call(f, t.name, r);
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function O(e) {
|
|
208
209
|
var l, r;
|
|
209
210
|
let a = y(n(s) || []);
|
|
210
211
|
const o = h(e) ? [e] : e;
|
|
@@ -242,15 +243,15 @@ const we = /* @__PURE__ */ M({
|
|
|
242
243
|
resetFields: k,
|
|
243
244
|
validateFields: T,
|
|
244
245
|
add: j,
|
|
245
|
-
remove:
|
|
246
|
+
remove: O,
|
|
246
247
|
getRowData: I,
|
|
247
248
|
getRowsData: P,
|
|
248
249
|
setRowData: W,
|
|
249
|
-
addMultiple:
|
|
250
|
+
addMultiple: z,
|
|
250
251
|
scrollTo: G,
|
|
251
252
|
clear: K,
|
|
252
253
|
setTableData: H
|
|
253
|
-
}), (e, a) => (
|
|
254
|
+
}), (e, a) => (q(), $(n(p), {
|
|
254
255
|
ref_key: "formRef",
|
|
255
256
|
ref: u,
|
|
256
257
|
"initial-values": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DEFAULT_PAGE_SIZE as g, DEFAULT_CURRENT as E } from "../../ap-table/hooks/use-table-paging-ng.mjs";
|
|
2
2
|
const a = {
|
|
3
3
|
asc: "ascend",
|
|
4
4
|
desc: "descend"
|
|
@@ -6,8 +6,8 @@ const a = {
|
|
|
6
6
|
const t = {};
|
|
7
7
|
let c = {};
|
|
8
8
|
const s = {
|
|
9
|
-
current:
|
|
10
|
-
pageSize:
|
|
9
|
+
current: E,
|
|
10
|
+
pageSize: g
|
|
11
11
|
};
|
|
12
12
|
function i(n) {
|
|
13
13
|
o == null || o(s, c, t, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,9 +35,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}> & {
|
|
38
|
+
}>) => VNode & {
|
|
41
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
40
|
};
|
|
43
41
|
export default _default;
|