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.
Files changed (64) hide show
  1. package/es/components/backtop/backtop.vue2.js +3 -2
  2. package/es/components/button/use-button.js +3 -3
  3. package/es/components/context-menu/context-menu.vue2.js +3 -2
  4. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  5. package/es/components/header-layout/header-layout.vue2.js +3 -2
  6. package/es/components/index.d.ts +1 -0
  7. package/es/components/index.js +164 -162
  8. package/es/components/infinite-scroll/index.d.ts +26 -0
  9. package/es/components/infinite-scroll/index.js +10 -0
  10. package/es/components/infinite-scroll/infinite-scroll.d.ts +20 -0
  11. package/es/components/infinite-scroll/infinite-scroll.js +92 -0
  12. package/es/components/infinite-scroll/style/css.d.ts +0 -0
  13. package/es/components/infinite-scroll/style/css.js +2 -0
  14. package/es/components/infinite-scroll/style/index.d.ts +0 -0
  15. package/es/components/infinite-scroll/style/index.js +2 -0
  16. package/es/components/md-container/md-container.vue2.js +3 -2
  17. package/es/components/menu/menu-item.vue2.js +21 -20
  18. package/es/components/menu/sub-menu.vue2.js +3 -2
  19. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  20. package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
  21. package/es/components/result/result.vue2.js +3 -2
  22. package/es/components/side-menu/side-menu.vue2.js +3 -2
  23. package/es/components/super-form/component-map.js +11 -10
  24. package/es/components/super-form/super-form-action.vue2.js +3 -2
  25. package/es/components/super-form/super-form-item.vue2.js +35 -34
  26. package/es/components/super-form/super-form.vue2.js +14 -13
  27. package/es/components/table/field.js +19 -18
  28. package/es/components/tabs/tab-nav.vue2.js +3 -2
  29. package/es/index.js +279 -277
  30. package/es/package.json.js +1 -1
  31. package/es/plugin.js +5 -3
  32. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  33. package/lib/components/button/use-button.cjs +1 -1
  34. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  35. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  36. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  37. package/lib/components/index.cjs +1 -1
  38. package/lib/components/index.d.ts +1 -0
  39. package/lib/components/infinite-scroll/index.cjs +1 -0
  40. package/lib/components/infinite-scroll/index.d.ts +26 -0
  41. package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -0
  42. package/lib/components/infinite-scroll/infinite-scroll.d.ts +20 -0
  43. package/lib/components/infinite-scroll/style/css.cjs +1 -0
  44. package/lib/components/infinite-scroll/style/css.d.ts +0 -0
  45. package/lib/components/infinite-scroll/style/index.cjs +1 -0
  46. package/lib/components/infinite-scroll/style/index.d.ts +0 -0
  47. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  48. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  49. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  50. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  51. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  52. package/lib/components/result/result.vue2.cjs +1 -1
  53. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  54. package/lib/components/super-form/component-map.cjs +1 -1
  55. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  56. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  57. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  58. package/lib/components/table/field.cjs +1 -1
  59. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  60. package/lib/index.cjs +1 -1
  61. package/lib/package.json.cjs +1 -1
  62. package/lib/plugin.cjs +1 -1
  63. package/package.json +3 -3
  64. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as ot, useAttrs as ft, reactive as ct, ref as l, computed as h, unref as o, watch as y, nextTick as dt, onMounted as Bt, resolveComponent as ht, openBlock as m, 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";
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
- }), Vo = /* @__PURE__ */ ot({
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 = l({}), B = l(!1), w = l({}), D = l(null), S = l(null), I = l(), e = h(() => ({
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: lt,
270
+ scrollToField: mt,
270
271
  getFieldValue: G,
271
- setFormItemError: mt
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: lt
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: mt
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) ? (m(), c(o(Ct), v({
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 ? (m(), c(o(Pt), d(v({
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"), (m(!0), vt(gt, null, Y(a.value, (u) => (m(), c(Vt, {
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) ? (m(), c(et, d(v({
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) ? (m(), c(et, d(v({
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
- Vo as default
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 ni = {
98
+ const ui = {
98
99
  type: "seq",
99
100
  title: "序号",
100
101
  minWidth: 100,
101
102
  fixed: "left"
102
- }, ui = {
103
+ }, si = {
103
104
  type: "checkbox",
104
105
  title: "",
105
106
  minWidth: 60,
106
107
  fixed: "left"
107
- }, si = {
108
+ }, fi = {
108
109
  field: "id",
109
110
  title: "Id",
110
111
  minWidth: 100
111
- }, fi = {
112
+ }, di = {
112
113
  field: "name",
113
114
  title: "名称",
114
115
  minWidth: 100
115
- }, di = ({
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
- }), Di = ({
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
- }), Ei = ({
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
- }), li = ({
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
- }), ci = ({
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
- ci as ACTION_FIELD,
223
- ui as CHECKED_FIELD,
224
- Di as CREATE_TIME_FIELD,
225
- di as DATE_FIELD,
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
- si as ID_FIELD,
228
- fi as NAME_FIELD,
229
- ni as SEQ_FIELD,
230
- li as STATUS_FIELD,
231
- Ei as UPDATE_TIME_FIELD
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
- }), ie = /* @__PURE__ */ D({
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
- ie as default
263
+ ne as default
263
264
  };