lovelymaid 1.3.8 → 1.3.9

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.
@@ -7,10 +7,10 @@ export type MenuItem = {
7
7
  interface Props {
8
8
  /** 是否显示 */
9
9
  visible: boolean;
10
- /** 位置 */
11
- position: [number, number];
12
10
  /** 列表 */
13
11
  config: MenuItem[];
12
+ /** 位置 */
13
+ position: [number, number];
14
14
  /** 列表项点击事件 */
15
15
  onItemClick?: (item: MenuItem, index: number) => void;
16
16
  }
@@ -273,8 +273,8 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
273
273
  __name: "Menu",
274
274
  props: {
275
275
  visible: { type: Boolean },
276
- position: {},
277
276
  config: {},
277
+ position: {},
278
278
  onItemClick: { type: Function }
279
279
  },
280
280
  setup(r, { expose: c }) {
@@ -515,9 +515,9 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
515
515
  onItemClick: { type: Function }
516
516
  },
517
517
  setup(e) {
518
- let t = e, n = b(null), r = b(null), i;
518
+ let t = e, n = b(null), r = b(null), i = b(null);
519
519
  return h(() => {
520
- !r.value || !n.value || (i = G(r.value, n.value));
520
+ !r.value || !n.value || (i.value = G(r.value, n.value));
521
521
  }), (e, a) => (_(), o("span", {
522
522
  class: p([
523
523
  "lovelymai",
@@ -529,8 +529,8 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
529
529
  }, [l(J, {
530
530
  ref_key: "MenuRef",
531
531
  ref: n,
532
- visible: T(i)?.visible ?? !1,
533
- position: T(i)?.position ?? [0, 0],
532
+ visible: i.value?.visible ?? !1,
533
+ position: i.value?.position ?? [0, 0],
534
534
  config: t.config,
535
535
  onItemClick: t.onItemClick
536
536
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lovelymaid",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "一个基于 Vue 3, 模仿 iOS 26 风格的组件库",
5
5
  "license": "MIT",
6
6
  "keywords": [