act-plus 1.1.8 → 1.1.10

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
1
  import { defineAsyncComponent as U, reactive as A, ref as g, provide as D, watch as M, resolveComponent as m, openBlock as T, createBlock as W, withCtx as s, createVNode as f, unref as i, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
2
- import { _ as E, g as P, c as H } from "./index-02960f7a.js";
2
+ import { _ as E, g as P, c as H } from "./index-7ef6e17e.js";
3
3
  import { useRoute as K } from "vue-router";
4
4
  const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
5
5
  /* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
@@ -10,7 +10,7 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
10
10
  },
11
11
  emits: ["update:modelValue"],
12
12
  setup(r, { expose: V, emit: Q }) {
13
- const h = K(), L = U(() => import("./dialogConfigBtn-2a3f332b.js")), d = r, w = () => ({
13
+ const h = K(), L = U(() => import("./dialogConfigBtn-3f0f2a3a.js")), d = r, w = () => ({
14
14
  sort: 0,
15
15
  permissionCode: null,
16
16
  requestUrl: "",
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as o, createElementVNode as C, createVNode as r, createTextVNode as i, unref as d, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
2
2
  import { a as J } from "./enum-99519ce0.js";
3
- import { _ as M } from "./index-02960f7a.js";
3
+ import { _ as M } from "./index-7ef6e17e.js";
4
4
  import "vue-router";
5
5
  const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
6
6
  __name: "configFileds",
@@ -9,7 +9,7 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
9
9
  },
10
10
  emits: ["update:modelValue"],
11
11
  setup(u, { emit: v }) {
12
- const F = I(() => import("./dialogAddField-05a8f69d.js")), g = v, h = u, V = H("configData")();
12
+ const F = I(() => import("./dialogAddField-d3fc005c.js")), g = v, h = u, V = H("configData")();
13
13
  let l = U((() => ({
14
14
  tableLoading: !1,
15
15
  showAddFieldDialog: !1,
@@ -1,6 +1,6 @@
1
- import { inject as L, ref as v, watch as W, resolveComponent as s, openBlock as m, createBlock as c, withCtx as l, createVNode as e, unref as o, createTextVNode as I, createElementBlock as g, Fragment as U, renderList as P, createCommentVNode as F } from "vue";
2
- import { S as M } from "./enum-99519ce0.js";
3
- import { _ as Q } from "./index-02960f7a.js";
1
+ import { inject as B, ref as T, watch as j, resolveComponent as m, openBlock as i, createBlock as _, withCtx as l, createVNode as e, unref as o, createTextVNode as E, createElementBlock as y, Fragment as U, renderList as h, createCommentVNode as v } from "vue";
2
+ import { S as I } from "./enum-99519ce0.js";
3
+ import { _ as M } from "./index-7ef6e17e.js";
4
4
  import "vue-router";
5
5
  const A = {
6
6
  __name: "configTable",
@@ -8,8 +8,8 @@ const A = {
8
8
  modelValue: { type: Object, default: () => ({}) }
9
9
  },
10
10
  emits: ["update:modelValue"],
11
- setup(S, { expose: R, emit: D }) {
12
- const x = S, O = () => ({
11
+ setup(F, { expose: S, emit: D }) {
12
+ const O = F, W = () => ({
13
13
  dataUrl: void 0,
14
14
  defaultParams: [],
15
15
  isCheckRow: !1,
@@ -17,51 +17,53 @@ const A = {
17
17
  isPagination: !0,
18
18
  isSort: !0,
19
19
  tableOperateCellWidth: 160,
20
- pageSize: 10
21
- }), N = L("conditionList")();
22
- let h = v(null), a = v(O());
23
- W(
24
- () => x.modelValue,
25
- (i, d) => {
26
- if (i) {
27
- const p = { ...i, defaultParams: [...i.defaultParams || []] };
20
+ pageSize: 10,
21
+ tableQueryLabelWidth: 100,
22
+ tableQueryRowWidth: 5
23
+ }), x = B("conditionList")();
24
+ let w = T(null), a = T(W());
25
+ j(
26
+ () => O.modelValue,
27
+ (s, u) => {
28
+ if (s) {
29
+ const p = { ...s, defaultParams: [...s.defaultParams || []] };
28
30
  if (!p.dataUrl)
29
31
  return;
30
- Object.keys(a.value).forEach((u) => {
31
- ["defaultParams"].includes(u) ? a.value[u] = [...p[u] || []] : a.value[u] = p[u];
32
+ Object.keys(a.value).forEach((d) => {
33
+ ["defaultParams"].includes(d) ? a.value[d] = [...p[d] || []] : a.value[d] = p[d];
32
34
  });
33
35
  }
34
36
  },
35
37
  { deep: !0, immediate: !0 }
36
38
  );
37
- const q = () => {
39
+ const Q = () => {
38
40
  a.value.defaultParams.push({ submitFieldName: "", defaultValue: "", matchValue: "", submitFieldType: "" });
39
- }, z = (i) => {
40
- a.value.defaultParams.splice(i, 1);
41
- }, B = (i) => {
42
- i || (a.value.pageSize = 10);
41
+ }, N = (s) => {
42
+ a.value.defaultParams.splice(s, 1);
43
+ }, q = (s) => {
44
+ s || (a.value.pageSize = 10);
43
45
  };
44
- return R({ formRef: h, form: a }), (i, d) => {
45
- const p = s("el-input"), u = s("el-form-item"), r = s("el-col"), _ = s("el-row"), y = s("el-button"), w = s("el-divider"), k = s("el-option"), C = s("el-select"), b = s("el-switch"), T = s("el-input-number"), j = s("el-form"), E = s("el-card");
46
- return m(), c(E, {
46
+ return S({ formRef: w, form: a }), (s, u) => {
47
+ const p = m("el-input"), d = m("el-form-item"), n = m("el-col"), c = m("el-row"), P = m("el-button"), k = m("el-divider"), C = m("el-option"), R = m("el-select"), b = m("el-switch"), V = m("el-input-number"), L = m("el-form"), z = m("el-card");
48
+ return i(), _(z, {
47
49
  class: "form-card",
48
50
  shadow: "hover",
49
51
  header: "表格配置"
50
52
  }, {
51
53
  default: l(() => [
52
- e(j, {
54
+ e(L, {
53
55
  ref_key: "formRef",
54
- ref: h,
56
+ ref: w,
55
57
  model: o(a),
56
58
  "label-suffix": ":",
57
- "label-width": "110px"
59
+ "label-width": "120"
58
60
  }, {
59
61
  default: l(() => [
60
- e(_, null, {
62
+ e(c, null, {
61
63
  default: l(() => [
62
- e(r, { span: 24 }, {
64
+ e(n, { span: 24 }, {
63
65
  default: l(() => [
64
- e(u, {
66
+ e(d, {
65
67
  label: "表格数据url",
66
68
  prop: "dataUrl",
67
69
  rules: [{ required: !0, message: "必填项", trigger: "blur" }]
@@ -69,7 +71,7 @@ const A = {
69
71
  default: l(() => [
70
72
  e(p, {
71
73
  modelValue: o(a).dataUrl,
72
- "onUpdate:modelValue": d[0] || (d[0] = (t) => o(a).dataUrl = t),
74
+ "onUpdate:modelValue": u[0] || (u[0] = (t) => o(a).dataUrl = t),
73
75
  placeholder: "请输入",
74
76
  clearable: ""
75
77
  }, null, 8, ["modelValue"])
@@ -82,27 +84,27 @@ const A = {
82
84
  ]),
83
85
  _: 1
84
86
  }),
85
- e(w, { "content-position": "left" }, {
87
+ e(k, { "content-position": "left" }, {
86
88
  default: l(() => [
87
- I(" 表格默认参数配置 "),
88
- e(y, {
89
+ E(" 表格默认参数配置 "),
90
+ e(P, {
89
91
  class: "add-icon-btn",
90
92
  type: "primary",
91
93
  icon: "Plus",
92
94
  circle: "",
93
- onClick: q
95
+ onClick: Q
94
96
  })
95
97
  ]),
96
98
  _: 1
97
99
  }),
98
- (m(!0), g(U, null, P(o(a).defaultParams, (t, f) => (m(), c(_, {
100
+ (i(!0), y(U, null, h(o(a).defaultParams, (t, f) => (i(), _(c, {
99
101
  class: "table-post-params",
100
102
  key: f
101
103
  }, {
102
104
  default: l(() => [
103
- e(r, { span: 12 }, {
105
+ e(n, { span: 12 }, {
104
106
  default: l(() => [
105
- e(u, {
107
+ e(d, {
106
108
  label: "字段",
107
109
  rules: [{ required: !0, message: "必填项", trigger: "blur" }],
108
110
  prop: "defaultParams." + f + ".submitFieldName"
@@ -110,7 +112,7 @@ const A = {
110
112
  default: l(() => [
111
113
  e(p, {
112
114
  modelValue: t.submitFieldName,
113
- "onUpdate:modelValue": (n) => t.submitFieldName = n,
115
+ "onUpdate:modelValue": (r) => t.submitFieldName = r,
114
116
  placeholder: "请输入",
115
117
  clearable: ""
116
118
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -120,26 +122,26 @@ const A = {
120
122
  ]),
121
123
  _: 2
122
124
  }, 1024),
123
- e(r, { span: 12 }, {
125
+ e(n, { span: 12 }, {
124
126
  default: l(() => [
125
- e(u, {
127
+ e(d, {
126
128
  label: "匹配条件",
127
129
  rules: [{ required: !0, message: "必填项", trigger: "change" }],
128
130
  prop: "defaultParams." + f + ".matchValue"
129
131
  }, {
130
132
  default: l(() => [
131
- e(C, {
133
+ e(R, {
132
134
  modelValue: t.matchValue,
133
- "onUpdate:modelValue": (n) => t.matchValue = n,
135
+ "onUpdate:modelValue": (r) => t.matchValue = r,
134
136
  placeholder: "请选择",
135
137
  filterable: "",
136
138
  clearable: ""
137
139
  }, {
138
140
  default: l(() => [
139
- (m(!0), g(U, null, P(o(N), (n, V) => (m(), c(k, {
140
- key: V,
141
- label: n.key,
142
- value: n.value
141
+ (i(!0), y(U, null, h(o(x), (r, g) => (i(), _(C, {
142
+ key: g,
143
+ label: r.key,
144
+ value: r.value
143
145
  }, null, 8, ["label", "value"]))), 128))
144
146
  ]),
145
147
  _: 2
@@ -150,9 +152,9 @@ const A = {
150
152
  ]),
151
153
  _: 2
152
154
  }, 1024),
153
- e(r, { span: 12 }, {
155
+ e(n, { span: 12 }, {
154
156
  default: l(() => [
155
- e(u, {
157
+ e(d, {
156
158
  label: "默认值",
157
159
  rules: [{ required: !0, message: "必填项", trigger: "blur" }],
158
160
  prop: "defaultParams." + f + ".defaultValue"
@@ -160,7 +162,7 @@ const A = {
160
162
  default: l(() => [
161
163
  e(p, {
162
164
  modelValue: t.defaultValue,
163
- "onUpdate:modelValue": (n) => t.defaultValue = n,
165
+ "onUpdate:modelValue": (r) => t.defaultValue = r,
164
166
  placeholder: "请输入",
165
167
  clearable: ""
166
168
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -170,26 +172,26 @@ const A = {
170
172
  ]),
171
173
  _: 2
172
174
  }, 1024),
173
- e(r, { span: 12 }, {
175
+ e(n, { span: 12 }, {
174
176
  default: l(() => [
175
- e(u, {
177
+ e(d, {
176
178
  label: "提交类型",
177
179
  rules: [{ required: !0, message: "必填项", trigger: "change" }],
178
180
  prop: "defaultParams." + f + ".submitFieldType"
179
181
  }, {
180
182
  default: l(() => [
181
- e(C, {
183
+ e(R, {
182
184
  modelValue: t.submitFieldType,
183
- "onUpdate:modelValue": (n) => t.submitFieldType = n,
185
+ "onUpdate:modelValue": (r) => t.submitFieldType = r,
184
186
  placeholder: "请选择",
185
187
  filterable: "",
186
188
  clearable: ""
187
189
  }, {
188
190
  default: l(() => [
189
- (m(!0), g(U, null, P(o(M), (n, V) => (m(), c(k, {
190
- key: V,
191
- label: n.key,
192
- value: n.value
191
+ (i(!0), y(U, null, h(o(I), (r, g) => (i(), _(C, {
192
+ key: g,
193
+ label: r.key,
194
+ value: r.value
193
195
  }, null, 8, ["label", "value"]))), 128))
194
196
  ]),
195
197
  _: 2
@@ -200,18 +202,18 @@ const A = {
200
202
  ]),
201
203
  _: 2
202
204
  }, 1024),
203
- e(w, { "content-position": "left" }),
204
- e(r, {
205
+ e(k, { "content-position": "left" }),
206
+ e(n, {
205
207
  class: "submit-operate",
206
208
  span: 2
207
209
  }, {
208
210
  default: l(() => [
209
- e(y, {
211
+ e(P, {
210
212
  class: "match-opreate",
211
213
  type: "danger",
212
214
  icon: "Minus",
213
215
  circle: "",
214
- onClick: (n) => z(f)
216
+ onClick: (r) => N(f)
215
217
  }, null, 8, ["onClick"])
216
218
  ]),
217
219
  _: 2
@@ -219,15 +221,15 @@ const A = {
219
221
  ]),
220
222
  _: 2
221
223
  }, 1024))), 128)),
222
- e(_, null, {
224
+ e(c, null, {
223
225
  default: l(() => [
224
- e(r, { span: 4 }, {
226
+ e(n, { span: 4 }, {
225
227
  default: l(() => [
226
- e(u, { label: "多选列" }, {
228
+ e(d, { label: "多选列" }, {
227
229
  default: l(() => [
228
230
  e(b, {
229
231
  modelValue: o(a).isCheckRow,
230
- "onUpdate:modelValue": d[1] || (d[1] = (t) => o(a).isCheckRow = t)
232
+ "onUpdate:modelValue": u[1] || (u[1] = (t) => o(a).isCheckRow = t)
231
233
  }, null, 8, ["modelValue"])
232
234
  ]),
233
235
  _: 1
@@ -235,13 +237,13 @@ const A = {
235
237
  ]),
236
238
  _: 1
237
239
  }),
238
- e(r, { span: 4 }, {
240
+ e(n, { span: 4 }, {
239
241
  default: l(() => [
240
- e(u, { label: "操作列" }, {
242
+ e(d, { label: "操作列" }, {
241
243
  default: l(() => [
242
244
  e(b, {
243
245
  modelValue: o(a).isOperateRow,
244
- "onUpdate:modelValue": d[2] || (d[2] = (t) => o(a).isOperateRow = t)
246
+ "onUpdate:modelValue": u[2] || (u[2] = (t) => o(a).isOperateRow = t)
245
247
  }, null, 8, ["modelValue"])
246
248
  ]),
247
249
  _: 1
@@ -249,14 +251,14 @@ const A = {
249
251
  ]),
250
252
  _: 1
251
253
  }),
252
- e(r, { span: 4 }, {
254
+ e(n, { span: 4 }, {
253
255
  default: l(() => [
254
- e(u, { label: "分页" }, {
256
+ e(d, { label: "分页" }, {
255
257
  default: l(() => [
256
258
  e(b, {
257
259
  modelValue: o(a).isPagination,
258
- "onUpdate:modelValue": d[3] || (d[3] = (t) => o(a).isPagination = t),
259
- onChange: B
260
+ "onUpdate:modelValue": u[3] || (u[3] = (t) => o(a).isPagination = t),
261
+ onChange: q
260
262
  }, null, 8, ["modelValue"])
261
263
  ]),
262
264
  _: 1
@@ -264,13 +266,13 @@ const A = {
264
266
  ]),
265
267
  _: 1
266
268
  }),
267
- e(r, { span: 4 }, {
269
+ e(n, { span: 4 }, {
268
270
  default: l(() => [
269
- e(u, { label: "排序" }, {
271
+ e(d, { label: "排序" }, {
270
272
  default: l(() => [
271
273
  e(b, {
272
274
  modelValue: o(a).isSort,
273
- "onUpdate:modelValue": d[4] || (d[4] = (t) => o(a).isSort = t)
275
+ "onUpdate:modelValue": u[4] || (u[4] = (t) => o(a).isSort = t)
274
276
  }, null, 8, ["modelValue"])
275
277
  ]),
276
278
  _: 1
@@ -281,18 +283,18 @@ const A = {
281
283
  ]),
282
284
  _: 1
283
285
  }),
284
- e(_, null, {
286
+ e(c, null, {
285
287
  default: l(() => [
286
- o(a).isOperateRow ? (m(), c(r, {
288
+ o(a).isOperateRow ? (i(), _(n, {
287
289
  key: 0,
288
290
  span: 8
289
291
  }, {
290
292
  default: l(() => [
291
- e(u, { label: "操作列宽度" }, {
293
+ e(d, { label: "操作列宽度" }, {
292
294
  default: l(() => [
293
- e(T, {
295
+ e(V, {
294
296
  modelValue: o(a).tableOperateCellWidth,
295
- "onUpdate:modelValue": d[5] || (d[5] = (t) => o(a).tableOperateCellWidth = t),
297
+ "onUpdate:modelValue": u[5] || (u[5] = (t) => o(a).tableOperateCellWidth = t),
296
298
  min: 120
297
299
  }, null, 8, ["modelValue"])
298
300
  ]),
@@ -300,21 +302,21 @@ const A = {
300
302
  })
301
303
  ]),
302
304
  _: 1
303
- })) : F("", !0),
304
- o(a).isPagination ? (m(), c(r, {
305
+ })) : v("", !0),
306
+ o(a).isPagination ? (i(), _(n, {
305
307
  key: 1,
306
308
  span: 8
307
309
  }, {
308
310
  default: l(() => [
309
- e(u, {
311
+ e(d, {
310
312
  label: "分页页数",
311
313
  prop: "pageSize",
312
314
  rules: [{ required: !0, message: "必填项", trigger: "blur" }]
313
315
  }, {
314
316
  default: l(() => [
315
- e(T, {
317
+ e(V, {
316
318
  modelValue: o(a).pageSize,
317
- "onUpdate:modelValue": d[6] || (d[6] = (t) => o(a).pageSize = t),
319
+ "onUpdate:modelValue": u[6] || (u[6] = (t) => o(a).pageSize = t),
318
320
  min: 10
319
321
  }, null, 8, ["modelValue"])
320
322
  ]),
@@ -322,7 +324,40 @@ const A = {
322
324
  })
323
325
  ]),
324
326
  _: 1
325
- })) : F("", !0)
327
+ })) : v("", !0),
328
+ e(n, { span: 8 }, {
329
+ default: l(() => [
330
+ e(d, {
331
+ label: "查询条件label宽度",
332
+ "label-width": "140"
333
+ }, {
334
+ default: l(() => [
335
+ e(V, {
336
+ modelValue: o(a).tableQueryLabelWidth,
337
+ "onUpdate:modelValue": u[7] || (u[7] = (t) => o(a).tableQueryLabelWidth = t),
338
+ min: 80
339
+ }, null, 8, ["modelValue"])
340
+ ]),
341
+ _: 1
342
+ })
343
+ ]),
344
+ _: 1
345
+ }),
346
+ e(n, { span: 8 }, {
347
+ default: l(() => [
348
+ e(d, { label: "查询条件列数" }, {
349
+ default: l(() => [
350
+ e(V, {
351
+ modelValue: o(a).tableQueryRowWidth,
352
+ "onUpdate:modelValue": u[8] || (u[8] = (t) => o(a).tableQueryRowWidth = t),
353
+ min: 1
354
+ }, null, 8, ["modelValue"])
355
+ ]),
356
+ _: 1
357
+ })
358
+ ]),
359
+ _: 1
360
+ })
326
361
  ]),
327
362
  _: 1
328
363
  })
@@ -334,7 +369,7 @@ const A = {
334
369
  });
335
370
  };
336
371
  }
337
- }, J = /* @__PURE__ */ Q(A, [["__scopeId", "data-v-143cd143"]]);
372
+ }, J = /* @__PURE__ */ M(A, [["__scopeId", "data-v-e5474dc6"]]);
338
373
  export {
339
374
  J as default
340
375
  };