lovelymaid 1.5.0 → 1.5.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.
Binary file
@@ -1,22 +1,29 @@
1
+ import type { Item } from './type';
1
2
  export type ColumnConfig = {
2
3
  id: string;
3
4
  name: string;
4
5
  prop: string;
5
6
  width: number | string;
6
- color?: string;
7
+ };
8
+ export type SortConfig = {
9
+ /** 列 id */
10
+ id: string;
11
+ /** 排序规则 */
12
+ order: 'asc' | 'desc';
7
13
  };
8
14
  interface Props {
9
- /** 表格配置 */
10
- config: ColumnConfig[];
11
- /** 表格数据 */
12
- data: {
13
- id: string;
14
- [key: string]: any;
15
- }[];
15
+ /** 表格列 */
16
+ columns: ColumnConfig[];
17
+ /** 表格行 */
18
+ rows: Item[];
16
19
  /** 激活项索引 */
17
20
  activeIndexes?: Set<number>;
18
21
  /** 激活项改变事件 */
19
22
  onActiveChange?: (newActiveIndexes: Set<number>) => void;
23
+ /** 排序 */
24
+ sort: SortConfig;
25
+ /** 排序项改变事件 */
26
+ onSortChange: (newSortConfig: SortConfig, newData: Item[]) => void;
20
27
  }
21
28
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
22
29
  activeIndexes: Set<number>;
