@web-utils/form-ui 1.0.0-beta78 → 1.0.0-beta79

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,11 +1,11 @@
1
1
  import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { t } from "./V-Js6hNd.mjs";
3
- import { ElButton as n, ElDivider as r, ElDrawer as i, ElForm as a, ElFormItem as o, ElInput as s, ElOption as c, ElSelect as l, ElTable as u, ElTableColumn as d } from "element-plus/es";
3
+ import { t as n } from "./mnqSaATq.mjs";
4
+ import { ElDivider as r, ElDrawer as i, ElForm as a, ElFormItem as o, ElInput as s, ElOption as c, ElSelect as l, ElTable as u, ElTableColumn as d } from "element-plus/es";
4
5
  import "element-plus/es/components/base/style/css";
5
6
  import "element-plus/es/components/input/style/css";
6
7
  import { Fragment as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, openBlock as y, renderList as b, withCtx as x, withModifiers as S } from "vue";
7
8
  import { fastClone as C } from "@web-utils/core";
8
- import "element-plus/es/components/button/style/css";
9
9
  import "element-plus/es/components/drawer/style/css";
10
10
  import "element-plus/es/components/table/style/css";
11
11
  import "element-plus/es/components/table-column/style/css";
@@ -249,8 +249,8 @@ function M(e, C, w, M, N, P) {
249
249
  })]),
250
250
  m("字段配置侧边栏"),
251
251
  v(W, {
252
- visible: N.fieldModelVisible,
253
- "onUpdate:visible": C[15] || (C[15] = (e) => N.fieldModelVisible = e),
252
+ modelValue: N.fieldModelVisible,
253
+ "onUpdate:modelValue": C[15] || (C[15] = (e) => N.fieldModelVisible = e),
254
254
  class: "flow-drawer",
255
255
  title: "字段配置",
256
256
  size: `${P.width}px`,
@@ -531,10 +531,10 @@ function M(e, C, w, M, N, P) {
531
531
  }, 8, ["onClick"])])
532
532
  ]),
533
533
  _: 1
534
- }, 8, ["visible", "size"]),
534
+ }, 8, ["modelValue", "size"]),
535
535
  v(G, {
536
- visible: N.fieldOptionModelVisible,
537
- "onUpdate:visible": C[22] || (C[22] = (e) => N.fieldOptionModelVisible = e),
536
+ modelValue: N.fieldOptionModelVisible,
537
+ "onUpdate:modelValue": C[22] || (C[22] = (e) => N.fieldOptionModelVisible = e),
538
538
  class: "flow-dialog",
539
539
  title: N.optionModelTitle,
540
540
  width: "600px",
@@ -605,7 +605,7 @@ function M(e, C, w, M, N, P) {
605
605
  _: 1
606
606
  }, 8, ["model"])]),
607
607
  _: 1
608
- }, 8, ["visible", "title"])
608
+ }, 8, ["modelValue", "title"])
609
609
  ]);
610
610
  }
611
611
  var N = /* @__PURE__ */ e(w, [["render", M]]);
@@ -1,16 +1,17 @@
1
1
  import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { t } from "./V-Js6hNd.mjs";
3
- import { ElButton as n, ElForm as r, ElFormItem as i, ElInput as a, ElTable as o, ElTableColumn as s } from "element-plus/es";
3
+ import { t as n } from "./mnqSaATq.mjs";
4
+ import { ElForm as r, ElFormItem as i, ElInput as a, ElMessage as o, ElTable as s, ElTableColumn as c } from "element-plus/es";
4
5
  import "element-plus/es/components/base/style/css";
5
6
  import "element-plus/es/components/input/style/css";
6
- import { createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, openBlock as f, withCtx as p, withModifiers as m } from "vue";
7
- import "element-plus/es/components/button/style/css";
7
+ import { createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, openBlock as p, withCtx as m, withModifiers as h } from "vue";
8
+ import "element-plus/es/components/message/style/css";
8
9
  import "element-plus/es/components/table/style/css";
9
10
  import "element-plus/es/components/table-column/style/css";
10
11
  import "element-plus/es/components/form-item/style/css";
11
12
  import "element-plus/es/components/form/style/css";
12
13
  //#region src/components/bpmn-process-designer/components/penal/signal-message/SignalAndMessage.vue
