@solar-taro/ui-sun 1.1.6 → 1.1.7

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,18 @@
1
+ ## 1.1.6 (2025-04-22)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ui-sun:** add head prop to sun-table-cell
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **ui-sun/table:** add default value for size prop
10
+ - **ui-sun:** fix style of table
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - HyperLife1119
15
+
1
16
  ## 1.1.5 (2025-04-21)
2
17
 
3
18
  This was a version bump only for ui-sun to align it with other projects, there were no code changes.
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 "./index25.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 "./index25.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 "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index4.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 "./index6.js";
7
2
  export {
8
- s as default
3
+ f as default
9
4
  };
package/index25.js CHANGED
@@ -1,4 +1,9 @@
1
- import f from "./index5.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/index27.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index11.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 "./index12.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 "./index14.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 "./index8.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 "./index13.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 "./index18.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 "./index5.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 "./index3.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.7",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",