@@ -1,3 +1,7 @@
1
+ export type Item = {
2
+ id: string;
3
+ [key: string]: any;
4
+ };
1
5
  export type Option = {
2
6
  id: string;
3
7
  name: string;
package/dist/index.d.ts CHANGED
@@ -8,10 +8,10 @@ import Select from './components//Select.vue';
8
8
  import Modal from './components/Modal.vue';
9
9
  import SideBar from './components/SideBar.vue';
10
10
  import TabBar, { type TabItem } from './components/TabBar.vue';
11
- import Table, { type ColumnConfig } from './components/Table.vue';
11
+ import Table, { type ColumnConfig, type SortConfig } from './components/Table.vue';
12
12
  import TextArea from './components/TextArea.vue';
13
- import type { Option } from './components/type.js';
13
+ import type { Item, Option } from './components/type.js';
14
14
  import '@/assets/styles/reset.css';
15
15
  import '@/assets/styles/main.css';
16
16
  import '@/assets/icons/iconfont.css';
17
- export { type Option, Button, Card, ContentBar, FoldList, Form, type FormItem, Input, type InputOption, Select, Modal, SideBar, TabBar, type TabItem, Table, type ColumnConfig, TextArea, };
17
+ export { Button, Card, ContentBar, FoldList, Form, type FormItem, Input, type InputOption, Select, Modal, SideBar, TabBar, type TabItem, Table, type ColumnConfig, type SortConfig, TextArea, type Item, type Option, };
@@ -1,2 +1,2 @@
1
- ._Button_iukdh_2{border-radius:var(--v6bad5fb7);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v7302d949);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_15pfq_2{transform:translateX(var(--v338db8c2)) scale(var(--v18df235c));transition:var(--v336bed4d);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_15pfq_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_15pfq_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_15pfq_36{margin-top:10px;font-size:20px}._content_15pfq_41{z-index:0;display:flow-root;position:relative}._tip_15pfq_47{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._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-8709fe91]{color:var(--title-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._Menu_dbnyw_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_dbnyw_2 ._item_dbnyw_15{color:#000;cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex}._Menu_dbnyw_2 ._item_dbnyw_15:hover{color:#fff;background-color:#3b86f7}._Menu_dbnyw_2 ._item_dbnyw_15 ._text_dbnyw_30{font-size:12px;font-weight:450}.lovely-right-arrow[data-v-b819a3a9]{font-weight:600;transform:translateY(1px)}._Input_8s2zs_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_8s2zs_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:#19191a;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_8s2zs_14._custom_8s2zs_26{left:0}._icon_8s2zs_14._clear_8s2zs_30{right:0}._input_8s2zs_34,._select_8s2zs_35{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);background-color:#0000;border:none;flex:1}._input_8s2zs_34{caret-color:#3c86f6;outline:0 solid #0000;transition:outline .2s}._input_8s2zs_34::placeholder{color:var(--placeholder-color)}._input_8s2zs_34:focus{outline:3px solid #94bbf0}._input_8s2zs_34[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}._select_8s2zs_35{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}._select_8s2zs_35 ._text_8s2zs_74{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.lovely-clear[data-v-6c0e3b0a]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}._TextArea_gsvo8_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:18px;--placeholder-color:#544957}textarea[data-v-0abb3d4e]{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-0abb3d4e]::placeholder{color:var(--placeholder-color)}textarea[data-v-0abb3d4e]:focus{outline:3px solid #94bbf0}._Form_1yqvr_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_1yqvr_9{align-items:flex-start;gap:10px;display:flex}._FormItem_1yqvr_9 ._Input_1yqvr_15,._FormItem_1yqvr_9 ._TextArea_1yqvr_16{flex:1;min-width:0}._FormItem_1yqvr_9 ._Input_1yqvr_15{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_bcygi_2{-webkit-user-select:none;user-select:none;--font-size:8px;--top-color:#0067ec;gap:5px;height:50px;display:flex}._Bar_bcygi_12{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_bcygi_12._active_bcygi_23{width:calc(var(--Bar-width) * 1px);height:100%;transform:scale(var(--Bar-scale));overflow:visible}._Bar_bcygi_12:not(._active_bcygi_23):active{transform:scale(1.2)}._search_bcygi_34{width:calc(var(--Bar-height) * 1px);height:100%;transition:var(--Bar-transition)}._search_bcygi_34._active_bcygi_23{width:calc(var(--search-width) * 1px);height:80%}._content_bcygi_45{touch-action:none;width:100%;height:100%;display:flex;position:relative}._content_bcygi_45._top_bcygi_53{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_bcygi_65{width:calc(var(--slide-width) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_bcygi_65 :nth-child(2){font-size:var(--font-size)}._tab_bcygi_65._small_bcygi_79{aspect-ratio:1;flex-shrink:1;height:100%}._tab_bcygi_65._top_bcygi_53{color:var(--top-color)}._search_bcygi_34 ._Button_bcygi_89{width:100%;height:100%}._search_bcygi_34 ._Input_bcygi_94{--font-size:18px;height:100%}._slide_bcygi_99{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}._header_1ffz0_2{border-bottom:.5px solid gray;height:28px;margin-bottom:4px;padding:6px 0;display:flex}._header_1ffz0_2 ._item_1ffz0_10{padding:0 8px;font-size:12px;font-weight:500;line-height:16px}._header_1ffz0_2 ._item_1ffz0_10:not(:last-child){border-right:.5px solid gray}._list_1ffz0_21 ._item_1ffz0_10{height:35px;display:flex}._list_1ffz0_21 ._item_1ffz0_10:nth-child(2n){background-color:#f5f5f5}._list_1ffz0_21 ._item_1ffz0_10 ._text_1ffz0_30{white-space:nowrap;text-overflow:ellipsis;padding:0 8px;font-size:16px;line-height:35px;overflow:hidden}*{box-sizing:border-box}input,textarea{font-family:inherit}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:#ffffffe6;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+A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IKbGVmdC1hcnJvdwNnb3UFY2xvc2UAAAAA)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_5eqts_2{border-radius:var(--v538b7533);cursor:pointer;touch-action:none;width:30px;height:30px;font-size:var(--v135f0cc5);color:#19191a;--background-color:#3b86f7;justify-content:center;align-items:center;font-weight:500;transition:transform .2s;display:flex}._Button_5eqts_2._common_5eqts_18{background-color:var(--background-color)}._Button_5eqts_2._lovelymai-glass-container_5eqts_22:active{background-color:#fff}._Button_5eqts_2:active{transform:scale(1.2)}._ContentBar_15pfq_2{transform:translateX(var(--v338db8c2)) scale(var(--v18df235c));transition:var(--v336bed4d);scrollbar-width:thin;border-radius:20px;overflow:auto}._header_15pfq_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_15pfq_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_15pfq_36{margin-top:10px;font-size:20px}._content_15pfq_41{z-index:0;display:flow-root;position:relative}._tip_15pfq_47{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._FoldList_184zh_2{--header-height:30px;--header-font-size:12px;--header-color:#767676;--list-font-size:14px;--list-line-height:30px;--list-color:inherit}._header_184zh_11{height:var(--header-height);cursor:pointer;justify-content:space-between;align-items:center;display:flex}._header_184zh_11 ._title_184zh_19{font-size:var(--header-font-size);color:var(--header-color);font-weight:500}._BodyContainer_184zh_25{transition:height .5s;overflow:hidden}._body_184zh_30{transition:transform .5s;transform:translateY(0)}._body_184zh_30._close_184zh_35{transform:translateY(-100%)}._body_184zh_30 ._item_184zh_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_184zh_30 ._item_184zh_39._active_184zh_52{color:#3b86f7;background-color:#e4e4e4}@keyframes _slideAnimation_184zh_67{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}._slideAnimation_184zh_67{animation:.5s _slideAnimation_184zh_67}.lovely-right-arrow[data-v-91fccc65]{color:var(--header-color);cursor:pointer;font-size:16px;font-weight:700;transition:transform .3s}._Menu_dbnyw_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_dbnyw_2 ._item_dbnyw_15{color:#000;cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex}._Menu_dbnyw_2 ._item_dbnyw_15:hover{color:#fff;background-color:#3b86f7}._Menu_dbnyw_2 ._item_dbnyw_15 ._text_dbnyw_30{font-size:12px;font-weight:450}.lovely-right-arrow[data-v-e3f6e08d]{font-weight:600;transform:translateY(1px)}._Input_8s2zs_2{border-radius:calc(var(--Input-height) * .5px);--font-size:14px;--font-weight:400;--line-height:18px;--clear-color:#767676;--placeholder-color:#544957;height:35px;display:flex;position:relative}._icon_8s2zs_14{width:calc(var(--input-height) * 1px);height:100%;font-size:calc(var(--input-height) * .5px);color:#19191a;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute}._icon_8s2zs_14._custom_8s2zs_26{left:0}._icon_8s2zs_14._clear_8s2zs_30{right:0}._input_8s2zs_34,._select_8s2zs_35{min-width:0;padding-left:calc(var(--input-paddingLeft) * 1px);padding-right:calc(var(--input-height) * 1px);border-radius:calc(var(--input-height) * .5px);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);background-color:#0000;border:none;flex:1}._input_8s2zs_34{caret-color:#3c86f6;outline:0 solid #0000;transition:outline .2s}._input_8s2zs_34::placeholder{color:var(--placeholder-color)}._input_8s2zs_34:focus{outline:3px solid #94bbf0}._input_8s2zs_34[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}._select_8s2zs_35{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}._select_8s2zs_35 ._text_8s2zs_74{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.lovely-clear[data-v-6c0e3b0a]{font-size:calc(var(--input-height) * .5px);color:var(--clear-color);cursor:pointer;pointer-events:auto}._TextArea_gsvo8_2{border-radius:var(--border-radius);--max-height:auto;--border-radius:20px;--font-size:14px;--font-weight:400;--line-height:18px;--placeholder-color:#544957}textarea[data-v-0abb3d4e]{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-0abb3d4e]::placeholder{color:var(--placeholder-color)}textarea[data-v-0abb3d4e]:focus{outline:3px solid #94bbf0}._Form_1yqvr_2{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}._FormItem_1yqvr_9{align-items:flex-start;gap:10px;display:flex}._FormItem_1yqvr_9 ._Input_1yqvr_15,._FormItem_1yqvr_9 ._TextArea_1yqvr_16{flex:1;min-width:0}._FormItem_1yqvr_9 ._Input_1yqvr_15{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(--v1ecd5a80);box-shadow:0 0 calc(var(--v1ecd5a80) / 2) calc(var(--v1ecd5a80) / 2) #f8f8f8f2;position:sticky;top:0}.lovelymai-slide-enter-from,.lovelymai-slide-leave-to{transform:translateY(100dvh)}._SideBar_ag32y_2{transform:translateX(var(--v0d6c9f65)) scale(var(--v21e2a462));transition:var(--v0d4ad3f0);border-radius:20px}._header_ag32y_8{height:50px;position:relative}._SwitchButton_ag32y_13{width:35px;height:30px;transform:translateX(var(--v17de8098));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-left-sidebar[data-v-9b448158]{color:#19191a;font-size:20px}._TabBar_bcygi_2{-webkit-user-select:none;user-select:none;--font-size:8px;--top-color:#0067ec;gap:5px;height:50px;display:flex}._Bar_bcygi_12{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_bcygi_12._active_bcygi_23{width:calc(var(--Bar-width) * 1px);height:100%;transform:scale(var(--Bar-scale));overflow:visible}._Bar_bcygi_12:not(._active_bcygi_23):active{transform:scale(1.2)}._search_bcygi_34{width:calc(var(--Bar-height) * 1px);height:100%;transition:var(--Bar-transition)}._search_bcygi_34._active_bcygi_23{width:calc(var(--search-width) * 1px);height:80%}._content_bcygi_45{touch-action:none;width:100%;height:100%;display:flex;position:relative}._content_bcygi_45._top_bcygi_53{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_bcygi_65{width:calc(var(--slide-width) * 1px);flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;height:100%;display:flex}._tab_bcygi_65 :nth-child(2){font-size:var(--font-size)}._tab_bcygi_65._small_bcygi_79{aspect-ratio:1;flex-shrink:1;height:100%}._tab_bcygi_65._top_bcygi_53{color:var(--top-color)}._search_bcygi_34 ._Button_bcygi_89{width:100%;height:100%}._search_bcygi_34 ._Input_bcygi_94{--font-size:18px;height:100%}._slide_bcygi_99{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}._header_d5la3_2{border-bottom:.5px solid gray;height:28px;margin-bottom:4px;display:flex}._header_d5la3_2 ._item_d5la3_9{cursor:pointer;padding:6px 0}._header_d5la3_2 ._item_d5la3_9 ._container_d5la3_14{justify-content:space-between;align-items:center;padding:0 8px;display:flex}._header_d5la3_2 ._item_d5la3_9:not(:last-child) ._container_d5la3_14{border-right:.5px solid gray}._header_d5la3_2 ._item_d5la3_9 ._container_d5la3_14 ._text_d5la3_25{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;line-height:16px;overflow:hidden}._list_d5la3_34 ._item_d5la3_9{height:35px;display:flex}._list_d5la3_34 ._item_d5la3_9:nth-child(2n){background-color:#f5f5f5}._list_d5la3_34 ._item_d5la3_9 ._text_d5la3_25{white-space:nowrap;text-overflow:ellipsis;padding:0 8px;font-size:16px;line-height:35px;overflow:hidden}.lovely-down-arrow[data-v-4d400ca0]{color:gray;font-size:12px;font-weight:700}*{box-sizing:border-box}input,textarea{font-family:inherit}ul{margin:0;padding:0;list-style:none}.lovelymai-common-container{background-color:#f2f2f6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymai-select-container{background-color:#dadada;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymai-glass-container{-webkit-backdrop-filter:blur(10px)saturate(1.5);backdrop-filter:blur(10px)saturate(1.5);background-color:#ffffffe6;border:1px solid #fff;box-shadow:0 0 20px #0000001a}.lovelymai-fade-enter-from,.lovelymai-fade-leave-to{opacity:0}.lovelymai-fade-enter-active,.lovelymai-fade-leave-active{transition:opacity .2s}.lovelymai-fade-leave-leave-to{opacity:0}.lovelymai-fade-leave-leave-active{transition:opacity .2s}@font-face{font-family:lovelymai;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8FUtqAAABjAAAAGBjbWFwQpk4ogAAAhgAAAImZ2x5ZgsyGS4AAARYAAAEhGhlYWQwAKn7AAAA4AAAADZoaGVhB94DjAAAALwAAAAkaG10eCwAAAAAAAHsAAAALGxvY2EGOgdoAAAEQAAAABhtYXhwARsAVgAAARgAAAAgbmFtZXqBcSwAAAjcAAACc3Bvc3SRbSeJAAALUAAAAJEAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAsAAQAAAAEAABsoBR1fDzz1AAsEAAAAAADmcLL/AAAAAOZwsv8AAP+ABAADgAAAAAgAAgAAAAAAAAABAAAACwBKAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQA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ZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAAhlbGxpcHNpcwZzZWFyY2gEaW5mbwxsZWZ0LXNpZGViYXILcmlnaHQtYXJyb3cFY2xlYXIKZG93bi1hcnJvdwpsZWZ0LWFycm93BWNoZWNrBWNsb3NlAAAAAAA=)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-left-sidebar:before{content:""}.lovely-right-arrow:before{content:""}.lovely-clear:before{content:""}.lovely-down-arrow:before{content:""}.lovely-left-arrow:before{content:""}.lovely-check:before{content:""}.lovely-close:before{content:""}
2
2
  /*$vite$:1*/
@@ -34,8 +34,8 @@ var I = (...e) => {
34
34
  },
35
35
  setup(e) {
36
36
  E((e) => ({
37
- v6bad5fb7: r.value,
38
- v7302d949: i.value
37
+ v538b7533: r.value,
38
+ v135f0cc5: i.value
39
39
  }));
40
40
  let t = e, n = b(null), r = b("0"), i = b("0"), a;
41
41
  return h(() => {
@@ -45,7 +45,7 @@ var I = (...e) => {
45
45
  }, !0));
46
46
  }), g(() => a?.()), (e, r) => (_(), o("div", {
47
47
  class: p([e.$style.Button, {
48
- "lovelymaid-glass-container": t.type === "glass",
48
+ "lovelymai-glass-container": t.type === "glass",
49
49
  [e.$style.common]: t.type === "common"
50
50
  }]),
51
51
  ref_key: "ButtonRef",
@@ -55,9 +55,9 @@ var I = (...e) => {
55
55
  }, [S(e.$slots, "default")], 10, L));
56
56
  }
57
57
  }), z = {
58
- Button: "_Button_iukdh_2",
59
- common: "_common_iukdh_18",
60
- "lovelymaid-glass-container": "_lovelymaid-glass-container_iukdh_26"
58
+ Button: "_Button_5eqts_2",
59
+ common: "_common_5eqts_18",
60
+ "lovelymai-glass-container": "_lovelymai-glass-container_5eqts_22"
61
61
  }, B = (e, t) => {
62
62
  let n = e.__vccOpts || e;
63
63
  for (let [e, r] of t) n[e] = r;
@@ -67,9 +67,9 @@ var I = (...e) => {
67
67
  props: { type: { default: "common" } },
68
68
  setup(e) {
69
69
  let t = e, n = {
70
- common: "lovelymaid-common-container",
71
- select: "lovelymaid-select-container",
72
- glass: "lovelymaid-glass-container"
70
+ common: "lovelymai-common-container",
71
+ select: "lovelymai-select-container",
72
+ glass: "lovelymai-glass-container"
73
73
  };
74
74
  return (e, r) => (_(), o("div", { class: p(n[t.type]) }, [S(e.$slots, "default")], 2));
75
75
  }
@@ -158,7 +158,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
158
158
  o === void 0 ? i === -1 ? n[t] = -1 - t : n[t] = i - t : (n[t] = o - t, i = o);
159
159
  }
160
160
  return n;
161
- }, q = ["title"], J = ["onClick"], ee = /* @__PURE__ */ B(/* @__PURE__ */ u({
161
+ }, ee = ["title"], te = ["onClick"], ne = /* @__PURE__ */ B(/* @__PURE__ */ u({
162
162
  __name: "FoldList",
163
163
  props: {
164
164
  title: { default: "标题" },
@@ -189,12 +189,12 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
189
189
  }, { deep: !0 }), (r, l) => (_(), o("div", { class: p(r.$style.FoldList) }, [s("div", {
190
190
  class: p(r.$style.header),
191
191
  onClick: l[1] ||= (...e) => t.onHeaderClick && t.onHeaderClick(...e)
192
- }, [s("div", { class: p(r.$style.title) }, w(n.title), 3), s("span", {
192
+ }, [s("span", { class: p(r.$style.title) }, w(n.title), 3), s("span", {
193
193
  class: "lovelymai lovely-right-arrow",
194
194
  style: m({ transform: n.isOpen ? "rotate(90deg)" : "rotate(0deg)" }),
195
195
  title: t.isOpen ? "收起列表" : "展开列表",
196
196
  onClick: l[0] ||= N(() => t.onOpenChange(!n.isOpen), ["stop"])
197
- }, null, 12, q)], 2), s("div", {
197
+ }, null, 12, ee)], 2), s("div", {
198
198
  class: p(r.$style.BodyContainer),
199
199
  style: m({ height: t.isOpen ? `${i.value}px` : "0px" })
200
200
  }, [s("ul", {
@@ -216,19 +216,19 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
216
216
  }, [S(r.$slots, "default", {
217
217
  item: e,
218
218
  index: i
219
- }, () => [c(w(e.name), 1)], !0)], 46, J))), 128))], 2)], 6)], 2));
219
+ }, () => [c(w(e.name), 1)], !0)], 46, te))), 128))], 2)], 6)], 2));
220
220
  }