13
- var h = {
14
+ var g = {
14
15
  name: "SignalAndMessage",
15
16
  props: { bpmnInstances: Object },
16
17
  data() {
@@ -47,18 +48,18 @@ var h = {
47
48
  },
48
49
  addNewObject() {
49
50
  if (this.modelType === "message") {
50
- if (this.messageIdMap[this.modelObjectForm.id]) return this.$message.error("该消息已存在,请修改id后重新保存");
51
+ if (this.messageIdMap[this.modelObjectForm.id]) return o.error("该消息已存在,请修改id后重新保存");
51
52
  let e = this.bpmnInstances.moddle.create("bpmn:Message", this.modelObjectForm);
52
53
  this.rootElements.push(e);
53
54
  } else {
54
- if (this.signalIdMap[this.modelObjectForm.id]) return this.$message.error("该信号已存在,请修改id后重新保存");
55
+ if (this.signalIdMap[this.modelObjectForm.id]) return o.error("该信号已存在,请修改id后重新保存");
55
56
  let e = this.bpmnInstances.moddle.create("bpmn:Signal", this.modelObjectForm);
56
57
  this.rootElements.push(e);
57
58
  }
58
59
  this.modelVisible = !1, this.initDataList();
59
60
  }
60
61
  }
61
- }, g = { class: "panel-tab__content" }, _ = { class: "panel-tab__content--title" }, v = {
62
+ }, _ = { class: "panel-tab__content" }, v = { class: "panel-tab__content--title" }, y = {
62
63
  class: "panel-tab__content--title",
63
64
  style: {
64
65
  "margin-top": "8px",
@@ -66,40 +67,40 @@ var h = {
66
67
  "border-top": "1px solid #eee"
67
68
  }
68
69
  };
69
- function y(e, h, y, b, x, S) {
70
- let C = n, w = s, T = o, E = a, D = i, O = r, k = t;
71
- return f(), c("div", g, [
72
- l("div", _, [h[8] || (h[8] = l("span", null, [l("i", {
70
+ function b(e, o, g, b, x, S) {
71
+ let C = n, w = c, T = s, E = a, D = i, O = r, k = t;
72
+ return p(), l("div", _, [
73
+ u("div", v, [o[8] || (o[8] = u("span", null, [u("i", {
73
74
  class: "el-icon-menu",
74
75
  style: {
75
76
  "margin-right": "8px",
76
77
  color: "#555"
77
78
  }
78
- }), u(" 消息列表 ")], -1)), d(C, {
79
+ }), d(" 消息列表 ")], -1)), f(C, {
79
80
  type: "primary",
80
81
  icon: "el-icon-plus",
81
- onClick: h[0] || (h[0] = (e) => S.openModel("message"))
82
+ onClick: o[0] || (o[0] = (e) => S.openModel("message"))
82
83
  }, {
83
- default: p(() => [...h[7] || (h[7] = [u("创建新消息", -1)])]),
84
+ default: m(() => [...o[7] || (o[7] = [d("创建新消息", -1)])]),
84
85
  _: 1
85
86
  })]),
86
- d(T, {
87
+ f(T, {
87
88
  data: x.messageList,
88
89
  border: ""
89
90
  }, {
90
- default: p(() => [
91
- d(w, {
91
+ default: m(() => [
92
+ f(w, {
92
93
  type: "index",
93
94
  label: "序号",
94
95
  width: "60px"
95
96
  }),
96
- d(w, {
97
+ f(w, {
97
98
  label: "消息ID",
98
99
  prop: "id",
99
100
  "max-width": "300px",
100
101
  "show-overflow-tooltip": ""
101
102
  }),
102
- d(w, {
103
+ f(w, {
103
104
  label: "消息名称",
104
105
  prop: "name",
105
106
  "max-width": "300px",
@@ -108,37 +109,37 @@ function y(e, h, y, b, x, S) {
108
109
  ]),
109
110
  _: 1
110
111
  }, 8, ["data"]),
111
- l("div", v, [h[10] || (h[10] = l("span", null, [l("i", {
112
+ u("div", y, [o[10] || (o[10] = u("span", null, [u("i", {
112
113
  class: "el-icon-menu",
113
114
  style: {
114
115
  "margin-right": "8px",
115
116
  color: "#555"
116
117
  }
117
- }), u(" 信号列表 ")], -1)), d(C, {
118
+ }), d(" 信号列表 ")], -1)), f(C, {
118
119
  type: "primary",
119
120
  icon: "el-icon-plus",
120
- onClick: h[1] || (h[1] = (e) => S.openModel("signal"))
121
+ onClick: o[1] || (o[1] = (e) => S.openModel("signal"))
121
122
  }, {
122
- default: p(() => [...h[9] || (h[9] = [u("创建新信号", -1)])]),
123
+ default: m(() => [...o[9] || (o[9] = [d("创建新信号", -1)])]),
123
124
  _: 1
124
125
  })]),
125
- d(T, {
126
+ f(T, {
126
127
  data: x.signalList,
127
128
  border: ""
128
129
  }, {
129
- default: p(() => [
130
- d(w, {
130
+ default: m(() => [
131
+ f(w, {
131
132
  type: "index",
132
133
  label: "序号",
133
134
  width: "60px"
134
135
  }),
135
- d(w, {
136
+ f(w, {
136
137
  label: "信号ID",
137
138
  prop: "id",
138
139
  "max-width": "300px",
139
140
  "show-overflow-tooltip": ""
140
141
  }),
141
- d(w, {
142
+ f(w, {
142
143
  label: "信号名称",
143
144
  prop: "name",
144
145
  "max-width": "300px",
@@ -147,9 +148,9 @@ function y(e, h, y, b, x, S) {
147
148
  ]),
148
149
  _: 1
149
150
  }, 8, ["data"]),
150
- d(k, {
151
- visible: x.modelVisible,
152
- "onUpdate:visible": h[6] || (h[6] = (e) => x.modelVisible = e),
151
+ f(k, {
152
+ modelValue: x.modelVisible,
153
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => x.modelVisible = e),
153
154
  class: "flow-dialog",
154
155
  title: S.modelConfig.title,
155
156
  "close-on-click-modal": !1,
@@ -157,32 +158,32 @@ function y(e, h, y, b, x, S) {
157
158
  "append-to-body": "",
158
159
  "destroy-on-close": ""
159
160
  }, {
160
- footer: p(() => [d(C, { onClick: h[5] || (h[5] = (e) => x.modelVisible = !1) }, {
161
- default: p(() => [...h[11] || (h[11] = [u("取 消", -1)])]),
161
+ footer: m(() => [f(C, { onClick: o[5] || (o[5] = (e) => x.modelVisible = !1) }, {
162
+ default: m(() => [...o[11] || (o[11] = [d("取 消", -1)])]),
162
163
  _: 1
163
- }), d(C, {
164
+ }), f(C, {
164
165
  type: "primary",
165
166
  onClick: S.addNewObject
166
167
  }, {
167
- default: p(() => [...h[12] || (h[12] = [u("保 存", -1)])]),
168
+ default: m(() => [...o[12] || (o[12] = [d("保 存", -1)])]),
168
169
  _: 1
169
170
  }, 8, ["onClick"])]),
170
- default: p(() => [d(O, {
171
+ default: m(() => [f(O, {
171
172
  model: x.modelObjectForm,
172
173
  "label-width": "90px",
173
- onSubmit: h[4] || (h[4] = m(() => {}, ["prevent"]))
174
+ onSubmit: o[4] || (o[4] = h(() => {}, ["prevent"]))
174
175
  }, {
175
- default: p(() => [d(D, { label: S.modelConfig.idLabel }, {
176
- default: p(() => [d(E, {
176
+ default: m(() => [f(D, { label: S.modelConfig.idLabel }, {
177
+ default: m(() => [f(E, {
177
178
  modelValue: x.modelObjectForm.id,
178
- "onUpdate:modelValue": h[2] || (h[2] = (e) => x.modelObjectForm.id = e),
179
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => x.modelObjectForm.id = e),
179
180
  clearable: ""
180
181
  }, null, 8, ["modelValue"])]),
181
182
  _: 1
182
- }, 8, ["label"]), d(D, { label: S.modelConfig.nameLabel }, {
183
- default: p(() => [d(E, {
183
+ }, 8, ["label"]), f(D, { label: S.modelConfig.nameLabel }, {
184
+ default: m(() => [f(E, {
184
185
  modelValue: x.modelObjectForm.name,
185
- "onUpdate:modelValue": h[3] || (h[3] = (e) => x.modelObjectForm.name = e),
186
+ "onUpdate:modelValue": o[3] || (o[3] = (e) => x.modelObjectForm.name = e),
186
187
  clearable: ""
187
188
  }, null, 8, ["modelValue"])]),
188
189
  _: 1
@@ -190,9 +191,9 @@ function y(e, h, y, b, x, S) {
190
191
  _: 1
191
192
  }, 8, ["model"])]),
192
193
  _: 1
193
- }, 8, ["visible", "title"])
194
+ }, 8, ["modelValue", "title"])
194
195
  ]);
195
196
  }
196
- var b = /* @__PURE__ */ e(h, [["render", y]]);
197
+ var x = /* @__PURE__ */ e(g, [["render", b]]);
197
198
  //#endregion
198
- export { b as default };
199
+ export { x as default };
@@ -1,12 +1,13 @@
1
1
  import { t as e } from "../chunks/B1MSrc6f.mjs";
2
2
  import { t } from "../chunks/V-Js6hNd.mjs";
3
3
  import { t as n } from "../chunks/Cb7kjZa-.mjs";
4
- import { ElButton as r } from "element-plus/es";
4
+ import { ElButton as r, ElMessage as i } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
6
- import { createBlock as i, createTextVNode as a, createVNode as o, openBlock as s, renderSlot as c, withCtx as l } from "vue";
6
+ import { createBlock as a, createTextVNode as o, createVNode as s, openBlock as c, renderSlot as l, withCtx as u } from "vue";
7
+ import "element-plus/es/components/message/style/css";
7
8
  import "element-plus/es/components/button/style/css";
8
9
  //#region src/components/DataTablePicker.vue
9
- var u = {
10
+ var d = {
10
11
  name: "DataTablePicker",
11
12
  props: {
12
13
  visible: Boolean,
@@ -53,14 +54,14 @@ var u = {
53
54
  confirm() {
54
55
  if (this.multiple) {
55
56
  var e;
56
- (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("请选择");
57
- } else this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : this.$message.warning("请选择");
57
+ (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : i.warning("请选择");
58
+ } else this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : i.warning("请选择");
58
59
  }
59
60
  }
60
61
  };
61
- function d(e, u, d, f, p, m) {
62
+ function f(e, i, d, f, p, m) {
62
63
  let h = n, g = r, _ = t;
63
- return s(), i(_, {
64
+ return c(), a(_, {
64
65
  ref: "dialog",
65
66
  visible: d.visible,
66
67
  title: d.title,
@@ -70,7 +71,7 @@ function d(e, u, d, f, p, m) {
70
71
  "flex-column": "",
71
72
  onClose: m.close
72
73
  }, {
73
- default: l(() => [c(e.$slots, "search-form"), o(h, {
74
+ default: u(() => [l(e.$slots, "search-form"), s(h, {
74
75
  ref: "pageableTable",
75
76
  "highlight-current-row": "",
76
77
  "hide-on-single-page": "",
@@ -84,7 +85,7 @@ function d(e, u, d, f, p, m) {
84
85
  onRowClick: m.toggleRowSelection,
85
86
  onCurrentChange: m.currentChange
86
87
  }, {
87
- default: l(() => [c(e.$slots, "default")]),
88
+ default: u(() => [l(e.$slots, "default")]),
88
89
  _: 3
89
90
  }, 8, [
90
91
  "model",
@@ -95,14 +96,14 @@ function d(e, u, d, f, p, m) {
95
96
  "onRowClick",
96
97
  "onCurrentChange"
97
98
  ])]),
98
- footer: l(() => [o(g, {
99
+ footer: u(() => [s(g, {
99
100
  type: "primary",
100
101
  onClick: m.confirm
101
102
  }, {
102
- default: l(() => [...u[0] || (u[0] = [a("确 定", -1)])]),
103
+ default: u(() => [...i[0] || (i[0] = [o("确 定", -1)])]),
103
104
  _: 1
104
- }, 8, ["onClick"]), o(g, { onClick: m.close }, {
105
- default: l(() => [...u[1] || (u[1] = [a("关 闭", -1)])]),
105
+ }, 8, ["onClick"]), s(g, { onClick: m.close }, {
106
+ default: u(() => [...i[1] || (i[1] = [o("关 闭", -1)])]),
106
107
  _: 1
107
108
  }, 8, ["onClick"])]),
108
109
  _: 3
@@ -114,6 +115,6 @@ function d(e, u, d, f, p, m) {
114
115
  "onClose"
115
116
  ]);
116
117
  }
117
- var f = /* @__PURE__ */ e(u, [["render", d]]);
118
+ var p = /* @__PURE__ */ e(d, [["render", f]]);
118
119
  //#endregion
119
- export { f as default };
120
+ export { p as default };