@kp-ui/lowcode 2.14.0-beta → 2.14.0-beta.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-beta",
3
+ "version": "2.14.0-beta.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,27 +1,27 @@
1
- import { TpfCodeEditor as R } from "tmgc2-share";
2
- import D from "./property-editor/index.js";
1
+ import { TpfCodeEditor as F } from "tmgc2-share";
2
+ import V from "./property-editor/index.js";
3
3
  import K from "./form-setting.vue.js";
4
4
  import O from "./form-crud-setting.vue.js";
5
- import V, { propertyRegistered as j } from "./propertyRegister.js";
6
- import { addWindowResizeHandler as U } from "../../../utils/util.js";
7
- import I from "../../../utils/i18n.js";
8
- import { get as z } from "../../../utils/smart-vue-i18n/utils.js";
9
- import B from "../../../utils/emitter.js";
10
- import L from "../../code-editor/code-modal-editor.vue.js";
11
- import { resolveComponent as m, createElementBlock as c, openBlock as i, Fragment as u, createVNode as h, withCtx as s, createBlock as g, createCommentVNode as a, createElementVNode as P, normalizeStyle as w, withModifiers as W, renderList as p, resolveDynamicComponent as C } from "vue";
5
+ import R, { propertyRegistered as D } from "./propertyRegister.js";
6
+ import { addWindowResizeHandler as A } from "../../../utils/util.js";
7
+ import j from "../../../utils/i18n.js";
8
+ import { get as x } from "../../../utils/smart-vue-i18n/utils.js";
9
+ import z from "../../../utils/emitter.js";
10
+ import I from "../../code-editor/code-modal-editor.vue.js";
11
+ import { resolveComponent as n, createElementBlock as p, openBlock as s, Fragment as h, createVNode as r, withCtx as l, createBlock as g, createCommentVNode as _, createElementVNode as u, normalizeStyle as v, withModifiers as U, renderList as E, normalizeClass as B, resolveDynamicComponent as L } from "vue";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import q from "../../../../_virtual/_plugin-vue_export-helper.js";
15
- const { COMMON_PROPERTIES: x, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: J } = V, Q = {
15
+ const { COMMON_PROPERTIES: G, ADVANCED_PROPERTIES: J, EVENT_PROPERTIES: Q } = R, X = {
16
16
  name: "SettingPanel",
17
17
  componentName: "SettingPanel",
18
- mixins: [I, B],
18
+ mixins: [j, z],
19
19
  components: {
20
- TpfCodeEditor: R,
20
+ TpfCodeEditor: F,
21
21
  FormSetting: K,
22
- CodeModalEditor: L,
22
+ CodeModalEditor: I,
23
23
  FormCrudSetting: O,
24
- ...D
24
+ ...V
25
25
  },
26
26
  props: {
27
27
  designer: Object,
@@ -47,9 +47,9 @@ const { COMMON_PROPERTIES: x, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: J } = V,
47
47
  activeTab: "2",
48
48
  widgetActiveCollapseNames: ["1", "2", "3"],
49
49
  formActiveCollapseNames: ["1", "2"],
50
- commonProps: x,
51
- advProps: G,
52
- eventProps: J,
50
+ commonProps: G,
51
+ advProps: J,
52
+ eventProps: Q,
53
53
  showWidgetEventDialogFlag: !1,
54
54
  eventHandlerCode: "",
55
55
  curEventName: "",
@@ -65,6 +65,42 @@ const { COMMON_PROPERTIES: x, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: J } = V,
65
65
  set(e) {
66
66
  this.selectedWidget.options = e;
67
67
  }
68
+ },
69
+ /**
70
+ * 构建折叠面板配置列表,用于循环渲染面板
71
+ * 将常见/高级/事件属性的差异抽象为配置,减少模板重复
72
+ */
73
+ collapsePanels() {
74
+ const e = this.showCollapse(this.commonProps), t = this.showCollapse(this.advProps), i = this.showEventCollapse() && this.showCollapse(this.eventProps);
75
+ return [
76
+ {
77
+ key: "1",
78
+ headerKey: this.i18nt("designer.setting.常见属性"),
79
+ props: this.commonProps,
80
+ className: "",
81
+ visible: e,
82
+ useVModel: !0,
83
+ isEvent: !1
84
+ },
85
+ {
86
+ key: "2",
87
+ headerKey: this.i18nt("designer.setting.高级属性"),
88
+ props: this.advProps,
89
+ className: "",
90
+ visible: t,
91
+ useVModel: !1,
92
+ isEvent: !1
93
+ },
94
+ {
95
+ key: "3",
96
+ headerKey: this.i18nt("designer.setting.事件属性"),
97
+ props: this.eventProps,
98
+ className: "eventPanel",
99
+ visible: i,
100
+ useVModel: !1,
101
+ isEvent: !0
102
+ }
103
+ ].filter((d) => d.visible);
68
104
  }
69
105
  },
70
106
  watch: {
@@ -97,47 +133,54 @@ const { COMMON_PROPERTIES: x, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: J } = V,
97
133
  });