221
221
  }), [["__cssModules", { $style: {
222
- FoldList: "_FoldList_ujtl4_2",
223
- header: "_header_ujtl4_11",
224
- title: "_title_ujtl4_19",
225
- BodyContainer: "_BodyContainer_ujtl4_25",
226
- body: "_body_ujtl4_30",
227
- close: "_close_ujtl4_35",
228
- item: "_item_ujtl4_39",
229
- active: "_active_ujtl4_52",
230
- slideAnimation: "_slideAnimation_ujtl4_67"
231
- } }], ["__scopeId", "data-v-8709fe91"]]), Y = (e, t) => {
222
+ FoldList: "_FoldList_184zh_2",
223
+ header: "_header_184zh_11",
224
+ title: "_title_184zh_19",
225
+ BodyContainer: "_BodyContainer_184zh_25",
226
+ body: "_body_184zh_30",
227
+ close: "_close_184zh_35",
228
+ item: "_item_184zh_39",
229
+ active: "_active_184zh_52",
230
+ slideAnimation: "_slideAnimation_184zh_67"
231
+ } }], ["__scopeId", "data-v-91fccc65"]]), q = (e, t) => {
232
232
  let n = b(!1), r = b(0), i = b(0), a = b([r.value, i.value]);
233
233
  k([r, i], ([e, t]) => {
234
234
  a.value = [e, t];
@@ -252,7 +252,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
252
252
  document.removeEventListener("click", o, !0);
253
253
  }
254
254
  });
