lovelymaid 1.3.3 → 1.3.5

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.
@@ -8,9 +8,11 @@ interface Props {
8
8
  /** 关闭按钮点击事件 */
9
9
  onCloseClick?: () => void;
10
10
  }
11
- declare var __VLS_7: {};
11
+ declare var __VLS_7: {}, __VLS_9: {};
12
12
  type __VLS_Slots = {} & {
13
13
  default?: (props: typeof __VLS_7) => any;
14
+ } & {
15
+ outside?: (props: typeof __VLS_9) => any;
14
16
  };
15
17
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
18
  visible: boolean;
@@ -7,8 +7,12 @@ interface Props {
7
7
  name: string;
8
8
  [key: string]: any;
9
9
  }[];
10
+ /** 是否展开 */
11
+ isOpen: boolean;
10
12
  /** 激活项索引 */
11
13
  activeId?: string;
14
+ /** 折叠按钮点击事件 */
15
+ onButtonClick: () => void;
12
16
  /** 头部点击事件 */
13
17
  onHeaderClick?: () => void;
14
18
  /** 列表项点击事件 */
@@ -36,6 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
36
40
  name: string;
37
41
  [key: string]: any;
38
42
  }[];
43
+ isOpen: boolean;
39
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
46
  declare const _default: typeof __VLS_export;
@@ -4,15 +4,15 @@ interface Props {
4
4
  name?: string;
5
5
  [key: string]: any;
6
6
  }[];
7
+ /** 激活索引 */
8
+ activeIndex?: number;
9
+ /** 是否启用搜索按钮 */
10
+ showSearch?: boolean;
7
11
  /** 列表项点击事件 */
8
12
  onItemClick?: (item: {
9
13
  name?: string;
10
14
  [key: string]: any;
11
15
  }, index: number) => void;
12
- /** 是否启用搜索按钮 */
13
- showSearch?: boolean;
14
- /** 挂载时激活索引 */
15
- initialIndex?: number;
16
16
  }
