vft 0.0.135 → 0.0.136
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/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/use-button.js +3 -3
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +164 -162
- package/es/components/infinite-scroll/index.d.ts +26 -0
- package/es/components/infinite-scroll/index.js +10 -0
- package/es/components/infinite-scroll/infinite-scroll.d.ts +20 -0
- package/es/components/infinite-scroll/infinite-scroll.js +92 -0
- package/es/components/infinite-scroll/style/css.d.ts +0 -0
- package/es/components/infinite-scroll/style/css.js +2 -0
- package/es/components/infinite-scroll/style/index.d.ts +0 -0
- package/es/components/infinite-scroll/style/index.js +2 -0
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +21 -20
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/side-menu/side-menu.vue2.js +3 -2
- package/es/components/super-form/component-map.js +11 -10
- package/es/components/super-form/super-form-action.vue2.js +3 -2
- package/es/components/super-form/super-form-item.vue2.js +35 -34
- package/es/components/super-form/super-form.vue2.js +14 -13
- package/es/components/table/field.js +19 -18
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/index.js +279 -277
- package/es/package.json.js +1 -1
- package/es/plugin.js +5 -3
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/infinite-scroll/index.cjs +1 -0
- package/lib/components/infinite-scroll/index.d.ts +26 -0
- package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -0
- package/lib/components/infinite-scroll/infinite-scroll.d.ts +20 -0
- package/lib/components/infinite-scroll/style/css.cjs +1 -0
- package/lib/components/infinite-scroll/style/css.d.ts +0 -0
- package/lib/components/infinite-scroll/style/index.cjs +1 -0
- package/lib/components/infinite-scroll/style/index.d.ts +0 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/plugin.cjs +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ot, useAttrs as ft, reactive as ct, ref as
|
|
1
|
+
import { defineComponent as ot, useAttrs as ft, reactive as ct, ref as m, computed as h, unref as o, watch as y, nextTick as dt, onMounted as Bt, resolveComponent as ht, openBlock as l, createBlock as c, mergeProps as v, withKeys as yt, withCtx as g, normalizeProps as d, renderSlot as _, createElementBlock as vt, Fragment as gt, renderList as Y, createSlots as bt, guardReactiveProps as Z, createVNode as Ft, createCommentVNode as b } from "vue";
|
|
2
2
|
import { cloneDeep as tt, pick as wt, deepMerge as St } from "@vft/utils";
|
|
3
3
|
import "../alert/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -91,6 +91,7 @@ import { useNamespace as Rt } from "../../hooks/use-namespace/index.js";
|
|
|
91
91
|
import "@popperjs/core";
|
|
92
92
|
import "../../hooks/use-z-index/index.js";
|
|
93
93
|
import "../message/index.js";
|
|
94
|
+
import "../infinite-scroll/index.js";
|
|
94
95
|
import { FormCompEnum as Et } from "./component-map.js";
|
|
95
96
|
import et from "./super-form-action.vue2.js";
|
|
96
97
|
import Vt from "./super-form-item.vue2.js";
|
|
@@ -103,7 +104,7 @@ const It = (
|
|
|
103
104
|
Rt("super-form")
|
|
104
105
|
), Tt = ot({
|
|
105
106
|
name: "vft-super-form"
|
|
106
|
-
}),
|
|
107
|
+
}), _o = /* @__PURE__ */ ot({
|
|
107
108
|
...Tt,
|
|
108
109
|
props: {
|
|
109
110
|
rowProps: {
|
|
@@ -229,7 +230,7 @@ const It = (
|
|
|
229
230
|
expose: it,
|
|
230
231
|
emit: O
|
|
231
232
|
}) {
|
|
232
|
-
const M = rt, at = ft(), n = ct({}), F =
|
|
233
|
+
const M = rt, at = ft(), n = ct({}), F = m({}), B = m(!1), w = m({}), D = m(null), S = m(null), I = m(), e = h(() => ({
|
|
233
234
|
...M,
|
|
234
235
|
...o(w)
|
|
235
236
|
})), p = h(() => ({
|
|
@@ -266,9 +267,9 @@ const It = (
|
|
|
266
267
|
appendSchemaByField: $,
|
|
267
268
|
removeSchemaByField: q,
|
|
268
269
|
resetFields: E,
|
|
269
|
-
scrollToField:
|
|
270
|
+
scrollToField: mt,
|
|
270
271
|
getFieldValue: G,
|
|
271
|
-
setFormItemError:
|
|
272
|
+
setFormItemError: lt
|
|
272
273
|
} = Mt({
|
|
273
274
|
emit: O,
|
|
274
275
|
getProps: e,
|
|
@@ -333,7 +334,7 @@ const It = (
|
|
|
333
334
|
validateField: P,
|
|
334
335
|
validate: N,
|
|
335
336
|
submit: s,
|
|
336
|
-
scrollToField:
|
|
337
|
+
scrollToField: mt
|
|
337
338
|
};
|
|
338
339
|
Bt(() => {
|
|
339
340
|
T(), O("register", K);
|
|
@@ -353,11 +354,11 @@ const It = (
|
|
|
353
354
|
validateField: P,
|
|
354
355
|
validate: N,
|
|
355
356
|
submit: s,
|
|
356
|
-
setFormItemError:
|
|
357
|
+
setFormItemError: lt
|
|
357
358
|
}), (t, r) => {
|
|
358
359
|
var V;
|
|
359
360
|
const i = ht("vft-col");
|
|
360
|
-
return B.value && ((V = a.value) != null && V.length) ? (
|
|
361
|
+
return B.value && ((V = a.value) != null && V.length) ? (l(), c(o(Ct), v({
|
|
361
362
|
key: 0
|
|
362
363
|
}, p.value, {
|
|
363
364
|
ref_key: "formElRef",
|
|
@@ -368,12 +369,12 @@ const It = (
|
|
|
368
369
|
}), {
|
|
369
370
|
default: g(() => {
|
|
370
371
|
var z, U, W, j;
|
|
371
|
-
return [(z = a.value) != null && z.length ? (
|
|
372
|
+
return [(z = a.value) != null && z.length ? (l(), c(o(Pt), d(v({
|
|
372
373
|
key: 0
|
|
373
374
|
}, (U = p.value) == null ? void 0 : U.rowProps)), {
|
|
374
375
|
default: g(() => {
|
|
375
376
|
var J, Q, X;
|
|
376
|
-
return [_(t.$slots, "formHeader"), (
|
|
377
|
+
return [_(t.$slots, "formHeader"), (l(!0), vt(gt, null, Y(a.value, (u) => (l(), c(Vt, {
|
|
377
378
|
key: u.field,
|
|
378
379
|
tableAction: t.tableAction,
|
|
379
380
|
formActionType: K,
|
|
@@ -394,7 +395,7 @@ const It = (
|
|
|
394
395
|
} : {})), {
|
|
395
396
|
default: g(() => {
|
|
396
397
|
var u, f;
|
|
397
|
-
return [(u = e.value) != null && u.showActionButtonGroup && ((f = e.value) != null && f.actionInline) ? (
|
|
398
|
+
return [(u = e.value) != null && u.showActionButtonGroup && ((f = e.value) != null && f.actionInline) ? (l(), c(et, d(v({
|
|
398
399
|
key: 0
|
|
399
400
|
}, x.value)), null, 16)) : b("", !0)];
|
|
400
401
|
}),
|
|
@@ -402,7 +403,7 @@ const It = (
|
|
|
402
403
|
}, 16)];
|
|
403
404
|
}),
|
|
404
405
|
_: 3
|
|
405
|
-
}, 16)) : b("", !0), (W = e.value) != null && W.showActionButtonGroup && !((j = e.value) != null && j.actionInline) ? (
|
|
406
|
+
}, 16)) : b("", !0), (W = e.value) != null && W.showActionButtonGroup && !((j = e.value) != null && j.actionInline) ? (l(), c(et, d(v({
|
|
406
407
|
key: 1
|
|
407
408
|
}, x.value)), null, 16)) : b("", !0), _(t.$slots, "formFooter")];
|
|
408
409
|
}),
|
|
@@ -412,5 +413,5 @@ const It = (
|
|
|
412
413
|
}
|
|
413
414
|
});
|
|
414
415
|
export {
|
|
415
|
-
|
|
416
|
+
_o as default
|
|
416
417
|
};
|
|
@@ -91,28 +91,29 @@ import "../config-provider/hooks/use-global-config.js";
|
|
|
91
91
|
import "@popperjs/core";
|
|
92
92
|
import "../../hooks/use-z-index/index.js";
|
|
93
93
|
import "../message/index.js";
|
|
94
|
+
import "../infinite-scroll/index.js";
|
|
94
95
|
function u(i) {
|
|
95
96
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !_(i);
|
|
96
97
|
}
|
|
97
|
-
const
|
|
98
|
+
const ui = {
|
|
98
99
|
type: "seq",
|
|
99
100
|
title: "序号",
|
|
100
101
|
minWidth: 100,
|
|
101
102
|
fixed: "left"
|
|
102
|
-
},
|
|
103
|
+
}, si = {
|
|
103
104
|
type: "checkbox",
|
|
104
105
|
title: "",
|
|
105
106
|
minWidth: 60,
|
|
106
107
|
fixed: "left"
|
|
107
|
-
},
|
|
108
|
+
}, fi = {
|
|
108
109
|
field: "id",
|
|
109
110
|
title: "Id",
|
|
110
111
|
minWidth: 100
|
|
111
|
-
},
|
|
112
|
+
}, di = {
|
|
112
113
|
field: "name",
|
|
113
114
|
title: "名称",
|
|
114
115
|
minWidth: 100
|
|
115
|
-
},
|
|
116
|
+
}, Di = ({
|
|
116
117
|
format: i = "YYYY-MM-DD",
|
|
117
118
|
field: t = "date",
|
|
118
119
|
title: o = "时间"
|
|
@@ -134,7 +135,7 @@ const ni = {
|
|
|
134
135
|
formatter: ({
|
|
135
136
|
row: r
|
|
136
137
|
}) => r[t] ? l(r[t], i) : "-"
|
|
137
|
-
}),
|
|
138
|
+
}), Ei = ({
|
|
138
139
|
format: i = "YYYY-MM-DD HH:mm:ss",
|
|
139
140
|
field: t = "createTime",
|
|
140
141
|
title: o = "创建时间"
|
|
@@ -142,7 +143,7 @@ const ni = {
|
|
|
142
143
|
format: i,
|
|
143
144
|
field: t,
|
|
144
145
|
title: o
|
|
145
|
-
}),
|
|
146
|
+
}), li = ({
|
|
146
147
|
format: i = "YYYY-MM-DD HH:mm:ss",
|
|
147
148
|
field: t = "updateTime",
|
|
148
149
|
title: o = "更新时间"
|
|
@@ -150,7 +151,7 @@ const ni = {
|
|
|
150
151
|
format: i,
|
|
151
152
|
field: t,
|
|
152
153
|
title: o
|
|
153
|
-
}),
|
|
154
|
+
}), ci = ({
|
|
154
155
|
field: i = "status",
|
|
155
156
|
title: t = "状态",
|
|
156
157
|
normalText: o = "正常",
|
|
@@ -174,7 +175,7 @@ const ni = {
|
|
|
174
175
|
}));
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
|
-
}),
|
|
178
|
+
}), ai = ({
|
|
178
179
|
confirmText: i = "确认删除?",
|
|
179
180
|
leftCallback: t,
|
|
180
181
|
rightCallback: o,
|
|
@@ -219,14 +220,14 @@ const ni = {
|
|
|
219
220
|
}
|
|
220
221
|
});
|
|
221
222
|
export {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
ai as ACTION_FIELD,
|
|
224
|
+
si as CHECKED_FIELD,
|
|
225
|
+
Ei as CREATE_TIME_FIELD,
|
|
226
|
+
Di as DATE_FIELD,
|
|
226
227
|
c as DATE_TIME_FIELD,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
fi as ID_FIELD,
|
|
229
|
+
di as NAME_FIELD,
|
|
230
|
+
ui as SEQ_FIELD,
|
|
231
|
+
ci as STATUS_FIELD,
|
|
232
|
+
li as UPDATE_TIME_FIELD
|
|
232
233
|
};
|
|
@@ -92,6 +92,7 @@ import { useNamespace as M } from "../../hooks/use-namespace/index.js";
|
|
|
92
92
|
import "@popperjs/core";
|
|
93
93
|
import "../../hooks/use-z-index/index.js";
|
|
94
94
|
import "../message/index.js";
|
|
95
|
+
import "../infinite-scroll/index.js";
|
|
95
96
|
import { EVENT_CODE as k } from "@vft/constants";
|
|
96
97
|
import { TabsRootContextKey as ct } from "./types.js";
|
|
97
98
|
import ut from "./tab-bar.vue2.js";
|
|
@@ -100,7 +101,7 @@ const mt = (
|
|
|
100
101
|
M("tab-nav")
|
|
101
102
|
), ft = D({
|
|
102
103
|
name: "vft-tab-nav"
|
|
103
|
-
}),
|
|
104
|
+
}), ne = /* @__PURE__ */ D({
|
|
104
105
|
...ft,
|
|
105
106
|
props: {
|
|
106
107
|
panes: {},
|
|
@@ -259,5 +260,5 @@ const mt = (
|
|
|
259
260
|
}
|
|
260
261
|
});
|
|
261
262
|
export {
|
|
262
|
-
|
|
263
|
+
ne as default
|
|
263
264
|
};
|