wyfe-ivue 1.11.0 → 1.11.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wyfe-ivue",
3
3
  "description": "基于 Vite7 + Vue3 + Typescript5 + ElementPlus2 构建的高性能【万有前端·iVue】组件库",
4
- "version": "1.11.0",
4
+ "version": "1.11.1",
5
5
  "homepage": "https://wyfe.top/ivue",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.cjs",
@@ -1,145 +0,0 @@
1
- import { Y as W, G as L, a2 as q, a1 as D } from "./index-BzpdGcIr.js";
2
- import { h as O, E as T, i as $, j, k as z, l as A } from "./useFormHook-Bxxw2zWI.js";
3
- import "./el-radio-ChRLBFg7.js";
4
- import { defineComponent as G, computed as H, onMounted as Y, createElementBlock as k, openBlock as n, normalizeStyle as d, createVNode as i, createElementVNode as J, withModifiers as X, withCtx as c, Fragment as Z, renderList as x, unref as t, createBlock as s, createCommentVNode as f, withKeys as u, renderSlot as ee, createTextVNode as b, nextTick as oe } from "vue";
5
- const le = { class: "btnWrapper" }, ae = /* @__PURE__ */ G({
6
- __name: "InlineForm",
7
- props: W,
8
- emits: ["onQuery"],
9
- setup(_, { expose: V, emit: P }) {
10
- const p = _, m = P, w = H(
11
- () => p.showBorberBottom ? "1px solid var(--el-border-color)" : ""
12
- );
13
- Y(() => {
14
- document.querySelectorAll(".el-select__input").forEach((o) => {
15
- o.addEventListener(
16
- "keydown",
17
- (a) => {
18
- a.key === "Enter" && a.stopImmediatePropagation();
19
- },
20
- !0
21
- );
22
- });
23
- });
24
- const {
25
- efRef: C,
26
- cascaderRef: g,
27
- formColumnsComputed: E,
28
- selectOptions: M,
29
- cascaderOptions: v,
30
- dateFormatComputed: h,
31
- transformFieldProps: I,
32
- handleCascaderChange: B
33
- } = O(p), r = async () => {
34
- await oe(), m("onQuery", I(p.formColumns, p.formModel));
35
- }, F = () => {
36
- m("onQuery", {});
37
- };
38
- return V({ efRef: C, cascaderRef: g }), (o, a) => {
39
- const U = L, S = j, R = z, K = A, N = $, Q = T, y = q;
40
- return n(), k("div", {
41
- class: "inline-form",
42
- style: d({ borderBottom: w.value })
43
- }, [
44
- i(Q, {
45
- ref_key: "efRef",
46
- ref: C,
47
- inline: "",
48
- model: o.formModel,
49
- "label-suffix": o.labelSuffix,
50
- onSubmit: a[0] || (a[0] = X(() => {
51
- }, ["prevent"]))
52
- }, {
53
- default: c(() => [
54
- (n(!0), k(Z, null, x(t(E), (e) => (n(), s(N, {
55
- key: e.label,
56
- label: e.label
57
- }, {
58
- default: c(() => [
59
- e.inputConfig ? (n(), s(U, {
60
- key: 0,
61
- modelValue: o.formModel[e.prop],
62
- "onUpdate:modelValue": (l) => o.formModel[e.prop] = l,
63
- placeholder: e.inputConfig.placeholder || "请输入",
64
- maxlength: e.inputConfig.maxlength || "",
65
- "show-word-limit": !!e.inputConfig.maxlength,
66
- style: d({ width: e.inputConfig.width || o.formItemWidth }),
67
- clearable: e.inputConfig.clearable ?? !0,
68
- onClear: r,
69
- onKeyup: u(r, ["enter"])
70
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "maxlength", "show-word-limit", "style", "clearable"])) : f("", !0),
71
- e.selectConfig ? (n(), s(S, {
72
- key: 1,
73
- modelValue: o.formModel[e.prop],
74
- "onUpdate:modelValue": (l) => o.formModel[e.prop] = l,
75
- options: t(M)(e),
76
- props: e.selectConfig?.props || o.dictProps,
77
- style: d({ width: e.selectConfig.width || o.formItemWidth }),
78
- clearable: e.selectConfig.clearable ?? !0,
79
- onClear: r,
80
- onKeyup: u(r, ["enter"])
81
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "style", "clearable"])) : f("", !0),
82
- e.cascaderConfig ? (n(), s(R, {
83
- key: 2,
84
- ref_for: !0,
85
- ref_key: "cascaderRef",
86
- ref: g,
87
- modelValue: o.formModel[e.prop],
88
- "onUpdate:modelValue": (l) => o.formModel[e.prop] = l,
89
- options: t(v)(e),
90
- props: e.cascaderConfig?.props || {},
91
- style: d({ width: e.cascaderConfig.width || o.formItemWidth }),
92
- clearable: e.cascaderConfig.clearable ?? !0,
93
- onChange: (l) => t(B)(l, e),
94
- onClear: r
95
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "style", "clearable", "onChange"])) : f("", !0),
96
- e.datePickerConfig ? (n(), s(K, {
97
- key: 3,
98
- modelValue: o.formModel[e.prop],
99
- "onUpdate:modelValue": (l) => o.formModel[e.prop] = l,
100
- type: e.datePickerConfig.type || "date",
101
- "range-separator": e.datePickerConfig.rangeSeparator || "至",
102
- "start-placeholder": e.datePickerConfig.startPlaceholder || "开始日期",
103
- "end-placeholder": e.datePickerConfig.endPlaceholder || "结束日期",
104
- format: t(h)(e.datePickerConfig),
105
- "value-format": t(h)(e.datePickerConfig),
106
- clearable: e.datePickerConfig.clearable ?? !0,
107
- "disabled-date": e.datePickerConfig.disabledDate,
108
- placeholder: e.datePickerConfig.placeholder || "请选择",
109
- style: d({ width: e.datePickerConfig.width ?? "100%" }),
110
- onCalendarChange: e.datePickerConfig.onCalendarChange,
111
- onClear: (l) => e.datePickerConfig?.onClear?.() || r,
112
- onKeyup: u(r, ["enter"])
113
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "range-separator", "start-placeholder", "end-placeholder", "format", "value-format", "clearable", "disabled-date", "placeholder", "style", "onCalendarChange", "onClear"])) : f("", !0)
114
- ]),
115
- _: 2
116
- }, 1032, ["label"]))), 128))
117
- ]),
118
- _: 1
119
- }, 8, ["model", "label-suffix"]),
120
- J("div", le, [
121
- i(y, {
122
- type: "primary",
123
- loading: o.queryLoading,
124
- onClick: r
125
- }, {
126
- default: c(() => [...a[1] || (a[1] = [
127
- b(" 查询 ", -1)
128
- ])]),
129
- _: 1
130
- }, 8, ["loading"]),
131
- i(y, { onClick: F }, {
132
- default: c(() => [...a[2] || (a[2] = [
133
- b("重置", -1)
134
- ])]),
135
- _: 1
136
- }),
137
- ee(o.$slots, "formRight", {}, void 0, !0)
138
- ])
139
- ], 4);
140
- };
141
- }
142
- }), se = /* @__PURE__ */ D(ae, [["__scopeId", "data-v-9920d7ae"]]);
143
- export {
144
- se as default
145
- };
@@ -1,76 +0,0 @@
1
- import { b6 as s } from "./index-BzpdGcIr.js";
2
- import { defineComponent as f, defineAsyncComponent as g, resolveComponent as h, createBlock as t, openBlock as n, withCtx as r, createElementBlock as u, Fragment as c, renderList as C, renderSlot as b, mergeProps as d, unref as y, normalizeProps as j, guardReactiveProps as k } from "vue";
3
- const R = /* @__PURE__ */ f({
4
- __name: "RecTableColumn",
5
- props: {
6
- columnObj: {
7
- type: Object,
8
- default: () => ({})
9
- },
10
- tableColumnAlign: {
11
- type: String,
12
- default: "center"
13
- },
14
- tableProps: {
15
- type: Object,
16
- default: () => ({})
17
- }
18
- },
19
- setup(l) {
20
- const i = g(() => import("./Span-B5vOPQxo.js"));
21
- return (a, O) => {
22
- const m = h("RecTableColumn", !0), p = s;
23
- return n(), t(p, {
24
- label: l.columnObj.label,
25
- align: l.columnObj.align || l.tableColumnAlign
26
- }, {
27
- header: r(() => [
28
- b(a.$slots, "header", j(k({ label: l.columnObj.label, prop: l.columnObj.prop })))
29
- ]),
30
- default: r(() => [
31
- (n(!0), u(c, null, C(l.columnObj.children, (e) => (n(), u(c, {
32
- key: e.prop
33
- }, [
34
- e.children && e.children.length ? (n(), t(m, {
35
- key: 0,
36
- columnObj: e
37
- }, null, 8, ["columnObj"])) : (n(), t(p, {
38
- key: 1,
39
- label: e.label,
40
- prop: e.prop,
41
- width: e.width,
42
- "min-width": e.minWidth,
43
- align: e.align || l.tableColumnAlign
44
- }, {
45
- default: r(({ row: o }) => [
46
- e.prop && Object.keys(o).length ? (n(), u(c, { key: 0 }, [
47
- e?.extConfig?.slot ? b(a.$slots, e.prop, d({
48
- key: 0,
49
- ref_for: !0
50
- }, {
51
- row: o,
52
- data: o[e.prop],
53
- dict: e.extConfig?.dict
54
- })) : (n(), t(y(i), {
55
- key: 1,
56
- row: o,
57
- item: e,
58
- tableProps: l.tableProps
59
- }, null, 8, ["row", "item", "tableProps"]))
60
- ], 64)) : b(a.$slots, "default", d({
61
- key: 1,
62
- ref_for: !0
63
- }, { row: o }))
64
- ]),
65
- _: 2
66
- }, 1032, ["label", "prop", "width", "min-width", "align"]))
67
- ], 64))), 128))
68
- ]),
69
- _: 3
70
- }, 8, ["label", "align"]);
71
- };
72
- }
73
- });
74
- export {
75
- R as default
76
- };