255
- }, te = (e, t) => {
255
+ }, re = (e, t) => {
256
256
  let n = b(!1), r = e.parentElement, i = b(0), a = b(0), o = b([i.value, a.value]);
257
257
  k([i, a], ([e, t]) => {
258
258
  o.value = [e, t];
@@ -279,14 +279,14 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
279
279
  r?.removeEventListener("mouseover", s), r?.removeEventListener("mouseover", c);
280
280
  }
281
281
  });
282
- }, ne = [
282
+ }, ie = [
283
283
  "data-index",
284
284
  "data-has-children",
285
285
  "onClick"
286
- ], re = {
286
+ ], J = {
287
287
  key: 0,
288
288
  class: "lovelymai lovely-right-arrow"
289
- }, X = /* @__PURE__ */ B(/* @__PURE__ */ u({
289
+ }, Y = /* @__PURE__ */ B(/* @__PURE__ */ u({
290
290
  __name: "Menu",
291
291
  props: {
292
292
  visible: { type: Boolean },
@@ -303,7 +303,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
303
303
  if (!y.value) return;
304
304
  y.value.querySelectorAll("[data-has-children=\"true\"]").forEach((e) => {
305
305
  let t = Number(e.dataset.index);
306
- D.value[t] || !E.value[t] || (D.value[t] = te(e, E.value[t]));
306
+ D.value[t] || !E.value[t] || (D.value[t] = re(e, E.value[t]));
307
307
  });
308
308
  } else {
309
309
  for (let e of Object.values(D.value)) e.cleanup();
@@ -319,7 +319,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
319
319
  return _(), i(t, {
320
320
  to: "body",
321
321
  disabled: T(h)
322
- }, [l(n, { name: "lovelymaid-fade-leave" }, {
322
+ }, [l(n, { name: "lovelymai-fade-leave" }, {
323
323
  default: A(() => [u.visible ? (_(), o("ul", {
324
324
  key: 0,
325
325
  class: p(r.$style.Menu),
@@ -342,7 +342,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
342
342
  index: t
343
343
  }, void 0, !0),
344
344
  s("span", { class: p(r.$style.text) }, w(e.name), 3),
345
- e.options ? (_(), o("span", re)) : a("", !0),
345
+ e.options ? (_(), o("span", J)) : a("", !0),
346
346
  e.options ? (_(), i(d, {
347
347
  key: 1,
348
348
  ref_for: !0,
@@ -357,7 +357,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
357
357
  "options",
358
358
  "onOptionClick"
359
359
  ])) : a("", !0)
360
- ], 10, ne))), 128))], 6)) : a("", !0)]),
360
+ ], 10, ie))), 128))], 6)) : a("", !0)]),
361
361
  _: 3
