wyfe-ivue 0.4.1 → 0.5.0

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.
@@ -1,5 +1,5 @@
1
- import { c as I, E as S, f as U, e as K } from "./index-xDcYt7r1.js";
2
- import { u as N, E as Q, a as L, b as R, c as W } from "./useFormHook-DXKKdPmC.js";
1
+ import { c as I, E as S, f as U, e as K } from "./index-Bi7nW-sZ.js";
2
+ import { u as N, E as Q, a as L, b as R, c as W } from "./useFormHook-BVZ_gZcT.js";
3
3
  import { defineComponent as q, computed as z, onMounted as A, createElementBlock as C, openBlock as t, normalizeStyle as a, createVNode as f, createElementVNode as D, withModifiers as H, withCtx as d, Fragment as T, renderList as j, createBlock as p, createCommentVNode as i, withKeys as u, unref as g, createTextVNode as _ } from "vue";
4
4
  const G = { class: "btnWrapper" }, J = /* @__PURE__ */ q({
5
5
  __name: "InlineForm",
@@ -1,4 +1,4 @@
1
- import { aZ as m } from "./index-xDcYt7r1.js";
1
+ import { aZ as m } from "./index-Bi7nW-sZ.js";
2
2
  import { defineComponent as g, defineAsyncComponent as C, resolveComponent as s, createBlock as t, openBlock as n, withCtx as r, createElementBlock as u, Fragment as c, renderList as h, renderSlot as b, mergeProps as d, unref as y, normalizeProps as j, guardReactiveProps as k } from "vue";
3
3
  const R = /* @__PURE__ */ g({
4
4
  __name: "RecTableColumn",
@@ -17,7 +17,7 @@ const R = /* @__PURE__ */ g({
17
17
  }
18
18
  },
19
19
  setup(l) {
20
- const i = C(() => import("./Span-Xf_vOt2-.js"));
20
+ const i = C(() => import("./Span-r-IKXZvi.js"));
21
21
  return (a, O) => {
22
22
  const f = s("RecTableColumn", !0), p = m;
23
23
  return n(), t(p, {
@@ -1,7 +1,7 @@
1
- import { b as F, m as y, d as C, _ as M, u as I, i as V, a as T, w as O, c as A, E as H, e as J } from "./index-xDcYt7r1.js";
2
- import { u as Q, E as X, a as Y, b as Z, c as ee } from "./useFormHook-DXKKdPmC.js";
3
- import { E as oe, a as le } from "./el-radio-DKNAKKl_.js";
4
- import { defineComponent as m, inject as te, computed as h, createBlock as d, openBlock as n, resolveDynamicComponent as K, normalizeStyle as v, normalizeClass as $, unref as r, withCtx as c, renderSlot as E, provide as ae, createCommentVNode as f, createVNode as N, createElementBlock as k, Fragment as S, renderList as R, withDirectives as ne, withKeys as se, toDisplayString as j, createTextVNode as re, mergeProps as pe } from "vue";
1
+ import { b as F, m as b, d as C, _ as M, u as I, i as V, a as T, w as O, c as A, E as H, e as J } from "./index-Bi7nW-sZ.js";
2
+ import { u as Q, E as X, a as Y, b as Z, c as ee } from "./useFormHook-BVZ_gZcT.js";
3
+ import { E as oe, a as le } from "./el-radio-DgLOuieg.js";
4
+ import { defineComponent as m, inject as te, computed as h, createBlock as d, openBlock as n, resolveDynamicComponent as K, normalizeStyle as v, normalizeClass as $, unref as r, withCtx as i, renderSlot as E, provide as ae, createCommentVNode as f, createVNode as N, createElementBlock as k, Fragment as S, renderList as R, withDirectives as ne, withKeys as se, toDisplayString as j, createTextVNode as re, mergeProps as pe } from "vue";
5
5
  const ue = F({
6
6
  tag: {
7
7
  type: String,
@@ -25,23 +25,23 @@ const ue = F({
25
25
  },
26
26
  xs: {
27
27
  type: C([Number, Object]),
28
- default: () => y({})
28
+ default: () => b({})
29
29
  },
30
30
  sm: {
31
31
  type: C([Number, Object]),
32
- default: () => y({})
32
+ default: () => b({})
33
33
  },
34
34
  md: {
35
35
  type: C([Number, Object]),
36
- default: () => y({})
36
+ default: () => b({})
37
37
  },
38
38
  lg: {
39
39
  type: C([Number, Object]),
40
- default: () => y({})
40
+ default: () => b({})
41
41
  },
42
42
  xl: {
43
43
  type: C([Number, Object]),
44
- default: () => y({})
44
+ default: () => b({})
45
45
  }
46
46
  }), U = Symbol("rowContextKey"), de = m({
47
47
  name: "ElCol"
@@ -49,10 +49,10 @@ const ue = F({
49
49
  ...de,
50
50
  props: ue,
51
51
  setup(p) {
52
- const t = p, { gutter: u } = te(U, { gutter: h(() => 0) }), s = I("col"), i = h(() => {
52
+ const t = p, { gutter: u } = te(U, { gutter: h(() => 0) }), s = I("col"), c = h(() => {
53
53
  const l = {};
54
54
  return u.value && (l.paddingLeft = l.paddingRight = `${u.value / 2}px`), l;
55
- }), b = h(() => {
55
+ }), y = h(() => {
56
56
  const l = [];
57
57
  return ["span", "offset", "pull", "push"].forEach((o) => {
58
58
  const g = t[o];
@@ -64,25 +64,25 @@ const ue = F({
64
64
  }), u.value && l.push(s.is("guttered")), [s.b(), l];
65
65
  });
66
66
  return (l, _) => (n(), d(K(l.tag), {
67
- class: $(r(b)),
68
- style: v(r(i))
67
+ class: $(r(y)),
68
+ style: v(r(c))
69
69
  }, {
70
- default: c(() => [
70
+ default: i(() => [
71
71
  E(l.$slots, "default")
72
72
  ]),
73
73
  _: 3
74
74
  }, 8, ["class", "style"]));
75
75
  }
76
76
  });
77
- var ce = /* @__PURE__ */ M(fe, [["__file", "col.vue"]]);
78
- const ie = O(ce), ge = [
77
+ var ie = /* @__PURE__ */ M(fe, [["__file", "col.vue"]]);
78
+ const ce = O(ie), ge = [
79
79
  "start",
80
80
  "center",
81
81
  "end",
82
82
  "space-around",
83
83
  "space-between",
84
84
  "space-evenly"
85
- ], he = ["top", "middle", "bottom"], be = F({
85
+ ], he = ["top", "middle", "bottom"], ye = F({
86
86
  tag: {
87
87
  type: String,
88
88
  default: "div"
@@ -100,29 +100,29 @@ const ie = O(ce), ge = [
100
100
  type: String,
101
101
  values: he
102
102
  }
103
- }), ye = m({
103
+ }), be = m({
104
104
  name: "ElRow"
105
105
  }), Ce = /* @__PURE__ */ m({
106
- ...ye,
107
- props: be,
106
+ ...be,
107
+ props: ye,
108
108
  setup(p) {
109
109
  const t = p, u = I("row"), s = h(() => t.gutter);
110
110
  ae(U, {
111
111
  gutter: s
112
112
  });
113
- const i = h(() => {
113
+ const c = h(() => {
114
114
  const l = {};
115
115
  return t.gutter && (l.marginRight = l.marginLeft = `-${t.gutter / 2}px`), l;
116
- }), b = h(() => [
116
+ }), y = h(() => [
117
117
  u.b(),
118
118
  u.is(`justify-${t.justify}`, t.justify !== "start"),
119
119
  u.is(`align-${t.align}`, !!t.align)
120
120
  ]);
121
121
  return (l, _) => (n(), d(K(l.tag), {
122
- class: $(r(b)),
123
- style: v(r(i))
122
+ class: $(r(y)),
123
+ style: v(r(c))
124
124
  }, {
125
- default: c(() => [
125
+ default: i(() => [
126
126
  E(l.$slots, "default")
127
127
  ]),
128
128
  _: 3
@@ -143,14 +143,14 @@ const _e = O(me), we = {
143
143
  setup(p, { expose: t }) {
144
144
  const u = p, {
145
145
  formRules: s,
146
- dateFormat: i,
147
- selectOptions: b,
146
+ dateFormat: c,
147
+ selectOptions: y,
148
148
  handleSelectChange: l,
149
149
  handleDatePickerChange: _,
150
150
  formRef: P
151
151
  } = Q(u);
152
152
  return t({ formRef: P }), (o, g) => {
153
- const w = H, D = Z, x = ee, z = le, L = oe, B = Y, W = ie, q = _e, G = X;
153
+ const w = H, x = Z, z = ee, D = le, L = oe, B = Y, W = ce, q = _e, G = X;
154
154
  return o.formMode === "rowForm" ? (n(), d(G, {
155
155
  key: 0,
156
156
  ref_key: "formRef",
@@ -163,14 +163,14 @@ const _e = O(me), we = {
163
163
  "validate-on-rule-change": !1,
164
164
  disabled: o.disabled
165
165
  }, {
166
- default: c(() => [
166
+ default: i(() => [
167
167
  N(q, { gutter: o.rowGutter }, {
168
- default: c(() => [
168
+ default: i(() => [
169
169
  (n(!0), k(S, null, R(o.formColumns, (e) => (n(), d(W, {
170
170
  key: e.label,
171
171
  span: e.span || o.colSpan
172
172
  }, {
173
- default: c(() => [
173
+ default: i(() => [
174
174
  !Object.hasOwn(e, "show") || e.show ? (n(), d(B, {
175
175
  key: 0,
176
176
  label: e.hideLabel ? "" : e.label,
@@ -178,7 +178,7 @@ const _e = O(me), we = {
178
178
  "label-width": e.labelWidth,
179
179
  class: $(e.formItemClass || "")
180
180
  }, {
181
- default: c(() => [
181
+ default: i(() => [
182
182
  e.inputConfig ? (n(), k("div", {
183
183
  key: 0,
184
184
  class: "inputWrapper",
@@ -205,17 +205,18 @@ const _e = O(me), we = {
205
205
  ]),
206
206
  e.inputConfig.unit ? (n(), k("span", ke, j(e.inputConfig.unit), 1)) : f("", !0)
207
207
  ], 4)) : f("", !0),
208
- e.selectConfig ? (n(), d(D, {
208
+ e.selectConfig ? (n(), d(x, {
209
209
  key: 1,
210
210
  modelValue: o.formModel[e.prop],
211
211
  "onUpdate:modelValue": (a) => o.formModel[e.prop] = a,
212
- options: r(b)(e),
212
+ options: r(y)(e),
213
213
  props: e.selectConfig?.props || {},
214
214
  placeholder: e.selectConfig.placeholder || "请选择",
215
215
  disabled: e.selectConfig.disabled || !1,
216
+ "popper-style": "z-index:999999 !important",
216
217
  onChange: (a) => r(l)(a, e)
217
218
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "onChange"])) : f("", !0),
218
- e.datePickerConfig ? (n(), d(x, {
219
+ e.datePickerConfig ? (n(), d(z, {
219
220
  key: 2,
220
221
  modelValue: o.formModel[e.prop],
221
222
  "onUpdate:modelValue": (a) => o.formModel[e.prop] = a,
@@ -223,8 +224,8 @@ const _e = O(me), we = {
223
224
  "range-separator": e.datePickerConfig.rangeSeparator || "-",
224
225
  "start-placeholder": e.datePickerConfig.startPlaceholder || "",
225
226
  "end-placeholder": e.datePickerConfig.endPlaceholder || "",
226
- format: e.datePickerConfig.dateFormat || r(i)(e.datePickerConfig.type),
227
- "value-format": e.datePickerConfig.dateFormat || r(i)(e.datePickerConfig.type),
227
+ format: e.datePickerConfig.dateFormat || r(c)(e.datePickerConfig.type),
228
+ "value-format": e.datePickerConfig.dateFormat || r(c)(e.datePickerConfig.type),
228
229
  placeholder: e.datePickerConfig.placeholder || "请选择",
229
230
  style: v({ width: e.datePickerConfig.width ?? "100%" }),
230
231
  onChange: (a) => r(_)(a, e, o.formModel)
@@ -235,11 +236,11 @@ const _e = O(me), we = {
235
236
  "onUpdate:modelValue": (a) => o.formModel[e.prop] = a,
236
237
  onChange: e.radioConfig?.onChange
237
238
  }, {
238
- default: c(() => [
239
- (n(!0), k(S, null, R(e.radioConfig.options, (a) => (n(), d(z, {
239
+ default: i(() => [
240
+ (n(!0), k(S, null, R(e.radioConfig.options, (a) => (n(), d(D, {
240
241
  value: a.value
241
242
  }, {
242
- default: c(() => [
243
+ default: i(() => [
243
244
  re(j(a.label), 1)
244
245
  ]),
245
246
  _: 2
@@ -265,7 +266,7 @@ const _e = O(me), we = {
265
266
  }, 8, ["model", "rules", "label-width", "label-suffix", "label-position", "disabled"])) : f("", !0);
266
267
  };
267
268
  }
268
- }), Ne = /* @__PURE__ */ J(ve, [["__scopeId", "data-v-0a8bca16"]]);
269
+ }), Ne = /* @__PURE__ */ J(ve, [["__scopeId", "data-v-66796e79"]]);
269
270
  export {
270
271
  Ne as default
271
272
  };
@@ -1,5 +1,5 @@
1
- import { aZ as r } from "./index-xDcYt7r1.js";
2
- import { a as s } from "./el-radio-DKNAKKl_.js";
1
+ import { aZ as r } from "./index-Bi7nW-sZ.js";
2
+ import { a as s } from "./el-radio-DgLOuieg.js";
3
3
  import { defineComponent as b, computed as x, createBlock as o, openBlock as a, withCtx as V, createVNode as w } from "vue";
4
4
  const p = /* @__PURE__ */ b({
5
5
  __name: "Selection",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as o, createElementBlock as n, openBlock as r, normalizeStyle as s, normalizeClass as i, toDisplayString as c } from "vue";
2
- import { b0 as p } from "./index-xDcYt7r1.js";
2
+ import { b0 as p } from "./index-Bi7nW-sZ.js";
3
3
  const y = /* @__PURE__ */ l({
4
4
  __name: "Span",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as k, inject as Z, computed as m, defineComponent as h, createElementBlock as E, openBlock as B, normalizeClass as f, unref as e, createElementVNode as g, withDirectives as A, withModifiers as V, isRef as D, vModelRadio as L, renderSlot as R, createTextVNode as T, toDisplayString as U, nextTick as x, normalizeStyle as ee, onMounted as ae, provide as oe, reactive as le, toRefs as se, watch as te, Fragment as ne, renderList as re, createBlock as ie, mergeProps as de } from "vue";
2
- import { ah as $, i as N, aq as w, b as S, Y as I, U as P, P as K, a_ as z, a1 as ue, $ as ce, a$ as pe, _ as C, u as G, M as ve, d as F, ax as be, T as me, V as fe, L as ye, a0 as _e, aB as M, w as ge } from "./index-xDcYt7r1.js";
2
+ import { ah as $, i as N, aq as w, b as S, Y as I, U as P, P as K, a_ as z, a1 as ue, $ as ce, a$ as pe, _ as C, u as G, M as ve, d as F, ax as be, T as me, V as fe, L as ye, a0 as _e, aB as M, w as ge } from "./index-Bi7nW-sZ.js";
3
3
  const q = S({
4
4
  modelValue: {
5
5
  type: [String, Number, Boolean],