17
17
  declare var __VLS_1: {
18
18
  item: {
@@ -40,10 +40,8 @@ type __VLS_Slots = {} & {
40
40
  } & {
41
41
  default?: (props: typeof __VLS_5) => any;
42
42
  };
43
- declare const __VLS_base: import("vue").DefineComponent<Props, {
44
- clickTab: (index: number) => void;
45
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
46
- initialIndex: number;
43
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
44
+ activeIndex: number;
47
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
47
  declare const _default: typeof __VLS_export;
@@ -1,19 +1,22 @@
1
1
  interface Props {
2
2
  /** 最小行数 */
3
3
  minrow?: number;
4
+ /** 值 */
5
+ value?: string;
4
6
  /** 输入框提示词 */
5
7
  placeholder?: string;
6
8
  /** 移动端键盘回车图标 */
7
9
  enterkeyhint?: "enter" | "search" | "done" | "go" | "next" | "previous" | "send";
8
10
  /** 获得当前输入值 */
9
11
  onChange?: (inputValue: string) => void;
10
- /** 回车搜索事件 */
12
+ /** 回车事件 */
11
13
  onEnter?: (inputValue: string) => void;
12
14
  }
13
15
  declare const __VLS_export: import("vue").DefineComponent<Props, {
14
16
  focus: () => void | undefined;
15
17
  blur: () => void | undefined;
16
18
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ value: string;
17
20
  placeholder: string;
18
21
  minrow: number;
19
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,2 +1,2 @@
1
- .ActionButton[data-v-161703ba]{cursor:pointer;justify-content:center;align-items:center;display:flex}.list[data-v-161703ba]{z-index:999;backface-visibility:hidden;background-color:#f3f6f6;border-radius:10px;padding:4px;position:fixed;transform:translateZ(0);box-shadow:0 0 10px #0000001a}.item[data-v-161703ba]{border-radius:8px}.item[data-v-161703ba]:hover{color:#fff;background-color:#3b86f7}._Button_iukdh_2{border-radius:var(--v9c93d368);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v5c9fbb44);color:#19191a;--background-color:#3b86f7;justify-content:center;align-items:center;font-weight:500;transition:transform .2s;display:flex}._Button_iukdh_2._common_iukdh_18{background-color:var(--background-color)}._Button_iukdh_2:active{transform:scale(1.2)}._Button_iukdh_2._lovelymaid-glass-container_iukdh_26:active{background-color:#fff}._ContentBar_v934h_2{display:var(--v06badcae);transform:translateX(var(--v3a35c283)) scale(var(--e2f0e01e));transition:var(--v3a13f70e);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_v934h_11{z-index:1;justify-content:space-between;gap:5px;height:0;margin-bottom:50px;padding:0 10px;display:flex;position:sticky;top:0;box-shadow:0 0 20px 35px #f8f8f8f2}._title_v934h_24{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;height:30px;margin-top:10px;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._Button_v934h_37{margin-top:10px;font-size:20px}._content_v934h_42{z-index:0;display:flow-root;position:relative}._Drawer_106c0_2{z-index:10;--height:90dvh;position:relative}._mask_106c0_8{background-color:#0000001a;width:100dvw;height:100dvh;transition:opacity .3s;position:fixed;top:0;left:0}._DrawerContainer_106c0_18{z-index:1;width:100dvw;height:var(--height);overscroll-behavior-y:contain;scrollbar-width:thin;border-top-left-radius:38px;border-top-right-radius:38px;transition:transform .5s cubic-bezier(.2,.9,.4,1);position:fixed;bottom:0;overflow:auto}._header_106c0_32{z-index:1;justify-content:center;height:0;margin-bottom:60px;display:flex;position:sticky;top:0;box-shadow:0 0 20px 35px #f8f8f8f2}._title_106c0_43{text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 130px);height:45px;margin-top:15px;font-size:20px;font-weight:500;line-height:45px;overflow:hidden}._Button_106c0_55{width:45px;height:45px;font-size:28px;font-weight:600;position:absolute;top:15px;right:15px}._content_106c0_65{z-index:0;position:relative}.lovelymaid-fade-enter-from,.lovelymaid-fade-leave-to{opacity:0}.lovelymaid-slide-up-enter-from,.lovelymaid-slide-up-leave-to{transform:translateY(100%)}._header_1h845_2{cursor:pointer;justify-content:space-between;align-items:center;height:30px;display:flex}._title_1h845_10{color:#767676;font-size:12px;font-weight:500}._BodyContainer_1h845_16{overflow:hidden}._BodyContainer_1h845_16._EnableTransition_1h845_20{transition:height .5s}._body_1h845_24{transition:transform .5s;transform:translateY(0)}._close_1h845_29{transform:translateY(-100%)}._body_1h845_24 li{white-space:nowrap;text-overflow:ellipsis;border-radius:6px;padding:0 10px;font-size:14px;line-height:30px;transition:all .2s;position:relative;overflow:hidden}._active_1h845_45{color:#3b86f7;background-color:#e4e4e4}@keyframes _slideAnimation_1h845_60{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}._slideAnimation_1h845_60{animation:.5s _slideAnimation_1h845_60}.lovelymaid[data-v-4cc94144]{color:#767676;cursor:pointer;will-change:transform;font-size:16px;font-weight:700;transition:transform .3s}._Input_1uug0_2{border-radius:calc(var(--v4a52637b) / 2);--font-size:14px;--font-weight:400;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_1uug0_13{width:var(--v05ae4584);height:100%;font-size:calc(var(--v05ae4584) / 2);color:#19191a;justify-content:center;align-items:center;display:flex;position:absolute}._icon_1uug0_13._custom_1uug0_24{left:0}._icon_1uug0_13._clear_1uug0_28{right:0}input[data-v-78f7b64e]{border-radius:calc(var(--v05ae4584) / 2);width:100%;height:100%;padding:0 var(--v05ae4584);font-size:var(--font-size);font-weight:var(--font-weight);caret-color:#3c86f6;background-color:#0000;outline:0 solid #0000;transition:outline .2s}input[data-v-78f7b64e]::placeholder{font-size:var(--font-size);font-weight:var(--font-weight);color:var(--placeholder-color)}input[data-v-78f7b64e]:focus{outline:3px solid #94bbf0}.lovely-clear[data-v-78f7b64e]{font-size:calc(var(--v05ae4584) / 2);color:var(--clear-color);cursor:pointer}._SideBar_rbdtx_2{display:var(--v331cb092);transform:translateX(var(--v57e56c96)) scale(var(--v4cbe5d02));transition:var(--v58290380);border-radius:20px}._header_rbdtx_9{height:50px;position:relative}._SwitchButton_rbdtx_14{width:35px;height:30px;transform:translateX(var(--v62b95138));cursor:pointer;will-change:transform;background-color:#f8f8f8e6;border:none;border-radius:15px;justify-content:center;align-items:center;transition:transform .5s,box-shadow .5s;display:flex;position:absolute;top:10px;right:10px}._SwitchButton_rbdtx_14._close_rbdtx_34{border:1px solid #fff;box-shadow:0 0 10px 2px #0000001a}._SwitchButton_rbdtx_14:hover{background-color:#eee}.lovely-sidebar_left[data-v-47bea682]{color:#19191a;font-size:20px}._TabBar_3h4l1_2{-webkit-user-select:none;user-select:none;--font-size:8px;--top-color:#0067ec;gap:5px;height:50px;display:flex}._bar_3h4l1_12{z-index:1;width:calc(var(--dbf88134) * .8px);border-radius:calc(var(--v1413afdc) * 1px);cursor:pointer;height:80%;transition:var(--bb9137d8);padding:2px;overflow:hidden;background-color:var(--v92994114)!important}._bar_3h4l1_12._active_3h4l1_24{width:calc(var(--v267688b2) * 1px);height:100%;transform:scale(var(--v26ecd1aa));overflow:visible}._bar_3h4l1_12:not(._active_3h4l1_24):active{transform:scale(1.2)}._search_3h4l1_35{width:calc(var(--dbf88134) * 1px);height:100%;transition:var(--bb9137d8)}._search_3h4l1_35._active_3h4l1_24{width:calc(var(--cb2ac36c) * 1px);height:80%}._container_3h4l1_46{touch-action:none;width:100%;height:100%;display:flex;position:relative}._container_3h4l1_46._top_3h4l1_54{z-index:1;clip-path:inset(0 calc(100% - var(--v7d178e05) * 1px) 0 calc(var(--v7fe532fe) * 1px) round calc((var(--v1413afdc) - 3) * 1px));transform:translateZ(0) scale(var(--v25d26869));transform-origin:calc(var(--v67b0aab2) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_3h4l1_66{width:calc(var(--v678c8fc9) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_3h4l1_66 :nth-child(2){font-size:var(--font-size)}._tab_3h4l1_66._small_3h4l1_80{aspect-ratio:1;flex-shrink:1;height:100%}._tab_3h4l1_66._top_3h4l1_54{color:var(--top-color)}._search_3h4l1_35 ._Button_3h4l1_90{width:100%;height:100%}._search_3h4l1_35 ._Search_3h4l1_95{--font-size:18px;height:100%}._slide_3h4l1_100{z-index:0;width:calc(var(--v678c8fc9) * 1px);background:var(--v50ae033c);border:var(--v7529d760);border-radius:calc((var(--v1413afdc) - 3) * 1px);height:100%;box-shadow:var(--deb501d2);transform:translateX(calc(var(--v33be734f) * 1px)) scale(var(--v67516b4d));transition:var(--v6d8e559c);position:absolute;top:0;left:0}.button.lovely-search[data-v-2bfc1f40]{font-size:calc(var(--dbf88134) * .4px)}.input.lovely-search[data-v-2bfc1f40]{font-size:24px}._container_1wh82_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:normal;--placeholder-color:#544957}textarea[data-v-64814654]{width:100%;max-height:var(--max-height);border-radius:calc(var(--border-radius) - 1px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:#3c86f6;resize:none;scrollbar-width:thin;background-color:#0000;outline:0 solid #0000;padding:12px;transition:outline .2s;display:block;overflow-y:auto}textarea[data-v-64814654]::placeholder{color:var(--placeholder-color)}textarea[data-v-64814654]:focus{outline:3px solid #94bbf0}.lovelymaid,.lovelymaid *{box-sizing:border-box;margin:0;padding:0}ul.lovelymaid,.lovelymaid ul{list-style:none}.lovelymaid-common-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);background-color:#f2f2f6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-glass-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);background-color:#f8f8f8e6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FUtpAAABjAAAAGBjbWFwN+VyCAAAAhQAAAIYZ2x5Zg6UKBEAAAREAAAENGhlYWQvU2FdAAAA4AAAADZoaGVhB94DiwAAALwAAAAkaG10eCgAAAAAAAHsAAAAKGxvY2EGQAUoAAAELAAAABZtYXhwARoAVgAAARgAAAAgbmFtZY1JxoQAAAh4AAACf3Bvc3SND8KiAAAK+AAAAIIAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAoAAQAAAAEAABZGKrhfDzz1AAsEAAAAAADmGg6wAAAAAOYaDrAAAP+ABAADgAAAAAgAAgAAAAAAAAABAAAACgBKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOYA6JkDgP+AAAAD3ACAAAAAAQAAAAAAAAAAAAAAAAACBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAUAAAADAAAALAAAAAQAAAGcAAEAAAAAAJYAAwABAAAALAADAAoAAAGcAAQAagAAABIAEAADAALmAOYI5inmLeYw5k7m3uiZ//8AAOYA5gjmKeYt5jDmTube6Jj//wAAAAAAAAAAAAAAAAAAAAAAAQASABIAEgASABIAEgASABIAA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wABBAkAAAAmAIsAAwABBAkAAQAUALEAAwABBAkAAgAOAMUAAwABBAkAAwAUANMAAwABBAkABAAUAOcAAwABBAkABQAWAPsAAwABBAkABgAUAREAAwABBAkACgBWASUAAwABBAkACwAmAXtDcmVhdGVkIGJ5IGljb25mb250bG92ZWx5bWFpZFJlZ3VsYXJsb3ZlbHltYWlkbG92ZWx5bWFpZFZlcnNpb24gMS4wbG92ZWx5bWFpZEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAbABvAHYAZQBsAHkAbQBhAGkAZABSAGUAZwB1AGwAYQByAGwAbwB2AGUAbAB5AG0AYQBpAGQAbABvAHYAZQBsAHkAbQBhAGkAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAbABvAHYAZQBsAHkAbQBhAGkAZABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgECAQMBBAEFAQYBBwEIAQkBCgELAAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxzaWRlYmFyX2xlZnQLcmlnaHQtYXJyb3cFY2xlYXIKbGVmdC1hcnJvdwNnb3UFY2xvc2UAAAAA)format("truetype")}.lovelymai{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-family:lovelymai!important}.lovely-ellipsis:before{content:""}.lovely-search:before{content:""}.lovely-info:before{content:""}.lovely-sidebar_left:before{content:""}.lovely-right-arrow:before{content:""}.lovely-clear:before{content:""}.lovely-left-arrow:before{content:""}.lovely-gou:before{content:""}.lovely-close:before{content:""}
1
+ .ActionButton[data-v-8d12dd59]{cursor:pointer;justify-content:center;align-items:center;display:flex}.list[data-v-8d12dd59]{z-index:999;backface-visibility:hidden;background-color:#f3f6f6;border-radius:10px;padding:4px;position:fixed;transform:translateZ(0);box-shadow:0 0 10px #0000001a}.list .item[data-v-8d12dd59]{border-radius:8px}.list .item[data-v-8d12dd59]:hover{color:#fff;background-color:#3b86f7}._Button_iukdh_2{border-radius:var(--v9c93d368);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v5c9fbb44);color:#19191a;--background-color:#3b86f7;justify-content:center;align-items:center;font-weight:500;transition:transform .2s;display:flex}._Button_iukdh_2._common_iukdh_18{background-color:var(--background-color)}._Button_iukdh_2:active{transform:scale(1.2)}._Button_iukdh_2._lovelymaid-glass-container_iukdh_26:active{background-color:#fff}._ContentBar_1v7xu_2{transform:translateX(var(--v3413c827)) scale(var(--v3f44d866));transition:var(--v33f1fcb2);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_1v7xu_10{z-index:1;justify-content:space-between;gap:5px;height:0;margin-bottom:50px;padding:0 10px;display:flex;position:sticky;top:0;box-shadow:0 0 20px 35px #f8f8f8f2}._title_1v7xu_23{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;height:30px;margin-top:10px;font-size:16px;font-weight:500;line-height:30px;overflow:hidden}._Button_1v7xu_36{margin-top:10px;font-size:20px}._content_1v7xu_41{z-index:0;display:flow-root;position:relative}._Drawer_106c0_2{z-index:10;--height:90dvh;position:relative}._mask_106c0_8{background-color:#0000001a;width:100dvw;height:100dvh;transition:opacity .3s;position:fixed;top:0;left:0}._DrawerContainer_106c0_18{z-index:1;width:100dvw;height:var(--height);overscroll-behavior-y:contain;scrollbar-width:thin;border-top-left-radius:38px;border-top-right-radius:38px;transition:transform .5s cubic-bezier(.2,.9,.4,1);position:fixed;bottom:0;overflow:auto}._header_106c0_32{z-index:1;justify-content:center;height:0;margin-bottom:60px;display:flex;position:sticky;top:0;box-shadow:0 0 20px 35px #f8f8f8f2}._title_106c0_43{text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 130px);height:45px;margin-top:15px;font-size:20px;font-weight:500;line-height:45px;overflow:hidden}._Button_106c0_55{width:45px;height:45px;font-size:28px;font-weight:600;position:absolute;top:15px;right:15px}._content_106c0_65{z-index:0;position:relative}.lovelymaid-fade-enter-from,.lovelymaid-fade-leave-to{opacity:0}.lovelymaid-slide-up-enter-from,.lovelymaid-slide-up-leave-to{transform:translateY(100%)}._FoldList_ujtl4_2{--header-height:30px;--title-font-size:12px;--title-color:#767676;--list-font-size:14px;--list-line-height:30px;--list-color:inherit}._header_ujtl4_11{height:var(--header-height);cursor:pointer;justify-content:space-between;align-items:center;display:flex}._header_ujtl4_11 ._title_ujtl4_19{font-size:var(--title-font-size);color:var(--title-color);font-weight:500}._BodyContainer_ujtl4_25{transition:height .5s;overflow:hidden}._body_ujtl4_30{transition:transform .5s;transform:translateY(0)}._body_ujtl4_30._close_ujtl4_35{transform:translateY(-100%)}._body_ujtl4_30 ._item_ujtl4_39{font-size:var(--list-font-size);line-height:var(--list-line-height);color:var(--list-color);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;padding:0 10px;transition:all .2s;position:relative;overflow:hidden}._body_ujtl4_30 ._item_ujtl4_39._active_ujtl4_52{color:#3b86f7;background-color:#e4e4e4}@keyframes _slideAnimation_ujtl4_67{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}._slideAnimation_ujtl4_67{animation:.5s _slideAnimation_ujtl4_67}.lovely-right-arrow[data-v-ad22b0cc]{color:var(--title-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._Input_pj7kp_2{border-radius:calc(var(--v3dd61efd) / 2);--font-size:14px;--font-weight:400;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_pj7kp_13{width:var(--a05fdbf4);height:100%;font-size:calc(var(--a05fdbf4) / 2);color:#19191a;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_pj7kp_13._custom_pj7kp_25{left:0}._icon_pj7kp_13._clear_pj7kp_29{right:0}input[data-v-5bee2703]{border-radius:calc(var(--a05fdbf4) / 2);width:100%;height:100%;padding:0 var(--a05fdbf4);font-size:var(--font-size);font-weight:var(--font-weight);caret-color:#3c86f6;background-color:#0000;border:none;outline:0 solid #0000;transition:outline .2s}input[data-v-5bee2703]::placeholder{font-size:var(--font-size);font-weight:var(--font-weight);color:var(--placeholder-color)}input[data-v-5bee2703]:focus{outline:3px solid #94bbf0}.lovely-clear[data-v-5bee2703]{font-size:calc(var(--a05fdbf4) / 2);color:var(--clear-color);cursor:pointer;pointer-events:auto}._SideBar_ag32y_2{transform:translateX(var(--v72b7be29)) scale(var(--v7bb4648b));transition:var(--v7295f2b4);border-radius:20px}._header_ag32y_8{height:50px;position:relative}._SwitchButton_ag32y_13{width:35px;height:30px;transform:translateX(var(--a7d68120));cursor:pointer;background-color:#f8f8f8e6;border:none;border-radius:15px;justify-content:center;align-items:center;transition:transform .5s,box-shadow .5s;display:flex;position:absolute;top:10px;right:10px}._SwitchButton_ag32y_13._close_ag32y_32{border:1px solid #fff;box-shadow:0 0 10px 2px #0000001a}._SwitchButton_ag32y_13:hover{background-color:#eee}.lovely-sidebar_left[data-v-9c0b4e62]{color:#19191a;font-size:20px}._TabBar_3h4l1_2{-webkit-user-select:none;user-select:none;--font-size:8px;--top-color:#0067ec;gap:5px;height:50px;display:flex}._bar_3h4l1_12{z-index:1;width:calc(var(--fcdb94b2) * .8px);border-radius:calc(var(--v69697e31) * 1px);cursor:pointer;height:80%;transition:var(--c5a25c56);padding:2px;overflow:hidden;background-color:var(--v47af6255)!important}._bar_3h4l1_12._active_3h4l1_24{width:calc(var(--v705df946) * 1px);height:100%;transform:scale(var(--v7022d4ca));overflow:visible}._bar_3h4l1_12:not(._active_3h4l1_24):active{transform:scale(1.2)}._search_3h4l1_35{width:calc(var(--fcdb94b2) * 1px);height:100%;transition:var(--c5a25c56)}._search_3h4l1_35._active_3h4l1_24{width:calc(var(--v3f96ef6a) * 1px);height:80%}._container_3h4l1_46{touch-action:none;width:100%;height:100%;display:flex;position:relative}._container_3h4l1_46._top_3h4l1_54{z-index:1;clip-path:inset(0 calc(100% - var(--v1eea37b8) * 1px) 0 calc(var(--v74a1c602) * 1px) round calc((var(--v69697e31) - 3) * 1px));transform:translateZ(0) scale(var(--v1560deaa));transform-origin:calc(var(--a50ad69a) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_3h4l1_66{width:calc(var(--v69cce1a8) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_3h4l1_66 :nth-child(2){font-size:var(--font-size)}._tab_3h4l1_66._small_3h4l1_80{aspect-ratio:1;flex-shrink:1;height:100%}._tab_3h4l1_66._top_3h4l1_54{color:var(--top-color)}._search_3h4l1_35 ._Button_3h4l1_90{width:100%;height:100%}._search_3h4l1_35 ._Search_3h4l1_95{--font-size:18px;height:100%}._slide_3h4l1_100{z-index:0;width:calc(var(--v69cce1a8) * 1px);background:var(--v4c2d5f7e);border:var(--v7ee3f0bf);border-radius:calc((var(--v69697e31) - 3) * 1px);height:100%;box-shadow:var(--ff981550);transform:translateX(calc(var(--v234ce990) * 1px)) scale(var(--v6991bd2c));transition:var(--v37e8529a);position:absolute;top:0;left:0}.button.lovely-search[data-v-37cd0caf]{font-size:calc(var(--fcdb94b2) * .4px)}.input.lovely-search[data-v-37cd0caf]{font-size:24px}._container_1wh82_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:normal;--placeholder-color:#544957}textarea[data-v-6b991b20]{width:100%;max-height:var(--max-height);border-radius:calc(var(--border-radius) - 1px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);caret-color:#3c86f6;resize:none;scrollbar-width:thin;background-color:#0000;border:none;outline:0 solid #0000;padding:12px;transition:outline .2s;display:block;overflow-y:auto}textarea[data-v-6b991b20]::placeholder{color:var(--placeholder-color)}textarea[data-v-6b991b20]:focus{outline:3px solid #94bbf0}.lovelymaid,.lovelymaid *{box-sizing:border-box}ul.lovelymaid,.lovelymaid ul{list-style:none}.lovelymaid-common-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);background-color:#f2f2f6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-glass-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);background-color:#f8f8f8e6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FUtpAAABjAAAAGBjbWFwN+VyCAAAAhQAAAIYZ2x5Zg6UKBEAAAREAAAENGhlYWQvU2FdAAAA4AAAADZoaGVhB94DiwAAALwAAAAkaG10eCgAAAAAAAHsAAAAKGxvY2EGQAUoAAAELAAAABZtYXhwARoAVgAAARgAAAAgbmFtZY1JxoQAAAh4AAACf3Bvc3SND8KiAAAK+AAAAIIAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAoAAQAAAAEAABZGKrhfDzz1AAsEAAAAAADmGg6wAAAAAOYaDrAAAP+ABAADgAAAAAgAAgAAAAAAAAABAAAACgBKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOYA6JkDgP+AAAAD3ACAAAAAAQAAAAAAAAAAAAAAAAACBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAUAAAADAAA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TGgkAAAASAN4AAQAAAAAAAAATAAAAAQAAAAAAAQAKABMAAQAAAAAAAgAHAB0AAQAAAAAAAwAKACQAAQAAAAAABAAKAC4AAQAAAAAABQALADgAAQAAAAAABgAKAEMAAQAAAAAACgArAE0AAQAAAAAACwATAHgAAwABBAkAAAAmAIsAAwABBAkAAQAUALEAAwABBAkAAgAOAMUAAwABBAkAAwAUANMAAwABBAkABAAUAOcAAwABBAkABQAWAPsAAwABBAkABgAUAREAAwABBAkACgBWASUAAwABBAkACwAmAXtDcmVhdGVkIGJ5IGljb25mb250bG92ZWx5bWFpZFJlZ3VsYXJsb3ZlbHltYWlkbG92ZWx5bWFpZFZlcnNpb24gMS4wbG92ZWx5bWFpZEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAbABvAHYAZQBsAHkAbQBhAGkAZABSAGUAZwB1AGwAYQByAGwAbwB2AGUAbAB5AG0AYQBpAGQAbABvAHYAZQBsAHkAbQBhAGkAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAbABvAHYAZQBsAHkAbQBhAGkAZABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgECAQMBBAEFAQYBBwEIAQkBCgELAAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxzaWRlYmFyX2xlZnQLcmlnaHQtYXJyb3cFY2xlYXIKbGVmdC1hcnJvdwNnb3UFY2xvc2UAAAAA)format("truetype")}.lovelymai{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-family:lovelymai!important}.lovely-ellipsis:before{content:""}.lovely-search:before{content:""}.lovely-info:before{content:""}.lovely-sidebar_left:before{content:""}.lovely-right-arrow:before{content:""}.lovely-clear:before{content:""}.lovely-left-arrow:before{content:""}.lovely-gou:before{content:""}.lovely-close:before{content:""}
2
2
  /*$vite$:1*/
@@ -20,14 +20,14 @@ var O = ["onClick"], k = /* @__PURE__ */ u({
20
20
  return (n, f) => (g(), o("span", {
21
21
  class: "lovelymaid lovelymai lovely-ellipsis ActionButton",
22
22
  onClick: D(d, ["stop"])
23
- }, [(g(), i(t, { to: "body" }, [s.value ? (g(), o("div", {
23
+ }, [(g(), i(t, { to: "body" }, [s.value ? (g(), o("ul", {
24
24
  key: 0,
25
25
  class: "list",
26
26
  style: p({
27
27
  left: `${l.value}px`,
28
28
  top: `${u.value}px`
29
29
  })
30
- }, [(g(!0), o(e, null, v(r.list, (e, t) => (g(), o("div", {
30
+ }, [(g(!0), o(e, null, v(r.list, (e, t) => (g(), o("li", {
31
31
  class: "item",
32
32
  key: t,
33
33
  onClick: (n) => r.onItemClick?.(e, t)
@@ -40,7 +40,7 @@ var O = ["onClick"], k = /* @__PURE__ */ u({
40
40
  let n = e.__vccOpts || e;
41
41
  for (let [e, r] of t) n[e] = r;
42
42
  return n;
43
- }, j = /* @__PURE__ */ A(k, [["__scopeId", "data-v-161703ba"]]);
43
+ }, j = /* @__PURE__ */ A(k, [["__scopeId", "data-v-8d12dd59"]]);
44
44
  //#endregion
45
45
  //#region src/utils/common.ts
46
46
  function M(e, t) {
@@ -51,7 +51,7 @@ function M(e, t) {
51
51
  }, t);
52
52
  };
53
53
  }
54
- function te(e, t, n) {
54
+ function N(e, t, n) {
55
55
  if (!e.value) return () => {};
56
56
  n && t({
57
57
  width: e.value.offsetWidth,
@@ -67,7 +67,7 @@ function te(e, t, n) {
67
67
  }
68
68
  //#endregion
69
69
  //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
70
- var N = ["title"], P = /* @__PURE__ */ A(/* @__PURE__ */ u({
70
+ var te = ["title"], P = /* @__PURE__ */ A(/* @__PURE__ */ u({
71
71
  __name: "Button",
72
72
  props: {
73
73
  type: { default: "common" },
@@ -80,7 +80,7 @@ var N = ["title"], P = /* @__PURE__ */ A(/* @__PURE__ */ u({
80
80
  v5c9fbb44: i.value
81
81
  }));
82
82
  let t = e, n = _(null), r = _(""), i = _("0");
83
- return m(() => te(n, () => {
83
+ return m(() => N(n, () => {
84
84
  let e = Math.min(n.value.offsetHeight, n.value.offsetWidth);
85
85
  r.value = `${e / 2}px`, i.value = `${e / 2}px`;
86
86
  }, !0)), (e, r) => (g(), o("div", {
@@ -96,7 +96,7 @@ var N = ["title"], P = /* @__PURE__ */ A(/* @__PURE__ */ u({
96
96
  ]),
97
97
  onClick: r[0] ||= (...e) => t.onClick && t.onClick(...e),
98
98
  title: t.title
99
- }, [y(e.$slots, "default")], 10, N));
99
+ }, [y(e.$slots, "default")], 10, te));
100
100
  }
101
101
  }), [["__cssModules", { $style: {
102
102
  Button: "_Button_iukdh_2",
@@ -113,7 +113,7 @@ function F(e) {
113
113
  }
114
114
  //#endregion
115
115
  //#region src/components/ContentBar.vue?vue&type=script&setup=true&lang.ts
116
- var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
116
+ var I = ["title"], L = /* @__PURE__ */ A(/* @__PURE__ */ u({
117
117
  __name: "ContentBar",
118
118
  props: {
119
119
  visible: {
@@ -129,24 +129,23 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
129
129
  },
130
130
  setup(e) {
131
131
  S((e) => ({
132
- v06badcae: v.value,
133
- v3a35c283: u.value,
134
- e2f0e01e: x.value,
135
- v3a13f70e: i.value
132
+ v3413c827: c.value,
133
+ v3f44d866: p.value,
134
+ v33f1fcb2: i.value
136
135
  }));
137
- let t = e, n = _(null), i = _("none"), a = _(0), u = r(() => t.isOpen ? "0" : `${-a.value}px`), d = () => {
136
+ let t = e, n = _(null), i = _("none"), a = _(0), c = r(() => t.isOpen ? "0" : `${-a.value}px`), u = () => {
138
137
  n.value && (a.value = F(n.value) + n.value.offsetWidth + 10);
139
- }, p = M(d, 100);
138
+ }, d = M(u, 100);
140
139
  m(() => {
141
- d(), setTimeout(() => i.value = "transform .5s", 100), window.addEventListener("resize", p);
140
+ u(), setTimeout(() => i.value = "transform .5s", 100), window.addEventListener("resize", d);
142
141
  }), h(() => {
143
- window.removeEventListener("resize", p);
142
+ window.removeEventListener("resize", d);
144
143
  });
145
- let v = _(t.visible ? "block" : "none"), x = _(t.visible ? "1" : "0");
144
+ let p = _(t.visible ? "1" : "0"), v;
146
145
  return w(() => t.visible, (e) => {
147
- i.value = "transform .3s", setTimeout(() => i.value = "transform .5s", 300), e ? (v.value = "block", requestAnimationFrame(() => {
148
- x.value = "1";
149
- })) : (setTimeout(() => v.value = "none", 300), x.value = "0");
146
+ clearTimeout(v), i.value = "transform .3s", v = setTimeout(() => i.value = "transform .5s", 300), e ? requestAnimationFrame(() => {
147
+ p.value = "1";
148
+ }) : p.value = "0";
150
149
  }), (e, r) => (g(), o("div", {
151
150
  class: f([
152
151
  "lovelymaid",
@@ -155,26 +154,30 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
155
154
  ]),
156
155
  ref_key: "ContainerRef",
157
156
  ref: n
158
- }, [s("div", { class: f(e.$style.header) }, [s("div", {
159
- class: f(e.$style.title),
160
- title: t.title
161
- }, b(t.title), 11, ne), l(P, {
162
- type: "glass",
163
- class: f(e.$style.Button),
164
- onClick: t.onCloseClick,
165
- title: "收起内容栏"
166
- }, {
167
- default: T(() => [...r[0] ||= [s("span", { class: "lovelymai lovely-close" }, null, -1)]]),
168
- _: 1
169
- }, 8, ["class", "onClick"])], 2), s("div", { class: f(e.$style.content) }, [y(e.$slots, "default", {}, () => [r[1] ||= c("这是内容", -1)])], 2)], 2));
157
+ }, [
158
+ s("div", { class: f(e.$style.header) }, [s("div", {
159
+ class: f(e.$style.title),
160
+ title: t.title
161
+ }, b(t.title), 11, I), l(P, {
162
+ type: "glass",
163
+ class: f(e.$style.Button),
164
+ onClick: t.onCloseClick,
165
+ title: "收起内容栏"
166
+ }, {
167
+ default: T(() => [...r[0] ||= [s("span", { class: "lovelymai lovely-close" }, null, -1)]]),
168
+ _: 1
169
+ }, 8, ["class", "onClick"])], 2),
170
+ s("div", { class: f(e.$style.content) }, [y(e.$slots, "default")], 2),
171
+ y(e.$slots, "outside")
172
+ ], 2));
170
173
  }
171
174
  }), [["__cssModules", { $style: {
172
- ContentBar: "_ContentBar_v934h_2",
173
- header: "_header_v934h_11",
174
- title: "_title_v934h_24",
175
- Button: "_Button_v934h_37",
176
- content: "_content_v934h_42"
177
- } }]]), L = /* @__PURE__ */ A(/* @__PURE__ */ u({
175
+ ContentBar: "_ContentBar_1v7xu_2",
176
+ header: "_header_1v7xu_10",
177
+ title: "_title_1v7xu_23",
178
+ Button: "_Button_1v7xu_36",
179
+ content: "_content_1v7xu_41"
180
+ } }]]), R = /* @__PURE__ */ A(/* @__PURE__ */ u({
178
181
  __name: "Drawer",
179
182
  props: {
180
183
  isOpen: {
@@ -216,7 +219,7 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
216
219
  title: "_title_106c0_43",
217
220
  Button: "_Button_106c0_55",
218
221
  content: "_content_106c0_65"
219
- } }]]), R = (e, t) => {
222
+ } }]]), z = (e, t) => {
220
223
  let n = Array(e.length), r = /* @__PURE__ */ new Map();
221
224
  for (let e = 0; e < t.length; e++) r.set(t[e].id, e);
222
225
  let i = -1;
@@ -225,78 +228,82 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
225
228
  o === void 0 ? i === -1 ? n[t] = -1 - t : n[t] = i - t : (n[t] = o - t, i = o);
226
229
  }
227
230
  return n;
228
- }, z = ["title"], B = ["onClick"], V = /* @__PURE__ */ A(/* @__PURE__ */ u({
231
+ }, B = ["title"], V = ["onClick"], H = /* @__PURE__ */ A(/* @__PURE__ */ u({
229
232
  __name: "FoldList",
230
233
  props: {
231
234
  title: { default: "标题" },
232
235
  list: { default: () => [] },
236
+ isOpen: {
237
+ type: Boolean,
238
+ default: !0
239
+ },
233
240
  activeId: {},
241
+ onButtonClick: {},
234
242
  onHeaderClick: {},
235
243
  onItemClick: {}
236
244
  },
237
245
  setup(t) {
238
- let n = t, r = _(!0), i = _(0), a = _(null), l = _(!1), u = async () => {
246
+ let n = t, i = _(0), a = _(null), l = async () => {
239
247
  await d(), a.value && (i.value = a.value.offsetHeight);
240
- }, h = async () => {
241
- await u(), setTimeout(() => {
242
- l.value = !0;
243
- }, 100);
248
+ }, u = async () => {
249
+ await l();
244
250
  };
245
251
  m(() => {
246
- h();
252
+ u();
247
253
  }), w(() => n.list.length, async () => {
248
- await u();
254
+ await l();
249
255
  });
250
- let x = _([]), S = _(!1), C = _(void 0);
251
- return w(() => n.list, async (e) => {
252
- C.value ||= [...e], l.value && (S.value = !1, x.value = R(e, C.value), await d(), S.value = !0, C.value = [...e]);
253
- }, { deep: !0 }), (u, d) => (g(), o("div", { class: f(["lovelymaid", u.$style.FoldList]) }, [s("div", {
254
- class: f(u.$style.header),
255
- onClick: d[1] ||= D((...e) => t.onHeaderClick && t.onHeaderClick(...e), ["stop"])
256
- }, [s("div", { class: f(u.$style.title) }, b(n.title), 3), s("span", {
257
- class: f(["lovelymai", "lovely-right-arrow"]),
258
- style: p({ transform: r.value ? "rotate(90deg)" : "rotate(0deg)" }),
259
- title: r.value ? "收起列表" : "展开列表",
260
- onClick: d[0] ||= D((e) => r.value = !r.value, ["stop"])
261
- }, null, 12, z)], 2), s("div", {
262
- class: f([u.$style.BodyContainer, { [u.$style.EnableTransition]: l.value }]),
263
- style: p({ height: r.value ? `${i.value}px` : "0px" })
256
+ let h = _([]), x = _(!1), S = _(n.list);
257
+ return w(r(() => n.list.map((e) => e.id).join(",")), async (e, t) => {
258
+ e !== t && (x.value = !1, h.value = z(n.list, S.value), await d(), x.value = !0, S.value = [...n.list]);
259
+ }, { deep: !0 }), (r, l) => (g(), o("div", { class: f(["lovelymaid", r.$style.FoldList]) }, [s("div", {
260
+ class: f(r.$style.header),
261
+ onClick: l[1] ||= (...e) => t.onHeaderClick && t.onHeaderClick(...e)
262
+ }, [s("div", { class: f(r.$style.title) }, b(n.title), 3), s("span", {
263
+ class: "lovelymai lovely-right-arrow",
264
+ style: p({ transform: n.isOpen ? "rotate(90deg)" : "rotate(0deg)" }),
265
+ title: t.isOpen ? "收起列表" : "展开列表",
266
+ onClick: l[0] ||= D((...e) => n.onButtonClick && n.onButtonClick(...e), ["stop"])
267
+ }, null, 12, B)], 2), s("div", {
268
+ class: f(r.$style.BodyContainer),
269
+ style: p({ height: t.isOpen ? `${i.value}px` : "0px" })
264
270
  }, [s("ul", {
271
+ class: f([r.$style.body, { [r.$style.close]: !t.isOpen }]),
265
272
  ref_key: "bodyRef",
266
- ref: a,
267
- class: f([u.$style.body, { [u.$style.close]: !r.value }])
268
- }, [(g(!0), o(e, null, v(n.list, (e, r) => (g(), o("li", {
273
+ ref: a
274
+ }, [(g(!0), o(e, null, v(n.list, (e, i) => (g(), o("li", {
275
+ class: f([r.$style.item, {
276
+ [r.$style.active]: e.id === n.activeId,
277
+ [r.$style.slideAnimation]: x.value
278
+ }]),
269
279
  key: e.id,
270
- onClick: D(() => t.onItemClick?.(e, r), ["stop"]),
280
+ onClick: D(() => t.onItemClick?.(e, i), ["stop"]),
271
281
  style: p({
272
- "--translateY": `${x.value[r] * 100}%`,
273
- "z-index": `${n.list.length - r}`
282
+ "--translateY": `${h.value[i] * 100}%`,
283
+ "z-index": `${n.list.length - i}`
274
284
  }),
275
- onAnimationend: d[2] ||= () => S.value = !1,
276
- class: f({
277
- [u.$style.active]: e.id === n.activeId,
278
- [u.$style.slideAnimation]: S.value
279
- })
280
- }, [y(u.$slots, "default", {
285
+ onAnimationend: l[2] ||= () => x.value = !1
286
+ }, [y(r.$slots, "default", {
281
287
  item: e,
282
- index: r
283
- }, () => [c(b(e.name), 1)], !0)], 46, B))), 128))], 2)], 6)], 2));
288
+ index: i
289
+ }, () => [c(b(e.name), 1)], !0)], 46, V))), 128))], 2)], 6)], 2));
284
290
  }
285
291
  }), [["__cssModules", { $style: {
286
- header: "_header_1h845_2",
287
- title: "_title_1h845_10",
288
- BodyContainer: "_BodyContainer_1h845_16",
289
- EnableTransition: "_EnableTransition_1h845_20",
290
- body: "_body_1h845_24",
291
- close: "_close_1h845_29",
292
- active: "_active_1h845_45",
293
- slideAnimation: "_slideAnimation_1h845_60"
294
- } }], ["__scopeId", "data-v-4cc94144"]]), H = [
292
+ FoldList: "_FoldList_ujtl4_2",
293
+ header: "_header_ujtl4_11",
294
+ title: "_title_ujtl4_19",
295
+ BodyContainer: "_BodyContainer_ujtl4_25",
296
+ body: "_body_ujtl4_30",
297
+ close: "_close_ujtl4_35",
298
+ item: "_item_ujtl4_39",
299
+ active: "_active_ujtl4_52",
300
+ slideAnimation: "_slideAnimation_ujtl4_67"
301
+ } }], ["__scopeId", "data-v-ad22b0cc"]]), U = [
295
302
  "type",
296
303
  "value",
297
304
  "enterkeyhint",
298
305
  "placeholder"
299
- ], re = /* @__PURE__ */ A(/* @__PURE__ */ u({
306
+ ], ne = /* @__PURE__ */ A(/* @__PURE__ */ u({
300
307
  __name: "Input",
301
308
  props: {
302
309
  type: { default: "text" },
@@ -308,11 +315,11 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
308
315
  },
309
316
  setup(e, { expose: t }) {
310
317
  S((e) => ({
311
- v4a52637b: i.value,
312
- v05ae4584: c.value
318
+ v3dd61efd: i.value,
319
+ a05fdbf4: c.value
313
320
  }));
314
321
  let n = e, r = _(null), i = _("0"), c = _("0");
315
- m(() => te(r, () => {
322
+ m(() => N(r, () => {
316
323
  let e = r.value.offsetHeight;
317
324
  i.value = `${e}px`, c.value = `${e - 2}px`;
318
325
  }, !0));
@@ -324,8 +331,8 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
324
331
  u.value = e.target.value, n.onChange?.(u.value);
325
332
  }, p = () => {
326
333
  u.value = "", n.onChange?.(u.value), l.value?.focus();
327
- }, h = !1, v = async () => {
328
- await new Promise((e) => setTimeout(e, 100)), h = !1;
334
+ }, h = !1, v = () => {
335
+ h = !1;
329
336
  }, b = () => {
330
337
  h = !0;
331
338
  }, x = async (e) => {
@@ -356,7 +363,7 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
356
363
  onCompositionend: v,
357
364
  onCompositionstart: b,
358
365
  placeholder: n.placeholder
359
- }, null, 40, H),
366
+ }, null, 40, U),
360
367
  s("div", { class: f([e.$style.icon, e.$style.clear]) }, [u.value ? (g(), o("span", {
361
368
  key: 0,
362
369
  class: "lovelymai lovely-clear",
@@ -365,11 +372,11 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
365
372
  ], 2));
366
373
  }
367
374
  }), [["__cssModules", { $style: {
368
- Input: "_Input_1uug0_2",
369
- icon: "_icon_1uug0_13",
370
- custom: "_custom_1uug0_24",
371
- clear: "_clear_1uug0_28"
372
- } }], ["__scopeId", "data-v-78f7b64e"]]), U = ["title"], W = /* @__PURE__ */ A(/* @__PURE__ */ u({
375
+ Input: "_Input_pj7kp_2",
376
+ icon: "_icon_pj7kp_13",
377
+ custom: "_custom_pj7kp_25",
378
+ clear: "_clear_pj7kp_29"
379
+ } }], ["__scopeId", "data-v-5bee2703"]]), re = ["title"], W = /* @__PURE__ */ A(/* @__PURE__ */ u({
373
380
  __name: "SideBar",
374
381
  props: {
375
382
  visible: {
@@ -384,11 +391,10 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
384
391
  },
385
392
  setup(e) {
386
393
  S((e) => ({
387
- v331cb092: x.value,
388
- v57e56c96: d.value,
389
- v4cbe5d02: C.value,
390
- v58290380: l.value,
391
- v62b95138: b.value
394
+ v72b7be29: d.value,
395
+ v7bb4648b: x.value,
396
+ v7295f2b4: l.value,
397
+ a7d68120: b.value
392
398
  }));
393
399
  let t = e, n = () => {
394
400
  t.onSwitch?.();
@@ -400,120 +406,120 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
400
406
  }), h(() => {
401
407
  window.removeEventListener("resize", v);
402
408
  });
403
- let b = r(() => t.isOpen ? "0" : `${u.value - a.value + 55}px`), x = _("block"), C = _("1");
409
+ let b = r(() => t.isOpen ? "0" : `${u.value - a.value + 55}px`), x = _(t.visible ? "1" : "0"), C;
404
410
  return w(() => t.visible, (e) => {
405
- l.value = "transform .3s", setTimeout(() => l.value = "transform .5s", 300), e ? (x.value = "block", requestAnimationFrame(() => {
406
- C.value = "1";
407
- })) : (setTimeout(() => x.value = "none", 300), C.value = "0");
411
+ clearTimeout(C), l.value = "transform .3s", C = setTimeout(() => l.value = "transform .5s", 300), e ? requestAnimationFrame(() => {
412
+ x.value = "1";
413
+ }) : x.value = "0";
408
414
  }), (r, a) => (g(), o("div", {
409
- ref_key: "ContainerRef",
410
- ref: i,
411
415
  class: f([
412
416
  "lovelymaid",
413
417
  "lovelymaid-glass-container",
414
418
  r.$style.SideBar
415
- ])
419
+ ]),
420
+ ref_key: "ContainerRef",
421
+ ref: i
416
422
  }, [s("div", { class: f(r.$style.header) }, [s("div", {
417
423
  class: f([r.$style.SwitchButton, { [r.$style.close]: !t.isOpen }]),
418
424
  onClick: n,
419
425
  title: e.isOpen ? "收起侧边栏" : "展开侧边栏"
420
- }, [...a[0] ||= [s("span", { class: "lovelymai lovely-sidebar_left" }, null, -1)]], 10, U)], 2), y(r.$slots, "default", {}, () => [a[1] ||= c("这是内容", -1)], !0)], 2));
426
+ }, [...a[0] ||= [s("span", { class: "lovelymai lovely-sidebar_left" }, null, -1)]], 10, re)], 2), y(r.$slots, "default", {}, () => [a[1] ||= c("这是内容", -1)], !0)], 2));
421
427
  }
422
428
  }), [["__cssModules", { $style: {
423
- SideBar: "_SideBar_rbdtx_2",
424
- header: "_header_rbdtx_9",
425
- SwitchButton: "_SwitchButton_rbdtx_14",
426
- close: "_close_rbdtx_34"
427
- } }], ["__scopeId", "data-v-47bea682"]]), ie = { key: 0 }, ae = { key: 0 }, G = /* @__PURE__ */ A(/* @__PURE__ */ u({
429
+ SideBar: "_SideBar_ag32y_2",
430
+ header: "_header_ag32y_8",
431
+ SwitchButton: "_SwitchButton_ag32y_13",
432
+ close: "_close_ag32y_32"
433
+ } }], ["__scopeId", "data-v-9c0b4e62"]]), ie = { key: 0 }, ae = { key: 0 }, G = /* @__PURE__ */ A(/* @__PURE__ */ u({
428
434
  __name: "TabBar",
429
435
  props: {
430
436
  list: {},
431
- onItemClick: {},
437
+ activeIndex: { default: 0 },
432
438
  showSearch: { type: Boolean },
433
- initialIndex: { default: 0 }
439
+ onItemClick: {}
434
440
  },
435
- setup(t, { expose: n }) {
441
+ setup(t) {
436
442
  S((e) => ({
437
- dbf88134: p.value,
438
- v92994114: q.value,
439
- v1413afdc: D.value,
440
- bb9137d8: ne.value,
441
- v267688b2: d.value,
442
- v26ecd1aa: ce.value,
443
- cb2ac36c: ee.value,
444
- v7d178e05: N.value,
445
- v7fe532fe: M.value,
446
- v25d26869: le.value,
447
- v67b0aab2: x(R),
448
- v678c8fc9: A.value,
449
- v50ae033c: K.value,
450
- v7529d760: oe.value,
451
- deb501d2: se.value,
452
- v33be734f: L.value,
453
- v67516b4d: J.value,
454
- v6d8e559c: Y.value
443
+ fcdb94b2: d.value,
444
+ v47af6255: K.value,
445
+ v69697e31: ee.value,
446
+ c5a25c56: te.value,
447
+ v705df946: u.value,
448
+ v7022d4ca: se.value,
449
+ v3f96ef6a: p.value,
450
+ v1eea37b8: M.value,
451
+ v74a1c602: j.value,
452
+ v1560deaa: ce.value,
453
+ a50ad69a: x(R),
454
+ v69cce1a8: k.value,
455
+ v4c2d5f7e: G.value,
456
+ v7ee3f0bf: q.value,
457
+ ff981550: oe.value,
458
+ v234ce990: L.value,
459
+ v6991bd2c: J.value,
460
+ v37e8529a: Y.value
455
461
  }));
456
- let i = t, c = r(() => i.list.length), u = _(null), d = _(0), p = _(0), ee = _(0), D = _(0), O = _(null), k = _(null), A = _(0), j = _(0), M = _(0), N = _(0), ne = _("none"), I = _(i.initialIndex), L = _(0), R;
462
+ let n = t, i = r(() => n.list.length), c = _(null), u = _(0), d = _(0), p = _(0), ee = _(0), D = _(null), O = _(null), k = _(0), A = _(0), j = _(0), M = _(0), te = _("none"), I = _(n.activeIndex), L = _(0), R;
457
463
  m(() => {
458
- W = te(u, () => {
459
- p.value = u.value.offsetHeight, d.value = i.showSearch ? u.value.offsetWidth - p.value - 5 : u.value.offsetWidth, ee.value = u.value.offsetWidth - p.value * .8 - 5, D.value = p.value / 2, A.value = (d.value - 6) / c.value, M.value = I.value * A.value, N.value = M.value + A.value, j.value = (d.value - 6) * (c.value - 1) / c.value, L.value = I.value * A.value, R = L.value + A.value / 2;
460
- }, !0), setTimeout(() => ne.value = "width .3s, height .3s, transform .2s", 500);
464
+ re = N(c, () => {
465
+ d.value = c.value.offsetHeight, u.value = n.showSearch ? c.value.offsetWidth - d.value - 5 : c.value.offsetWidth, p.value = c.value.offsetWidth - d.value * .8 - 5, ee.value = d.value / 2, k.value = (u.value - 6) / i.value, j.value = I.value * k.value, M.value = j.value + k.value, A.value = (u.value - 6) * (i.value - 1) / i.value, L.value = I.value * k.value, R = L.value + k.value / 2;
466
+ }, !0), setTimeout(() => te.value = "width .3s, height .3s, transform .2s", 500);
461
467
  });
462
- let z, B, V, H, U, W, G = (...e) => {
468
+ let z, B, V, H, U, re, W = (...e) => {
463
469
  e.forEach((e) => {
464
470
  e && (clearInterval(e), clearTimeout(e));
465
471
  });
466
472
  };
467
473
  h(() => {
468
- G(z, B, V, H, U), W();
474
+ W(z, B, V, H, U), re();
469
475
  });
470
- let K = _("#e4e4e6"), q = _("rgba(248, 248, 248, 0.9)"), oe = _("none"), se = _("none"), ce = _(1), J = _(1), le = r(() => J.value === 1.2 ? 1.1 : 1), Y = _("background .1s"), X = !1, ue = (e, t) => {
471
- if (!O.value || !k.value) return;
472
- let n = e.clientX - F(k.value) - A.value / 2, r = new DOMMatrix(window.getComputedStyle(O.value).transform).m41, i = n < 0 ? 0 : n > (c.value - 1) * A.value ? (c.value - 1) * A.value : n;
473
- t === "start" ? (Y.value = "transform .5s, background .1s", L.value = i) : X || Math.abs(i - r) < j.value / 10 ? (Y.value = "background .1s", L.value = i, X = !0) : (Y.value = "background .1s", L.value = r, H = setInterval(() => {
474
- let e = new DOMMatrix(window.getComputedStyle(O.value).transform).m41;
475
- Math.abs(i - e) < j.value / 10 ? (Y.value = "background .1s", L.value = i, X = !0, G(H)) : L.value += i - e > 0 ? j.value / 10 : -j.value / 10;
476
+ let G = _("#e4e4e6"), K = _("rgba(248, 248, 248, 0.9)"), q = _("none"), oe = _("none"), se = _(1), J = _(1), ce = r(() => J.value === 1.2 ? 1.1 : 1), Y = _("background .1s"), X = !1, le = (e, t) => {
477
+ if (!D.value || !O.value) return;
478
+ let n = e.clientX - F(O.value) - k.value / 2, r = new DOMMatrix(window.getComputedStyle(D.value).transform).m41, a = n < 0 ? 0 : n > (i.value - 1) * k.value ? (i.value - 1) * k.value : n;
479
+ t === "start" ? (Y.value = "transform .5s, background .1s", L.value = a) : X || Math.abs(a - r) < A.value / 10 ? (Y.value = "background .1s", L.value = a, X = !0) : (Y.value = "background .1s", L.value = r, H = setInterval(() => {
480
+ let e = new DOMMatrix(window.getComputedStyle(D.value).transform).m41;
481
+ Math.abs(a - e) < A.value / 10 ? (Y.value = "background .1s", L.value = a, X = !0, W(H)) : L.value += a - e > 0 ? A.value / 10 : -A.value / 10;
476
482
  }, 8));
477
483
  }, Z = (e) => {
478
484
  let t = () => {
479
- R = new DOMMatrix(window.getComputedStyle(O.value).transform).m41 + A.value / 2;
480
- let e = A.value * 1.2 / 1.1;
481
- M.value = R - e / 2, N.value = R + e / 2;
485
+ R = new DOMMatrix(window.getComputedStyle(D.value).transform).m41 + k.value / 2;
486
+ let e = k.value * 1.2 / 1.1;
487
+ j.value = R - e / 2, M.value = R + e / 2;
482
488
  };
483
489
  e ? (clearInterval(z), z = setInterval(() => {
484
490
  t();
485
491
  }, 8), B = setTimeout(() => clearInterval(z), e)) : (clearInterval(z), X ? t() : z = setInterval(() => {
486
492
  t();
487
493
  }, 8));
488
- }, de, fe = (e) => {
489
- de = Date.now(), U = setTimeout(() => {
490
- K.value = "#fff";
491
- }, 100), q.value = "#fff", oe.value = "1px solid rgba(255, 255, 255, 0.5)", se.value = "0 0 10px 0 rgba(0, 0, 0, 0.1)", ce.value = 1.05, J.value = 1.2, ue(e, "start"), G(z, B), Z(500), document.addEventListener("pointermove", pe), document.addEventListener("pointerup", me);
492
- }, pe = (e) => {
494
+ }, ue, de = (e) => {
495
+ ue = Date.now(), U = setTimeout(() => {
496
+ G.value = "#fff";
497
+ }, 100), K.value = "#fff", q.value = "1px solid rgba(255, 255, 255, 0.5)", oe.value = "0 0 10px 0 rgba(0, 0, 0, 0.1)", se.value = 1.05, J.value = 1.2, le(e, "start"), W(z, B), Z(500), document.addEventListener("pointermove", fe), document.addEventListener("pointerup", pe);
498
+ }, fe = (e) => {
493
499
  if (!V) {
494
500
  if (Q.value) return Q.value = !1;
495
- G(H), ue(e, "move"), G(z, B), Z(void 0), V = setTimeout(() => V = void 0, 8);
501
+ W(H), le(e, "move"), W(z, B), Z(void 0), V = setTimeout(() => V = void 0, 8);
496
502
  }
497
- }, me = (e) => {
498
- if (Date.now() - de < 100 && G(U), K.value = "#e4e4e6", q.value = "rgba(248, 248, 248, 0.9)", oe.value = "none", se.value = "none", Y.value = "transform .5s, background .1s", ce.value = 1, J.value = 1, Q.value) Q.value = !1;
503
+ }, pe = (e) => {
504
+ if (Date.now() - ue < 100 && W(U), G.value = "#e4e4e6", K.value = "rgba(248, 248, 248, 0.9)", q.value = "none", oe.value = "none", Y.value = "transform .5s, background .1s", se.value = 1, J.value = 1, Q.value) Q.value = !1;
499
505
  else {
500
- let t = e.clientX - F(k.value), n = Math.floor(t / A.value);
501
- I.value = n > c.value - 1 ? c.value - 1 : n < 0 ? 0 : n;
506
+ let t = e.clientX - F(O.value), n = Math.floor(t / k.value);
507
+ I.value = n > i.value - 1 ? i.value - 1 : n < 0 ? 0 : n;
502
508
  }
503
- G(H), L.value = I.value * A.value, X = !1, G(z, B), Z(500), i.onItemClick?.(i.list[I.value], I.value), document.removeEventListener("pointermove", pe), document.removeEventListener("pointerup", me);
509
+ W(H), L.value = I.value * k.value, X = !1, W(z, B), Z(500), n.onItemClick?.(n.list[I.value], I.value), document.removeEventListener("pointermove", fe), document.removeEventListener("pointerup", pe);
504
510
  };
505
- w(() => i.list.length, () => L.value = 0);
506
- let Q = _(!1), $ = _(!1), he = () => {
511
+ w(() => n.activeIndex, (e) => {
512
+ I.value = e, W(H), L.value = e * k.value, W(z, B), Z(500);
513
+ }), w(() => n.list.length, () => L.value = 0);
514
+ let Q = _(!1), $ = _(!1), me = () => {
507
515
  Q.value = !0, L.value = 0;
508
516
  };
509
517
  return w(Q, (e) => {
510
518
  e ? setTimeout(() => $.value = !0, 100) : setTimeout(() => $.value = !1, 200);
511
- }), n({ clickTab: (e) => {
512
- I.value = e, G(H), L.value = e * A.value, G(z, B), Z(500), i.onItemClick?.(i.list[e], e);
513
- } }), (t, n) => (g(), o("div", {
519
+ }), (t, r) => (g(), o("div", {
514
520
  class: f(["lovelymaid", t.$style.TabBar]),
515
521
  ref_key: "BarRef",
516
- ref: u
522
+ ref: c
517
523
  }, [s("div", { class: f([
518
524
  t.$style.bar,
519
525
  "lovelymaid-glass-container",
@@ -521,14 +527,14 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
521
527
  ]) }, [s("ul", {
522
528
  class: f(t.$style.container),
523
529
  ref_key: "containerRef",
524
- ref: k,
525
- onPointerdown: fe
530
+ ref: O,
531
+ onPointerdown: de
526
532
  }, [
527
533
  E(s("li", { class: f([t.$style.tab, t.$style.small]) }, [y(t.$slots, "default", {
528
- item: i.list[I.value],
534
+ item: n.list[I.value],
529
535
  index: I.value
530
536
  }, void 0, !0)], 2), [[C, Q.value]]),
531
- (g(!0), o(e, null, v(i.list, (e, n) => (g(), o("li", {
537
+ (g(!0), o(e, null, v(n.list, (e, n) => (g(), o("li", {
532
538
  class: f(t.$style.tab),
533
539
  key: n
534
540
  }, [y(t.$slots, "default", {
@@ -538,30 +544,30 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
538
544
  E(s("div", {
539
545
  class: f(t.$style.slide),
540
546
  ref_key: "SlideRef",
541
- ref: O
547
+ ref: D
542
548
  }, null, 2), [[C, !Q.value]]),
543
- E(s("ul", { class: f([t.$style.container, t.$style.top]) }, [(g(!0), o(e, null, v(i.list, (e, n) => (g(), o("li", {
549
+ E(s("ul", { class: f([t.$style.container, t.$style.top]) }, [(g(!0), o(e, null, v(n.list, (e, n) => (g(), o("li", {
544
550
  class: f([t.$style.tab, t.$style.top]),
545
551
  key: n
546
552
  }, [y(t.$slots, "default", {
547
553
  item: e,
548
554
  index: n
549
555
  }, void 0, !0), e.name ? (g(), o("span", ae, b(e.name), 1)) : a("", !0)], 2))), 128))], 2), [[C, !Q.value]])
550
- ], 34)], 2), i.showSearch ? (g(), o("div", {
556
+ ], 34)], 2), n.showSearch ? (g(), o("div", {
551
557
  key: 0,
552
558
  class: f([t.$style.search, { [t.$style.active]: Q.value }])
553
559
  }, [E(l(P, {
554
560
  type: "glass",
555
561
  class: f(t.$style.Button),
556
- onClick: he
562
+ onClick: me
557
563
  }, {
558
- default: T(() => [...n[0] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
564
+ default: T(() => [...r[0] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
559
565
  _: 1
560
- }, 8, ["class"]), [[C, !$.value]]), E(l(re, {
566
+ }, 8, ["class"]), [[C, !$.value]]), E(l(ne, {
561
567
  class: f(t.$style.Search),
562
568
  enterkeyhint: "search"
563
569
  }, {
564
- default: T(() => [...n[1] ||= [s("span", { class: "lovelymai lovely-search input" }, null, -1)]]),
570
+ default: T(() => [...r[1] ||= [s("span", { class: "lovelymai lovely-search input" }, null, -1)]]),
565
571
  _: 1
566
572
  }, 8, ["class"]), [[C, $.value]])], 2)) : a("", !0)], 2));
567
573
  }
@@ -577,7 +583,7 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
577
583
  Button: "_Button_3h4l1_90",
578
584
  Search: "_Search_3h4l1_95",
579
585
  slide: "_slide_3h4l1_100"
580
- } }], ["__scopeId", "data-v-2bfc1f40"]]), K = [
586
+ } }], ["__scopeId", "data-v-37cd0caf"]]), K = [
581
587
  "rows",
582
588
  "value",
583
589
  "enterkeyhint",
@@ -586,28 +592,32 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
586
592
  __name: "TextArea",
587
593
  props: {
588
594
  minrow: { default: 1 },
595
+ value: { default: "" },
589
596
  placeholder: { default: "输入..." },
590
597
  enterkeyhint: {},
591
598
  onChange: {},
592
599
  onEnter: {}
593
600
  },
594
601
  setup(e, { expose: t }) {
595
- let n = e, r = _(null), i = _(""), a = () => {
596
- r.value.style.height = "auto";
597
- let e = r.value.scrollHeight;
598
- r.value.style.height = `${e}px`;
599
- }, c = (e) => {
600
- i.value = e.target.value, n.onChange?.(i.value), a();
601
- };
602
- m(() => {
603
- a();
602
+ let n = e, r = _(null), i = _(null), a = _(n.value);
603
+ w(() => n.value, (e) => {
604
+ a.value = e;
605
+ }), w(a, async () => {
606
+ await d(), c();
604
607
  });
605
- let l = !1, u = async () => {
606
- await new Promise((e) => setTimeout(e, 100)), l = !1;
607
- }, d = () => {
608
- l = !0;
609
- }, p = (e) => {
610
- l || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), n.onEnter?.(i.value));
608
+ let c = () => {
609
+ let e = r.value.clientHeight + 2;
610
+ i.value.style.height = `${e}px`, r.value.style.height = "auto";
611
+ let t = r.value.scrollHeight;
612
+ r.value.style.height = `${t}px`, i.value.style.height = "auto";
613
+ }, l = (e) => {
614
+ a.value = e.target.value, n.onChange?.(a.value);
615
+ }, u = !1, p = () => {
616
+ u = !1;
617
+ }, m = () => {
618
+ u = !0;
619
+ }, h = (e) => {
620
+ u || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), n.onEnter?.(a.value));
611
621
  };
612
622
  return t({
613
623
  focus: () => r.value?.focus(),
@@ -618,20 +628,21 @@ var ne = ["title"], I = /* @__PURE__ */ A(/* @__PURE__ */ u({
618
628
  "lovelymaid",
619
629
  "lovelymaid-glass-container"
620
630
  ]),
621
- ref: "ContainerRef"
631
+ ref_key: "ContainerRef",
632
+ ref: i
622
633
  }, [s("textarea", {
623
634
  rows: n.minrow,
624
635
  ref_key: "TextAreaRef",
625
636
  ref: r,
626
- value: i.value,
627
- onInput: c,
628
- onKeydown: p,
637
+ value: a.value,
638
+ onInput: l,
639
+ onKeydown: h,
629
640
  enterkeyhint: n.enterkeyhint,
630
- onCompositionstart: d,
631
- onCompositionend: u,
641
+ onCompositionstart: m,
642
+ onCompositionend: p,
632
643
  placeholder: n.placeholder
633
644
  }, null, 40, K)], 2));
634
645
  }
635
- }), [["__cssModules", { $style: { container: "_container_1wh82_2" } }], ["__scopeId", "data-v-64814654"]]);
646
+ }), [["__cssModules", { $style: { container: "_container_1wh82_2" } }], ["__scopeId", "data-v-6b991b20"]]);
636
647
  //#endregion
637
- export { j as ActionButton, P as Button, I as ContentBar, L as Drawer, V as FoldList, re as Input, W as SideBar, G as TabBar, q as TextArea };
648
+ export { j as ActionButton, P as Button, L as ContentBar, R as Drawer, H as FoldList, ne as Input, W as SideBar, G as TabBar, q as TextArea };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lovelymaid",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "A library of components based on vue3 that mimics the style of iOS 26",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -16,9 +16,8 @@
16
16
  "dist"
17
17
  ],
18
18
  "scripts": {
19
- "dev": "vite",
20
- "build": "vite build && npm run build:types",
21
- "build:types": "vue-tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist"
19
+ "start": "vite",
20
+ "build": "vite build && vue-tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist"
22
21
  },
23
22
  "peerDependencies": {
24
23
  "vue": "^3.0.0"