bilitoolkit-ui 0.1.1 → 0.1.3
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/bilitoolkit-ui.css +1 -1
- package/dist/index.d.ts +70 -4
- package/dist/index.js +2934 -1446
- package/package.json +13 -8
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { ModelRef } from 'vue';
|
|
|
20
20
|
import { Pinia } from 'pinia';
|
|
21
21
|
import { PublicProps } from 'vue';
|
|
22
22
|
import { Ref } from 'vue';
|
|
23
|
+
import { Resolver } from '@ybgnb/utils';
|
|
23
24
|
import { ShallowRef } from 'vue';
|
|
24
25
|
import { ShallowUnwrapRef } from 'vue';
|
|
25
26
|
import { StoreDefinition } from 'pinia';
|
|
@@ -94,6 +95,10 @@ declare type __VLS_PrettifyLocal_2<T> = {
|
|
|
94
95
|
[K in keyof T]: T[K];
|
|
95
96
|
} & {};
|
|
96
97
|
|
|
98
|
+
declare type __VLS_PrettifyLocal_3<T> = {
|
|
99
|
+
[K in keyof T]: T[K];
|
|
100
|
+
} & {};
|
|
101
|
+
|
|
97
102
|
declare type __VLS_Props = {
|
|
98
103
|
name: string;
|
|
99
104
|
};
|
|
@@ -164,6 +169,10 @@ declare type __VLS_Props_22 = {
|
|
|
164
169
|
small?: boolean;
|
|
165
170
|
};
|
|
166
171
|
|
|
172
|
+
declare type __VLS_Props_23 = {
|
|
173
|
+
content: string;
|
|
174
|
+
};
|
|
175
|
+
|
|
167
176
|
declare type __VLS_Props_3 = CountdownDialogProps;
|
|
168
177
|
|
|
169
178
|
declare type __VLS_Props_4 = PageRangeDialogProps;
|
|
@@ -1552,6 +1561,12 @@ logBoxRef: HTMLDivElement;
|
|
|
1552
1561
|
}, HTMLDivElement>;
|
|
1553
1562
|
export { LogPrint_2 as LogPrint }
|
|
1554
1563
|
|
|
1564
|
+
declare const OverflowText_2: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1565
|
+
containerRef: HTMLDivElement;
|
|
1566
|
+
textRef: HTMLSpanElement;
|
|
1567
|
+
}, any>;
|
|
1568
|
+
export { OverflowText_2 as OverflowText }
|
|
1569
|
+
|
|
1555
1570
|
export declare interface PageData {
|
|
1556
1571
|
pageNum: number;
|
|
1557
1572
|
pageSize: number;
|
|
@@ -1594,8 +1609,8 @@ export declare interface PageResult<D> extends PageData {
|
|
|
1594
1609
|
data: D[];
|
|
1595
1610
|
}
|
|
1596
1611
|
|
|
1597
|
-
declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
1598
|
-
props:
|
|
1612
|
+
declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1613
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
1599
1614
|
readonly onSearch?: (() => any) | undefined;
|
|
1600
1615
|
readonly onReset?: (() => any) | undefined;
|
|
1601
1616
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
|
|
@@ -1743,8 +1758,13 @@ declare const SelectDialog_2: <T = unknown>(__VLS_props: NonNullable<Awaited<typ
|
|
|
1743
1758
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
1744
1759
|
attrs: any;
|
|
1745
1760
|
slots: {
|
|
1746
|
-
|
|
1747
|
-
|
|
1761
|
+
list?(_: {}): any;
|
|
1762
|
+
item?(_: {
|
|
1763
|
+
item: T;
|
|
1764
|
+
}): any;
|
|
1765
|
+
'item-label'?(_: {
|
|
1766
|
+
item: T;
|
|
1767
|
+
}): any;
|
|
1748
1768
|
};
|
|
1749
1769
|
emit: ((evt: "confirm", list: T[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
1750
1770
|
}>) => VNode & {
|
|
@@ -1808,6 +1828,8 @@ export declare function showToast({ message, type, duration, }: {
|
|
|
1808
1828
|
duration?: number;
|
|
1809
1829
|
}): void;
|
|
1810
1830
|
|
|
1831
|
+
export declare const showVirtualSelectDialog: <DATA = unknown, ID_KEY extends keyof DATA = keyof DATA>(options: VirtualSelectDialogProps<DATA, ID_KEY>) => Promise<DATA[] | undefined>;
|
|
1832
|
+
|
|
1811
1833
|
/**
|
|
1812
1834
|
* 显示警告提示
|
|
1813
1835
|
*/
|
|
@@ -2024,6 +2046,50 @@ fields: AvailableStat[];
|
|
|
2024
2046
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2025
2047
|
export { VideoStatsInfo_2 as VideoStatsInfo }
|
|
2026
2048
|
|
|
2049
|
+
declare const VirtualSelectDialog_2: <DATA = unknown, ID_KEY extends keyof DATA = keyof DATA>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2050
|
+
props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
|
|
2051
|
+
readonly onConfirm?: ((list: DATA[]) => any) | undefined;
|
|
2052
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2053
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onConfirm" | "onUpdate:modelValue"> & ({
|
|
2054
|
+
modelValue: boolean;
|
|
2055
|
+
} & VirtualSelectDialogProps<DATA, ID_KEY>) & Partial<{}>> & PublicProps;
|
|
2056
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
2057
|
+
attrs: any;
|
|
2058
|
+
slots: {
|
|
2059
|
+
list?(_: {}): any;
|
|
2060
|
+
item?(_: {
|
|
2061
|
+
item: DATA;
|
|
2062
|
+
index: number;
|
|
2063
|
+
}): any;
|
|
2064
|
+
'prefix-icon'?(_: {
|
|
2065
|
+
selected: boolean;
|
|
2066
|
+
}): any;
|
|
2067
|
+
'item-label'?(_: {
|
|
2068
|
+
item: DATA;
|
|
2069
|
+
index: number;
|
|
2070
|
+
}): any;
|
|
2071
|
+
};
|
|
2072
|
+
emit: ((evt: "confirm", list: DATA[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
2073
|
+
}>) => VNode & {
|
|
2074
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2075
|
+
};
|
|
2076
|
+
export { VirtualSelectDialog_2 as VirtualSelectDialog }
|
|
2077
|
+
|
|
2078
|
+
export declare interface VirtualSelectDialogProps<DATA = unknown, ID_KEY extends keyof DATA = keyof DATA> {
|
|
2079
|
+
title?: string;
|
|
2080
|
+
options: Resolver<DATA[]>;
|
|
2081
|
+
defaultSelectedIds?: Resolver<DATA[ID_KEY][]>;
|
|
2082
|
+
getDataLabel: (data: DATA) => string;
|
|
2083
|
+
idKey: ID_KEY;
|
|
2084
|
+
multiple?: boolean;
|
|
2085
|
+
canSelectAll?: boolean;
|
|
2086
|
+
confirmText?: string;
|
|
2087
|
+
cancelText?: string;
|
|
2088
|
+
noSelectionTip?: string;
|
|
2089
|
+
itemHeight?: number | ((data: DATA) => number);
|
|
2090
|
+
itemWidth?: number;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2027
2093
|
declare const visible: ModelRef<boolean, string, boolean, boolean>;
|
|
2028
2094
|
|
|
2029
2095
|
export declare const whiteColor = "#ffffff";
|