@aplus-frontend/ui 0.5.25 → 0.5.27
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/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/item/index.vue.mjs +7 -7
- 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/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- 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 +16 -16
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +11 -11
- 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 +4 -4
- 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 +5 -5
- 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 +5 -5
- package/es/src/ap-table/utils.mjs +17 -17
- 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.d.ts +83 -0
- package/es/src/business/ap-ladder/ApLadder.mjs +42 -0
- package/es/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
- package/es/src/business/ap-ladder/components/RenderValue.mjs +79 -0
- package/es/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
- package/es/src/business/ap-ladder/components/SimpleMode.mjs +42 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.mjs +49 -0
- package/es/src/business/ap-ladder/constans.d.ts +50 -0
- package/es/src/business/ap-ladder/constans.mjs +51 -0
- package/es/src/business/ap-ladder/index.d.ts +133 -15
- package/es/src/business/ap-ladder/index.mjs +5 -6
- package/es/src/business/ap-ladder/utils.d.ts +4 -0
- package/es/src/business/ap-ladder/utils.mjs +22 -19
- 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 +83 -83
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +84 -79
- 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/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/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/src/ap-action/item-dropdown/index.vue.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/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 +3 -4
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- 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-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 +5 -5
- 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 +5 -5
- package/lib/src/ap-table/utils.js +1 -1
- 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.d.ts +83 -0
- package/lib/src/business/ap-ladder/ApLadder.js +1 -0
- package/lib/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
- package/lib/src/business/ap-ladder/components/RenderValue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.js +1 -0
- package/lib/src/business/ap-ladder/constans.d.ts +50 -0
- package/lib/src/business/ap-ladder/constans.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +133 -15
- package/lib/src/business/ap-ladder/index.js +1 -1
- package/lib/src/business/ap-ladder/utils.d.ts +4 -0
- package/lib/src/business/ap-ladder/utils.js +1 -1
- 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/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.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/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +2 -2
- package/theme/ap-grid/index.css +4 -3
- package/theme/ap-grid/index.less +4 -3
- package/theme/index.css +4 -3
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
- package/es/src/business/ap-ladder/ApLadder.vue.mjs +0 -4
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +0 -65
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +0 -4
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +0 -57
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +0 -4
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +0 -89
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
- package/lib/src/business/ap-ladder/ApLadder.vue.js +0 -1
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +0 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +0 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +0 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +0 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Table as
|
|
3
|
-
import { ApForm as
|
|
4
|
-
import { isArray as
|
|
1
|
+
import { defineComponent as O, ref as c, unref as s, useSlots as K, toRef as G, watch as H, nextTick as U, createBlock as W, openBlock as $, mergeProps as h, withCtx as x, createVNode as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
|
+
import { Table as I } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApForm as g } from "../ap-form/index.mjs";
|
|
4
|
+
import { isArray as M, isUndefined as ee, isNumber as m, cloneDeep as oe, omit as w } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { useInjectForm as
|
|
7
|
-
import { isDef as
|
|
8
|
-
import
|
|
9
|
-
import { scrollToRowIndex as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
const
|
|
6
|
+
import { useInjectForm as te } from "../ap-form/context.mjs";
|
|
7
|
+
import { isDef as b } from "../utils/index.mjs";
|
|
8
|
+
import ae from "./hooks/use-get-columns.mjs";
|
|
9
|
+
import { scrollToRowIndex as le } from "./utils.mjs";
|
|
10
|
+
import { useNamespace as ne } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
const we = /* @__PURE__ */ O({
|
|
13
13
|
name: "EditableTableInner",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -109,111 +109,111 @@ const he = /* @__PURE__ */ K({
|
|
|
109
109
|
default: () => ({})
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
setup(
|
|
113
|
-
expose:
|
|
112
|
+
setup(y, {
|
|
113
|
+
expose: C
|
|
114
114
|
}) {
|
|
115
|
-
const l =
|
|
116
|
-
function
|
|
117
|
-
return
|
|
115
|
+
const l = y;
|
|
116
|
+
function R(e, t) {
|
|
117
|
+
return M(t) ? t.reduce((n, o) => n == null ? void 0 : n[o], e) : e == null ? void 0 : e[t];
|
|
118
118
|
}
|
|
119
119
|
const {
|
|
120
|
-
internalInstance:
|
|
121
|
-
model:
|
|
122
|
-
} =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const T = C.useWatch(c);
|
|
127
|
-
g(() => T.value, (e) => {
|
|
128
|
-
var o;
|
|
129
|
-
r.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
120
|
+
internalInstance: a,
|
|
121
|
+
model: B
|
|
122
|
+
} = te(), d = c(R(s(B), l.name) || []), F = K(), T = G(l, "name"), D = g.useWatch(T);
|
|
123
|
+
H(() => D.value, async (e) => {
|
|
124
|
+
var t;
|
|
125
|
+
await U(), d.value = e, (t = l.onChange) == null || t.call(l, e);
|
|
130
126
|
}, {
|
|
131
127
|
deep: !0
|
|
132
128
|
});
|
|
133
129
|
const {
|
|
134
|
-
b:
|
|
135
|
-
} =
|
|
136
|
-
function
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
130
|
+
b: L
|
|
131
|
+
} = ne("editable-table"), p = c(), V = ue("valueTypeMap"), N = ae(l, V);
|
|
132
|
+
function S(e, t) {
|
|
133
|
+
var u;
|
|
134
|
+
const n = ((u = s(d)) == null ? void 0 : u.length) || 0;
|
|
135
|
+
if (b(l.maxLength) && n >= l.maxLength)
|
|
140
136
|
return;
|
|
141
|
-
const
|
|
142
|
-
i(o) ? a.splice(o, 0, {
|
|
137
|
+
const o = {
|
|
143
138
|
...e || {}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
};
|
|
140
|
+
a == null || a.setFieldValue(l.name, o, !0, (f, r) => {
|
|
141
|
+
f[r] || (f[r] = [o]), ee(t) ? f[r].push(o) : f[r].splice(t, 0, o);
|
|
142
|
+
});
|
|
147
143
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
144
|
+
function k(e, t = "suffix") {
|
|
145
|
+
var f;
|
|
146
|
+
const n = ((f = s(d)) == null ? void 0 : f.length) || 0, o = m(e) ? e : e.length;
|
|
147
|
+
if (b(l.maxLength) && n + o > l.maxLength)
|
|
152
148
|
return;
|
|
153
|
-
const
|
|
154
|
-
|
|
149
|
+
const u = m(e) ? new Array(e).fill(0).map(() => ({})) : oe(e);
|
|
150
|
+
a == null || a.setFieldValue(l.name, u, !0, (r, i) => {
|
|
151
|
+
r[i] || (r[i] = [...u]), t === "suffix" ? r[i].push(...u) : r[i].unshift(...u);
|
|
152
|
+
});
|
|
155
153
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
function v(e) {
|
|
155
|
+
const t = new Set(m(e) ? [e] : e);
|
|
156
|
+
a == null || a.setFieldValue(l.name, void 0, !0, (n, o) => {
|
|
157
|
+
n[o] = n[o].filter((u, f) => !t.has(f));
|
|
158
|
+
});
|
|
160
159
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
160
|
+
function E() {
|
|
161
|
+
return s(d);
|
|
163
162
|
}
|
|
164
|
-
function
|
|
165
|
-
var
|
|
166
|
-
return (
|
|
163
|
+
function _(e) {
|
|
164
|
+
var t;
|
|
165
|
+
return (t = s(d)) == null ? void 0 : t[e];
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
function j(e, t, n = !0) {
|
|
168
|
+
a == null || a.setFieldValue(l.name, void 0, !0, (o, u) => {
|
|
169
|
+
!o[u] || !o[u][e] || (o[u][e] = {
|
|
170
|
+
...n ? o[u][e] : {},
|
|
171
|
+
...t
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
174
|
}
|
|
175
175
|
function P(e) {
|
|
176
|
-
|
|
176
|
+
a == null || a.setFieldValue(l.name, e);
|
|
177
177
|
}
|
|
178
|
-
function z(e,
|
|
179
|
-
var
|
|
180
|
-
const
|
|
181
|
-
|
|
178
|
+
function z(e, t) {
|
|
179
|
+
var o;
|
|
180
|
+
const n = e === "end" ? d.value.length - 1 : e;
|
|
181
|
+
le(n, (o = p.value) == null ? void 0 : o.$el, t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function A() {
|
|
184
184
|
var e;
|
|
185
|
-
(e =
|
|
185
|
+
(e = a == null ? void 0 : a.setFieldValue) == null || e.call(a, l.name, []);
|
|
186
186
|
}
|
|
187
|
-
return
|
|
188
|
-
add:
|
|
189
|
-
remove:
|
|
190
|
-
getRowData:
|
|
191
|
-
getRowsData:
|
|
192
|
-
setRowData:
|
|
193
|
-
addMultiple:
|
|
187
|
+
return C({
|
|
188
|
+
add: S,
|
|
189
|
+
remove: v,
|
|
190
|
+
getRowData: _,
|
|
191
|
+
getRowsData: E,
|
|
192
|
+
setRowData: j,
|
|
193
|
+
addMultiple: k,
|
|
194
194
|
scrollTo: z,
|
|
195
195
|
setTableData: P,
|
|
196
|
-
clear:
|
|
197
|
-
}), (e,
|
|
196
|
+
clear: A
|
|
197
|
+
}), (e, t) => ($(), W(s(g).FormItem, h(e.formItem, {
|
|
198
198
|
name: e.name,
|
|
199
199
|
label: e.label
|
|
200
200
|
}), {
|
|
201
|
-
default:
|
|
201
|
+
default: x(() => [q(s(I), h(s(w)(l, ["name", "maxLength", "onChange"]), {
|
|
202
202
|
ref_key: "tableRef",
|
|
203
203
|
ref: p,
|
|
204
|
-
class:
|
|
205
|
-
columns:
|
|
206
|
-
"data-source":
|
|
207
|
-
}),
|
|
204
|
+
class: s(L)(),
|
|
205
|
+
columns: s(N),
|
|
206
|
+
"data-source": d.value
|
|
207
|
+
}), J({
|
|
208
208
|
_: 2
|
|
209
|
-
}, [
|
|
210
|
-
name:
|
|
211
|
-
fn:
|
|
209
|
+
}, [Q(s(w)(F, ["headerCell"]), (n, o) => ({
|
|
210
|
+
name: o,
|
|
211
|
+
fn: x((u) => [X(e.$slots, o, Y(Z(u || {})))])
|
|
212
212
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
213
213
|
_: 3
|
|
214
214
|
}, 16, ["name", "label"]));
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
export {
|
|
218
|
-
|
|
218
|
+
we as default
|
|
219
219
|
};
|
|
@@ -2,7 +2,7 @@ import { EditableTableProps, EditableColumnType } from './interface';
|
|
|
2
2
|
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
6
6
|
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<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -53,9 +53,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
53
53
|
}) => void;
|
|
54
54
|
};
|
|
55
55
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
56
|
-
}>) => VNode
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
}> & {
|
|
56
|
+
}>) => VNode & {
|
|
59
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
60
58
|
};
|
|
61
59
|
export default _default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, useSlots as q, ref as w, watch as y, unref as s, createBlock as J, openBlock as Q, withCtx as h, createVNode as C, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { Table as ae } from "@aplus-frontend/antdv";
|
|
3
|
-
import { ApForm as
|
|
4
|
-
import { isEqual as ne, isArray as
|
|
3
|
+
import { ApForm as x } from "../ap-form/index.mjs";
|
|
4
|
+
import { isEqual as ne, isArray as b, isUndefined as oe, isNumber as g, cloneDeep as le, omit as R } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import "../hooks/index.mjs";
|
|
7
|
-
import { isDef as
|
|
8
|
-
import { scrollToRowIndex as
|
|
9
|
-
import
|
|
7
|
+
import { isDef as F } from "../utils/index.mjs";
|
|
8
|
+
import { scrollToRowIndex as ue } from "./utils.mjs";
|
|
9
|
+
import se from "./hooks/use-get-columns.mjs";
|
|
10
10
|
import { useNamespace as re } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
const
|
|
11
|
+
import { useControllableValue as ie } from "../hooks/useControllableValue.mjs";
|
|
12
|
+
import { useGlobalConfig as de } from "../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
const Re = /* @__PURE__ */ $({
|
|
14
14
|
name: "EditableTable",
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
@@ -111,126 +111,131 @@ const Ce = /* @__PURE__ */ W({
|
|
|
111
111
|
emits: ["update:value"],
|
|
112
112
|
setup(B, {
|
|
113
113
|
expose: V,
|
|
114
|
-
emit:
|
|
114
|
+
emit: T
|
|
115
115
|
}) {
|
|
116
116
|
const n = B, {
|
|
117
117
|
b: L
|
|
118
|
-
} = re("editable-table"),
|
|
119
|
-
value:
|
|
118
|
+
} = re("editable-table"), _ = q(), D = T, v = w(), {
|
|
119
|
+
value: m,
|
|
120
120
|
updateValue: E
|
|
121
|
-
} =
|
|
122
|
-
|
|
121
|
+
} = ie(n, D), i = w(), N = de("valueTypeMap"), c = x.useWatch(n.name, i);
|
|
122
|
+
y(() => c.value, (e) => {
|
|
123
123
|
var t;
|
|
124
124
|
E(e), (t = n.onChange) == null || t.call(n, e);
|
|
125
125
|
}, {
|
|
126
|
-
deep: !0
|
|
127
|
-
|
|
126
|
+
deep: !0,
|
|
127
|
+
flush: "post"
|
|
128
|
+
}), y(m, (e) => {
|
|
128
129
|
var t;
|
|
129
|
-
e !==
|
|
130
|
+
e !== s(c) && (ne(e, s(c)) || (t = i.value) == null || t.setFieldValue(n.name, e));
|
|
130
131
|
}, {
|
|
131
132
|
deep: !0
|
|
132
133
|
});
|
|
133
|
-
const
|
|
134
|
-
function
|
|
134
|
+
const S = se(n, N);
|
|
135
|
+
function k() {
|
|
135
136
|
var e;
|
|
136
|
-
(e =
|
|
137
|
+
(e = i.value) == null || e.resetFields();
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
return e ? (
|
|
139
|
+
function A(e) {
|
|
140
|
+
return e ? (b(e) ? e : [e]).map((o) => b(o) ? [n.name, ...o] : [n.name, o]) : void 0;
|
|
140
141
|
}
|
|
141
|
-
async function
|
|
142
|
+
async function I(e, t) {
|
|
142
143
|
var a;
|
|
143
|
-
const
|
|
144
|
-
return
|
|
144
|
+
const o = await ((a = i.value) == null ? void 0 : a.validateFields(A(e), t));
|
|
145
|
+
return o == null ? void 0 : o[n.name];
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
-
var
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
147
|
+
function P(e, t) {
|
|
148
|
+
var l, u, r;
|
|
149
|
+
const o = ((l = s(m)) == null ? void 0 : l.length) || 0;
|
|
150
|
+
if (F(n.maxLength) && o >= n.maxLength)
|
|
150
151
|
return;
|
|
151
|
-
const a =
|
|
152
|
-
g(t) ? a.splice(t, 0, {
|
|
153
|
-
...e || {}
|
|
154
|
-
}) : a.push({
|
|
152
|
+
const a = {
|
|
155
153
|
...e || {}
|
|
156
|
-
}
|
|
154
|
+
};
|
|
155
|
+
(r = (u = i.value) == null ? void 0 : u.setFieldValue) == null || r.call(u, n.name, a, !0, (d, f) => {
|
|
156
|
+
d[f] || (d[f] = [a]), oe(t) ? d[f].push(a) : d[f].splice(t, 0, a);
|
|
157
|
+
});
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
-
var
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
159
|
+
function j(e, t = "suffix") {
|
|
160
|
+
var u, r, d;
|
|
161
|
+
const o = ((u = s(m)) == null ? void 0 : u.length) || 0, a = g(e) ? e : e.length;
|
|
162
|
+
if (F(n.maxLength) && o + a > n.maxLength)
|
|
162
163
|
return;
|
|
163
|
-
const
|
|
164
|
-
|
|
164
|
+
const l = g(e) ? new Array(e).fill({}) : le(e);
|
|
165
|
+
(d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, n.name, l, !0, (f, p) => {
|
|
166
|
+
f[p] || (f[p] = [...l]), t === "suffix" ? f[p].push(...l) : f[p].unshift(...l);
|
|
167
|
+
});
|
|
165
168
|
}
|
|
166
|
-
function
|
|
167
|
-
var
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
function z(e) {
|
|
170
|
+
var o, a;
|
|
171
|
+
const t = new Set(g(e) ? [e] : e);
|
|
172
|
+
(a = (o = i.value) == null ? void 0 : o.setFieldValue) == null || a.call(o, n.name, void 0, !0, (l, u) => {
|
|
173
|
+
l[u] = l[u].filter((r, d) => !t.has(d));
|
|
174
|
+
});
|
|
171
175
|
}
|
|
172
176
|
function O() {
|
|
173
|
-
return
|
|
177
|
+
return s(m);
|
|
174
178
|
}
|
|
175
179
|
function K(e) {
|
|
176
180
|
var t;
|
|
177
|
-
(t =
|
|
181
|
+
(t = i.value) == null || t.setFieldValue(n.name, e);
|
|
178
182
|
}
|
|
179
|
-
function
|
|
183
|
+
function U(e) {
|
|
180
184
|
var t;
|
|
181
|
-
return (t =
|
|
185
|
+
return (t = s(m)) == null ? void 0 : t[e];
|
|
182
186
|
}
|
|
183
|
-
function G(e, t,
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
function G(e, t, o = !0) {
|
|
188
|
+
var a, l;
|
|
189
|
+
(l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, n.name, void 0, !0, (u, r) => {
|
|
190
|
+
!u[r] || !u[r][e] || (u[r][e] = {
|
|
191
|
+
...o ? u[r][e] : {},
|
|
192
|
+
...t
|
|
193
|
+
});
|
|
194
|
+
});
|
|
190
195
|
}
|
|
191
196
|
function H(e, t) {
|
|
192
197
|
var a;
|
|
193
|
-
const
|
|
194
|
-
|
|
198
|
+
const o = e === "end" ? m.value.length - 1 : e;
|
|
199
|
+
ue(o, (a = v.value) == null ? void 0 : a.$el, t);
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function W() {
|
|
197
202
|
var e, t;
|
|
198
|
-
(t = (e =
|
|
203
|
+
(t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, n.name, []);
|
|
199
204
|
}
|
|
200
205
|
return V({
|
|
201
|
-
resetFields:
|
|
202
|
-
validateFields:
|
|
203
|
-
add:
|
|
204
|
-
remove:
|
|
205
|
-
getRowData:
|
|
206
|
+
resetFields: k,
|
|
207
|
+
validateFields: I,
|
|
208
|
+
add: P,
|
|
209
|
+
remove: z,
|
|
210
|
+
getRowData: U,
|
|
206
211
|
getRowsData: O,
|
|
207
212
|
setRowData: G,
|
|
208
|
-
addMultiple:
|
|
213
|
+
addMultiple: j,
|
|
209
214
|
scrollTo: H,
|
|
210
|
-
clear:
|
|
215
|
+
clear: W,
|
|
211
216
|
setTableData: K
|
|
212
|
-
}), (e, t) => (
|
|
217
|
+
}), (e, t) => (Q(), J(s(x), {
|
|
213
218
|
ref_key: "formRef",
|
|
214
|
-
ref:
|
|
219
|
+
ref: i,
|
|
215
220
|
"initial-values": {
|
|
216
|
-
[n.name]:
|
|
221
|
+
[n.name]: s(m)
|
|
217
222
|
}
|
|
218
223
|
}, {
|
|
219
|
-
default:
|
|
224
|
+
default: h(() => [C(s(x).FormItem, {
|
|
220
225
|
name: e.name,
|
|
221
226
|
"no-style": ""
|
|
222
227
|
}, {
|
|
223
|
-
default:
|
|
228
|
+
default: h(() => [C(s(ae), X(s(R)(n, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
|
|
224
229
|
ref_key: "tableRef",
|
|
225
230
|
ref: v,
|
|
226
|
-
class:
|
|
227
|
-
columns:
|
|
228
|
-
"data-source":
|
|
229
|
-
}),
|
|
231
|
+
class: s(L)(),
|
|
232
|
+
columns: s(S),
|
|
233
|
+
"data-source": s(m)
|
|
234
|
+
}), Y({
|
|
230
235
|
_: 2
|
|
231
|
-
}, [
|
|
236
|
+
}, [Z(s(R)(_, ["headerCell"]), (o, a) => ({
|
|
232
237
|
name: a,
|
|
233
|
-
fn:
|
|
238
|
+
fn: h((l) => [M(e.$slots, a, ee(te(l || {})))])
|
|
234
239
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
235
240
|
_: 3
|
|
236
241
|
}, 8, ["name"])]),
|
|
@@ -239,5 +244,5 @@ const Ce = /* @__PURE__ */ W({
|
|
|
239
244
|
}
|
|
240
245
|
});
|
|
241
246
|
export {
|
|
242
|
-
|
|
247
|
+
Re as default
|
|
243
248
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, ref as i, watch as E, unref as a, computed as n,
|
|
1
|
+
import { defineComponent as R, ref as i, watch as E, unref as a, computed as n, createBlock as m, openBlock as d, withCtx as v, resolveDynamicComponent as z, mergeProps as C, renderSlot as F, createElementVNode as N, normalizeClass as S } from "vue";
|
|
2
2
|
import "../hooks/index.mjs";
|
|
3
3
|
import "../portal/index.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -43,12 +43,12 @@ const H = /* @__PURE__ */ R({
|
|
|
43
43
|
enter: o,
|
|
44
44
|
exit: s,
|
|
45
45
|
toggle: c
|
|
46
|
-
}), (e, r) => (
|
|
46
|
+
}), (e, r) => (d(), m(a(B), {
|
|
47
47
|
to: "body",
|
|
48
48
|
disabled: l.value !== "window"
|
|
49
49
|
}, {
|
|
50
50
|
default: v(() => [
|
|
51
|
-
(
|
|
51
|
+
(d(), m(z(e.wrapperElementName), C({
|
|
52
52
|
ref_key: "target",
|
|
53
53
|
ref: f
|
|
54
54
|
}, e.$attrs, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isClient as d } from "@vueuse/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ref as c, computed as f, isRef as v, unref as u, watch as p } from "vue";
|
|
3
3
|
const a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Set();
|
|
4
4
|
d && document.addEventListener("fullscreenchange", () => {
|
|
5
5
|
if (o.forEach((e) => e.value = !1), document.fullscreenElement) {
|
|
@@ -9,13 +9,13 @@ d && document.addEventListener("fullscreenchange", () => {
|
|
|
9
9
|
e && (e.value = !0);
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
const E = (e =
|
|
13
|
-
const i =
|
|
12
|
+
const E = (e = c(null)) => {
|
|
13
|
+
const i = f({
|
|
14
14
|
get: () => u(e),
|
|
15
15
|
set: (t) => {
|
|
16
16
|
v(e) && (e.value = t);
|
|
17
17
|
}
|
|
18
|
-
}), l =
|
|
18
|
+
}), l = c(!1);
|
|
19
19
|
o.add(l), p(
|
|
20
20
|
() => e.value,
|
|
21
21
|
(t, n) => {
|
|
@@ -40,7 +40,7 @@ const E = (e = f(null)) => {
|
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
42
|
target: i,
|
|
43
|
-
full:
|
|
43
|
+
full: f(() => u(l)),
|
|
44
44
|
enter: r,
|
|
45
45
|
exit: s,
|
|
46
46
|
toggle: m
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as m, watch as v, watchEffect as A, onMounted as M, onUnmounted as O,
|
|
1
|
+
import { defineComponent as g, ref as m, watch as v, watchEffect as A, onMounted as M, onUnmounted as O, createBlock as x, createCommentVNode as r, openBlock as y, Teleport as P, createElementVNode as d, normalizeStyle as k, unref as o, normalizeClass as i, createVNode as C, Transition as b, withCtx as h, createElementBlock as T, renderSlot as B } from "vue";
|
|
2
2
|
import "../hooks/index.mjs";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import { getMaskZIndex as U, lockScrollable as $ } from "./utils.mjs";
|
|
@@ -68,10 +68,10 @@ const J = /* @__PURE__ */ g({
|
|
|
68
68
|
key: 0,
|
|
69
69
|
to: "body"
|
|
70
70
|
}, [
|
|
71
|
-
|
|
71
|
+
d("div", {
|
|
72
72
|
ref_key: "wrapper",
|
|
73
73
|
ref: p,
|
|
74
|
-
class:
|
|
74
|
+
class: i(o(z)()),
|
|
75
75
|
style: k({ zIndex: o(N), visibility: l.value ? void 0 : "hidden" })
|
|
76
76
|
}, [
|
|
77
77
|
C(b, {
|
|
@@ -82,19 +82,19 @@ const J = /* @__PURE__ */ g({
|
|
|
82
82
|
default: h(() => [
|
|
83
83
|
o(a) ? (y(), T("div", {
|
|
84
84
|
key: 0,
|
|
85
|
-
class:
|
|
85
|
+
class: i([o(u)("mask"), { [o(I)("mask", "disabled")]: e.disabled }]),
|
|
86
86
|
onClick: _
|
|
87
87
|
}, [
|
|
88
88
|
B(e.$slots, "mask", {}, () => [
|
|
89
|
-
|
|
90
|
-
class:
|
|
89
|
+
d("div", {
|
|
90
|
+
class: i(o(u)("mask-inner"))
|
|
91
91
|
}, null, 2)
|
|
92
92
|
])
|
|
93
|
-
], 2)) :
|
|
93
|
+
], 2)) : r("", !0)
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
96
96
|
}, 8, ["name"]),
|
|
97
|
-
|
|
97
|
+
d("div", {
|
|
98
98
|
style: k(e.contentStyle)
|
|
99
99
|
}, [
|
|
100
100
|
C(b, {
|
|
@@ -102,13 +102,13 @@ const J = /* @__PURE__ */ g({
|
|
|
102
102
|
name: o(c)()
|
|
103
103
|
}, {
|
|
104
104
|
default: h(() => [
|
|
105
|
-
o(a) ? B(e.$slots, "default", { key: 0 }) :
|
|
105
|
+
o(a) ? B(e.$slots, "default", { key: 0 }) : r("", !0)
|
|
106
106
|
]),
|
|
107
107
|
_: 3
|
|
108
108
|
}, 8, ["name"])
|
|
109
109
|
], 4)
|
|
110
110
|
], 6)
|
|
111
|
-
])) :
|
|
111
|
+
])) : r("", !0);
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createBlock as n, openBlock as p, Teleport as a, mergeProps as l, renderSlot as s } from "vue";
|
|
2
2
|
const m = /* @__PURE__ */ r({
|
|
3
3
|
name: "Portal",
|
|
4
4
|
__name: "index",
|
|
@@ -9,7 +9,7 @@ const m = /* @__PURE__ */ r({
|
|
|
9
9
|
},
|
|
10
10
|
setup(o) {
|
|
11
11
|
const t = o;
|
|
12
|
-
return (e, d) => (
|
|
12
|
+
return (e, d) => (p(), n(a, l(t, {
|
|
13
13
|
to: e.to || "body"
|
|
14
14
|
}), [
|
|
15
15
|
s(e.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s,
|
|
1
|
+
import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, createBlock as k, createCommentVNode as C, openBlock as B, mergeProps as L } from "vue";
|
|
2
2
|
import "./internal.vue2.mjs";
|
|
3
3
|
import { omit as R } from "lodash-unified";
|
|
4
4
|
import { getScrollable as u, ensureRangeValue as w } from "./utils/index.mjs";
|
|
@@ -79,14 +79,14 @@ const W = /* @__PURE__ */ z({
|
|
|
79
79
|
var e;
|
|
80
80
|
return a((e = l.value) == null ? void 0 : e.container);
|
|
81
81
|
})
|
|
82
|
-
}), (e, t) => n.value !== 100 ? (
|
|
82
|
+
}), (e, t) => n.value !== 100 ? (B(), k(E, L({
|
|
83
83
|
key: 0,
|
|
84
84
|
ref_key: "barRef",
|
|
85
85
|
ref: l
|
|
86
86
|
}, a(R)(r, ["onScroll", "extraSize", "scrollContainer"]), {
|
|
87
87
|
"bar-length": n.value,
|
|
88
88
|
onScroll: d
|
|
89
|
-
}), null, 16, ["bar-length"])) :
|
|
89
|
+
}), null, 16, ["bar-length"])) : C("", !0);
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o,
|
|
1
|
+
import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o, createElementBlock as A, openBlock as N, normalizeStyle as U, normalizeClass as m, createElementVNode as L } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import { useTrack as X } from "./hooks/use-track.mjs";
|
|
4
4
|
import { ensureRangeValue as C } from "./utils/index.mjs";
|
|
@@ -88,7 +88,7 @@ const I = /* @__PURE__ */ V({
|
|
|
88
88
|
bar: l,
|
|
89
89
|
track: c,
|
|
90
90
|
scroll: $
|
|
91
|
-
}), (e, n) => (
|
|
91
|
+
}), (e, n) => (N(), A("div", {
|
|
92
92
|
ref_key: "container",
|
|
93
93
|
ref: k,
|
|
94
94
|
class: m([o(B)(), o(P)(e.direction)]),
|