lovelymaid 1.3.9 → 1.4.1

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.
@@ -2,7 +2,7 @@ import { type MenuItem } from './common/Menu.vue';
2
2
  export type FormItem = {
3
3
  id: string;
4
4
  name: string;
5
- type?: 'text' | 'password' | 'select';
5
+ type?: 'text' | 'number' | 'password' | 'select';
6
6
  value?: string;
7
7
  config?: MenuItem[];
8
8
  placeholder?: string;
@@ -1,7 +1,7 @@
1
1
  import { type MenuItem } from './common/Menu.vue';
2
2
  interface Props {
3
3
  /** 输入框类型 */
4
- type?: "text" | "password" | "select";
4
+ type?: "text" | "password" | "number" | "select";
5
5
  /** 值 */
6
6
  value?: string;
7
7
  /** 选项 */
@@ -24,7 +24,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
24
24
  blur: () => void | undefined;
25
25
  select: () => void | undefined;
26
26
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
27
- type: "text" | "password" | "select";
27
+ type: "text" | "password" | "number" | "select";
28
28
  value: string;
29
29
  config: MenuItem[];
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,6 +1,6 @@
1
1
  import { type MenuItem } from './common/Menu.vue';
2
2
  interface Props {
3
- /** 列表 */
3
+ /** 选项配置 */
4
4
  config: MenuItem[];
5
5
  /** 列表项点击事件 */
6
6
  onItemClick?: (item: MenuItem, index: number) => void;
@@ -1,9 +1,11 @@
1
+ export type TabItem = {
2
+ id: string;
3
+ name?: string;
4
+ [key: string]: any;
5
+ };
1
6
  interface Props {
2
- /** 列表 */
3
- list: {
4
- name?: string;
5
- [key: string]: any;
6
- }[];
7
+ /** 标签配置 */
8
+ config: TabItem[];
7
9
  /** 激活索引 */
8
10
  activeIndex?: number;
9
11
  /** 是否启用搜索按钮 */
@@ -17,22 +19,13 @@ interface Props {
17
19
  onSearch?: (inputValue: string) => void;
18
20
  }
19
21
  declare var __VLS_7: {
20
- item: {
21
- [key: string]: any;
22
- name?: string;
23
- };
22
+ item: TabItem;
24
23
  index: number;
25
24
  }, __VLS_9: {
26
- item: {
27
- [key: string]: any;
28
- name?: string;
29
- };
25
+ item: TabItem;
30
26
  index: number;
31
27
  }, __VLS_11: {
32
- item: {
33
- [key: string]: any;
34
- name?: string;
35
- };
28
+ item: TabItem;
36
29
  index: number;
37
30
  };
38
31
  type __VLS_Slots = {} & {
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -7,7 +7,7 @@ export type MenuItem = {
7
7
  interface Props {
8
8
  /** 是否显示 */
9
9
  visible: boolean;
10
- /** 列表 */
10
+ /** 菜单配置 */
11
11
  config: MenuItem[];
12
12
  /** 位置 */
13
13
  position: [number, number];
@@ -1,2 +1,2 @@
1
- ._Button_iukdh_2{border-radius:var(--v05b6f4ea);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v57fe091d);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_6afr8_2{transform:translateX(var(--v486876f3)) scale(var(--v829c54fe));transition:var(--v4846ab7e);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_6afr8_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_6afr8_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_6afr8_36{margin-top:10px;font-size:20px}._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-da86c9ae]{color:var(--title-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._Menu_1pqpp_2{z-index:999;-webkit-user-select:none;user-select:none;background-color:#f3f6f6;border:1px solid #fff;border-radius:10px;outline:.5px solid #b3b3b3;padding:4px;position:fixed;box-shadow:0 0 10px #0000004d}._Menu_1pqpp_2 ._item_1pqpp_15{color:#000;cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex}._Menu_1pqpp_2 ._item_1pqpp_15:hover{color:#fff;background-color:#3b86f7}._Menu_1pqpp_2 ._item_1pqpp_15 ._text_1pqpp_30{font-size:12px;font-weight:500}._Menu_1pqpp_2 ._item_1pqpp_15 .lovely-right-arrow{transform:translateY(1px)}._Input_1aixy_2{border-radius:calc(var(--v10a0425e) / 2);--font-size:14px;--font-weight:400;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_1aixy_13{width:var(--a592cb04);height:100%;font-size:calc(var(--a592cb04) / 2);color:#19191a;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_1aixy_13._custom_1aixy_25{left:0}._icon_1aixy_13._clear_1aixy_29{right:0}._input_1aixy_33,._select_1aixy_34{min-width:0;padding-left:var(--a149d67e);padding-right:var(--a592cb04);border-radius:calc(var(--a592cb04) / 2);font-size:var(--font-size);font-weight:var(--font-weight);background-color:#0000;border:none;flex:1}._input_1aixy_33{caret-color:#3c86f6;outline:0 solid #0000;transition:outline .2s}._input_1aixy_33::placeholder{font-size:var(--font-size);font-weight:var(--font-weight);color:var(--placeholder-color)}._input_1aixy_33:focus{outline:3px solid #94bbf0}._select_1aixy_34{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}._select_1aixy_34 ._text_1aixy_70{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.lovely-clear[data-v-54d69ebb]{font-size:calc(var(--a592cb04) / 2);color:var(--clear-color);cursor:pointer;pointer-events:auto}._Form_nrrlw_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_nrrlw_9{align-items:center;gap:10px;display:flex}._FormItem_nrrlw_9 ._Input_nrrlw_15{flex:1;min-width:0;height:100%}._Select_fr749_2{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;display:flex}._Drawer_18got_2{z-index:10;--width:50dvw;--height:90dvh;position:relative}._mask_18got_9{background-color:#0000001a;width:100dvw;height:100dvh;position:fixed;top:0;left:0}._DrawerContainer_18got_18{z-index:1;height:var(--height);overscroll-behavior-y:contain;scrollbar-width:thin;will-change:transform;transition:transform .5s cubic-bezier(.2,.8,.6,1);position:fixed;overflow-y:auto}._DrawerContainer_18got_18._desktop_18got_29{left:calc(50dvw - var(--width) / 2);bottom:calc(50dvh - var(--height) / 2);width:var(--width);border-radius:38px}._DrawerContainer_18got_18._mobile_18got_36{border-top-left-radius:38px;border-top-right-radius:38px;width:100dvw;bottom:0;left:0}._header_18got_44{z-index:1;height:0;margin-bottom:var(--v2ac195d0);box-shadow:0 0 calc(var(--v2ac195d0) / 2) calc(var(--v2ac195d0) / 2) #f8f8f8f2;position:sticky;top:0}.lovelymaid-slide-enter-from,.lovelymaid-slide-leave-to{transform:translateY(100dvh)}._SideBar_ag32y_2{transform:translateX(var(--v5a8ecb22)) scale(var(--f3f5401c));transition:var(--v5a6cffad);border-radius:20px}._header_ag32y_8{height:50px;position:relative}._SwitchButton_ag32y_13{width:35px;height:30px;transform:translateX(var(--e06b61d2));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-1b51d6cf]{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(--v390851a7) * .8px);border-radius:calc(var(--v02ede231) * 1px);cursor:pointer;height:80%;transition:var(--v3436edd5);padding:2px;overflow:hidden;background-color:var(--c54e7356)!important}._bar_3h4l1_12._active_3h4l1_24{width:calc(var(--v23b45d46) * 1px);height:100%;transform:scale(var(--v237938ca));overflow:visible}._bar_3h4l1_12:not(._active_3h4l1_24):active{transform:scale(1.2)}._search_3h4l1_35{width:calc(var(--v390851a7) * 1px);height:100%;transition:var(--v3436edd5)}._search_3h4l1_35._active_3h4l1_24{width:calc(var(--dad8b76a) * 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(--ebe16fb8) * 1px) 0 calc(var(--v780e38ff) * 1px) round calc((var(--v02ede231) - 3) * 1px));transform:translateZ(0) scale(var(--v66520aac));transform-origin:calc(var(--v5fd9b0b3) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_3h4l1_66{width:calc(var(--bdcb74b0) * 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(--bdcb74b0) * 1px);background:var(--v1136b441);border:var(--v1c8354bf);border-radius:calc((var(--v02ede231) - 3) * 1px);height:100%;box-shadow:var(--v37aa1158);transform:translateX(calc(var(--v4a79f4e0) * 1px)) scale(var(--be41bda8));transition:var(--v4d061a9a);position:absolute;top:0;left:0}.button.lovely-search[data-v-8b10de1d]{font-size:calc(var(--v390851a7) * .4px)}.input.lovely-search[data-v-8b10de1d]{font-size:24px}._TextArea_fki19_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-0795d4b0]{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-0795d4b0]::placeholder{color:var(--placeholder-color)}textarea[data-v-0795d4b0]:focus{outline:3px solid #94bbf0}*{box-sizing:border-box}ul{margin:0;padding:0;list-style:none}.lovelymaid-common-container{background-color:#f2f2f6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-select-container{background-color:#dadada;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:#f9f9f9e6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-fade-enter-from,.lovelymaid-fade-leave-to{opacity:0}.lovelymaid-fade-enter-active,.lovelymaid-fade-leave-active{transition:opacity .2s}.lovelymaid-fade-leave-leave-to{opacity:0}.lovelymaid-fade-leave-leave-active{transition:opacity .2s}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FUtpAAABjAAAAGBjbWFwN+VyCAAAAhQAAAIYZ2x5Zg6UKBEAAAREAAAENGhlYWQvU2FdAAAA4AAAADZoaGVhB94DiwAAALwAAAAkaG10eCgAAAAAAAHsAAAAKGxvY2EGQAUoAAAELAAAABZtYXhwARoAVgAAARgAAAAgbmFtZY1JxoQAAAh4AAACf3Bvc3SND8KiAAAK+AAAAIIAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAoAAQAAAAEAABZGKrhfDzz1AAsEAAAAAADmGg6wAAAAAOYaDrAAAP+ABAADgAAAAAgAAgAAAAAAAAABAAAACgBKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOYA6JkDgP+AAAAD3ACAAAAAAQAAAAAAAAAAAAAAAAACBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAUAAAADA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QoTGgkAAAASAN4AAQAAAAAAAAATAAAAAQAAAAAAAQAKABMAAQAAAAAAAgAHAB0AAQAAAAAAAwAKACQAAQAAAAAABAAKAC4AAQAAAAAABQALADgAAQAAAAAABgAKAEMAAQAAAAAACgArAE0AAQAAAAAACwATAHgAAwABBAkAAAAmAIsAAwABBAkAAQAUALEAAwABBAkAAgAOAMUAAwABBAkAAwAUANMAAwABBAkABAAUAOcAAwABBAkABQAWAPsAAwABBAkABgAUAREAAwABBAkACgBWASUAAwABBAkACwAmAXtDcmVhdGVkIGJ5IGljb25mb250bG92ZWx5bWFpZFJlZ3VsYXJsb3ZlbHltYWlkbG92ZWx5bWFpZFZlcnNpb24gMS4wbG92ZWx5bWFpZEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAbABvAHYAZQBsAHkAbQBhAGkAZABSAGUAZwB1AGwAYQByAGwAbwB2AGUAbAB5AG0AYQBpAGQAbABvAHYAZQBsAHkAbQBhAGkAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAbABvAHYAZQBsAHkAbQBhAGkAZABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgECAQMBBAEFAQYBBwEIAQkBCgELAAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxzaWRlYmFyX2xlZnQLcmlnaHQtYXJyb3cFY2xlYXIKbGVmdC1hcnJvdwNnb3UFY2xvc2UAAAAA)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
+ ._Button_iukdh_2{border-radius:var(--v4d20f634);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v3fd19374);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_6afr8_2{transform:translateX(var(--v486876f3)) scale(var(--v829c54fe));transition:var(--v4846ab7e);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_6afr8_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_6afr8_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_6afr8_36{margin-top:10px;font-size:20px}._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-da86c9ae]{color:var(--title-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._Menu_1pqpp_2{z-index:999;-webkit-user-select:none;user-select:none;background-color:#f3f6f6;border:1px solid #fff;border-radius:10px;outline:.5px solid #b3b3b3;padding:4px;position:fixed;box-shadow:0 0 10px #0000004d}._Menu_1pqpp_2 ._item_1pqpp_15{color:#000;cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex}._Menu_1pqpp_2 ._item_1pqpp_15:hover{color:#fff;background-color:#3b86f7}._Menu_1pqpp_2 ._item_1pqpp_15 ._text_1pqpp_30{font-size:12px;font-weight:500}._Menu_1pqpp_2 ._item_1pqpp_15 .lovely-right-arrow{transform:translateY(1px)}._Input_10kga_2{border-radius:calc(var(--bc6edaa8) / 2);--font-size:14px;--font-weight:400;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_10kga_13{width:var(--v3e5eeacc);height:100%;font-size:calc(var(--v3e5eeacc) / 2);color:#19191a;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_10kga_13._custom_10kga_25{left:0}._icon_10kga_13._clear_10kga_29{right:0}._input_10kga_33,._select_10kga_34{min-width:0;padding-left:var(--c002759a);padding-right:var(--v3e5eeacc);border-radius:calc(var(--v3e5eeacc) / 2);font-size:var(--font-size);font-weight:var(--font-weight);background-color:#0000;border:none;flex:1}._input_10kga_33{caret-color:#3c86f6;outline:0 solid #0000;transition:outline .2s}._input_10kga_33::placeholder{font-size:var(--font-size);font-weight:var(--font-weight);color:var(--placeholder-color)}._input_10kga_33:focus{outline:3px solid #94bbf0}._input_10kga_33[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}._select_10kga_34{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}._select_10kga_34 ._text_10kga_74{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.lovely-clear[data-v-72bdc874]{font-size:calc(var(--v3e5eeacc) / 2);color:var(--clear-color);cursor:pointer;pointer-events:auto}._Form_nrrlw_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_nrrlw_9{align-items:center;gap:10px;display:flex}._FormItem_nrrlw_9 ._Input_nrrlw_15{flex:1;min-width:0;height:100%}._Select_fr749_2{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;display:flex}._Drawer_18got_2{z-index:10;--width:50dvw;--height:90dvh;position:relative}._mask_18got_9{background-color:#0000001a;width:100dvw;height:100dvh;position:fixed;top:0;left:0}._DrawerContainer_18got_18{z-index:1;height:var(--height);overscroll-behavior-y:contain;scrollbar-width:thin;will-change:transform;transition:transform .5s cubic-bezier(.2,.8,.6,1);position:fixed;overflow-y:auto}._DrawerContainer_18got_18._desktop_18got_29{left:calc(50dvw - var(--width) / 2);bottom:calc(50dvh - var(--height) / 2);width:var(--width);border-radius:38px}._DrawerContainer_18got_18._mobile_18got_36{border-top-left-radius:38px;border-top-right-radius:38px;width:100dvw;bottom:0;left:0}._header_18got_44{z-index:1;height:0;margin-bottom:var(--v9d355374);box-shadow:0 0 calc(var(--v9d355374) / 2) calc(var(--v9d355374) / 2) #f8f8f8f2;position:sticky;top:0}.lovelymaid-slide-enter-from,.lovelymaid-slide-leave-to{transform:translateY(100dvh)}._SideBar_ag32y_2{transform:translateX(var(--v5a8ecb22)) scale(var(--f3f5401c));transition:var(--v5a6cffad);border-radius:20px}._header_ag32y_8{height:50px;position:relative}._SwitchButton_ag32y_13{width:35px;height:30px;transform:translateX(var(--e06b61d2));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-1b51d6cf]{color:#19191a;font-size:20px}._TabBar_nghf8_2{-webkit-user-select:none;user-select:none;--font-size:8px;--top-color:#0067ec;gap:5px;height:50px;display:flex}._Bar_nghf8_12{z-index:1;width:calc(var(--Bar-height) * .8px);border-radius:calc(var(--Bar-border-radius) * 1px);cursor:pointer;height:80%;transition:var(--Bar-transition);padding:2px;overflow:hidden;background-color:var(--Bar-background-color)!important}._Bar_nghf8_12._active_nghf8_24{width:calc(var(--Bar-width) * 1px);height:100%;transform:scale(var(--Bar-scale));overflow:visible}._Bar_nghf8_12:not(._active_nghf8_24):active{transform:scale(1.2)}._search_nghf8_35{width:calc(var(--Bar-width) * 1px);height:100%;transition:var(--Bar-transition)}._search_nghf8_35._active_nghf8_24{width:calc(var(--search-width) * 1px);height:80%}._content_nghf8_46{touch-action:none;width:100%;height:100%;display:flex;position:relative}._content_nghf8_46._top_nghf8_54{z-index:1;clip-path:inset(0 calc(100% - var(--content-top-clipRight) * 1px) 0 calc(var(--content-top-clipLeft) * 1px) round calc((var(--Bar-border-radius) - 3) * 1px));transform:translateZ(0) scale(var(--content-top-scale));transform-origin:calc(var(--slide-center) * 1px) center;backface-visibility:hidden;transition:transform .2s;position:absolute;top:0;left:0}._tab_nghf8_66{width:calc(var(--slide-width) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_nghf8_66 :nth-child(2){font-size:var(--font-size)}._tab_nghf8_66._small_nghf8_80{aspect-ratio:1;flex-shrink:1;height:100%}._tab_nghf8_66._top_nghf8_54{color:var(--top-color)}._search_nghf8_35 ._Button_nghf8_90{width:100%;height:100%}._search_nghf8_35 ._Search_nghf8_95{--font-size:18px;height:100%}._slide_nghf8_100{z-index:0;width:calc(var(--slide-width) * 1px);background:var(--slide-background);border:var(--slide-border);border-radius:calc((var(--Bar-border-radius) - 3) * 1px);height:100%;box-shadow:var(--slide-box-shadow);transform:translateX(calc(var(--slide-translateX) * 1px)) scale(var(--slide-scale));transition:var(--slide-transition);position:absolute;top:0;left:0}.button.lovely-search[data-v-cb65e21d]{font-size:calc(var(--Bar-height) * .4px)}.input.lovely-search[data-v-cb65e21d]{font-size:24px}._TextArea_fki19_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-0795d4b0]{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-0795d4b0]::placeholder{color:var(--placeholder-color)}textarea[data-v-0795d4b0]:focus{outline:3px solid #94bbf0}*{box-sizing:border-box}ul{margin:0;padding:0;list-style:none}.lovelymaid-common-container{background-color:#f2f2f6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-select-container{background-color:#dadada;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:#f9f9f9e6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymaid-fade-enter-from,.lovelymaid-fade-leave-to{opacity:0}.lovelymaid-fade-enter-active,.lovelymaid-fade-leave-active{transition:opacity .2s}.lovelymaid-fade-leave-leave-to{opacity:0}.lovelymaid-fade-leave-leave-active{transition:opacity .2s}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FUtpAAABjAAAAGBjbWFwN+VyCAAAAhQAAAIYZ2x5Zg6UKBEAAAREAAAENGhlYWQvU2FdAAAA4AAAADZoaGVhB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AIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAbABvAHYAZQBsAHkAbQBhAGkAZABSAGUAZwB1AGwAYQByAGwAbwB2AGUAbAB5AG0AYQBpAGQAbABvAHYAZQBsAHkAbQBhAGkAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAbABvAHYAZQBsAHkAbQBhAGkAZABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgECAQMBBAEFAQYBBwEIAQkBCgELAAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxzaWRlYmFyX2xlZnQLcmlnaHQtYXJyb3cFY2xlYXIKbGVmdC1hcnJvdwNnb3UFY2xvc2UAAAAA)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*/
@@ -8,8 +8,7 @@ function P(e, t) {
8
8
  }, t);
9
9
  };
10
10
  }
11
- function ee(e, t, n = !1) {
12
- if (!e) return () => {};
11
+ function F(e, t, n = !1) {
13
12
  n && t({
14
13
  width: e.offsetWidth,
15
14
  height: e.offsetHeight
@@ -24,7 +23,7 @@ function ee(e, t, n = !1) {
24
23
  }
25
24
  //#endregion
26
25
  //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
27
- var F = ["title"], I = /* @__PURE__ */ u({
26
+ var I = ["title"], L = /* @__PURE__ */ u({
28
27
  __name: "Button",
29
28
  props: {
30
29
  type: { default: "common" },
@@ -33,15 +32,15 @@ var F = ["title"], I = /* @__PURE__ */ u({
33
32
  },
34
33
  setup(e) {
35
34
  E((e) => ({
36
- v05b6f4ea: r.value,
37
- v57fe091d: i.value
35
+ v4d20f634: r.value,
36
+ v3fd19374: i.value
38
37
  }));
39
38
  let t = e, n = b(null), r = b("0"), i = b("0"), a;
40
39
  return h(() => {
41
- a = ee(n.value, ({ width: e, height: t }) => {
40
+ n.value && (a = F(n.value, ({ width: e, height: t }) => {
42
41
  let n = Math.min(e, t);
43
42
  r.value = `${n / 2}px`, i.value = `${n / 2}px`;
44
- }, !0);
43
+ }, !0));
45
44
  }), h(() => a()), (e, r) => (_(), o("div", {
46
45
  class: p([e.$style.Button, {
47
46
  "lovelymaid-glass-container": t.type === "glass",
@@ -51,17 +50,17 @@ var F = ["title"], I = /* @__PURE__ */ u({
51
50
  ref: n,
52
51
  onClick: r[0] ||= (...e) => t.onClick && t.onClick(...e),
53
52
  title: t.title
54
- }, [S(e.$slots, "default")], 10, F));
53
+ }, [S(e.$slots, "default")], 10, I));
55
54
  }
56
- }), L = {
55
+ }), R = {
57
56
  Button: "_Button_iukdh_2",
58
57
  common: "_common_iukdh_18",
59
58
  "lovelymaid-glass-container": "_lovelymaid-glass-container_iukdh_26"
60
- }, R = (e, t) => {
59
+ }, z = (e, t) => {
61
60
  let n = e.__vccOpts || e;
62
61
  for (let [e, r] of t) n[e] = r;
63
62
  return n;
64
- }, te = /* @__PURE__ */ R(I, [["__cssModules", { $style: L }]]), z = /* @__PURE__ */ u({
63
+ }, B = /* @__PURE__ */ z(L, [["__cssModules", { $style: R }]]), V = /* @__PURE__ */ u({
65
64
  __name: "Card",
66
65
  props: { type: { default: "common" } },
67
66
  setup(e) {
@@ -75,7 +74,7 @@ var F = ["title"], I = /* @__PURE__ */ u({
75
74
  });
76
75
  //#endregion
77
76
  //#region src/utils/getOffsetInViewport.ts
78
- function ne(e) {
77
+ function H(e) {
79
78
  if (!e) return 0;
80
79
  let t = 0, n = e;
81
80
  for (; n && n !== document.body;) t += n.offsetLeft, n = n.offsetParent;
@@ -83,7 +82,7 @@ function ne(e) {
83
82
  }
84
83
  //#endregion
85
84
  //#region src/components/ContentBar.vue?vue&type=script&setup=true&lang.ts
86
- var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
85
+ var U = ["title"], W = /* @__PURE__ */ z(/* @__PURE__ */ u({
87
86
  __name: "ContentBar",
88
87
  props: {
89
88
  visible: {
@@ -104,7 +103,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
104
103
  v4846ab7e: a.value
105
104
  }));
106
105
  let t = e, n = b(null), a = b("none"), o = b(0), c = r(() => t.isOpen ? "0" : `${-o.value}px`), u = () => {
107
- n.value && (o.value = ne(n.value.$el) + n.value.$el.offsetWidth + 10);
106
+ n.value && (o.value = H(n.value.$el) + n.value.$el.offsetWidth + 10);
108
107
  }, d = P(u, 100);
109
108
  h(() => {
110
109
  u(), setTimeout(() => a.value = "transform .5s", 100), window.addEventListener("resize", d);
@@ -116,7 +115,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
116
115
  clearTimeout(m), a.value = "transform .3s", m = setTimeout(() => a.value = "transform .5s", 300), e ? requestAnimationFrame(() => {
117
116
  f.value = "1";
118
117
  }) : f.value = "0";
119
- }), (e, r) => (_(), i(z, {
118
+ }), (e, r) => (_(), i(V, {
120
119
  class: p(e.$style.ContentBar),
121
120
  ref_key: "ContentBarRef",
122
121
  ref: n,
@@ -125,7 +124,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
125
124
  default: A(() => [s("div", { class: p(e.$style.header) }, [s("div", {
126
125
  class: p(e.$style.title),
127
126
  title: t.title
128
- }, w(t.title), 11, B), l(te, {
127
+ }, w(t.title), 11, U), l(B, {
129
128
  type: "glass",
130
129
  class: p(e.$style.Button),
131
130
  onClick: t.onCloseClick,
@@ -142,7 +141,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
142
141
  header: "_header_6afr8_10",
143
142
  title: "_title_6afr8_23",
144
143
  Button: "_Button_6afr8_36"
145
- } }]]), H = (e, t) => {
144
+ } }]]), G = (e, t) => {
146
145
  let n = Array(e.length), r = /* @__PURE__ */ new Map();
147
146
  for (let e = 0; e < t.length; e++) r.set(t[e].id, e);
148
147
  let i = -1;
@@ -151,7 +150,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
151
150
  o === void 0 ? i === -1 ? n[t] = -1 - t : n[t] = i - t : (n[t] = o - t, i = o);
152
151
  }
153
152
  return n;
154
- }, U = ["title"], re = ["onClick"], W = /* @__PURE__ */ R(/* @__PURE__ */ u({
153
+ }, K = ["title"], ee = ["onClick"], q = /* @__PURE__ */ z(/* @__PURE__ */ u({
155
154
  __name: "FoldList",
156
155
  props: {
157
156
  title: { default: "标题" },
@@ -178,7 +177,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
178
177
  });
179
178
  let d = b([]), g = b(!1), v = b(n.list);
180
179
  return k(r(() => n.list.map((e) => e.id).join(",")), async (e, t) => {
181
- e !== t && (g.value = !1, d.value = H(n.list, v.value), await f(), g.value = !0, v.value = [...n.list]);
180
+ e !== t && (g.value = !1, d.value = G(n.list, v.value), await f(), g.value = !0, v.value = [...n.list]);
182
181
  }, { deep: !0 }), (r, l) => (_(), o("div", { class: p(r.$style.FoldList) }, [s("div", {
183
182
  class: p(r.$style.header),
184
183
  onClick: l[1] ||= (...e) => t.onHeaderClick && t.onHeaderClick(...e)
@@ -187,7 +186,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
187
186
  style: m({ transform: n.isOpen ? "rotate(90deg)" : "rotate(0deg)" }),
188
187
  title: t.isOpen ? "收起列表" : "展开列表",
189
188
  onClick: l[0] ||= N((...e) => n.onButtonClick && n.onButtonClick(...e), ["stop"])
190
- }, null, 12, U)], 2), s("div", {
189
+ }, null, 12, K)], 2), s("div", {
191
190
  class: p(r.$style.BodyContainer),
192
191
  style: m({ height: t.isOpen ? `${i.value}px` : "0px" })
193
192
  }, [s("ul", {
@@ -209,7 +208,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
209
208
  }, [S(r.$slots, "default", {
210
209
  item: e,
211
210
  index: i
212
- }, () => [c(w(e.name), 1)], !0)], 46, re))), 128))], 2)], 6)], 2));
211
+ }, () => [c(w(e.name), 1)], !0)], 46, ee))), 128))], 2)], 6)], 2));
213
212
  }
214
213
  }), [["__cssModules", { $style: {
215
214
  FoldList: "_FoldList_ujtl4_2",
@@ -221,7 +220,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
221
220
  item: "_item_ujtl4_39",
222
221
  active: "_active_ujtl4_52",
223
222
  slideAnimation: "_slideAnimation_ujtl4_67"
224
- } }], ["__scopeId", "data-v-da86c9ae"]]), G = (e, t) => {
223
+ } }], ["__scopeId", "data-v-da86c9ae"]]), J = (e, t) => {
225
224
  let n = b(!1), i = b(0), a = b(0), o = r(() => [i.value, a.value]), s = (e) => {
226
225
  if (!t?.root) return;
227
226
  t.root.contains(e.target) || e.stopPropagation();
@@ -240,7 +239,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
240
239
  document.removeEventListener("click", s, !0);
241
240
  }
242
241
  });
