mhz-ui 1.2.23 → 1.2.25

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,8 +1,8 @@
1
- import "./UiChoice.css";
2
- import { defineComponent as m, createElementBlock as n, openBlock as s, normalizeClass as l, createElementVNode as u, toDisplayString as r, createCommentVNode as _, Fragment as y, renderList as b } from "vue";
1
+ import "./UiButtongroup.css";
2
+ import { defineComponent as m, createElementBlock as n, openBlock as s, normalizeClass as l, createElementVNode as i, toDisplayString as r, createCommentVNode as _, Fragment as y, renderList as b } from "vue";
3
3
  import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const C = ["data-tall"], V = ["onClick", "data-current", "data-fill"], k = ["value"], $ = /* @__PURE__ */ m({
5
- __name: "UiChoice",
4
+ const V = ["data-tall"], g = ["onClick", "data-current", "data-fill"], k = ["value"], B = /* @__PURE__ */ m({
5
+ __name: "UiButtongroup",
6
6
  props: {
7
7
  modelValue: {},
8
8
  options: {},
@@ -11,16 +11,16 @@ const C = ["data-tall"], V = ["onClick", "data-current", "data-fill"], k = ["val
11
11
  isInput: { type: Boolean }
12
12
  },
13
13
  emits: ["update:modelValue"],
14
- setup(c, { emit: p }) {
15
- const e = c, d = p;
14
+ setup(p, { emit: c }) {
15
+ const e = p, d = c;
16
16
  function a(t) {
17
17
  d("update:modelValue", typeof t == "number" ? t : Number(t.target.value));
18
18
  }
19
- return (t, i) => (s(), n("div", {
19
+ return (t, u) => (s(), n("div", {
20
20
  class: l(t.$style.container)
21
21
  }, [
22
- u("label", null, r(e.title), 1),
23
- u("div", {
22
+ i("label", null, r(e.title), 1),
23
+ i("div", {
24
24
  class: l(t.$style.options),
25
25
  "data-tall": e.isTall
26
26
  }, [
@@ -31,28 +31,28 @@ const C = ["data-tall"], V = ["onClick", "data-current", "data-fill"], k = ["val
31
31
  class: l(t.$style.button),
32
32
  "data-current": e.modelValue === o,
33
33
  "data-fill": !e.isInput
34
- }, r(o), 11, V))), 128)),
34
+ }, r(o), 11, g))), 128)),
35
35
  e.isInput ? (s(), n("input", {
36
36
  key: 0,
37
37
  type: "number",
38
38
  class: l(t.$style.input),
39
39
  value: e.modelValue,
40
- onChange: i[0] || (i[0] = (o) => a(o)),
40
+ onChange: u[0] || (u[0] = (o) => a(o)),
41
41
  step: "1",
42
42
  min: "1",
43
43
  max: "60"
44
44
  }, null, 42, k)) : _("", !0)
45
- ], 10, C)
45
+ ], 10, V)
46
46
  ], 2));
47
47
  }
48
- }), h = "_container_18qot_1", g = "_options_18qot_9", q = "_button_18qot_19", v = "_input_18qot_42", B = {
49
- container: h,
50
- options: g,
48
+ }), C = "_container_18qot_1", $ = "_options_18qot_9", q = "_button_18qot_19", v = "_input_18qot_42", h = {
49
+ container: C,
50
+ options: $,
51
51
  button: q,
52
52
  input: v
53
53
  }, I = {
54
- $style: B
55
- }, T = /* @__PURE__ */ f($, [["__cssModules", I]]);
54
+ $style: h
55
+ }, T = /* @__PURE__ */ f(B, [["__cssModules", I]]);
56
56
  export {
57
57
  T as default
58
58
  };
@@ -17,8 +17,8 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
17
17
  }>, {
18
18
  error: string | boolean;
19
19
  label: string;
20
- initialValue: TInitialValue;
21
20
  modelValue: TInitialValue;
21
+ initialValue: TInitialValue;
22
22
  labelSub: string;
23
23
  labelSwitcher: string;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {