@solar-taro/ui-sun 1.1.6 → 1.1.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 1.1.7 (2025-05-30)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **ui-sun:** fix bug
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
11
+ ## 1.1.6 (2025-04-22)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **ui-sun:** add head prop to sun-table-cell
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **ui-sun/table:** add default value for size prop
20
+ - **ui-sun:** fix style of table
21
+
22
+ ### ❤️ Thank You
23
+
24
+ - HyperLife1119
25
+
1
26
  ## 1.1.5 (2025-04-21)
2
27
 
3
28
  This was a version bump only for ui-sun to align it with other projects, there were no code changes.
package/chip/index.scss CHANGED
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  &-small {
17
- font-size: 25rpx;
17
+ font-size: 24rpx;
18
18
  height: 50rpx;
19
19
  margin: 6rpx;
20
20
  padding: 10rpx 20rpx;
package/index12.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, getCurrentInstance as V, shallowRef as E, shallowReactive as k, computed as c, provide as m, watch as C, onMounted as w, renderSlot as y, createElementVNode as B, mergeProps as I, openBlock as O, createElementBlock as A } from "vue";
1
+ import { defineComponent as x, getCurrentInstance as V, shallowRef as E, shallowReactive as k, computed as a, provide as i, watch as C, onMounted as w, renderSlot as y, createElementVNode as B, mergeProps as I, openBlock as O, createElementBlock as A } from "vue";
2
2
  import { ACTIVE_CHILD as N, PARENT as P } from "./index38.js";
3
3
  const R = y, T = B, b = I, L = O, S = A, $ = { class: "sun-segment-inner" }, M = /* @__PURE__ */ x({
4
4
  __name: "segment",
@@ -6,44 +6,43 @@ const R = y, T = B, b = I, L = O, S = A, $ = { class: "sun-segment-inner" }, M =
6
6
  modelValue: {}
7
7
  },
8
8
  emits: ["update:modelValue", "change"],
9
- setup(v, { emit: f }) {
10
- const d = f, u = v, g = V(), o = E(null), t = k([]), i = c(() => t.indexOf(o.value)), h = c(() => t.length), _ = c(() => ({
11
- "--segment-length": h.value,
12
- "--segment-active-index": i.value
9
+ setup(p, { emit: v }) {
10
+ const r = v, c = p, m = V(), o = E(null), t = k([]), d = a(() => t.indexOf(o.value)), f = a(() => t.length), g = a(() => ({
11
+ "--segment-length": f.value,
12
+ "--segment-active-index": d.value
13
13
  }));
14
- m(N, o), m(P, {
14
+ i(N, o), i(P, {
15
15
  link: (e) => {
16
- const n = p();
17
- t.push(e), t.sort((a, s) => {
18
- const l = n.indexOf(a.vnode), r = n.indexOf(s.vnode);
19
- return l - r;
16
+ const n = u();
17
+ t.push(e), t.sort((s, l) => {
18
+ const h = n.indexOf(s.vnode), _ = n.indexOf(l.vnode);
19
+ return h - _;
20
20
  });
21
21
  },
22
22
  unlink: (e) => {
23
23
  t.slice(t.indexOf(e), 1);
24
24
  },
25
25
  active: (e) => {
26
- d("change", {
26
+ r("change", {
27
27
  value: e.props.value,
28
- index: i.value
29
- }), d("update:modelValue", e.props.value), o.value = e;
28
+ index: d.value
29
+ }), r("update:modelValue", e.props.value), o.value = e;
30
30
  }
31
- }), C(() => u.modelValue, (e) => {
31
+ }), C(() => c.modelValue, (e) => {
32
32
  o.value = t.find((n) => n.props.value === e);
33
33
  });
34
- function p() {
35
- return g.subTree.children[0].children[0].children.filter((e) => typeof e.type != "symbol");
34
+ function u() {
35
+ return m.subTree.children[0].children[0].children.filter((e) => typeof e.type != "symbol");
36
36
  }
37
37
  return w(() => {
38
- const e = p();
38
+ const e = u();
39
39
  t.forEach((n) => {
40
- var s, l;
41
- const a = e.findIndex((r) => r === n.vnode);
42
- (l = (s = n.props).value) != null || (s.value = a), n.props.value === u.modelValue && (o.value = n);
40
+ const s = e.findIndex((l) => l === n.vnode);
41
+ n.props.value === void 0 && (n.props.value = s), n.props.value === c.modelValue && (o.value = n);
43
42
  });
44
43
  }), (e, n) => (L(), S("view", b(e.$attrs, {
45
44
  class: "sun-segment",
46
- style: _.value
45
+ style: g.value
47
46
  }), [
48
47
  T("view", $, [
49
48
  R(e.$slots, "default")
package/index19.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renderSlot as r, mergeProps as o, openBlock as t, createElementBlock as n } from "vue";
2
- import c from "./index24.js";
2
+ import c from "./index22.js";
3
3
  const s = {}, l = r, a = o, f = t, _ = n;
4
4
  function m(e, p) {
5
5
  return f(), _("view", a(e.$attrs, { class: "sun-fab" }), [
package/index20.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renderSlot as o, mergeProps as r, openBlock as t, createElementBlock as s } from "vue";
2
- import n from "./index24.js";
2
+ import n from "./index22.js";
3
3
  const c = {}, l = o, m = r, _ = t, a = s;
4
4
  function u(e, d) {
5
5
  return _(), a("view", m(e.$attrs, { class: "sun-sudoku-item" }), [
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index3.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,9 @@
1
- import f from "./index4.js";
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
2
7
  export {
3
- f as default
8
+ s as default
4
9
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index24.js CHANGED
@@ -1,9 +1,4 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ import f from "./index4.js";
7
2
  export {
8
- s as default
3
+ f as default
9
4
  };
package/index26.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index13.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index27.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index28.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index18.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index29.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index11.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index30.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index12.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index31.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index18.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index32.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index10.js";
1
+ import f from "./index15.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index33.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index13.js";
1
+ import f from "./index16.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index34.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index14.js";
1
+ import f from "./index17.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index35.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index15.js";
1
+ import f from "./index11.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index36.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index16.js";
1
+ import f from "./index12.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index17.js";
1
+ import f from "./index14.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-sun",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",