243
- }, K = (e, t) => {
242
+ }, te = (e, t) => {
244
243
  let n = b(!1), i = b(0), a = b(0), o = r(() => [i.value, a.value]), s = e.parentElement, c = (n) => {
245
244
  if (!t?.root) return;
246
245
  let r = n.target;
@@ -262,14 +261,14 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
262
261
  s?.removeEventListener("mouseover", c), s?.removeEventListener("mouseover", l);
263
262
  }
264
263
  });
265
- }, ie = [
264
+ }, Y = [
266
265
  "data-index",
267
266
  "data-has-children",
268
267
  "onClick"
269
- ], q = {
268
+ ], X = {
270
269
  key: 0,
271
270
  class: "lovelymai lovely-right-arrow"
272
- }, J = /* @__PURE__ */ R(/* @__PURE__ */ u({
271
+ }, Z = /* @__PURE__ */ z(/* @__PURE__ */ u({
273
272
  __name: "Menu",
274
273
  props: {
275
274
  visible: { type: Boolean },
@@ -286,7 +285,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
286
285
  if (!y.value) return;
287
286
  y.value.querySelectorAll("[data-has-children=\"true\"]").forEach((e) => {
288
287
  let t = Number(e.dataset.index);
289
- D.value[t] || !E.value[t] || (D.value[t] = K(e, E.value[t]));
288
+ D.value[t] || !E.value[t] || (D.value[t] = te(e, E.value[t]));
290
289
  });
291
290
  } else {
292
291
  for (let e of Object.values(D.value)) e.cleanup();
@@ -325,7 +324,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
325
324
  index: t
326
325
  }),
327
326
  s("span", { class: p(r.$style.text) }, w(e.name), 3),
328
- e.config ? (_(), o("span", q)) : a("", !0),
327
+ e.config ? (_(), o("span", X)) : a("", !0),
329
328
  e.config ? (_(), i(d, {
330
329
  key: 1,
331
330
  ref_for: !0,
@@ -340,7 +339,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
340
339
  "config",
341
340
  "onItemClick"
342
341
  ])) : a("", !0)
343
- ], 10, ie))), 128))], 6)) : a("", !0)]),
342
+ ], 10, Y))), 128))], 6)) : a("", !0)]),
344
343
  _: 3