362
362
  })], 8, ["disabled"]);
363
363
  };
@@ -366,7 +366,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
366
366
  Menu: "_Menu_dbnyw_2",
367
367
  item: "_item_dbnyw_15",
368
368
  text: "_text_dbnyw_30"
369
- } }], ["__scopeId", "data-v-b819a3a9"]]), Z = (e, t) => {
369
+ } }], ["__scopeId", "data-v-e3f6e08d"]]), X = (e, t) => {
370
370
  k(() => t, () => {
371
371
  e && Object.entries(t).forEach(([t, n]) => {
372
372
  Object.entries(n).forEach(([n, r]) => {
@@ -378,12 +378,12 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
378
378
  deep: !0,
379
379
  immediate: !0
380
380
  });
381
- }, ie = [
381
+ }, ae = [
382
382
  "type",
383
383
  "value",
384
384
  "enterkeyhint",
385
385
  "placeholder"
386
- ], Q = /* @__PURE__ */ B(/* @__PURE__ */ u({
386
+ ], Z = /* @__PURE__ */ B(/* @__PURE__ */ u({
387
387
  __name: "Input",
388
388
  props: {
389
389
  type: { default: "text" },
@@ -405,7 +405,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
405
405
  }
406
406
  }), d;
407
407
  h(() => {
408
- c.value && (Z(c.value.$el, u), d = F(c.value.$el, ({ height: e }) => {
408
+ c.value && (X(c.value.$el, u), d = F(c.value.$el, ({ height: e }) => {
409
409
  u.Input.height = e, u.input.height = e - 2;
410
410
  }, !0));
411
411
  }), g(() => d());
@@ -421,7 +421,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
421
421
  v || n.onEnter?.(n.value);
422
422
  }, E = b(null), O = b(null), j = b(void 0);
423
423
  h(() => {
424
- n.type !== "select" || !O.value || !E.value || (j.value = Y(O.value, E.value));
424
+ n.type !== "select" || !O.value || !E.value || (j.value = q(O.value, E.value));
425
425
  }), g(() => {
426
426
  j.value?.cleanup();
427
427
  });
@@ -477,12 +477,12 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
477
477
  onCompositionend: x,
478
478
  onCompositionstart: C,
479
479
  placeholder: n.placeholder || "输入..."
480
- }, null, 42, ie)) : n.type === "select" ? (_(), o("div", {
480
+ }, null, 42, ae)) : n.type === "select" ? (_(), o("div", {
481
481
  key: 2,
482
482
  class: p(e.$style.select),
483
483
  ref_key: "selectRef",
484
484
  ref: O
485
- }, [s("span", { class: p(e.$style.text) }, w(n.value || n.placeholder || "选择..."), 3), l(X, {
485
+ }, [s("span", { class: p(e.$style.text) }, w(n.value || n.placeholder || "选择..."), 3), l(Y, {
486
486
  ref_key: "MenuRef",
487
487
  ref: E,
488
488
  visible: j.value?.visible ?? !1,
@@ -511,12 +511,12 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
511
511
  input: "_input_8s2zs_34",
512
512
  select: "_select_8s2zs_35",
513
513
  text: "_text_8s2zs_74"
514
- } }], ["__scopeId", "data-v-6c0e3b0a"]]), ae = [
514
+ } }], ["__scopeId", "data-v-6c0e3b0a"]]), oe = [
515
515
  "rows",
516
516
  "value",
517
517
  "enterkeyhint",
518
518
  "placeholder"
519
- ], $ = /* @__PURE__ */ B(/* @__PURE__ */ u({
519
+ ], Q = /* @__PURE__ */ B(/* @__PURE__ */ u({
520
520
  __name: "TextArea",
521
521
  props: {
522
522
  minrow: { default: 1 },
@@ -568,11 +568,11 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
568
568
  onCompositionstart: d,
569
569
  onCompositionend: u,
570
570
  placeholder: n.placeholder
571
- }, null, 40, ae)]),
571
+ }, null, 40, oe)]),
572
572
  _: 1
573
573
  }, 8, ["class"]));
574
574
  }
