bkui-vue 0.0.1-beta.472 → 0.0.1-beta.473

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/dist/index.esm.js CHANGED
@@ -7187,44 +7187,48 @@ const lI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7187
7187
  closeText: g.string,
7188
7188
  showIcon: g.bool.def(!0)
7189
7189
  },
7190
- emits: ["close"],
7190
+ emits: {
7191
+ close: (e) => e
7192
+ },
7191
7193
  setup(e, t) {
7192
7194
  const n = at({
7193
7195
  visible: !0
7194
7196
  });
7195
7197
  return {
7196
7198
  state: n,
7197
- handleClose: () => {
7198
- n.visible = !1, t.emit("close");
7199
+ handleClose: (s) => {
7200
+ n.visible = !1, t.emit("close", s);
7199
7201
  }
7200
7202
  };
7201
7203
  },
7202
7204
  render() {
7203
- var i, s;
7205
+ var s, r;
7204
7206
  if (!this.state.visible)
7205
7207
  return null;
7206
- const e = !!this.closeText, t = Re({
7207
- "bk-alert-close": !0,
7208
- "close-text": e,
7209
- "bk-alert-close-icon": !e
7210
- }), n = Re({
7211
- "bk-alert": !0,
7212
- [`bk-alert-${this.theme}`]: !0
7208
+ const {
7209
+ resolveClassName: e
7210
+ } = _e(), t = !!this.closeText, n = Re({
7211
+ [e("alert-close")]: !0,
7212
+ "close-text": t,
7213
+ [e("alert-close-icon")]: !t
7214
+ }), i = Re({
7215
+ [e("alert")]: !0,
7216
+ [e(`alert-${this.theme}`)]: !0
7213
7217
  });
7214
7218
  return f("div", {
7215
- class: n
7219
+ class: i
7216
7220
  }, [f("div", {
7217
- class: "bk-alert-wraper"
7221
+ class: e("alert-wraper")
7218
7222
  }, [this.showIcon && f(Qu, {
7219
- class: "bk-alert-icon-info"
7223
+ class: e("alert-icon-info")
7220
7224
  }, null), f("div", {
7221
- class: "bk-alert-content"
7225
+ class: e("alert-content")
7222
7226
  }, [f("div", {
7223
- class: "bk-alert-title"
7227
+ class: e("alert-title")
7224
7228
  }, [this.$slots.title ? this.$slots.title() : this.title]), f("div", {
7225
- class: "bk-alert-description"
7226
- }, [(s = (i = this.$slots).default) == null ? void 0 : s.call(i)])]), this.closable && f("span", {
7227
- class: t,
7229
+ class: e("alert-description")
7230
+ }, [(r = (s = this.$slots).default) == null ? void 0 : r.call(s)])]), this.closable && f("span", {
7231
+ class: n,
7228
7232
  onClick: this.handleClose
7229
7233
  }, [this.closeText ? this.closeText : f(pl, null, null)])])]);
7230
7234
  }
@@ -8187,7 +8191,10 @@ const zI = () => {
8187
8191
  }, JI = /* @__PURE__ */ pe({
8188
8192
  name: "Checkbox",
8189
8193
  props: PI,
8190
- emits: ["update:modelValue", "change"],
8194
+ emits: {
8195
+ "update:modelValue": (e) => e !== void 0,
8196
+ change: (e) => e !== void 0
8197
+ },
8191
8198
  setup(e) {
8192
8199
  const [t, {
8193
8200
  blur: n,
@@ -11132,7 +11139,10 @@ const x1 = () => {
11132
11139
  }, rL = /* @__PURE__ */ pe({
11133
11140
  name: "Radio",
11134
11141
  props: sL,
11135
- emits: ["change", "update:modelValue"],
11142
+ emits: {
11143
+ "update:modelValue": (e) => e !== void 0,
11144
+ change: (e) => e !== void 0
11145
+ },
11136
11146
  setup() {
11137
11147
  const [e, {
11138
11148
  blur: t,
@@ -11190,7 +11200,10 @@ const x1 = () => {
11190
11200
  }, oL = /* @__PURE__ */ pe({
11191
11201
  name: "RadioButton",
11192
11202
  props: lL,
11193
- emits: ["change", "update:modelValue"],
11203
+ emits: {
11204
+ "update:modelValue": (e) => e !== void 0,
11205
+ change: (e) => e !== void 0
11206
+ },
11194
11207
  setup() {
11195
11208
  const [e, {
11196
11209
  blur: t,
@@ -11247,7 +11260,10 @@ const x1 = () => {
11247
11260
  }, cL = /* @__PURE__ */ pe({
11248
11261
  name: "RadioGroup",
11249
11262
  props: uL,
11250
- emits: ["change", "update:modelValue"],
11263
+ emits: {
11264
+ "update:modelValue": (e) => e !== void 0,
11265
+ change: (e) => e !== void 0
11266
+ },
11251
11267
  setup(e, t) {
11252
11268
  const n = bi(), i = [];
11253
11269
  Jt(k1, {
@@ -24693,7 +24709,7 @@ const Xx = {
24693
24709
  size: "small",
24694
24710
  modelValue: re(Y),
24695
24711
  indeterminate: ge(Y),
24696
- onChange: (oe) => Ce(Y, oe)
24712
+ onChange: (oe) => Ce(Y, !!oe)
24697
24713
  }, null) : null, K = (Y, oe = null, Ne = null, ke = !0) => {
24698
24714
  const Ae = oe === null ? !w(Y) : !!oe;
24699
24715
  if (Ae || ue(Y, de.IS_OPEN, Ae), u(Y, de.IS_OPEN, Ae), ke) {
@@ -25332,24 +25348,24 @@ const Xx = {
25332
25348
  return e.required && n.push({
25333
25349
  required: !0,
25334
25350
  validator: mi.required,
25335
- message: `${i} ${t.value.notBeEmpty}`,
25351
+ message: `${i}${t.value.notBeEmpty}`,
25336
25352
  trigger: "change"
25337
25353
  }), e.email && n.push({
25338
25354
  email: !0,
25339
25355
  validator: mi.email,
25340
- message: `${i} ${t.value.incorrectFormat}`,
25356
+ message: `${i}${t.value.incorrectFormat}`,
25341
25357
  trigger: "change"
25342
25358
  }), Number(e.max) > -1 && n.push({
25343
25359
  validator: (s) => mi.max(s, e.max),
25344
- message: `${i} ${t.value.max} ${e.max}`,
25360
+ message: `${i}${t.value.max} ${e.max}`,
25345
25361
  trigger: "change"
25346
25362
  }), Number(e.min) > -1 && n.push({
25347
25363
  validator: (s) => mi.min(s, e.min),
25348
- message: `${i} ${t.value.min} ${e.min}`,
25364
+ message: `${i}${t.value.min} ${e.min}`,
25349
25365
  trigger: "change"
25350
25366
  }), Number(e.maxlength) > -1 && n.push({
25351
25367
  validator: (s) => mi.maxlength(s, e.maxlength),
25352
- message: `${i} ${t.value.maxLen} ${e.maxlength}`,
25368
+ message: `${i}${t.value.maxLen} ${e.maxlength}`,
25353
25369
  trigger: "change"
25354
25370
  }), n;
25355
25371
  }, wS = (e, t, n) => {
@@ -25879,7 +25895,7 @@ const Xx = {
25879
25895
  "onUpdate:modelValue": (o) => i.checked = o,
25880
25896
  indeterminate: i.isIndeterminate,
25881
25897
  style: "margin-right: 5px",
25882
- onChange: (o) => this.checkNode(i, o)
25898
+ onChange: (o) => this.checkNode(i, !!o)
25883
25899
  }, null), (r = (s = this.$slots).default) == null ? void 0 : r.call(s, {
25884
25900
  node: i,
25885
25901
  data: i.data