345
344
  })], 8, ["disabled"]);
346
345
  };
@@ -349,12 +348,12 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
349
348
  Menu: "_Menu_1pqpp_2",
350
349
  item: "_item_1pqpp_15",
351
350
  text: "_text_1pqpp_30"
352
- } }]]), Y = [
351
+ } }]]), ne = [
353
352
  "type",
354
353
  "value",
355
354
  "enterkeyhint",
356
355
  "placeholder"
357
- ], ae = /* @__PURE__ */ R(/* @__PURE__ */ u({
356
+ ], Q = /* @__PURE__ */ z(/* @__PURE__ */ u({
358
357
  __name: "Input",
359
358
  props: {
360
359
  type: { default: "text" },
@@ -367,15 +366,15 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
367
366
  },
368
367
  setup(e, { expose: t }) {
369
368
  E((e) => ({
370
- v10a0425e: d.value,
371
- a592cb04: f.value,
372
- a149d67e: m.value
369
+ bc6edaa8: d.value,
370
+ v3e5eeacc: f.value,
371
+ c002759a: m.value
373
372
  }));
374
373
  let n = e, c = D(), u = b(null), d = b("0"), f = b("0"), m = r(() => c.default ? f.value : `calc(${f.value} / 2)`), v;
375
374
  h(() => {
376
- v = ee(u.value?.$el, ({ height: e }) => {
375
+ u.value && (v = F(u.value.$el, ({ height: e }) => {
377
376
  d.value = `${e}px`, f.value = `${e - 2}px`;
378
- }, !0);
377
+ }, !0));
379
378
  }), g(() => v());
380
379
  let y = b(null), x = b(n.value);
381
380
  k(() => n.value, (e) => {
@@ -391,33 +390,33 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
391
390
  T = !0;
392
391
  }, P = async () => {
393
392
  T || n.onEnter?.(x.value);
394
- }, F = b(null), I = b(null), L = b(void 0);
393
+ }, I = b(null), L = b(null), R = b(void 0);
395
394
  h(() => {
396
- n.type !== "select" || !I.value || !F.value || (L.value = G(I.value, F.value));
395
+ n.type !== "select" || !L.value || !I.value || (R.value = J(L.value, I.value));
397
396
  }), g(() => {
398
- L.value?.cleanup();
397
+ R.value?.cleanup();
399
398
  });
400
- let R = (e, t) => {
399
+ let z = (e, t) => {
401
400
  e.config || (x.value = e.name, n.onChange?.(x.value));
402
- }, te = () => {
401
+ }, B = () => {
403
402
  x.value = "", n.onChange?.(x.value), y.value?.focus();
404
403
  };
405
404
  return t({
406
405
  focus: () => y.value?.focus(),
407
406
  blur: () => y.value?.blur(),
408
407
  select: () => y.value?.select()
409
- }), (e, t) => (_(), i(z, {
408
+ }), (e, t) => (_(), i(V, {
410
409
  class: p(e.$style.Input),
411
410
  ref_key: "InputRef",
412
411
  ref: u,
413
- type: L.value?.visible ? "select" : "glass"
412
+ type: R.value?.visible ? "select" : "glass"
414
413
  }, {
415
414
  default: A(() => [
416
415
  e.$slots.default ? (_(), o("div", {
417
416
  key: 0,
418
417
  class: p([e.$style.icon, e.$style.custom])
419
418
  }, [S(e.$slots, "default", {}, void 0, !0)], 2)) : a("", !0),
420
- n.type === "text" || n.type === "password" ? (_(), o("input", {
419
+ n.type === "text" || n.type === "number" || n.type === "password" ? (_(), o("input", {
421
420
  key: 1,
422
421
  class: p(e.$style.input),
423
422
  ref_key: "inputRef",
@@ -430,18 +429,18 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
430
429
  onCompositionend: O,
431
430
  onCompositionstart: j,
432
431
  placeholder: n.placeholder || "输入..."
433
- }, null, 42, Y)) : n.type === "select" ? (_(), o("div", {
432
+ }, null, 42, ne)) : n.type === "select" ? (_(), o("div", {
434
433
  key: 2,
435
434
  class: p(e.$style.select),
436
435
  ref_key: "selectRef",
437
- ref: I
438
- }, [s("span", { class: p(e.$style.text) }, w(x.value || n.placeholder || "选择..."), 3), l(J, {
436
+ ref: L
437
+ }, [s("span", { class: p(e.$style.text) }, w(x.value || n.placeholder || "选择..."), 3), l(Z, {
439
438
  ref_key: "MenuRef",
440
- ref: F,
441
- visible: L.value?.visible ?? !1,
442
- position: L.value?.position ?? [0, 0],
439
+ ref: I,
440
+ visible: R.value?.visible ?? !1,
441
+ position: R.value?.position ?? [0, 0],
443
442
  config: n.config,
444
- onItemClick: R
443
+ onItemClick: z
445
444
  }, null, 8, [
446
445
  "visible",
447
446
  "position",
@@ -450,21 +449,21 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
450
449
  s("div", { class: p([e.$style.icon, e.$style.clear]) }, [x.value ? (_(), o("span", {
451
450
  key: 0,
452
451
  class: "lovelymai lovely-clear",
453
- onClick: N(te, ["stop"])
452
+ onClick: N(B, ["stop"])
454
453
  })) : a("", !0)], 2)
455
454
  ]),
456
455
  _: 3
457
456
  }, 8, ["class", "type"]));
458
457
  }
459
458
  }), [["__cssModules", { $style: {
460
- Input: "_Input_1aixy_2",
461
- icon: "_icon_1aixy_13",
462
- custom: "_custom_1aixy_25",
463
- clear: "_clear_1aixy_29",
464
- input: "_input_1aixy_33",
465
- select: "_select_1aixy_34",
466
- text: "_text_1aixy_70"
467
- } }], ["__scopeId", "data-v-54d69ebb"]]), oe = /* @__PURE__ */ R(/* @__PURE__ */ u({
459
+ Input: "_Input_10kga_2",
460
+ icon: "_icon_10kga_13",
461
+ custom: "_custom_10kga_25",
462
+ clear: "_clear_10kga_29",
463
+ input: "_input_10kga_33",
464
+ select: "_select_10kga_34",
465
+ text: "_text_10kga_74"
466
+ } }], ["__scopeId", "data-v-72bdc874"]]), re = /* @__PURE__ */ z(/* @__PURE__ */ u({
468
467
  __name: "Form",
469
468
  props: {
470
469
  config: {},
@@ -482,7 +481,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
482
481
  width: (e.size?.[0] ?? n.defaultSize?.[0] ?? 150) + "px",
483
482
  height: (e.size?.[1] ?? n.defaultSize?.[1] ?? 35) + "px"
484
483
  })
485
- }, [s("span", { class: p(t.$style.name) }, w(e.name), 3), l(ae, {
484
+ }, [s("span", { class: p(t.$style.name) }, w(e.name), 3), l(Q, {
486
485
  class: p(t.$style.Input),
487
486
  ref_for: !0,
488
487
  ref: (e) => r.value[a] = e,
@@ -508,7 +507,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
508
507
  Form: "_Form_nrrlw_2",
509
508
  FormItem: "_FormItem_nrrlw_9",
510
509
  Input: "_Input_nrrlw_15"
511
- } }]]), X = /* @__PURE__ */ R(/* @__PURE__ */ u({
510
+ } }]]), ie = /* @__PURE__ */ z(/* @__PURE__ */ u({
512
511
  __name: "Select",
513
512
  props: {
514
513
  config: {},
@@ -517,7 +516,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
517
516
  setup(e) {
518
517
  let t = e, n = b(null), r = b(null), i = b(null);
519
518
  return h(() => {
520
- !r.value || !n.value || (i.value = G(r.value, n.value));
519
+ !r.value || !n.value || (i.value = J(r.value, n.value));
521
520
  }), (e, a) => (_(), o("span", {
522
521
  class: p([
523
522
  "lovelymai",
@@ -526,7 +525,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
526
525
  ]),
527
526
  ref_key: "SelectRef",
528
527
  ref: r
529
- }, [l(J, {
528
+ }, [l(Z, {
530
529
  ref_key: "MenuRef",
531
530
  ref: n,
532
531
  visible: i.value?.visible ?? !1,
@@ -549,7 +548,7 @@ var B = ["title"], V = /* @__PURE__ */ R(/* @__PURE__ */ u({
549
548
  }), [["__cssModules", { $style: { Select: "_Select_fr749_2" } }]]);
550
549
  //#endregion
551
550
  //#region src/utils/checkScroll.ts
552
- function Z(e, t, n, r = 300) {
551
+ function ae(e, t, n, r = 300) {
553
552
  let i = b(0), a = b(0), o = b(!1), s = !1, c = null, l = 0, u = 0, d = !1, f = !1, p = 0, m = !1, h = 0, g = 0, _ = 0, v = null, x = null, S = 0, C = 0;
554
553
  function w(e) {
555
554
  let t = window.getComputedStyle(e).overflowY;
@@ -613,7 +612,7 @@ function Z(e, t, n, r = 300) {
613
612
  isTouching: o
614
613
  });
615
614
  }
616
- var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
615
+ var oe = /* @__PURE__ */ z(/* @__PURE__ */ u({
617
616
  __name: "Modal",
618
617
  props: {
619
618
  type: { default: "desktop" },
@@ -625,18 +624,18 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
625
624
  onSlideClose: {}
626
625
  },
627
626
  setup(e) {
628
- E((e) => ({ v2ac195d0: i.value }));
627
+ E((e) => ({ v9d355374: i.value }));
629
628
  let t = e, r = b(null), i = b("60px"), c;
630
629
  h(() => {
631
- c = ee(r.value, ({ height: e }) => {
630
+ r.value && (c = F(r.value, ({ height: e }) => {
632
631
  i.value = `${e}px`;
633
- }, !0);
632
+ }, !0));
634
633
  }), g(() => c());
635
634
  let u = b(null), d = b(null), f = b(t.isOpen), v = b(!1);
636
635
  return k(() => t.isOpen, (e) => {
637
636
  f.value = e;
638
637
  }), h(() => {
639
- t.type !== "desktop" && (d.value = Z(u.value.$el, 0, b(!0), 500), k(() => d.value.isTouching, async (e) => {
638
+ t.type !== "desktop" && (d.value = ae(u.value.$el, 0, b(!0), 500), k(() => d.value.isTouching, async (e) => {
640
639
  if (e) {
641
640
  v.value = !0;
642
641
  return;
@@ -656,7 +655,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
656
655
  }, null, 2)) : a("", !0)]),
657
656
  _: 1
658
657
  }), l(n, { name: "lovelymaid-slide" }, {
659
- default: A(() => [j(l(z, {
658
+ default: A(() => [j(l(V, {
660
659
  class: p([e.$style.DrawerContainer, t.type === "desktop" ? e.$style.desktop : e.$style.mobile]),
661
660
  ref_key: "DrawerContainerRef",
662
661
  ref: u,
@@ -682,7 +681,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
682
681
  desktop: "_desktop_18got_29",
683
682
  mobile: "_mobile_18got_36",
684
683
  header: "_header_18got_44"
685
- } }]]), Q = ["title"], ce = /* @__PURE__ */ R(/* @__PURE__ */ u({
684
+ } }]]), se = ["title"], ce = /* @__PURE__ */ z(/* @__PURE__ */ u({
686
685
  __name: "SideBar",
687
686
  props: {
688
687
  visible: {
@@ -705,7 +704,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
705
704
  let t = e, n = () => {
706
705
  t.onSwitch?.();
707
706
  }, a = b(null), o = b(0), l = b("none"), u = b(0), d = r(() => t.isOpen ? "0" : `${-u.value}px`), f = () => {
708
- a.value && (o.value = a.value.$el.offsetWidth, u.value = ne(a.value.$el) + o.value + 10);
707
+ a.value && (o.value = a.value.$el.offsetWidth, u.value = H(a.value.$el) + o.value + 10);
709
708
  }, m = P(f, 100);
710
709
  h(() => {
711
710
  f(), setTimeout(() => l.value = "transform .5s", 100), window.addEventListener("resize", m);
@@ -717,7 +716,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
717
716
  clearTimeout(x), l.value = "transform .3s", x = setTimeout(() => l.value = "transform .5s", 300), e ? requestAnimationFrame(() => {
718
717
  y.value = "1";
719
718
  }) : y.value = "0";
720
- }), (r, o) => (_(), i(z, {
719
+ }), (r, o) => (_(), i(V, {
721
720
  class: p(r.$style.SideBar),
722
721
  ref_key: "SideBarRef",
723
722
  ref: a,
@@ -727,7 +726,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
727
726
  class: p([r.$style.SwitchButton, { [r.$style.close]: !t.isOpen }]),
728
727
  onClick: n,
729
728
  title: e.isOpen ? "收起侧边栏" : "展开侧边栏"
730
- }, [...o[0] ||= [s("span", { class: "lovelymai lovely-sidebar_left" }, null, -1)]], 10, Q)], 2), S(r.$slots, "default", {}, () => [o[1] ||= c("这是内容", -1)], !0)]),
729
+ }, [...o[0] ||= [s("span", { class: "lovelymai lovely-sidebar_left" }, null, -1)]], 10, se)], 2), S(r.$slots, "default", {}, () => [o[1] ||= c("这是内容", -1)], !0)]),
731
730
  _: 3
732
731
  }, 8, ["class"]));
733
732
  }
@@ -736,169 +735,193 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
736
735
  header: "_header_ag32y_8",
737
736
  SwitchButton: "_SwitchButton_ag32y_13",
738
737
  close: "_close_ag32y_32"
739
- } }], ["__scopeId", "data-v-1b51d6cf"]]), le = { key: 0 }, ue = { key: 0 }, de = /* @__PURE__ */ R(/* @__PURE__ */ u({
738
+ } }], ["__scopeId", "data-v-1b51d6cf"]]), le = (e, t) => {
739
+ k(() => t, () => {
740
+ e && Object.entries(t).forEach(([t, n]) => {
741
+ Object.entries(n).forEach(([n, r]) => {
742
+ let i = `--${t}-${n}`, a = String(r);
743
+ e.style.setProperty(i, a);
744
+ });
745
+ });
746
+ }, {
747
+ deep: !0,
748
+ immediate: !0
749
+ });
750
+ }, $ = { key: 0 }, ue = { key: 0 }, de = /* @__PURE__ */ z(/* @__PURE__ */ u({
740
751
  __name: "TabBar",
741
752
  props: {
742
- list: {},
753
+ config: {},
743
754
  activeIndex: { default: 0 },
744
755
  showSearch: { type: Boolean },
745
756
  onItemClick: {},
746
757
  onSearch: {}
747
758
  },
748
759
  setup(t) {
749
- E((e) => ({
750
- v390851a7: d.value,
751
- c54e7356: K.value,
752
- v02ede231: m.value,
753
- v3436edd5: P.value,
754
- v23b45d46: u.value,
755
- v237938ca: J.value,
756
- dad8b76a: f.value,
757
- ebe16fb8: N.value,
758
- v780e38ff: M.value,
759
- v66520aac: oe.value,
760
- v5fd9b0b3: T(L),
761
- bdcb74b0: C.value,
762
- v1136b441: G.value,
763
- v1c8354bf: ie.value,
764
- v37aa1158: q.value,
765
- v4a79f4e0: I.value,
766
- be41bda8: Y.value,
767
- v4d061a9a: X.value
768
- }));
769
- let n = t, i = r(() => n.list.length), c = b(null), u = b(0), d = b(0), f = b(0), m = b(0), v = b(null), y = b(null), C = b(0), D = b(0), M = b(0), N = b(0), P = b("none"), F = b(n.activeIndex), I = b(0), L;
760
+ let n = t, r = b(null), i = b(null), c = b(null), u = y({
761
+ Bar: {
762
+ width: 0,
763
+ height: 0,
764
+ "border-radius": 0,
765
+ "background-color": "rgba(249, 249, 249, 0.9)",
766
+ scale: 1,
767
+ transition: "none"
768
+ },
769
+ slide: {
770
+ width: 0,
771
+ background: "#e4e4e6",
772
+ border: "none",
773
+ "box-shadow": "none",
774
+ translateX: 0,
775
+ scale: 1,
776
+ transition: "background .1s",
777
+ center: 0
778
+ },
779
+ search: { width: 0 },
780
+ "content-top": {
781
+ clipLeft: 0,
782
+ clipRight: 0,
783
+ get scale() {
784
+ return u.slide.scale === 1.2 ? 1.1 : 1;
785
+ }
786
+ }
787
+ }), d = b(0), f = b(n.activeIndex);
770
788
  h(() => {
771
- re = ee(c.value, () => {
772
- d.value = c.value.offsetHeight, u.value = n.showSearch ? c.value.offsetWidth - d.value - 5 : c.value.offsetWidth, f.value = c.value.offsetWidth - d.value * .8 - 5, m.value = d.value / 2, C.value = (u.value - 6) / i.value, M.value = F.value * C.value, N.value = M.value + C.value, D.value = (u.value - 6) * (i.value - 1) / i.value, I.value = F.value * C.value, L = I.value + C.value / 2;
773
- }, !0), setTimeout(() => P.value = "width .3s, height .3s, transform .2s", 500);
789
+ r.value && (le(r.value, u), D = F(r.value, () => {
790
+ u.Bar.width = n.showSearch ? r.value.offsetWidth - u.Bar.height - 5 : r.value.offsetWidth, u.Bar.height = r.value.offsetHeight, u.search.width = r.value.offsetWidth - u.Bar.height * .8 - 5, u.Bar["border-radius"] = u.Bar.height / 2, u.slide.width = (u.Bar.width - 6) / n.config.length, u["content-top"].clipLeft = f.value * u.slide.width, u["content-top"].clipRight = u["content-top"].clipLeft + u.slide.width, d.value = (u.Bar.width - 6) * (n.config.length - 1) / n.config.length, u.slide.translateX = f.value * u.slide.width, u.slide.center = u.slide.translateX + u.slide.width / 2;
791
+ }, !0), setTimeout(() => {
792
+ u.Bar.transition = "width .3s, height .3s, transform .2s";
793
+ }, 500));
774
794
  });
775
- let R, B, V, H, U, re, W = (...e) => {
795
+ let m, v, C, T, E, D, M = (...e) => {
776
796
  e.forEach((e) => {
777
797
  e && (clearInterval(e), clearTimeout(e));
778
798
  });
779
799
  };
780
800
  g(() => {
781
- W(R, B, V, H, U), re();
801
+ M(m, v, C, T, E), D();
782
802
  });
783
- let G = b("#e4e4e6"), K = b("rgba(249, 249, 249, 0.9)"), ie = b("none"), q = b("none"), J = b(1), Y = b(1), oe = r(() => Y.value === 1.2 ? 1.1 : 1), X = b("background .1s"), Z = !1, se = (e, t) => {
784
- if (!v.value || !y.value) return;
785
- let n = e.clientX - ne(y.value) - C.value / 2, r = new DOMMatrix(window.getComputedStyle(v.value).transform).m41, a = n < 0 ? 0 : n > (i.value - 1) * C.value ? (i.value - 1) * C.value : n;
786
- t === "start" ? (X.value = "transform .5s, background .1s", I.value = a) : Z || Math.abs(a - r) < D.value / 10 ? (X.value = "background .1s", I.value = a, Z = !0) : (X.value = "background .1s", I.value = r, H = setInterval(() => {
787
- let e = new DOMMatrix(window.getComputedStyle(v.value).transform).m41;
788
- Math.abs(a - e) < D.value / 10 ? (X.value = "background .1s", I.value = a, Z = !0, W(H)) : I.value += a - e > 0 ? D.value / 10 : -D.value / 10;
803
+ let N = !1, P = (e, t) => {
804
+ if (!c.value || !i.value) return;
805
+ let r = e.clientX - H(i.value) - u.slide.width / 2, a = new DOMMatrix(window.getComputedStyle(c.value).transform).m41, o = r < 0 ? 0 : r > (n.config.length - 1) * u.slide.width ? (n.config.length - 1) * u.slide.width : r;
806
+ t === "start" ? (u.slide.transition = "transform .5s, background .1s", u.slide.translateX = o) : N || Math.abs(o - a) < d.value / 10 ? (u.slide.transition = "background .1s", u.slide.translateX = o, N = !0) : (u.slide.transition = "background .1s", u.slide.translateX = a, T = setInterval(() => {
807
+ let e = new DOMMatrix(window.getComputedStyle(c.value).transform).m41;
808
+ Math.abs(o - e) < d.value / 10 ? (u.slide.transition = "background .1s", u.slide.translateX = o, N = !0, M(T)) : u.slide.translateX += o - e > 0 ? d.value / 10 : -d.value / 10;
789
809
  }, 8));
790
- }, Q = (e) => {
810
+ }, I = (e) => {
791
811
  let t = () => {
792
- L = new DOMMatrix(window.getComputedStyle(v.value).transform).m41 + C.value / 2;
793
- let e = C.value * 1.2 / 1.1;
794
- M.value = L - e / 2, N.value = L + e / 2;
812
+ let e = new DOMMatrix(window.getComputedStyle(c.value).transform).m41;
813
+ u.slide.center = e + u.slide.width / 2;
814
+ let t = u.slide.width * 1.2 / 1.1;
815
+ u["content-top"].clipLeft = u.slide.center - t / 2, u["content-top"].clipRight = u.slide.center + t / 2;
795
816
  };
796
- e ? (clearInterval(R), R = setInterval(() => {
817
+ e ? (clearInterval(m), m = setInterval(() => {
797
818
  t();
798
- }, 8), B = setTimeout(() => clearInterval(R), e)) : (clearInterval(R), Z ? t() : R = setInterval(() => {
819
+ }, 8), v = setTimeout(() => clearInterval(m), e)) : (clearInterval(m), N ? t() : m = setInterval(() => {
799
820
  t();
800
821
  }, 8));
801
- }, ce, de = (e) => {
802
- ce = Date.now(), U = setTimeout(() => {
803
- G.value = "#fff";
804
- }, 100), K.value = "#fff", ie.value = "1px solid rgba(255, 255, 255, 0.5)", q.value = "0 0 10px 0 rgba(0, 0, 0, 0.1)", J.value = 1.05, Y.value = 1.2, se(e, "start"), W(R, B), Q(500), document.addEventListener("pointermove", fe), document.addEventListener("pointerup", pe);
805
- }, fe = (e) => {
806
- if (!V) {
807
- if ($.value) return $.value = !1;
808
- W(H), se(e, "move"), W(R, B), Q(void 0), V = setTimeout(() => V = void 0, 8);
822
+ }, L, R = (e) => {
823
+ L = Date.now(), E = setTimeout(() => {
824
+ u.slide.background = "#fff";
825
+ }, 100), u.Bar["background-color"] = "#fff", u.slide.border = "1px solid rgba(255, 255, 255, 0.5)", u.slide["box-shadow"] = "0 0 10px 0 rgba(0, 0, 0, 0.1)", u.Bar.scale = 1.05, u.slide.scale = 1.2, P(e, "start"), M(m, v), I(500), document.addEventListener("pointermove", z), document.addEventListener("pointerup", U);
826
+ }, z = (e) => {
827
+ if (!C) {
828
+ if (W.value) return W.value = !1;
829
+ M(T), P(e, "move"), M(m, v), I(void 0), C = setTimeout(() => C = void 0, 8);
809
830
  }
810
- }, pe = (e) => {
811
- if (Date.now() - ce < 100 && W(U), G.value = "#e4e4e6", K.value = "rgba(249, 249, 249, 0.9)", ie.value = "none", q.value = "none", X.value = "transform .5s, background .1s", J.value = 1, Y.value = 1, $.value) $.value = !1;
831
+ }, U = (e) => {
832
+ if (Date.now() - L < 100 && M(E), u.slide.background = "#e4e4e6", u.Bar["background-color"] = "rgba(249, 249, 249, 0.9)", u.slide.border = "none", u.slide["box-shadow"] = "none", u.slide.transition = "transform .5s, background .1s", u.Bar.scale = 1, u.slide.scale = 1, W.value) W.value = !1;
812
833
  else {
813
- let t = e.clientX - ne(y.value), n = Math.floor(t / C.value);
814
- F.value = n > i.value - 1 ? i.value - 1 : n < 0 ? 0 : n;
834
+ let t = e.clientX - H(i.value), r = Math.floor(t / u.slide.width);
835
+ f.value = r > n.config.length - 1 ? n.config.length - 1 : r < 0 ? 0 : r;
815
836
  }
816
- W(H), I.value = F.value * C.value, Z = !1, W(R, B), Q(500), n.onItemClick?.(n.list[F.value], F.value), document.removeEventListener("pointermove", fe), document.removeEventListener("pointerup", pe);
837
+ M(T), u.slide.translateX = f.value * u.slide.width, N = !1, M(m, v), I(500), n.onItemClick?.(n.config[f.value], f.value), document.removeEventListener("pointermove", z), document.removeEventListener("pointerup", U);
817
838
  };
818
839
  k(() => n.activeIndex, (e) => {
819
- X.value = "transform .5s, background .1s", F.value = e, W(H), I.value = e * C.value, W(R, B), Q(500);
820
- }), k(() => n.list.length, () => I.value = 0);
821
- let $ = b(!1), me = b(!1), he = () => {
822
- $.value = !0, I.value = 0;
840
+ u.slide.transition = "transform .5s, background .1s", f.value = e, M(T), u.slide.translateX = e * u.slide.width, M(m, v), I(500);
841
+ }), k(() => n.config.length, () => {
842
+ u.slide.translateX = 0;
843
+ });
844
+ let W = b(!1), G = b(!1), K = () => {
845
+ W.value = !0, u.slide.translateX = 0;
823
846
  };
824
- return k($, (e) => {
825
- e ? setTimeout(() => me.value = !0, 100) : setTimeout(() => me.value = !1, 200);
826
- }), (r, i) => (_(), o("div", {
827
- class: p(r.$style.TabBar),
828
- ref_key: "BarRef",
829
- ref: c
830
- }, [l(z, {
831
- class: p([r.$style.bar, { [r.$style.active]: !$.value }]),
847
+ return k(W, (e) => {
848
+ e ? setTimeout(() => G.value = !0, 100) : setTimeout(() => G.value = !1, 200);
849
+ }), (u, d) => (_(), o("div", {
850
+ class: p(u.$style.TabBar),
851
+ ref_key: "TabBarRef",
852
+ ref: r
853
+ }, [l(V, {
854
+ class: p([u.$style.Bar, { [u.$style.active]: !W.value }]),
832
855
  type: "glass"
833
856
  }, {
834
857
  default: A(() => [s("ul", {
835
- class: p(r.$style.container),
836
- ref_key: "containerRef",
837
- ref: y,
838
- onPointerdown: de
858
+ class: p(u.$style.content),
859
+ ref_key: "contentRef",
860
+ ref: i,
861
+ onPointerdown: R
839
862
  }, [
840
- j(s("li", { class: p([r.$style.tab, r.$style.small]) }, [S(r.$slots, "default", {
841
- item: n.list[F.value],
842
- index: F.value
843
- }, void 0, !0)], 2), [[O, $.value]]),
844
- (_(!0), o(e, null, x(n.list, (e, t) => (_(), o("li", {
845
- class: p(r.$style.tab),
863
+ j(s("li", { class: p([u.$style.tab, u.$style.small]) }, [S(u.$slots, "default", {
864
+ item: n.config[f.value],
865
+ index: f.value
866
+ }, void 0, !0)], 2), [[O, W.value]]),
867
+ (_(!0), o(e, null, x(n.config, (e, t) => (_(), o("li", {
868
+ class: p(u.$style.tab),
846
869
  key: t
847
- }, [S(r.$slots, "default", {
870
+ }, [S(u.$slots, "default", {
848
871
  item: e,
849
872
  index: t
850
- }, void 0, !0), e.name ? (_(), o("span", le, w(e.name), 1)) : a("", !0)], 2))), 128)),
873
+ }, void 0, !0), e.name ? (_(), o("span", $, w(e.name), 1)) : a("", !0)], 2))), 128)),
851
874
  j(s("div", {
852
- class: p(r.$style.slide),
875
+ class: p(u.$style.slide),
853
876
  ref_key: "SlideRef",
854
- ref: v
855
- }, null, 2), [[O, !$.value]]),
856
- j(s("ul", { class: p([r.$style.container, r.$style.top]) }, [(_(!0), o(e, null, x(n.list, (e, t) => (_(), o("li", {
857
- class: p([r.$style.tab, r.$style.top]),
877
+ ref: c
878
+ }, null, 2), [[O, !W.value]]),
879
+ j(s("ul", { class: p([u.$style.content, u.$style.top]) }, [(_(!0), o(e, null, x(n.config, (e, t) => (_(), o("li", {
880
+ class: p([u.$style.tab, u.$style.top]),
858
881
  key: t
859
- }, [S(r.$slots, "default", {
882
+ }, [S(u.$slots, "default", {
860
883
  item: e,
861
884
  index: t
862
- }, void 0, !0), e.name ? (_(), o("span", ue, w(e.name), 1)) : a("", !0)], 2))), 128))], 2), [[O, !$.value]])
885
+ }, void 0, !0), e.name ? (_(), o("span", ue, w(e.name), 1)) : a("", !0)], 2))), 128))], 2), [[O, !W.value]])
863
886
  ], 34)]),
864
887
  _: 3
865
888
  }, 8, ["class"]), n.showSearch ? (_(), o("div", {
866
889
  key: 0,
867
- class: p([r.$style.search, { [r.$style.active]: $.value }])
868
- }, [j(l(te, {
890
+ class: p([u.$style.search, { [u.$style.active]: W.value }])
891
+ }, [j(l(B, {
869
892
  type: "glass",
870
- class: p(r.$style.Button),
871
- onClick: he
893
+ class: p(u.$style.Button),
894
+ onClick: K
872
895
  }, {
873
- default: A(() => [...i[0] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
896
+ default: A(() => [...d[0] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
874
897
  _: 1
875
- }, 8, ["class"]), [[O, !me.value]]), j(l(ae, {
876
- class: p(r.$style.Search),
898
+ }, 8, ["class"]), [[O, !G.value]]), j(l(Q, {
899
+ class: p(u.$style.Search),
877
900
  enterkeyhint: "search",
878
901
  onEnter: t.onSearch
879
902
  }, {
880
- default: A(() => [...i[1] ||= [s("span", { class: "lovelymai lovely-search input" }, null, -1)]]),
903
+ default: A(() => [...d[1] ||= [s("span", { class: "lovelymai lovely-search input" }, null, -1)]]),
881
904
  _: 1
882
- }, 8, ["class", "onEnter"]), [[O, me.value]])], 2)) : a("", !0)], 2));
905
+ }, 8, ["class", "onEnter"]), [[O, G.value]])], 2)) : a("", !0)], 2));
883
906
  }
884
907
  }), [["__cssModules", { $style: {
885
- TabBar: "_TabBar_3h4l1_2",
886
- bar: "_bar_3h4l1_12",
887
- active: "_active_3h4l1_24",
888
- search: "_search_3h4l1_35",
889
- container: "_container_3h4l1_46",
890
- top: "_top_3h4l1_54",
891
- tab: "_tab_3h4l1_66",
892
- small: "_small_3h4l1_80",
893
- Button: "_Button_3h4l1_90",
894
- Search: "_Search_3h4l1_95",
895
- slide: "_slide_3h4l1_100"
896
- } }], ["__scopeId", "data-v-8b10de1d"]]), fe = [
908
+ TabBar: "_TabBar_nghf8_2",
909
+ Bar: "_Bar_nghf8_12",
910
+ active: "_active_nghf8_24",
911
+ search: "_search_nghf8_35",
912
+ content: "_content_nghf8_46",
913
+ top: "_top_nghf8_54",
914
+ tab: "_tab_nghf8_66",
915
+ small: "_small_nghf8_80",
916
+ Button: "_Button_nghf8_90",
917
+ Search: "_Search_nghf8_95",
918
+ slide: "_slide_nghf8_100"
919
+ } }], ["__scopeId", "data-v-cb65e21d"]]), fe = [
897
920
  "rows",
898
921
  "value",
899
922
  "enterkeyhint",
900
923
  "placeholder"
901
- ], pe = /* @__PURE__ */ R(/* @__PURE__ */ u({
924
+ ], pe = /* @__PURE__ */ z(/* @__PURE__ */ u({
902
925
  __name: "TextArea",
903
926
  props: {
904
927
  minrow: { default: 1 },
@@ -937,7 +960,7 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
937
960
  focus: () => a.value?.focus(),
938
961
  blur: () => a.value?.blur(),
939
962
  select: () => a.value?.select()
940
- }), (e, t) => (_(), i(z, {
963
+ }), (e, t) => (_(), i(V, {
941
964
  class: p(e.$style.TextArea),
942
965
  ref_key: "TextAreaRef",
943
966
  ref: r,
@@ -960,4 +983,4 @@ var se = /* @__PURE__ */ R(/* @__PURE__ */ u({
960
983
  }
961
984
  }), [["__cssModules", { $style: { TextArea: "_TextArea_fki19_2" } }], ["__scopeId", "data-v-0795d4b0"]]);
962
985
  //#endregion
963
- export { te as Button, z as Card, V as ContentBar, W as FoldList, oe as Form, ae as Input, se as Modal, X as Select, ce as SideBar, de as TabBar, pe as TextArea };
986
+ export { B as Button, V as Card, W as ContentBar, q as FoldList, re as Form, Q as Input, oe as Modal, ie as Select, ce as SideBar, de as TabBar, pe as TextArea };
@@ -1,6 +1,6 @@
1
1
  export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): (...args: Parameters<T>) => void;
2
2
  export declare function throttle<T extends (...args: any[]) => any>(fn: T, interval: number): (...args: Parameters<T>) => void;
3
- export declare function watchDOM(element: HTMLElement | null, callback: (size: {
3
+ export declare function watchDOM(element: HTMLElement, callback: (size: {
4
4
  width: number;
5
5
  height: number;
6
6
  }) => void, immediate?: boolean): () => void;
@@ -0,0 +1,3 @@
1
+ type StyleObject = Record<string, Record<string, string | number>>;
2
+ declare const useCssVar: <T extends StyleObject>(el: HTMLElement, styles: T) => void;
3
+ export default useCssVar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lovelymaid",
3
- "version": "1.3.9",
3
+ "version": "1.4.1",
4
4
  "description": "一个基于 Vue 3, 模仿 iOS 26 风格的组件库",
5
5
  "license": "MIT",
6
6
  "keywords": [