@aplus-frontend/ui 0.6.0-beta.12 → 0.6.0-beta.13
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/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/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/index.mjs +36 -36
- 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.mjs +3 -3
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- 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/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.mjs +38 -34
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- 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/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 +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- 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.mjs +2 -2
- 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/components/popover-filter.vue2.mjs +7 -7
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +9 -6
- 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 +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +5 -5
- 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 +1 -1
- 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 +23 -23
- package/es/src/ap-table/constants.mjs +45 -45
- 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/utils.d.ts +23 -23
- 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 +9 -9
- 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 +5 -5
- 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/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-radio-group/index.d.ts +5 -0
- 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/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.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/mask/index.vue.mjs +10 -10
- 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/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- 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 +4 -4
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- 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/es/test/setup.d.ts +5 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- 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/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +9 -6
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/hooks/use-render-columns.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-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 +23 -23
- 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/utils.d.ts +23 -23
- 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-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +5 -0
- 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/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- 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/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/lib/test/setup.d.ts +5 -0
- package/package.json +3 -3
- package/theme/ap-action/item.css +12 -1
- package/theme/ap-action/item.less +13 -1
- package/theme/ap-grid/index.css +12 -1
- package/theme/ap-radio-group/ap-radio-group.css +2 -1
- package/theme/ap-radio-group/ap-radio-group.less +3 -1
- package/theme/ap-table/ap-table.css +12 -1
- package/theme/ap-table-modal/index.css +12 -1
- package/theme/editable-table/index.css +12 -1
- package/theme/index.css +23 -3
- package/theme/ui-mode.css +9 -1
- package/theme/ui-mode.less +17 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, openBlock as y,
|
|
1
|
+
import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as y, normalizeStyle as K, normalizeClass as b, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
|
|
2
2
|
import { Divider as je, Table as We } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as _e } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as He } from "../ap-form/index.mjs";
|
|
@@ -6,7 +6,7 @@ import { noRenderAsFormItemValueList as ne } from "./constants.mjs";
|
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as Ue } from "./hooks/use-table-paging-ng.mjs";
|
|
8
8
|
import { isUndefined as g, omit as se, isBoolean as qe } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as de, updateFormProps as Me, getFieldProps as Ge, getSearchFormItemRenderNode as Je, recursionApColumns as ue,
|
|
9
|
+
import { getColumnOrder as de, updateFormProps as Me, getFieldProps as Ge, getSearchFormItemRenderNode as Je, recursionApColumns as ue, getTableTitle as Qe, getTableRenderType as Xe, getTableRenderProps as Ye, getTableCellRenderNode as Ze, apColumnToColumn as er, falseToUndefined as rr, objectToString as or } from "./utils.mjs";
|
|
10
10
|
import ar from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import tr from "./hooks/use-table-row-selection.mjs";
|
|
12
12
|
import { getScrollbarSize as lr, isDef as ie } from "../utils/index.mjs";
|
|
@@ -258,23 +258,23 @@ const Or = /* @__PURE__ */ Le({
|
|
|
258
258
|
function a(t, d) {
|
|
259
259
|
return t.map((n) => ({
|
|
260
260
|
resizable: ie(n.resizable) ? n.resizable : r.columnResizable,
|
|
261
|
-
...se(
|
|
261
|
+
...se(er(n), ["ellipsis"]),
|
|
262
262
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
263
263
|
...M(n),
|
|
264
264
|
fixed: d ? d.fixed : n.fixed,
|
|
265
|
-
title:
|
|
265
|
+
title: Qe(n, A("table-header", "title"), c.headerCell, l(pe).colorTextTertiary),
|
|
266
266
|
customRender({
|
|
267
267
|
value: p,
|
|
268
268
|
...h
|
|
269
269
|
}) {
|
|
270
270
|
var Z, ee;
|
|
271
|
-
const X =
|
|
271
|
+
const X = Xe(n), Ve = Ye({
|
|
272
272
|
...n,
|
|
273
273
|
valueType: X
|
|
274
274
|
}, {
|
|
275
275
|
value: p,
|
|
276
276
|
...h
|
|
277
|
-
}), Ee =
|
|
277
|
+
}), Ee = Ze(X, Ve, h.record, l($)), Y = ((Z = n.renderText) == null ? void 0 : Z.call(n, {
|
|
278
278
|
value: p,
|
|
279
279
|
...h
|
|
280
280
|
})) || p, Ke = n.renderText ? m(re, null, [(ee = n.renderText) == null ? void 0 : ee.call(n, {
|
|
@@ -427,8 +427,8 @@ const Or = /* @__PURE__ */ Le({
|
|
|
427
427
|
"submit-loading": l(q).loading,
|
|
428
428
|
onSubmit: l(I),
|
|
429
429
|
onReset: l(V)
|
|
430
|
-
}),
|
|
431
|
-
default: R(() => [(y(!0), B(re, null,
|
|
430
|
+
}), ae({
|
|
431
|
+
default: R(() => [(y(!0), B(re, null, te(U.value, (o) => (y(), le(Ae(o.renderNode.Comp), v({
|
|
432
432
|
key: o.dataIndex,
|
|
433
433
|
item: o,
|
|
434
434
|
ref_for: !0
|
|
@@ -441,7 +441,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
441
441
|
name: "extra",
|
|
442
442
|
fn: R(() => [C(e.$slots, "searchFormExtra")]),
|
|
443
443
|
key: "0"
|
|
444
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) :
|
|
444
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
|
|
445
445
|
ref_key: "contentRef",
|
|
446
446
|
ref: ge,
|
|
447
447
|
class: b([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
|
|
@@ -457,10 +457,10 @@ const Or = /* @__PURE__ */ Le({
|
|
|
457
457
|
selectedRows: l(x),
|
|
458
458
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
459
459
|
shownColumns: u.value
|
|
460
|
-
}, F))], 2), c.title ? (y(),
|
|
460
|
+
}, F))], 2), c.title ? (y(), le(l(je), {
|
|
461
461
|
key: 0,
|
|
462
462
|
type: "vertical"
|
|
463
|
-
})) :
|
|
463
|
+
})) : oe("", !0), m(fr, {
|
|
464
464
|
config: e.settings === !0 ? {} : e.settings
|
|
465
465
|
}, null, 8, ["config"])], 2)) : C(e.$slots, "title", v({
|
|
466
466
|
key: 1,
|
|
@@ -476,7 +476,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
476
476
|
"table-layout": ze.value,
|
|
477
477
|
columns: u.value,
|
|
478
478
|
onResizeColumn: a[0] || (a[0] = (o, t) => t.width = o)
|
|
479
|
-
}),
|
|
479
|
+
}), ae({
|
|
480
480
|
summary: R(() => [C(e.$slots, "summary", {
|
|
481
481
|
columns: u.value,
|
|
482
482
|
records: G.value.dataSource,
|
|
@@ -497,7 +497,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
497
497
|
}, null, 8, ["scroll-container"])];
|
|
498
498
|
}),
|
|
499
499
|
key: "0"
|
|
500
|
-
} : void 0,
|
|
500
|
+
} : void 0, te(l(se)(c, ["title", "searchFormExtra", "headerCell", "summary"]), (o, t) => ({
|
|
501
501
|
name: t,
|
|
502
502
|
fn: R((d) => [C(e.$slots, t, $e(De(d || {})))])
|
|
503
503
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createBlock as o, openBlock as t, resolveDynamicComponent as r } from "vue";
|
|
2
2
|
const s = /* @__PURE__ */ n({
|
|
3
3
|
name: "ApTableDynamicComponent",
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -7,7 +7,7 @@ const s = /* @__PURE__ */ n({
|
|
|
7
7
|
customRender: { type: Function }
|
|
8
8
|
},
|
|
9
9
|
setup(p) {
|
|
10
|
-
return (e, a) => (
|
|
10
|
+
return (e, a) => (t(), o(r(e.customRender(e.$attrs))));
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as l,
|
|
1
|
+
import { defineComponent as n, computed as l, createElementBlock as s, openBlock as p, normalizeClass as d, toDisplayString as m } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
const _ = /* @__PURE__ */ n({
|
|
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
12
|
const o = e, { m: a } = c("ap-table-index"), r = l(() => [o.bordered ? a("bordered") : null].filter(Boolean));
|
|
13
|
-
return (t, i) => (
|
|
13
|
+
return (t, i) => (p(), s("div", {
|
|
14
14
|
class: d(r.value)
|
|
15
15
|
}, m(t.value), 3));
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, ref as _, computed as B,
|
|
1
|
+
import { defineComponent as x, ref as _, computed as B, createElementBlock as f, openBlock as i, mergeProps as E, unref as o, createElementVNode as O, createCommentVNode as N, normalizeClass as y, createVNode as b, createSlots as V, withCtx as m, createBlock as c, resolveDynamicComponent as v, h as w } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { Tooltip as h } from "@aplus-frontend/antdv";
|
|
4
4
|
import { CopyOutlined as j, CheckOutlined as S } from "@ant-design/icons-vue";
|
|
@@ -65,7 +65,7 @@ const G = /* @__PURE__ */ x({
|
|
|
65
65
|
O("div", {
|
|
66
66
|
class: y([o(u)("content")])
|
|
67
67
|
}, [
|
|
68
|
-
b(o(h), null,
|
|
68
|
+
b(o(h), null, V({
|
|
69
69
|
default: m(() => {
|
|
70
70
|
var s;
|
|
71
71
|
return [
|
|
@@ -98,7 +98,7 @@ const G = /* @__PURE__ */ x({
|
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["title"])
|
|
101
|
-
], 2)) :
|
|
101
|
+
], 2)) : N("", !0)
|
|
102
102
|
], 16);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P,
|
|
1
|
+
import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P, createElementBlock as q, openBlock as x, Fragment as H, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as r, createElementVNode as s, normalizeClass as i, toDisplayString as c, createTextVNode as S, isRef as X } from "vue";
|
|
2
2
|
import { Button as B, Modal as Y, RadioGroup as Z, RadioButton as N, Divider as T } from "@aplus-frontend/antdv";
|
|
3
3
|
import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
|
|
4
4
|
import { useInjectApTable as te } from "../../../context.mjs";
|
|
@@ -57,9 +57,9 @@ const xe = /* @__PURE__ */ G({
|
|
|
57
57
|
const p = h(o.value);
|
|
58
58
|
E(p), I(p), (n = (t = m.config) == null ? void 0 : t.onChange) == null || n.call(t, p);
|
|
59
59
|
}
|
|
60
|
-
return (p, t) => (x(), q(H, null, [e(k) ? (x(), J(
|
|
60
|
+
return (p, t) => (x(), q(H, null, [e(k) ? (x(), J(W(e(k)), {
|
|
61
61
|
key: 0
|
|
62
|
-
})) :
|
|
62
|
+
})) : Q("", !0), l(e(Y), {
|
|
63
63
|
open: u.value,
|
|
64
64
|
"onUpdate:open": t[2] || (t[2] = (n) => u.value = n),
|
|
65
65
|
title: e(a)("ap.apTable.setting.title"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as U, computed as p, unref as l, watch as x,
|
|
1
|
+
import { defineComponent as P, ref as U, computed as p, unref as l, watch as x, createElementBlock as v, openBlock as s, createElementVNode as k, normalizeClass as D, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as w, Fragment as L, renderList as j, mergeProps as z } from "vue";
|
|
2
2
|
import { Checkbox as b, Row as F, Col as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { useInjectApTable as R } from "../../../context.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as c,
|
|
1
|
+
import { defineComponent as f, ref as c, createElementBlock as u, openBlock as n, normalizeClass as m, unref as r, createVNode as i, createCommentVNode as p, withCtx as k, createBlock as y } from "vue";
|
|
2
2
|
import "./item.vue.mjs";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import V from "vuedraggable";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E,
|
|
1
|
+
import { defineComponent as E, createElementBlock as g, openBlock as s, normalizeClass as t, unref as e, createElementVNode as p, createVNode as c, createCommentVNode as r, createBlock as u, resolveDynamicComponent as I, withCtx as d } from "vue";
|
|
2
2
|
import { Space as O, Tooltip as m } from "@aplus-frontend/antdv";
|
|
3
3
|
import { HolderOutlined as D, VerticalAlignTopOutlined as k, VerticalAlignMiddleOutlined as z, DeleteOutlined as A } from "@ant-design/icons-vue";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $,
|
|
1
|
+
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, createElementBlock as y, openBlock as c, normalizeClass as d, createVNode as m, createElementVNode as v, withCtx as g, toDisplayString as k, createTextVNode as q, createCommentVNode as p, createBlock as b } from "vue";
|
|
2
2
|
import { Flex as G, Button as H, Divider as J } from "@aplus-frontend/antdv";
|
|
3
3
|
import N from "vuedraggable";
|
|
4
4
|
import "../sortable/index.vue.mjs";
|
|
@@ -112,8 +112,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
112
112
|
align: "center",
|
|
113
113
|
justify: "space-between"
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
115
|
+
default: g(() => [
|
|
116
|
+
v("span", {
|
|
117
117
|
class: d(n(r)("header-title"))
|
|
118
118
|
}, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
|
|
119
119
|
m(n(H), {
|
|
@@ -122,7 +122,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
122
122
|
style: { padding: "0" },
|
|
123
123
|
onClick: x.onReset
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
125
|
+
default: g(() => [
|
|
126
126
|
q(k(n(h)("ap.apTable.setting.reset")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
@@ -131,11 +131,11 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
131
131
|
_: 1
|
|
132
132
|
}, 8, ["class"]),
|
|
133
133
|
m(n(J), { style: { margin: "0px" } }),
|
|
134
|
-
|
|
134
|
+
v("div", {
|
|
135
135
|
class: d(n(r)("content"))
|
|
136
136
|
}, [
|
|
137
137
|
i.value.length ? (c(), y("div", W, [
|
|
138
|
-
|
|
138
|
+
v("span", {
|
|
139
139
|
class: d(n(r)("section-title"))
|
|
140
140
|
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
141
141
|
m(n(N), {
|
|
@@ -143,7 +143,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
143
143
|
"item-key": "key",
|
|
144
144
|
"onUpdate:modelValue": D
|
|
145
145
|
}, {
|
|
146
|
-
item:
|
|
146
|
+
item: g(({ element: o }) => [
|
|
147
147
|
C(o) ? (c(), b(R, {
|
|
148
148
|
key: 0,
|
|
149
149
|
value: o
|
|
@@ -153,7 +153,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
153
153
|
}, 8, ["model-value"])
|
|
154
154
|
])) : p("", !0),
|
|
155
155
|
s.value.length ? (c(), y("div", X, [
|
|
156
|
-
|
|
156
|
+
v("span", {
|
|
157
157
|
class: d(n(r)("section-title"))
|
|
158
158
|
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
159
159
|
m(n(N), {
|
|
@@ -161,7 +161,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
161
161
|
"item-key": "key",
|
|
162
162
|
"onUpdate:modelValue": E
|
|
163
163
|
}, {
|
|
164
|
-
item:
|
|
164
|
+
item: g(({ element: o }) => [
|
|
165
165
|
C(o) ? (c(), b(R, {
|
|
166
166
|
key: 0,
|
|
167
167
|
value: o
|
|
@@ -171,7 +171,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
171
171
|
}, 8, ["model-value"])
|
|
172
172
|
])) : p("", !0),
|
|
173
173
|
u.value.length ? (c(), y("div", Y, [
|
|
174
|
-
|
|
174
|
+
v("span", {
|
|
175
175
|
class: d(n(r)("section-title"))
|
|
176
176
|
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
177
177
|
m(n(N), {
|
|
@@ -179,7 +179,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
179
179
|
"item-key": "key",
|
|
180
180
|
"onUpdate:modelValue": j
|
|
181
181
|
}, {
|
|
182
|
-
item:
|
|
182
|
+
item: g(({ element: o }) => [
|
|
183
183
|
C(o) ? (c(), b(R, {
|
|
184
184
|
key: 0,
|
|
185
185
|
value: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, computed as w, unref as o,
|
|
1
|
+
import { defineComponent as x, computed as w, unref as o, createElementBlock as i, openBlock as c, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
|
|
2
2
|
import { Row as N, Col as k, Checkbox as P } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../select-group/index.vue.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../../../context.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as o,
|
|
1
|
+
import { defineComponent as n, computed as o, createBlock as u, createCommentVNode as a, openBlock as m, unref as p, normalizeProps as l, mergeProps as c } from "vue";
|
|
2
2
|
import { Badge as s } from "@aplus-frontend/antdv";
|
|
3
3
|
const _ = /* @__PURE__ */ n({
|
|
4
4
|
name: "ApTableStatus",
|
|
@@ -9,7 +9,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
11
|
const e = t, r = o(() => e.valueEnum[e.value]);
|
|
12
|
-
return (d, f) => r.value ? (
|
|
12
|
+
return (d, f) => r.value ? (m(), u(p(s), l(c({ key: 0 }, r.value)), null, 16)) : a("", !0);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
@@ -11,7 +11,7 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
import { OnCleanup } from '@vue/reactivity';
|
|
12
12
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
13
13
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
14
|
-
import { RadioChangeEvent,
|
|
14
|
+
import { RadioChangeEvent, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
15
15
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
16
16
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
17
17
|
import { RenderDOMFunc, DropdownRender, CustomTagProps, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -847,13 +847,13 @@ export declare const apTableFormItemMap: {
|
|
|
847
847
|
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
848
848
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
849
849
|
$slots: Readonly<{
|
|
850
|
-
label
|
|
851
|
-
help
|
|
852
|
-
extra
|
|
850
|
+
label?: any;
|
|
851
|
+
help?: any;
|
|
852
|
+
extra?: any;
|
|
853
853
|
}> & {
|
|
854
|
-
label
|
|
855
|
-
help
|
|
856
|
-
extra
|
|
854
|
+
label?: any;
|
|
855
|
+
help?: any;
|
|
856
|
+
extra?: any;
|
|
857
857
|
};
|
|
858
858
|
});
|
|
859
859
|
select: {
|
|
@@ -950,14 +950,14 @@ export declare const apTableFormItemMap: {
|
|
|
950
950
|
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
|
|
951
951
|
readonly labelInValue?: boolean | undefined;
|
|
952
952
|
readonly emptyText?: string | undefined;
|
|
953
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
953
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< DefaultOptionType[] | undefined>) | undefined;
|
|
954
954
|
readonly multiple?: boolean | undefined;
|
|
955
|
-
readonly value?:
|
|
955
|
+
readonly value?: SelectValue;
|
|
956
956
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
957
|
-
readonly searchMode?:
|
|
957
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
958
958
|
readonly refetchOnFocus?: boolean | undefined;
|
|
959
959
|
readonly lazy?: boolean | undefined;
|
|
960
|
-
readonly addAll?:
|
|
960
|
+
readonly addAll?: boolean | number | undefined;
|
|
961
961
|
readonly params?: Recordable | undefined;
|
|
962
962
|
readonly searchDelay?: number | undefined;
|
|
963
963
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -2156,13 +2156,13 @@ export declare const apTableFormItemMap: {
|
|
|
2156
2156
|
field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
|
|
2157
2157
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2158
2158
|
$slots: Readonly<{
|
|
2159
|
-
label
|
|
2160
|
-
help
|
|
2161
|
-
extra
|
|
2159
|
+
label?: any;
|
|
2160
|
+
help?: any;
|
|
2161
|
+
extra?: any;
|
|
2162
2162
|
}> & {
|
|
2163
|
-
label
|
|
2164
|
-
help
|
|
2165
|
-
extra
|
|
2163
|
+
label?: any;
|
|
2164
|
+
help?: any;
|
|
2165
|
+
extra?: any;
|
|
2166
2166
|
};
|
|
2167
2167
|
});
|
|
2168
2168
|
checkbox: {
|
|
@@ -2203,13 +2203,13 @@ export declare const apTableFormItemMap: {
|
|
|
2203
2203
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
2204
2204
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2205
2205
|
$slots: Readonly<{
|
|
2206
|
-
label
|
|
2207
|
-
help
|
|
2208
|
-
extra
|
|
2206
|
+
label?: any;
|
|
2207
|
+
help?: any;
|
|
2208
|
+
extra?: any;
|
|
2209
2209
|
}> & {
|
|
2210
|
-
label
|
|
2211
|
-
help
|
|
2212
|
-
extra
|
|
2210
|
+
label?: any;
|
|
2211
|
+
help?: any;
|
|
2212
|
+
extra?: any;
|
|
2213
2213
|
};
|
|
2214
2214
|
});
|
|
2215
2215
|
password: {
|
|
@@ -3,57 +3,57 @@ import "../ap-field/index.mjs";
|
|
|
3
3
|
import "../ap-form/index.mjs";
|
|
4
4
|
import "./components/index/index.vue.mjs";
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
|
-
import o from "../ap-form/items/
|
|
7
|
-
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
-
import t from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
-
import i from "../ap-form/items/radio/index.vue.mjs";
|
|
10
|
-
import f from "../ap-form/items/select/index.vue.mjs";
|
|
11
|
-
import a from "../ap-form/items/switch/index.vue.mjs";
|
|
6
|
+
import o from "../ap-form/items/tree-select/index.vue.mjs";
|
|
12
7
|
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
8
|
+
import r from "../ap-form/items/checkbox/index.vue.mjs";
|
|
9
|
+
import t from "../ap-form/items/text-area/index.vue.mjs";
|
|
10
|
+
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
11
|
+
import f from "../ap-form/items/select/index.vue.mjs";
|
|
12
|
+
import a from "../ap-form/items/radio/index.vue.mjs";
|
|
13
|
+
import e from "../ap-form/items/number/index.vue.mjs";
|
|
14
|
+
import _ from "../ap-form/items/date-range/index.vue.mjs";
|
|
15
|
+
import s from "../ap-form/items/date/index.vue.mjs";
|
|
16
|
+
import c from "../ap-field/tree-select/index.vue.mjs";
|
|
17
|
+
import p from "../ap-field/text/password.vue.mjs";
|
|
18
|
+
import n from "./components/status/index.vue2.mjs";
|
|
19
|
+
import $ from "./components/index/index.vue2.mjs";
|
|
20
|
+
import d from "../ap-action/group/index.vue.mjs";
|
|
21
|
+
import x from "../ap-field/checkbox/index.vue.mjs";
|
|
22
|
+
import l from "../ap-field/text-area/index.vue.mjs";
|
|
23
|
+
import { ApFieldText as b } from "../ap-field/text/index.mjs";
|
|
24
|
+
import h from "../ap-field/switch/index.vue.mjs";
|
|
25
|
+
import w from "../ap-field/select/index.vue.mjs";
|
|
26
|
+
import A from "../ap-field/radio/index.vue.mjs";
|
|
27
|
+
import u from "../ap-field/number/index.vue.mjs";
|
|
28
|
+
import F from "../ap-field/date-range/index.vue.mjs";
|
|
29
|
+
import I from "../ap-field/date/index.vue.mjs";
|
|
30
30
|
const Z = {
|
|
31
|
-
date:
|
|
32
|
-
dateRange:
|
|
33
|
-
number:
|
|
34
|
-
radio:
|
|
31
|
+
date: s,
|
|
32
|
+
dateRange: _,
|
|
33
|
+
number: e,
|
|
34
|
+
radio: a,
|
|
35
35
|
select: f,
|
|
36
|
-
switch:
|
|
36
|
+
switch: i,
|
|
37
37
|
text: m,
|
|
38
|
-
textArea:
|
|
39
|
-
checkbox:
|
|
38
|
+
textArea: t,
|
|
39
|
+
checkbox: r,
|
|
40
40
|
password: m.Password,
|
|
41
|
-
treeSelect:
|
|
41
|
+
treeSelect: o
|
|
42
42
|
}, mm = {
|
|
43
|
-
date:
|
|
44
|
-
dateRange:
|
|
45
|
-
number:
|
|
46
|
-
radio:
|
|
47
|
-
select:
|
|
48
|
-
switch:
|
|
49
|
-
text:
|
|
50
|
-
textArea:
|
|
51
|
-
checkbox:
|
|
52
|
-
action:
|
|
53
|
-
index:
|
|
54
|
-
status:
|
|
55
|
-
password:
|
|
56
|
-
treeSelect:
|
|
43
|
+
date: I,
|
|
44
|
+
dateRange: F,
|
|
45
|
+
number: u,
|
|
46
|
+
radio: A,
|
|
47
|
+
select: w,
|
|
48
|
+
switch: h,
|
|
49
|
+
text: b,
|
|
50
|
+
textArea: l,
|
|
51
|
+
checkbox: x,
|
|
52
|
+
action: d,
|
|
53
|
+
index: $,
|
|
54
|
+
status: n,
|
|
55
|
+
password: p,
|
|
56
|
+
treeSelect: c
|
|
57
57
|
}, om = [
|
|
58
58
|
"action",
|
|
59
59
|
"index"
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -2,7 +2,7 @@ import { ref as P, shallowRef as W, unref as i, computed as X, watchEffect as q
|
|
|
2
2
|
import { isDef as H } from "../../utils/index.mjs";
|
|
3
3
|
import L, { customCloneColumnStates as T, getColumnStateString as Q } from "../components/setting/utils.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../context.mjs";
|
|
5
|
-
import { isObject as N, mergeWith as F, isBoolean as V,
|
|
5
|
+
import { isObject as N, mergeWith as F, isBoolean as V, omit as Y, isString as Z, isNumber as B } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { useToken as $ } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
8
|
import { getTableTitle as K } from "../utils.mjs";
|
|
@@ -46,7 +46,7 @@ const he = (r, o, n) => {
|
|
|
46
46
|
var y, A;
|
|
47
47
|
const b = (m == null ? void 0 : m[f.key]) || {}, g = {
|
|
48
48
|
key: f.key,
|
|
49
|
-
label:
|
|
49
|
+
label: Z(f.title) ? K(
|
|
50
50
|
f,
|
|
51
51
|
a("table-header", "title"),
|
|
52
52
|
void 0,
|
|
@@ -60,7 +60,7 @@ const he = (r, o, n) => {
|
|
|
60
60
|
G
|
|
61
61
|
),
|
|
62
62
|
disabled: !1,
|
|
63
|
-
...
|
|
63
|
+
...Y(b, ["children", "fixed"])
|
|
64
64
|
};
|
|
65
65
|
return g.children = (A = f.children) != null && A.length ? d(
|
|
66
66
|
f.children,
|
|
@@ -19,7 +19,7 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
19
19
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
20
20
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
21
21
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
22
|
-
import { RadioChangeEvent,
|
|
22
|
+
import { RadioChangeEvent, TreeSelectProps } from '@aplus-frontend/antdv';
|
|
23
23
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
24
24
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
25
25
|
import { RenderDOMFunc, DropdownRender, CustomTagProps, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -863,13 +863,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
863
863
|
field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
|
|
864
864
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
865
865
|
$slots: Readonly<{
|
|
866
|
-
label
|
|
867
|
-
help
|
|
868
|
-
extra
|
|
866
|
+
label?: any;
|
|
867
|
+
help?: any;
|
|
868
|
+
extra?: any;
|
|
869
869
|
}> & {
|
|
870
|
-
label
|
|
871
|
-
help
|
|
872
|
-
extra
|
|
870
|
+
label?: any;
|
|
871
|
+
help?: any;
|
|
872
|
+
extra?: any;
|
|
873
873
|
};
|
|
874
874
|
})) | ({
|
|
875
875
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
|
|
@@ -1681,13 +1681,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1681
1681
|
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
1682
1682
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1683
1683
|
$slots: Readonly<{
|
|
1684
|
-
label
|
|
1685
|
-
help
|
|
1686
|
-
extra
|
|
1684
|
+
label?: any;
|
|
1685
|
+
help?: any;
|
|
1686
|
+
extra?: any;
|
|
1687
1687
|
}> & {
|
|
1688
|
-
label
|
|
1689
|
-
help
|
|
1690
|
-
extra
|
|
1688
|
+
label?: any;
|
|
1689
|
+
help?: any;
|
|
1690
|
+
extra?: any;
|
|
1691
1691
|
};
|
|
1692
1692
|
})) | ({
|
|
1693
1693
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSelectProps> & Readonly<{}>, {
|
|
@@ -1783,14 +1783,14 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1783
1783
|
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
|
|
1784
1784
|
readonly labelInValue?: boolean | undefined;
|
|
1785
1785
|
readonly emptyText?: string | undefined;
|
|
1786
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
1786
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< DefaultOptionType[] | undefined>) | undefined;
|
|
1787
1787
|
readonly multiple?: boolean | undefined;
|
|
1788
|
-
readonly value?:
|
|
1788
|
+
readonly value?: SelectValue;
|
|
1789
1789
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
1790
|
-
readonly searchMode?:
|
|
1790
|
+
readonly searchMode?: "filter" | "request" | undefined;
|
|
1791
1791
|
readonly refetchOnFocus?: boolean | undefined;
|
|
1792
1792
|
readonly lazy?: boolean | undefined;
|
|
1793
|
-
readonly addAll?:
|
|
1793
|
+
readonly addAll?: boolean | number | undefined;
|
|
1794
1794
|
readonly params?: Recordable | undefined;
|
|
1795
1795
|
readonly searchDelay?: number | undefined;
|
|
1796
1796
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -2467,13 +2467,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
2467
2467
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
2468
2468
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2469
2469
|
$slots: Readonly<{
|
|
2470
|
-
label
|
|
2471
|
-
help
|
|
2472
|
-
extra
|
|
2470
|
+
label?: any;
|
|
2471
|
+
help?: any;
|
|
2472
|
+
extra?: any;
|
|
2473
2473
|
}> & {
|
|
2474
|
-
label
|
|
2475
|
-
help
|
|
2476
|
-
extra
|
|
2474
|
+
label?: any;
|
|
2475
|
+
help?: any;
|
|
2476
|
+
extra?: any;
|
|
2477
2477
|
};
|
|
2478
2478
|
})) | ({
|
|
2479
2479
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemTreeSelectProps> & Readonly<{}>, {
|