@web-utils/form-ui 1.0.0-beta75 → 1.0.0-beta77
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/chunks/{CzA5Lt_l2.mjs → B-WTB0ce2.mjs} +1 -1
- package/chunks/{DjFlEzPM2.mjs → BK6DiJfX2.mjs} +3 -3
- package/chunks/{aG2VZRRm2.mjs → BLBHnUme2.mjs} +1 -1
- package/chunks/{CMyOgBni2.mjs → BM8snKHN2.mjs} +1 -1
- package/chunks/{CEDZmNDG2.mjs → BTNnujZA2.mjs} +1 -1
- package/chunks/{DS86zxjN2.mjs → BVsvRLea2.mjs} +2 -2
- package/chunks/{BCI1maFm2.mjs → BaB0bq4I2.mjs} +1 -1
- package/chunks/{B2p5StJk2.mjs → BvlU_Z6D2.mjs} +1 -1
- package/chunks/{B5gBCT5G2.mjs → CI-pH-gR2.mjs} +1 -1
- package/chunks/{BA_en_FG2.mjs → CVM0lwn22.mjs} +1 -1
- package/chunks/{CizBLN6J2.mjs → CWaId08S2.mjs} +1 -1
- package/chunks/{Dv-_PE3-.mjs → CeEYChF4.mjs} +2 -2
- package/chunks/{Bh4XihEh.mjs → Cg6ahpHk.mjs} +1 -1
- package/chunks/{BoXQg1h12.mjs → CoPlnbwi2.mjs} +2 -2
- package/chunks/{C_UxYEd72.mjs → D5_ezGUV2.mjs} +2 -2
- package/chunks/{DCTK5oyK.mjs → DMDsZeqv.mjs} +1 -1
- package/chunks/{CfxgQ-wf2.mjs → DP7eF99m2.mjs} +1 -1
- package/chunks/{CstdEG9K2.mjs → DRXM1Mt22.mjs} +1 -1
- package/chunks/{nZTrOKQf2.mjs → DS4Iw8Y42.mjs} +66 -66
- package/chunks/{Cfz-cav7.mjs → Dgwcljur.mjs} +63 -41
- package/chunks/{_BhTD9wf.mjs → Dhdoa4M6.mjs} +1 -1
- package/chunks/{UCeucUsB.mjs → Dpzw7Rtp.mjs} +1 -1
- package/chunks/{BbO6NHlx2.mjs → JjnlFlI02.mjs} +109 -109
- package/chunks/{VbE4wwJT2.mjs → kAaQhLJs2.mjs} +1 -1
- package/chunks/{Cjxblk9N2.mjs → lPQBM7xc2.mjs} +2 -2
- package/chunks/{CBsdczGQ.mjs → ohCkWdwS.mjs} +1 -1
- package/chunks/{Bp4VotK62.mjs → uDwSrV7X2.mjs} +2 -2
- package/chunks/{C6AxHCkY2.mjs → x2jJ6cfy2.mjs} +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/helper/input.d.ts +3 -1
- package/helper/input.mjs +1 -1
- package/helper/sub-table-plus.d.ts +1 -1
- package/index.css +1 -1
- package/index.mjs +28 -28
- package/package.json +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +15 -16
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +36 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/slide.mjs";
|
|
3
3
|
import { ElSlider as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { commonAutoBindProps as t, commonManualBindProps as n } from "../props/common.mjs";
|
|
3
|
-
import { n as r, o as i } from "./
|
|
4
|
-
import { n as a } from "./
|
|
5
|
-
import { n as o, t as s } from "./
|
|
3
|
+
import { n as r, o as i } from "./Dgwcljur.mjs";
|
|
4
|
+
import { n as a } from "./Dpzw7Rtp.mjs";
|
|
5
|
+
import { n as o, t as s } from "./JjnlFlI02.mjs";
|
|
6
6
|
import { computed as c, createVNode as l, getCurrentInstance as u, mergeProps as d, useModel as f, useTemplateRef as p } from "vue";
|
|
7
7
|
import { isArray as m, isString as h, trace as g, warning as _ } from "@web-utils/core";
|
|
8
8
|
import { useEventBus as v } from "@web-utils/vue/hooks/useEventBus";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { t as n } from "./b_78-Wov2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/input-number.mjs";
|
|
3
3
|
import { ElInputNumber as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
3
|
-
import { n as i, t as a } from "./
|
|
2
|
+
import { n, o as r } from "./Dgwcljur.mjs";
|
|
3
|
+
import { n as i, t as a } from "./DS4Iw8Y42.mjs";
|
|
4
4
|
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
5
|
//#region src/components/table/form-table.ts
|
|
6
6
|
var u = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/select.mjs";
|
|
4
4
|
import { ElOption as a, ElSelect as o } from "element-plus/es";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./Dgwcljur.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/text.mjs";
|
|
5
5
|
import { ElText as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import n from "../x-input-tag/index.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-tag.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { t as n } from "./C3pzNRoU2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-cron.mjs";
|
|
4
4
|
import { ElInput as a, ElPopover as o } from "element-plus/es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time-select.mjs";
|
|
3
3
|
import { ElTimeSelect as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/checkbox-group.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./Dgwcljur.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
-
import { t as a } from "./
|
|
4
|
+
import { t as a } from "./Dpzw7Rtp.mjs";
|
|
5
5
|
import { ElCheckbox as o, ElCheckboxButton as s, ElCheckboxGroup as c } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import { computed as l, createVNode as u, defineComponent as d, isVNode as f, mergeProps as p, useModel as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { t as n } from "./b_78-Wov2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select-multiple.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./Dgwcljur.mjs";
|
|
2
|
+
import { t } from "./Dpzw7Rtp.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./Dgwcljur.mjs";
|
|
2
|
+
import { t } from "./Dpzw7Rtp.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/date.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./Dgwcljur.mjs";
|
|
3
3
|
import { ElDatePicker as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import { computed as a, createVNode as o, mergeProps as s } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./Dgwcljur.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/image.mjs";
|
|
5
5
|
import { ElImage as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time.mjs";
|
|
3
3
|
import { ElTimePicker as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -2,20 +2,20 @@ import { t as e } from "./B1MSrc6f.mjs";
|
|
|
2
2
|
import { t } from "./Cb7kjZa-.mjs";
|
|
3
3
|
import { t as n } from "./mnqSaATq.mjs";
|
|
4
4
|
import { t as r } from "./tzjUpVIj.mjs";
|
|
5
|
-
import { n as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
5
|
+
import { n as i } from "./Dgwcljur.mjs";
|
|
6
|
+
import { t as a } from "./ohCkWdwS.mjs";
|
|
7
|
+
import { t as o } from "./Dpzw7Rtp.mjs";
|
|
8
|
+
import { t as s } from "./CeEYChF4.mjs";
|
|
9
|
+
import { t as c } from "./DMDsZeqv.mjs";
|
|
10
|
+
import { t as l } from "./BTNnujZA2.mjs";
|
|
11
|
+
import { t as u } from "./D5_ezGUV2.mjs";
|
|
12
|
+
import { t as d } from "./BaB0bq4I2.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
|
-
import { t as p } from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
14
|
+
import { t as p } from "./uDwSrV7X2.mjs";
|
|
15
|
+
import { formContextKey as m, formItemContextKey as h } from "element-plus/es";
|
|
16
|
+
import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
|
|
17
|
+
import { findTreeChildren as M, isFunction as N } from "@web-utils/core";
|
|
18
|
+
import { cloneDeep as P } from "@web-utils/integrations/lodash";
|
|
19
19
|
//#region src/components/table/sub-table.ts
|
|
20
20
|
var F = {
|
|
21
21
|
modelValue: Array,
|
|
@@ -59,11 +59,11 @@ var F = {
|
|
|
59
59
|
},
|
|
60
60
|
inject: {
|
|
61
61
|
elForm: {
|
|
62
|
-
from:
|
|
62
|
+
from: m,
|
|
63
63
|
default: ""
|
|
64
64
|
},
|
|
65
65
|
elFormItem: {
|
|
66
|
-
from:
|
|
66
|
+
from: h,
|
|
67
67
|
default: ""
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -109,7 +109,7 @@ var F = {
|
|
|
109
109
|
},
|
|
110
110
|
methods: {
|
|
111
111
|
getCellType(e, t) {
|
|
112
|
-
return
|
|
112
|
+
return N(t.getType) ? t.getType(e, t) : t.type;
|
|
113
113
|
},
|
|
114
114
|
getInputAttr(e, t, n) {
|
|
115
115
|
var r;
|
|
@@ -134,7 +134,7 @@ var F = {
|
|
|
134
134
|
} catch {}
|
|
135
135
|
},
|
|
136
136
|
add(e, t) {
|
|
137
|
-
let n =
|
|
137
|
+
let n = P(this.rowProps);
|
|
138
138
|
this.rows.splice(t + 1, 0, n);
|
|
139
139
|
},
|
|
140
140
|
addRow() {
|
|
@@ -165,7 +165,7 @@ var F = {
|
|
|
165
165
|
if (r) return r.name;
|
|
166
166
|
}
|
|
167
167
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
168
|
-
let [r] =
|
|
168
|
+
let [r] = M(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
169
169
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
170
170
|
}
|
|
171
171
|
return e[t.property];
|
|
@@ -178,9 +178,9 @@ var F = {
|
|
|
178
178
|
key: 0,
|
|
179
179
|
style: { color: "#f56c6c" }
|
|
180
180
|
}, z = ["onClick"];
|
|
181
|
-
function B(e, i,
|
|
182
|
-
let P = n, F = o, I = u, B =
|
|
183
|
-
return
|
|
181
|
+
function B(e, i, m, h, M, N) {
|
|
182
|
+
let P = n, F = o, I = u, B = O("FormInputUser"), V = O("FormInputDepartment"), H = d, U = c, W = a, G = s, K = l, q = p, J = r, Y = f, X = t;
|
|
183
|
+
return T(), _(X, w({
|
|
184
184
|
ref: "table",
|
|
185
185
|
class: "sub-table",
|
|
186
186
|
"auto-height": "",
|
|
@@ -193,9 +193,9 @@ function B(e, i, A, j, M, N) {
|
|
|
193
193
|
selection: N.enabled,
|
|
194
194
|
"row-db-click": e.rowDbClick,
|
|
195
195
|
onSelectionChange: N.onSelectionChange
|
|
196
|
-
}),
|
|
197
|
-
default:
|
|
198
|
-
|
|
196
|
+
}), x({
|
|
197
|
+
default: A(() => [
|
|
198
|
+
D(e.$slots, "columns", { columns: e.columns }, () => [(T(!0), y(g, null, E(N.filteredColumns, (t) => (T(), _(Y, {
|
|
199
199
|
key: t.prop,
|
|
200
200
|
label: t.label,
|
|
201
201
|
width: t.width,
|
|
@@ -206,34 +206,34 @@ function B(e, i, A, j, M, N) {
|
|
|
206
206
|
options: t.options,
|
|
207
207
|
"show-overflow-tooltip": !N.available && t.showOverflowTooltip
|
|
208
208
|
}, {
|
|
209
|
-
header:
|
|
210
|
-
default:
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
header: A(() => [!e.disabled && t.required ? (T(), y("span", R, "*")) : v("v-if", !0), S(" " + k(t.label), 1)]),
|
|
210
|
+
default: A(({ row: n, column: r, $index: i }) => [
|
|
211
|
+
v("tag 插槽"),
|
|
212
|
+
D(e.$slots, "tag", {
|
|
213
213
|
row: n,
|
|
214
214
|
column: r,
|
|
215
215
|
index: i
|
|
216
216
|
}),
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
v("列默认插槽,名字和 prop 保持一致"),
|
|
218
|
+
D(e.$slots, t.prop, {
|
|
219
219
|
row: n,
|
|
220
220
|
column: r,
|
|
221
221
|
index: i
|
|
222
222
|
}, () => {
|
|
223
223
|
var e;
|
|
224
|
-
return [N.available ? (
|
|
224
|
+
return [N.available ? (T(), y(g, { key: 0 }, [N.getCellType(n, t) === "input" ? (T(), _(F, w({
|
|
225
225
|
key: 0,
|
|
226
226
|
ref_for: !0
|
|
227
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (
|
|
227
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (T(), _(I, w({
|
|
228
228
|
key: 1,
|
|
229
229
|
ref_for: !0
|
|
230
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (
|
|
230
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (T(), y(g, { key: 2 }, [t.single ? (T(), _(B, w({
|
|
231
231
|
key: 0,
|
|
232
232
|
ref_for: !0
|
|
233
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
233
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (T(), _(B, w({
|
|
234
234
|
key: 1,
|
|
235
235
|
ref_for: !0
|
|
236
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (
|
|
236
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (T(), y(g, { key: 3 }, [t.single ? (T(), _(V, w({
|
|
237
237
|
key: 0,
|
|
238
238
|
ref_for: !0
|
|
239
239
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -244,16 +244,16 @@ function B(e, i, A, j, M, N) {
|
|
|
244
244
|
"name",
|
|
245
245
|
"onUpdate:name",
|
|
246
246
|
"onUpdate:modelValue"
|
|
247
|
-
])) : (
|
|
247
|
+
])) : (T(), _(V, w({
|
|
248
248
|
key: 1,
|
|
249
249
|
ref_for: !0
|
|
250
250
|
}, N.getInputAttr(n, t, i), {
|
|
251
251
|
disabled: N.isInputDisabled(n, t),
|
|
252
252
|
"onUpdate:modelValue": (e) => N.onInput(n, e, t)
|
|
253
|
-
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (
|
|
253
|
+
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (T(), _(H, w({
|
|
254
254
|
key: 4,
|
|
255
255
|
ref_for: !0
|
|
256
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (
|
|
256
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (T(), _(U, w({
|
|
257
257
|
key: 5,
|
|
258
258
|
ref_for: !0
|
|
259
259
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -268,19 +268,19 @@ function B(e, i, A, j, M, N) {
|
|
|
268
268
|
"end",
|
|
269
269
|
"onUpdate:end",
|
|
270
270
|
"onUpdate:modelValue"
|
|
271
|
-
])) : N.getCellType(n, t) === "cascader" ? (
|
|
271
|
+
])) : N.getCellType(n, t) === "cascader" ? (T(), _(W, w({
|
|
272
272
|
key: 6,
|
|
273
273
|
ref_for: !0
|
|
274
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (
|
|
274
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (T(), _(G, w({
|
|
275
275
|
key: 7,
|
|
276
276
|
ref_for: !0
|
|
277
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (
|
|
277
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (T(), _(K, w({
|
|
278
278
|
key: 8,
|
|
279
279
|
ref_for: !0
|
|
280
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (
|
|
280
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (T(), _(q, w({
|
|
281
281
|
key: 9,
|
|
282
282
|
ref_for: !0
|
|
283
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
283
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (T(), y(g, { key: 10 }, [S(k(N.getVal(n, r, t)), 1)], 64))], 64)) : t.dicType || (e = t.options) != null && e.length ? (T(), _(J, {
|
|
284
284
|
key: 1,
|
|
285
285
|
"dict-type": t.dicType,
|
|
286
286
|
"id-as-value": t.idAsValue,
|
|
@@ -295,7 +295,7 @@ function B(e, i, A, j, M, N) {
|
|
|
295
295
|
"column",
|
|
296
296
|
"row",
|
|
297
297
|
"options"
|
|
298
|
-
])) : (
|
|
298
|
+
])) : (T(), y(g, { key: 2 }, [S(k(N.getVal(n, r, t)), 1)], 64))];
|
|
299
299
|
})
|
|
300
300
|
]),
|
|
301
301
|
_: 2
|
|
@@ -309,13 +309,13 @@ function B(e, i, A, j, M, N) {
|
|
|
309
309
|
"options",
|
|
310
310
|
"show-overflow-tooltip"
|
|
311
311
|
]))), 128))]),
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
v(" 自定义操作列 "),
|
|
313
|
+
D(e.$slots, "handle", {
|
|
314
314
|
add: N.add,
|
|
315
315
|
remove: N.remove
|
|
316
316
|
}),
|
|
317
|
-
|
|
318
|
-
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (
|
|
317
|
+
v(" 操作列 "),
|
|
318
|
+
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (T(), _(Y, {
|
|
319
319
|
key: 0,
|
|
320
320
|
label: "操作",
|
|
321
321
|
fixed: "right",
|
|
@@ -323,11 +323,11 @@ function B(e, i, A, j, M, N) {
|
|
|
323
323
|
align: "center",
|
|
324
324
|
prop: "menu"
|
|
325
325
|
}, {
|
|
326
|
-
header:
|
|
326
|
+
header: A(({ column: t, $index: n }) => [D(e.$slots, "handle-column-header", {
|
|
327
327
|
column: t,
|
|
328
328
|
index: n
|
|
329
|
-
}, () => [
|
|
330
|
-
default:
|
|
329
|
+
}, () => [S(k(t.label), 1)])]),
|
|
330
|
+
default: A(({ row: t, $index: n }) => [e.showHandleColumnAddButton && e.modelValue.length < e.maxLimit ? (T(), y("i", {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
333
333
|
style: {
|
|
@@ -336,8 +336,8 @@ function B(e, i, A, j, M, N) {
|
|
|
336
336
|
cursor: "pointer"
|
|
337
337
|
},
|
|
338
338
|
title: "添加",
|
|
339
|
-
onClick:
|
|
340
|
-
}, null, 8, z)) :
|
|
339
|
+
onClick: j((e) => N.add(t, n), ["stop"])
|
|
340
|
+
}, null, 8, z)) : v("v-if", !0), e.modelValue && e.modelValue.length > 1 || e.allowEmpty ? (T(), _(P, {
|
|
341
341
|
key: 1,
|
|
342
342
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
343
343
|
style: {
|
|
@@ -348,27 +348,27 @@ function B(e, i, A, j, M, N) {
|
|
|
348
348
|
confirm: "",
|
|
349
349
|
text: "",
|
|
350
350
|
message: "您确定要删除该行吗?",
|
|
351
|
-
onClick:
|
|
352
|
-
}, null, 8, ["onClick"])) :
|
|
351
|
+
onClick: j((e) => N.remove(t, n), ["stop"])
|
|
352
|
+
}, null, 8, ["onClick"])) : v("v-if", !0)]),
|
|
353
353
|
_: 3
|
|
354
|
-
})) :
|
|
354
|
+
})) : v("v-if", !0)
|
|
355
355
|
]),
|
|
356
356
|
_: 2
|
|
357
357
|
}, [e.editable ? void 0 : {
|
|
358
358
|
name: "toolbar",
|
|
359
|
-
fn:
|
|
359
|
+
fn: A(() => [N.enabled || e.fetchApi ? (T(), y("div", L, [D(e.$slots, "toolbar", {
|
|
360
360
|
addRow: N.addRow,
|
|
361
361
|
delRow: N.delRow,
|
|
362
362
|
refresh: N.refresh
|
|
363
|
-
}, () => [N.enabled ? (
|
|
363
|
+
}, () => [N.enabled ? (T(), y(g, { key: 0 }, [C(P, {
|
|
364
364
|
class: "table-header-button add",
|
|
365
365
|
icon: "el-icon-circle-plus",
|
|
366
366
|
type: "text",
|
|
367
367
|
onClick: N.addRow
|
|
368
368
|
}, {
|
|
369
|
-
default:
|
|
369
|
+
default: A(() => [...i[1] || (i[1] = [S(" 添加 ", -1)])]),
|
|
370
370
|
_: 1
|
|
371
|
-
}, 8, ["onClick"]),
|
|
371
|
+
}, 8, ["onClick"]), C(P, {
|
|
372
372
|
class: "table-header-button remove",
|
|
373
373
|
confirm: "",
|
|
374
374
|
message: "您确定要删除选中的记录吗?",
|
|
@@ -376,9 +376,9 @@ function B(e, i, A, j, M, N) {
|
|
|
376
376
|
text: "",
|
|
377
377
|
onClick: N.delRow
|
|
378
378
|
}, {
|
|
379
|
-
default:
|
|
379
|
+
default: A(() => [...i[2] || (i[2] = [S(" 删除 ", -1)])]),
|
|
380
380
|
_: 1
|
|
381
|
-
}, 8, ["onClick"])], 64)) :
|
|
381
|
+
}, 8, ["onClick"])], 64)) : v("v-if", !0), e.fetchApi ? (T(), _(P, {
|
|
382
382
|
key: 1,
|
|
383
383
|
class: "table-header-button refresh",
|
|
384
384
|
icon: "el-icon-refresh-left",
|
|
@@ -386,20 +386,20 @@ function B(e, i, A, j, M, N) {
|
|
|
386
386
|
disabled: !1,
|
|
387
387
|
onClick: N.refresh
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
389
|
+
default: A(() => [...i[3] || (i[3] = [S(" 刷新 ", -1)])]),
|
|
390
390
|
_: 1
|
|
391
|
-
}, 8, ["onClick"])) :
|
|
391
|
+
}, 8, ["onClick"])) : v("v-if", !0)])])) : v("v-if", !0)]),
|
|
392
392
|
key: "0"
|
|
393
393
|
}, e.allowEmpty && !e.disabled && e.showEmptyAddButton ? {
|
|
394
394
|
name: "empty",
|
|
395
|
-
fn:
|
|
395
|
+
fn: A(() => [b("i", {
|
|
396
396
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
397
397
|
style: {
|
|
398
398
|
"font-size": "20px",
|
|
399
399
|
cursor: "pointer"
|
|
400
400
|
},
|
|
401
401
|
title: "添加",
|
|
402
|
-
onClick: i[0] || (i[0] =
|
|
402
|
+
onClick: i[0] || (i[0] = j((e) => N.add(null, 0), ["stop"]))
|
|
403
403
|
})]),
|
|
404
404
|
key: "1"
|
|
405
405
|
} : void 0]), 1040, [
|