575
- }), [["__cssModules", { $style: { TextArea: "_TextArea_gsvo8_2" } }], ["__scopeId", "data-v-0abb3d4e"]]), oe = /* @__PURE__ */ B(/* @__PURE__ */ u({
575
+ }), [["__cssModules", { $style: { TextArea: "_TextArea_gsvo8_2" } }], ["__scopeId", "data-v-0abb3d4e"]]), se = /* @__PURE__ */ B(/* @__PURE__ */ u({
576
576
  __name: "Form",
577
577
  props: {
578
578
  config: {},
@@ -596,7 +596,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
596
596
  }, [s("span", {
597
597
  class: p(t.$style.name),
598
598
  style: m({ lineHeight: e.type === "textarea" ? "42px" : (e.size?.[1] ?? n.defaultSize?.[1] ?? 35) + "px" })
599
- }, w(e.name), 7), e.type === "textarea" ? (_(), i($, {
599
+ }, w(e.name), 7), e.type === "textarea" ? (_(), i(Q, {
600
600
  key: 0,
601
601
  class: p(t.$style.TextArea),
602
602
  ref_for: !0,
@@ -613,7 +613,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
613
613
  "enterkeyhint",
614
614
  "onChange",
615
615
  "onEnter"
616
- ])) : (_(), i(Q, {
616
+ ])) : (_(), i(Z, {
617
617
  key: 1,
618
618
  class: p(t.$style.Input),
619
619
  ref_for: !0,
@@ -641,7 +641,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
641
641
  FormItem: "_FormItem_1yqvr_9",
642
642
  Input: "_Input_1yqvr_15",
643
643
  TextArea: "_TextArea_1yqvr_16"
644
- } }]]), se = /* @__PURE__ */ B(/* @__PURE__ */ u({
644
+ } }]]), $ = /* @__PURE__ */ B(/* @__PURE__ */ u({
645
645
  __name: "Select",
646
646
  props: {
647
647
  options: {},
@@ -650,7 +650,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
650
650
  setup(e) {
651
651
  let t = e, n = b(null), r = b(null), i = b(null);
652
652
  return h(() => {
653
- !r.value || !n.value || (i.value = Y(r.value, n.value));
653
+ !r.value || !n.value || (i.value = q(r.value, n.value));
654
654
  }), (e, a) => (_(), o("span", {
655
655
  class: p([
656
656
  "lovelymai",
@@ -659,7 +659,7 @@ var W = ["title"], G = /* @__PURE__ */ B(/* @__PURE__ */ u({
659
659
  ]),
660
660
  ref_key: "SelectRef",
661
661
  ref: r
662
- }, [l(X, {
662
+ }, [l(Y, {
663
663
  ref_key: "MenuRef",
664
664
  ref: n,
665
665
  visible: i.value?.visible ?? !1,
@@ -758,7 +758,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
758
758
  onSlideClose: {}
759
759
  },
760
760
  setup(e) {
761
- E((e) => ({ v9d355374: i.value }));
761
+ E((e) => ({ v1ecd5a80: i.value }));
762
762
  let t = e, r = b(null), i = b("60px"), c;
763
763
  h(() => {
764
764
  r.value && (c = F(r.value, ({ height: e }) => {
@@ -782,13 +782,13 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
782
782
  }));
783
783
  }), g(() => {
784
784
  d.value?.cleanup();
785
- }), (e, i) => (_(), o("div", { class: p(e.$style.Drawer) }, [l(n, { name: "lovelymaid-fade" }, {
785
+ }), (e, i) => (_(), o("div", { class: p(e.$style.Drawer) }, [l(n, { name: "lovelymai-fade" }, {
786
786
  default: A(() => [t.showMask && f.value ? (_(), o("div", {
787
787
  key: 0,
788
788
  class: p(e.$style.mask)
789
789
  }, null, 2)) : a("", !0)]),
790
790
  _: 1
791
- }), l(n, { name: "lovelymaid-slide" }, {
791
+ }), l(n, { name: "lovelymai-slide" }, {
792
792
  default: A(() => [j(l(H, {
793
793
  class: p([e.$style.DrawerContainer, t.type === "desktop" ? e.$style.desktop : e.$style.mobile]),
794
794
  ref_key: "DrawerContainerRef",
@@ -830,10 +830,10 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
830
830
  },
831
831
  setup(e) {
832
832
  E((e) => ({
833
- v5a8ecb22: d.value,
834
- f3f5401c: y.value,
835
- v5a6cffad: l.value,
836
- e06b61d2: v.value
833
+ v0d6c9f65: d.value,
834
+ v21e2a462: y.value,
835
+ v0d4ad3f0: l.value,
836
+ v17de8098: v.value
837
837
  }));
838
838
  let t = e, n = () => {
839
839
  t.onSwitch?.();
@@ -860,7 +860,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
860
860
  class: p([r.$style.SwitchButton, { [r.$style.close]: !t.isOpen }]),
861
861
  onClick: n,
862
862
  title: e.isOpen ? "收起侧边栏" : "展开侧边栏"
863
- }, [...o[0] ||= [s("span", { class: "lovelymai lovely-sidebar_left" }, null, -1)]], 10, ue)], 2), S(r.$slots, "default", {}, () => [o[1] ||= c("这是内容", -1)], !0)]),
863
+ }, [...o[0] ||= [s("span", { class: "lovelymai lovely-left-sidebar" }, null, -1)]], 10, ue)], 2), S(r.$slots, "default", {}, () => [o[1] ||= c("这是内容", -1)], !0)]),
864
864
  _: 3
865
865
  }, 8, ["class"]));
866
866
  }
@@ -869,7 +869,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
869
869
  header: "_header_ag32y_8",
870
870
  SwitchButton: "_SwitchButton_ag32y_13",
871
871
  close: "_close_ag32y_32"
872
- } }], ["__scopeId", "data-v-1b51d6cf"]]), fe = { key: 0 }, pe = { key: 0 }, me = /* @__PURE__ */ B(/* @__PURE__ */ u({
872
+ } }], ["__scopeId", "data-v-9b448158"]]), fe = { key: 0 }, pe = { key: 0 }, me = /* @__PURE__ */ B(/* @__PURE__ */ u({
873
873
  __name: "TabBar",
874
874
  props: {
875
875
  tabs: {},
@@ -914,7 +914,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
914
914
  }
915
915
  }), d = b(0), f, m, v, C, T, E;
916
916
  h(() => {
917
- r.value && (Z(r.value, u), f = F(r.value, () => {
917
+ r.value && (X(r.value, u), f = F(r.value, () => {
918
918
  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.tabs.length, u["content-top"].clipLeft = n.activeIndex * u.slide.width, u["content-top"].clipRight = u["content-top"].clipLeft + u.slide.width, d.value = (u.Bar.width - 6) * (n.tabs.length - 1) / n.tabs.length, u.slide.translateX = n.activeIndex * u.slide.width, u.slide.center = u.slide.translateX + u.slide.width / 2;
919
919
  }, !0), setTimeout(() => {
920
920
  u.Bar.transition = "width .3s, height .3s, transform .2s";
@@ -942,26 +942,26 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
942
942
  t();
943
943
  }, 8));
944
944
  }, L = (e) => {
945
+ u.slide.transition = "transform .5s, background .1s", I(T), u.slide.translateX = e * u.slide.width, I(m, v), P(500);
946
+ }, R = (e) => {
945
947
  M = Date.now(), E = setTimeout(() => {
946
948
  u.slide.background = "#fff";
947
- }, 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, N(e, "start"), I(m, v), P(500), document.addEventListener("pointermove", R), document.addEventListener("pointerup", B);
948
- }, R = (e) => {
949
+ }, 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, N(e, "start"), I(m, v), P(500), document.addEventListener("pointermove", z), document.addEventListener("pointerup", B);
950
+ }, z = (e) => {
949
951
  if (!C) {
950
952
  if (W.value) return W.value = !1;
951
953
  I(T), N(e, "move"), I(m, v), P(void 0), C = setTimeout(() => C = void 0, 8);
952
954
  }
953
- }, z = (e) => {
954
- u.slide.transition = "transform .5s, background .1s", I(T), u.slide.translateX = e * u.slide.width, I(m, v), P(500);
955
955
  }, B = (e) => {
956
- if (Date.now() - M < 100 && I(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.Bar.scale = 1, u.slide.scale = 1, W.value) W.value = !1, z(n.activeIndex);
956
+ if (Date.now() - M < 100 && I(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.Bar.scale = 1, u.slide.scale = 1, W.value) W.value = !1, L(n.activeIndex);
957
957
  else {
958
958
  let t = e.clientX - U(i.value), r = Math.floor(t / u.slide.width), a = r > n.tabs.length - 1 ? n.tabs.length - 1 : r < 0 ? 0 : r;
959
- n.onTabClick(n.tabs[a], a), a === n.activeIndex && z(n.activeIndex);
959
+ n.onTabClick(n.tabs[a], a), a === n.activeIndex && L(n.activeIndex);
960
960
  }
961
- D = !1, document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", B);
961
+ D = !1, document.removeEventListener("pointermove", z), document.removeEventListener("pointerup", B);
962
962
  };
963
963
  k(() => n.activeIndex, (e) => {
964
- z(e);
964
+ L(e);
965
965
  }), k(() => n.tabs.length, () => {
966
966
  u.slide.translateX = 0;
967
967
  });
@@ -982,7 +982,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
982
982
  class: p(u.$style.content),
983
983
  ref_key: "contentRef",
984
984
  ref: i,
985
- onPointerdown: L
985
+ onPointerdown: R
986
986
  }, [
987
987
  j(s("li", { class: p([u.$style.tab, u.$style.small]) }, [S(u.$slots, "default", {
988
988
  item: n.tabs[t.activeIndex],
@@ -1019,7 +1019,7 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
1019
1019
  }, {
1020
1020
  default: A(() => [...d[0] ||= [s("span", { class: "lovelymai lovely-search button" }, null, -1)]]),
1021
1021
  _: 1
1022
- }, 8, ["class"]), [[O, !G.value]]), j(l(Q, {
1022
+ }, 8, ["class"]), [[O, !G.value]]), j(l(Z, {
1023
1023
  class: p(u.$style.Input),
1024
1024
  type: "text",
1025
1025
  value: n.value,
@@ -1050,63 +1050,87 @@ var le = /* @__PURE__ */ B(/* @__PURE__ */ u({
1050
1050
  Button: "_Button_bcygi_89",
1051
1051
  Input: "_Input_bcygi_94",
1052
1052
  slide: "_slide_bcygi_99"
1053
- } }]]), he = ["onPointerdown"], ge = /* @__PURE__ */ B(/* @__PURE__ */ u({
1053
+ } }]]), he = ["onClick"], ge = ["data-index"], _e = /* @__PURE__ */ B(/* @__PURE__ */ u({
1054
1054
  __name: "Table",
1055
1055
  props: {
1056
- config: {},
1057
- data: {},
1056
+ columns: {},
1057
+ rows: {},
1058
1058
  activeIndexes: { default: () => /* @__PURE__ */ new Set() },
1059
- onActiveChange: {}
1059
+ onActiveChange: {},
1060
+ sort: {},
1061
+ onSortChange: {}
1060
1062
  },
1061
1063
  setup(t) {
1062
- let n = t, r, i = (e) => {
1064
+ let n = t, r = (e) => {
1065
+ if (!n.activeIndexes?.has(e)) return "8px";
1066
+ let t = n.activeIndexes.has(e - 1), r = n.activeIndexes.has(e + 1);
1067
+ return !t && !r ? "8px" : t && r ? "0" : !t && r ? "8px 8px 0 0" : "0 0 8px 8px";
1068
+ }, i, a = (e) => {
1063
1069
  let t = /* @__PURE__ */ new Set();
1064
1070
  for (let n of e) !e.has(n - 1) && !e.has(n + 1) && t.add(n);
1065
1071
  return t;
1066
- }, a = (e, t) => {
1067
- e.preventDefault();
1068
- let a = new Set(n.activeIndexes);
1069
- if (e.getModifierState("Meta")) n.activeIndexes.has(t) ? a.delete(t) : (a.add(t), r = t);
1072
+ }, c = (e, t) => {
1073
+ let r = new Set(n.activeIndexes);
1074
+ if (e.getModifierState("Meta")) n.activeIndexes.has(t) ? r.delete(t) : (r.add(t), i = t);
1070
1075
  else if (e.getModifierState("Shift") && n.activeIndexes.size > 0) {
1071
- a = i(a);
1072
- let e = Math.min(r ?? 0, t), n = Math.max(r ?? 0, t);
1073
- for (let t = e; t <= n; t++) a.add(t);
1074
- } else a = new Set([t]), r = t;
1075
- n.onActiveChange?.(a);
1076
- }, c = (e) => {
1077
- if (!n.activeIndexes?.has(e)) return "8px";
1078
- let t = n.activeIndexes.has(e - 1), r = n.activeIndexes.has(e + 1);
1079
- return !t && !r ? "8px" : t && r ? "0" : !t && r ? "8px 8px 0 0" : "0 0 8px 8px";
1076
+ r = a(r);
1077
+ let e = Math.min(i ?? 0, t), n = Math.max(i ?? 0, t);
1078
+ for (let t = e; t <= n; t++) r.add(t);
1079
+ } else r = new Set([t]), i = t;
1080
+ n.onActiveChange?.(r);
1081
+ }, l = (e) => {
1082
+ let t = e.target.closest("li");
1083
+ if (!t) return;
1084
+ let n = t.dataset.index;
1085
+ n !== void 0 && c(e, Number(n));
1086
+ }, u = (e, t) => {
1087
+ let r = n.columns.find((t) => t.id === e).prop, i = [...n.rows].sort((e, n) => t === "asc" ? e[r].localeCompare(n[r], void 0, { numeric: !0 }) : n[r].localeCompare(e[r], void 0, { numeric: !0 })), a = /* @__PURE__ */ new Set();
1088
+ for (let e of n.activeIndexes) {
1089
+ let t = n.rows[e], r = i.findIndex((e) => e.id === t.id);
1090
+ r !== -1 && a.add(r);
1091
+ }
1092
+ n.onSortChange({
1093
+ id: e,
1094
+ order: t
1095
+ }, i), n.onActiveChange?.(a);
1080
1096
  };
1081
- return (t, r) => (_(), o("div", { class: p(t.$style.Table) }, [s("ul", { class: p(t.$style.header) }, [(_(!0), o(e, null, x(n.config, (e) => (_(), o("li", {
1097
+ return u(n.sort.id, n.sort.order), (t, i) => (_(), o("div", { class: p(t.$style.Table) }, [s("ul", { class: p(t.$style.header) }, [(_(!0), o(e, null, x(n.columns, (e) => (_(), o("li", {
1082
1098
  class: p(t.$style.item),
1083
1099
  key: e.id,
1084
1100
  style: m({
1085
1101
  width: e.width + "px",
1086
- color: e.color ?? "#808080"
1087
- })
1088
- }, w(e.name), 7))), 128))], 2), s("ul", { class: p(t.$style.list) }, [(_(!0), o(e, null, x(n.data, (r, i) => (_(), o("li", {
1102
+ color: n.sort.id === e.id ? "#000" : "#808080"
1103
+ }),
1104
+ onClick: N(() => u(e.id, n.sort.order === "asc" ? "desc" : "asc"), ["stop"])
1105
+ }, [s("div", { class: p(t.$style.container) }, [s("span", { class: p(t.$style.text) }, w(e.name), 3), j(s("span", {
1106
+ class: "lovelymai lovely-down-arrow",
1107
+ style: m({ transform: n.sort.order === "asc" ? "rotate(180deg)" : "rotate(0deg)" })
1108
+ }, null, 4), [[O, e.id === n.sort.id]])], 2)], 14, he))), 128))], 2), s("ul", {
1109
+ class: p(t.$style.list),
1110
+ onPointerdown: N(l, ["stop", "prevent"])
1111
+ }, [(_(!0), o(e, null, x(n.rows, (i, a) => (_(), o("li", {
1089
1112
  class: p(t.$style.item),
1090
- key: r.id,
1113
+ key: i.id,
1091
1114
  style: m({
1092
- backgroundColor: n.activeIndexes?.has(i) ? "#2962D9" : void 0,
1093
- borderRadius: c(i)
1115
+ backgroundColor: n.activeIndexes?.has(a) ? "#2962D9" : void 0,
1116
+ borderRadius: r(a)
1094
1117
  }),
1095
- onPointerdown: N((e) => a(e, i), ["stop"])
1096
- }, [(_(!0), o(e, null, x(n.config, (e) => (_(), o("span", {
1118
+ "data-index": a
1119
+ }, [(_(!0), o(e, null, x(n.columns, (e) => (_(), o("span", {
1097
1120
  class: p(t.$style.text),
1098
1121
  key: e.id,
1099
1122
  style: m({
1100
1123
  width: e.width + "px",
1101
- color: n.activeIndexes?.has(i) ? e.color ? "#fff" : "#bfd0f4" : e.color ?? "#808080"
1124
+ color: n.activeIndexes?.has(a) ? n.sort.id === e.id ? "#fff" : "#bfd0f4" : n.sort.id === e.id ? "#000" : "#808080"
1102
1125
  })
1103
- }, w(r[e.prop]), 7))), 128))], 46, he))), 128))], 2)], 2));
1126
+ }, w(i[e.prop]), 7))), 128))], 14, ge))), 128))], 34)], 2));
1104
1127
  }
1105
1128
  }), [["__cssModules", { $style: {
1106
- header: "_header_1ffz0_2",
1107
- item: "_item_1ffz0_10",
1108
- list: "_list_1ffz0_21",
1109
- text: "_text_1ffz0_30"
1110
- } }]]);
1129
+ header: "_header_d5la3_2",
1130
+ item: "_item_d5la3_9",
1131
+ container: "_container_d5la3_14",
1132
+ text: "_text_d5la3_25",
1133
+ list: "_list_d5la3_34"
1134
+ } }], ["__scopeId", "data-v-4d400ca0"]]);
1111
1135
  //#endregion
1112
- export { V as Button, H as Card, G as ContentBar, ee as FoldList, oe as Form, Q as Input, le as Modal, se as Select, de as SideBar, me as TabBar, ge as Table, $ as TextArea };
1136
+ export { V as Button, H as Card, G as ContentBar, ne as FoldList, se as Form, Z as Input, le as Modal, $ as Select, de as SideBar, me as TabBar, _e as Table, Q as TextArea };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lovelymaid",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "一个基于 Vue 3, 模仿 iOS 26 风格的组件库",
5
5
  "license": "MIT",
6
6
  "keywords": [