98
134
  },
99
135
  mounted() {
100
- this.designer.selectedWidget ? this.activeTab = "1" : this.activeTab = "2", this.scrollerHeight = window.innerHeight - 56 - 48 + "px", U(() => {
136
+ this.designer.selectedWidget ? this.activeTab = "1" : this.activeTab = "2", this.scrollerHeight = window.innerHeight - 56 - 48 + "px", A(() => {
101
137
  this.$nextTick(() => {
102
138
  this.scrollerHeight = window.innerHeight - 56 - 48 + "px";
103
139
  });
104
140
  });
105
141
  },
106
142
  methods: {
143
+ /**
144
+ * 处理 option-model 的双向绑定更新
145
+ * 与 v-model:option-model 等效,实现通用事件绑定方式
146
+ */
147
+ onUpdateOptionModel(e) {
148
+ this.optionModel = e;
149
+ },
107
150
  getEventHandled(e) {
108
151
  return !!this.optionModel[e] && this.optionModel[e].length > 0;
109
152
  },
110
153
  showEventCollapse() {
111
154
  return this.designerConfig.eventCollapse === void 0 ? !0 : !!this.designerConfig.eventCollapse;
112
155
  },
113
- hasPropEditor(e, o) {
114
- if (!o)
156
+ hasPropEditor(e, t) {
157
+ if (!t)
115
158
  return !1;
116
159
  if (e.indexOf("-") <= -1) {
117
- const d = this.selectedWidget.type + "-" + e;
118
- if (j(d))
160
+ const o = this.selectedWidget.type + "-" + e;
161
+ if (D(o))
119
162
  return !1;
120
163
  }
121
- const n = e.replace(this.selectedWidget.type + "-", "");
122
- return this.designer.hasConfig(this.selectedWidget, n);
164
+ const i = e.replace(this.selectedWidget.type + "-", "");
165
+ return this.designer.hasConfig(this.selectedWidget, i);
123
166
  },
124
- getPropEditor(e, o) {
125
- const n = e.replace(this.selectedWidget.type + "-", ""), f = `${this.selectedWidget.type}-${n}-editor`;
126
- return this.$options.components[f] || this.$root.$.appContext.components[f] ? f : o;
167
+ getPropEditor(e, t) {
168
+ const i = e.replace(this.selectedWidget.type + "-", ""), d = `${this.selectedWidget.type}-${i}-editor`;
169
+ return this.$options.components[d] || this.$root.$.appContext.components[d] ? d : t;
127
170
  },
128
171
  showCollapse(e) {
129
- let o = !1;
130
- for (const n in e)
131
- if (e.hasOwnProperty(n) && this.hasPropEditor(n, e[n])) {
132
- o = !0;
172
+ let t = !1;
173
+ for (const i in e)
174
+ if (e.hasOwnProperty(i) && this.hasPropEditor(i, e[i])) {
175
+ t = !0;
133
176
  break;
134
177
  }
135
- return o;
178
+ return t;
136
179
  },
137
- editEventHandler(e, o) {
138
- this.curEventName = e, this.eventHeader = `${this.optionModel.name}.${e}(${o.join(
180
+ editEventHandler(e, t) {
181
+ this.curEventName = e, this.eventHeader = `${this.optionModel.name}.${e}(${t.join(
139
182
  ", "
140
- )}) {`, this.eventHandlerCode = z(this.selectedWidget.options, e) || "", console.log({ eventName: e, eventHandlerCode: this.eventHandlerCode }), e === "onValidate" && !this.optionModel.onValidate && (this.eventHandlerCode = ` /* sample code */
183
+ )}) {`, this.eventHandlerCode = x(this.selectedWidget.options, e) || "", console.log({ eventName: e, eventHandlerCode: this.eventHandlerCode }), e === "onValidate" && !this.optionModel.onValidate && (this.eventHandlerCode = ` /* sample code */
141
184
  /*
142
185
  if ((value > 100) || (value < 0)) {
143
186
  return Promise.reject('error message') //fail
@@ -148,218 +191,112 @@ const { COMMON_PROPERTIES: x, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: J } = V,
148
191
  },
149
192
  saveEventHandler(e) {
150
193
  if (this.curEventName.includes(".")) {
151
- const [o, n] = this.curEventName.split(".");
152
- this.selectedWidget.options[o][n] = e;
194
+ const [t, i] = this.curEventName.split(".");
195
+ this.selectedWidget.options[t][i] = e;
153
196
  } else
154
197
  this.selectedWidget.options[this.curEventName] = e;
155
198
  }
156
199
  }
157
200
  };
158
- function X(e, o, n, f, d, t) {
159
- const v = m("a-collapse-panel"), _ = m("a-collapse"), b = m("a-form"), H = m("a-empty"), E = m("a-tab-pane"), k = m("form-setting"), M = m("FormCrudSetting"), S = m("a-tabs"), T = m("a-layout"), F = m("a-config-provider"), A = m("TpfCodeEditor");
160
- return i(), c(u, null, [
161
- h(F, { componentSize: "small" }, {
162
- default: s(() => [
163
- h(T, { class: "panel-container" }, {
164
- default: s(() => [
165
- h(S, {
166
- activeKey: d.activeTab,
167
- "onUpdate:activeKey": o[6] || (o[6] = (r) => d.activeTab = r),
201
+ function Y(e, t, i, d, o, a) {
202
+ const b = n("a-collapse-panel"), y = n("a-collapse"), P = n("a-form"), H = n("a-empty"), f = n("a-tab-pane"), w = n("form-setting"), W = n("FormCrudSetting"), M = n("a-tabs"), S = n("a-layout"), k = n("a-config-provider"), N = n("TpfCodeEditor");
203
+ return s(), p(h, null, [
204
+ r(k, { componentSize: "small" }, {
205
+ default: l(() => [
206
+ r(S, { class: "panel-container" }, {
207
+ default: l(() => [
208
+ r(M, {
209
+ activeKey: o.activeTab,
210
+ "onUpdate:activeKey": t[3] || (t[3] = (c) => o.activeTab = c),
168
211
  style: { height: "100%", width: "100%", overflow: "hidden" }
169
212
  }, {
170
- default: s(() => [
171
- h(E, {
213
+ default: l(() => [
214
+ r(f, {
172
215
  tab: e.i18nt("designer.hint.widgetSetting"),
173
216
  key: "1"
174
217
  }, {
175
- default: s(() => [
176
- P("div", {
218
+ default: l(() => [
219
+ u("div", {
177
220
  class: "setting-scrollbar",
178
- style: w({ height: d.scrollerHeight })
221
+ style: v({ height: o.scrollerHeight })
179
222
  }, [
180
- n.designer.selectedWidget && !n.designer.selectedWidget.category ? (i(), g(b, {
223
+ i.designer.selectedWidget ? (s(), g(P, {
181
224
  key: 0,
182
- model: t.optionModel,
225
+ model: a.optionModel,
183
226
  labelAlign: "left",
184
227
  "label-width": "120px",
185
228
  class: "setting-form tpf-form",
186
- onSubmit: o[2] || (o[2] = W(() => {
229
+ onSubmit: t[2] || (t[2] = U(() => {
187
230
  }, ["prevent"]))
188
231
  }, {
189
- default: s(() => [
190
- h(_, {
191
- activeKey: d.widgetActiveCollapseNames,
192
- "onUpdate:activeKey": o[1] || (o[1] = (r) => d.widgetActiveCollapseNames = r),
232
+ default: l(() => [
233
+ r(y, {
234
+ activeKey: o.widgetActiveCollapseNames,
235
+ "onUpdate:activeKey": t[1] || (t[1] = (c) => o.widgetActiveCollapseNames = c),
193
236
  class: "setting-collapse"
194
237
  }, {
195
- default: s(() => [
196
- t.showCollapse(d.commonProps) ? (i(), g(v, {
197
- key: "1",
198
- header: e.i18nt("designer.setting.常见属性")
199
- }, {
200
- default: s(() => [
201
- (i(!0), c(u, null, p(d.commonProps, (r, l) => (i(), c(u, null, [
202
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
203
- key: l,
204
- designer: n.designer,
205
- "selected-widget": n.selectedWidget,
206
- "option-model": t.optionModel,
207
- "onUpdate:optionModel": o[0] || (o[0] = (y) => t.optionModel = y)
208
- }, null, 40, ["designer", "selected-widget", "option-model"])) : a("", !0)
209
- ], 64))), 256))
210
- ]),
211
- _: 1
212
- }, 8, ["header"])) : a("", !0),
213
- t.showCollapse(d.advProps) ? (i(), g(v, {
214
- key: "2",
215
- header: e.i18nt("designer.setting.高级属性")
238
+ default: l(() => [
239
+ (s(!0), p(h, null, E(a.collapsePanels, (c) => (s(), g(b, {
240
+ key: c.key,
241
+ class: B(c.className),
242
+ header: c.headerKey
216
243
  }, {
217
- default: s(() => [
218
- (i(!0), c(u, null, p(d.advProps, (r, l) => (i(), c(u, null, [
219
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
220
- key: l,
221
- designer: n.designer,
222
- "selected-widget": n.selectedWidget,
223
- "option-model": t.optionModel
224
- }, null, 8, ["designer", "selected-widget", "option-model"])) : a("", !0)
244
+ default: l(() => [
245
+ (s(!0), p(h, null, E(c.props, (C, m) => (s(), p(h, null, [
246
+ a.hasPropEditor(m, C) ? (s(), g(L(a.getPropEditor(m, C)), {
247
+ key: m,
248
+ designer: i.designer,
249
+ "selected-widget": i.selectedWidget,
250
+ "option-model": a.optionModel,
251
+ "onUpdate:optionModel": t[0] || (t[0] = (T) => a.optionModel = T),
252
+ "event-handled": a.getEventHandled(m)
253
+ }, null, 40, ["designer", "selected-widget", "option-model", "event-handled"])) : _("", !0)
225
254
  ], 64))), 256))
226
255
  ]),
227
- _: 1
228
- }, 8, ["header"])) : a("", !0),
229
- t.showEventCollapse() && t.showCollapse(d.eventProps) ? (i(), g(v, {
230
- key: "3",
231
- class: "eventPanel",
232
- header: e.i18nt("designer.setting.事件属性")
233
- }, {
234
- default: s(() => [
235
- (i(!0), c(u, null, p(d.eventProps, (r, l) => (i(), c(u, null, [
236
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
237
- key: l,
238
- designer: n.designer,
239
- "selected-widget": n.selectedWidget,
240
- "option-model": t.optionModel,
241
- "event-handled": t.getEventHandled(l)
242
- }, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : a("", !0)
243
- ], 64))), 256))
244
- ]),
245
- _: 1
246
- }, 8, ["header"])) : a("", !0)
256
+ _: 2
257
+ }, 1032, ["class", "header"]))), 128))
247
258
  ]),
248
259
  _: 1
249
260
  }, 8, ["activeKey"])
250
261
  ]),
251
262
  _: 1
252
- }, 8, ["model"])) : a("", !0),
253
- n.designer.selectedWidget && n.designer.selectedWidget.category ? (i(), g(b, {
263
+ }, 8, ["model"])) : (s(), g(H, {
254
264
  key: 1,
255
- model: t.optionModel,
256
- labelAlign: "left",
257
- "label-width": "120px",
258
- class: "setting-form tpf-form",
259
- onSubmit: o[5] || (o[5] = W(() => {
260
- }, ["prevent"]))
261
- }, {
262
- default: s(() => [
263
- h(_, {
264
- activeKey: d.widgetActiveCollapseNames,
265
- "onUpdate:activeKey": o[4] || (o[4] = (r) => d.widgetActiveCollapseNames = r),
266
- class: "setting-collapse"
267
- }, {
268
- default: s(() => [
269
- t.showCollapse(d.commonProps) ? (i(), g(v, {
270
- key: "1",
271
- header: e.i18nt("designer.setting.常见属性")
272
- }, {
273
- default: s(() => [
274
- (i(!0), c(u, null, p(d.commonProps, (r, l) => (i(), c(u, null, [
275
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
276
- key: l,
277
- designer: n.designer,
278
- "selected-widget": n.selectedWidget,
279
- "option-model": t.optionModel,
280
- "onUpdate:optionModel": o[3] || (o[3] = (y) => t.optionModel = y)
281
- }, null, 40, ["designer", "selected-widget", "option-model"])) : a("", !0)
282
- ], 64))), 256))
283
- ]),
284
- _: 1
285
- }, 8, ["header"])) : a("", !0),
286
- t.showCollapse(d.advProps) ? (i(), g(v, {
287
- key: "2",
288
- header: e.i18nt("designer.setting.高级属性")
289
- }, {
290
- default: s(() => [
291
- (i(!0), c(u, null, p(d.advProps, (r, l) => (i(), c(u, null, [
292
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
293
- key: l,
294
- designer: n.designer,
295
- "selected-widget": n.selectedWidget,
296
- "option-model": t.optionModel
297
- }, null, 8, ["designer", "selected-widget", "option-model"])) : a("", !0)
298
- ], 64))), 256))
299
- ]),
300
- _: 1
301
- }, 8, ["header"])) : a("", !0),
302
- t.showEventCollapse() && t.showCollapse(d.eventProps) ? (i(), g(v, {
303
- key: "3",
304
- class: "eventPanel",
305
- header: e.i18nt("designer.setting.事件属性")
306
- }, {
307
- default: s(() => [
308
- (i(!0), c(u, null, p(d.eventProps, (r, l) => (i(), c(u, null, [
309
- t.hasPropEditor(l, r) ? (i(), g(C(t.getPropEditor(l, r)), {
310
- key: l,
311
- designer: n.designer,
312
- "selected-widget": n.selectedWidget,
313
- "option-model": t.optionModel,
314
- "event-handled": t.getEventHandled(l)
315
- }, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : a("", !0)
316
- ], 64))), 256))
317
- ]),
318
- _: 1
319
- }, 8, ["header"])) : a("", !0)
320
- ]),
321
- _: 1
322
- }, 8, ["activeKey"])
323
- ]),
324
- _: 1
325
- }, 8, ["model"])) : a("", !0),
326
- n.designer.selectedWidget ? a("", !0) : (i(), g(H, {
327
- key: 2,
328
265
  description: e.i18nt("designer.hint.noSelectedWidgetHint")
329
266
  }, null, 8, ["description"]))
330
267
  ], 4)
331
268
  ]),
332
269
  _: 1
333
270
  }, 8, ["tab"]),
334
- n.designer ? (i(), g(E, {
271
+ i.designer ? (s(), g(f, {
335
272
  tab: e.i18nt("designer.hint.表单设置"),
336
273
  key: "2"
337
274
  }, {
338
- default: s(() => [
339
- P("div", {
275
+ default: l(() => [
276
+ u("div", {
340
277
  class: "setting-scrollbar",
341
- style: w({ height: d.scrollerHeight })
278
+ style: v({ height: o.scrollerHeight })
342
279
  }, [
343
- h(k, {
344
- designer: n.designer,
345
- "form-config": n.formConfig
280
+ r(w, {
281
+ designer: i.designer,
282
+ "form-config": i.formConfig
346
283
  }, null, 8, ["designer", "form-config"])
347
284
  ], 4)
348
285
  ]),
349
286
  _: 1
350
- }, 8, ["tab"])) : a("", !0),
351
- h(E, {
287
+ }, 8, ["tab"])) : _("", !0),
288
+ r(f, {
352
289
  tab: e.i18nt("designer.hint.表单api配置"),
353
290
  key: "3"
354
291
  }, {
355
- default: s(() => [
356
- P("div", {
292
+ default: l(() => [
293
+ u("div", {
357
294
  class: "ds-setting-scrollbar",
358
- style: w({ height: d.scrollerHeight })
295
+ style: v({ height: o.scrollerHeight })
359
296
  }, [
360
- h(M, {
361
- designer: n.designer,
362
- "form-config": n.formConfig
297
+ r(W, {
298
+ designer: i.designer,
299
+ "form-config": i.formConfig
363
300
  }, null, 8, ["designer", "form-config"])
364
301
  ], 4)
365
302
  ]),
@@ -374,17 +311,17 @@ function X(e, o, n, f, d, t) {
374
311
  ]),
375
312
  _: 1
376
313
  }),
377
- h(A, {
378
- eventHeader: d.eventHeader,
314
+ r(N, {
315
+ eventHeader: o.eventHeader,
379
316
  ref: "CodeModalEditorRef",
380
317
  title: e.i18nt("designer.setting.editWidgetEventHandler"),
381
318
  mode: "javascript",
382
319
  readonly: !1,
383
- onSetCode: t.saveEventHandler
320
+ onSetCode: a.saveEventHandler
384
321
  }, null, 8, ["eventHeader", "title", "onSetCode"])
385
322
  ], 64);
386
323
  }
387
- const ae = /* @__PURE__ */ q(Q, [["render", X], ["__scopeId", "data-v-d315cd31"]]);
324
+ const me = /* @__PURE__ */ q(X, [["render", Y], ["__scopeId", "data-v-b6c5eb4a"]]);
388
325
  export {
389
- ae as default
326
+ me as default
390
327
  };
@@ -1,14 +1,13 @@
1
- import { defineComponent as M, mergeModels as x, useModel as U, ref as V, resolveComponent as i, createElementBlock as E, openBlock as f, Fragment as K, createVNode as o, unref as d, withCtx as n, createBlock as O, createCommentVNode as T, createTextVNode as w, toDisplayString as v, normalizeClass as W } from "vue";
1
+ import { defineComponent as x, mergeModels as M, useModel as U, ref as V, resolveComponent as i, createElementBlock as E, openBlock as f, Fragment as K, createVNode as o, unref as d, withCtx as n, createBlock as T, createCommentVNode as W, createTextVNode as w, toDisplayString as v, normalizeClass as O } from "vue";
2
2
  import { useI18n as j } from "../../../../../utils/i18n.js";
3
3
  import { useComRef as B } from "tmgc2-share";
4
4
  import g from "../../../../code-editor/code-modal-editor.vue.js";
5
- const F = /* @__PURE__ */ M({
5
+ const F = /* @__PURE__ */ x({
6
6
  name: "rowSelection-editor",
7
7
  __name: "data-table-selections-editor",
8
- props: /* @__PURE__ */ x({
8
+ props: /* @__PURE__ */ M({
9
9
  designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object
10
+ selectedWidget: Object
12
11
  }, {
13
12
  optionModel: {
14
13
  type: Object,
@@ -46,7 +45,7 @@ const F = /* @__PURE__ */ M({
46
45
  checked: e.value.rowSelection.hasRowSelection,
47
46
  "onUpdate:checked": t[0] || (t[0] = (l) => e.value.rowSelection.hasRowSelection = l)
48
47
  }, null, 8, ["checked"]),
49
- e.value.rowSelection.hasRowSelection ? (f(), O(p, {
48
+ e.value.rowSelection.hasRowSelection ? (f(), T(p, {
50
49
  key: 0,
51
50
  type: "primary",
52
51
  plain: "",
@@ -57,7 +56,7 @@ const F = /* @__PURE__ */ M({
57
56
  w(v(d(a)("designer.setting.edit")), 1)
58
57
  ]),
59
58
  _: 1
60
- })) : T("", !0)
59
+ })) : W("", !0)
61
60
  ]),
62
61
  _: 1
63
62
  })
@@ -129,7 +128,7 @@ const F = /* @__PURE__ */ M({
129
128
  o(p, {
130
129
  plain: "",
131
130
  shape: "round",
132
- class: W([e.value.rowSelection.onChange ? "button-text-highlight" : ""]),
131
+ class: O([e.value.rowSelection.onChange ? "button-text-highlight" : ""]),
133
132
  onClick: h
134
133
  }, {
135
134
  default: n(() => [