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

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