xto-fronted 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FilterBar.vue.d.ts +48 -0
- package/dist/components/TableCard.vue.d.ts +23 -0
- package/dist/{index-U6a8866w.js → index-BARaN_X9.js} +1 -1
- package/dist/{index-DkpGZDBh.js → index-Bae5aKOp.js} +1 -1
- package/dist/{index-B6OJp8lX.js → index-BuduWJdN.js} +1 -1
- package/dist/index-CoJBjzC9.js +3452 -0
- package/dist/{index-rfFkJbFI.js → index-CoJj_x19.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +100 -98
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/FilterBar.vue +156 -0
- package/src/components/Layout/Sidebar.vue +5 -0
- package/src/components/Layout/SidebarMenuItem.vue +70 -37
- package/src/components/Layout/index.vue +16 -2
- package/src/components/TableCard.vue +72 -0
- package/src/index.ts +2 -0
- package/dist/index-BGjN8fL4.js +0 -3268
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
model: Record<string, any>;
|
|
3
|
+
collapsible?: boolean;
|
|
4
|
+
collapsedCount?: number;
|
|
5
|
+
defaultCollapsed?: boolean;
|
|
6
|
+
searchText?: string;
|
|
7
|
+
resetText?: string;
|
|
8
|
+
searchLoading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {
|
|
16
|
+
formRef: unknown;
|
|
17
|
+
};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
22
|
+
/** 展开筛选项 */
|
|
23
|
+
expand: () => void;
|
|
24
|
+
/** 收起筛选项 */
|
|
25
|
+
collapse: () => void;
|
|
26
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
search: () => any;
|
|
28
|
+
reset: () => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onSearch?: (() => any) | undefined;
|
|
31
|
+
onReset?: (() => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
collapsible: boolean;
|
|
34
|
+
collapsedCount: number;
|
|
35
|
+
defaultCollapsed: boolean;
|
|
36
|
+
searchText: string;
|
|
37
|
+
resetText: string;
|
|
38
|
+
searchLoading: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
+
formRef: unknown;
|
|
41
|
+
}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 卡片标题(header 左侧),也可用 #header 插槽自定义 */
|
|
3
|
+
title?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
header?(_: {}): any;
|
|
9
|
+
actions?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as l, resolveComponent as g, openBlock as o, createElementBlock as a, createElementVNode as s, Fragment as n, renderList as c, normalizeStyle as M, toDisplayString as i, normalizeClass as v, createBlock as w, withCtx as x, createVNode as r, unref as d } from "vue";
|
|
2
2
|
import { Progress as u } from "@xto/data";
|
|
3
|
-
import { _ as b } from "./index-
|
|
3
|
+
import { _ as b } from "./index-CoJBjzC9.js";
|
|
4
4
|
const Z = { class: "dashboard" }, C = { class: "stats-section" }, U = { class: "stat-icon" }, q = ["d"], B = { class: "stat-content" }, F = { class: "stat-title" }, V = { class: "stat-value" }, L = {
|
|
5
5
|
key: 0,
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
@@ -3,7 +3,7 @@ import { Form as S, FormItem as c, Input as x, Select as W, Switch as U } from "
|
|
|
3
3
|
import { Tag as X, Pagination as Y } from "@xto/data";
|
|
4
4
|
import { Popconfirm as Z, Modal as ee, Message as C } from "@xto/feedback";
|
|
5
5
|
import { Space as D, Button as g } from "@xto/base";
|
|
6
|
-
import { S as d, a as te, _ as le } from "./index-
|
|
6
|
+
import { S as d, a as te, _ as le } from "./index-CoJBjzC9.js";
|
|
7
7
|
const se = { class: "user-page" }, ae = { class: "search-section" }, oe = { class: "table-section" }, ne = { class: "table-toolbar" }, ie = { class: "toolbar-left" }, de = { class: "toolbar-right" }, re = { class: "table-count" }, ue = { class: "table-wrapper" }, me = { class: "data-table" }, ce = { key: 0 }, pe = { key: 1 }, ve = { class: "col-id" }, fe = { class: "id-badge" }, he = { class: "col-user" }, ge = { class: "user-info" }, ke = { class: "user-avatar" }, _e = { class: "user-detail" }, ye = { class: "user-nickname" }, xe = { class: "user-username" }, be = { class: "col-contact" }, Ve = { class: "contact-info" }, Ee = { class: "contact-email" }, Be = { class: "contact-phone" }, Ce = { class: "col-roles" }, De = { class: "role-tags" }, Le = { class: "col-status" }, Ae = { class: "status-switch" }, we = { class: "col-time" }, ze = { class: "time-text" }, Ne = { class: "col-actions" }, Se = { class: "pagination-wrapper" }, Ue = { class: "status-field" }, Me = { class: "status-label" }, Te = /* @__PURE__ */ R({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(Fe) {
|
|
@@ -3,7 +3,7 @@ import { Form as N, FormItem as v, Input as x, Select as Q, Switch as S } from "
|
|
|
3
3
|
import { Tag as W, Pagination as X } from "@xto/data";
|
|
4
4
|
import { Popconfirm as Y, Modal as Z, Message as C } from "@xto/feedback";
|
|
5
5
|
import { Space as L, Button as f } from "@xto/base";
|
|
6
|
-
import { S as d, a as ee, _ as te } from "./index-
|
|
6
|
+
import { S as d, a as ee, _ as te } from "./index-CoJBjzC9.js";
|
|
7
7
|
const le = { class: "role-page" }, se = { class: "search-section" }, oe = { class: "table-section" }, ae = { class: "table-toolbar" }, ne = { class: "toolbar-left" }, ie = { class: "toolbar-right" }, de = { class: "table-count" }, re = { class: "table-wrapper" }, ue = { class: "data-table" }, ce = { key: 0 }, pe = { key: 1 }, me = { class: "col-id" }, ve = { class: "id-badge" }, fe = { class: "col-name" }, ge = { class: "role-name" }, ye = { class: "col-code" }, _e = { class: "col-desc" }, ke = { class: "desc-text" }, he = { class: "col-status" }, xe = { class: "status-switch" }, Ve = { class: "col-time" }, Ee = { class: "time-text" }, be = { class: "col-actions" }, Be = { class: "pagination-wrapper" }, Ce = { class: "status-field" }, Le = { class: "status-label" }, De = /* @__PURE__ */ P({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(we) {
|