bilitoolkit-ui 0.1.2 → 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 +60 -4
- package/dist/index.js +2829 -1407
- package/package.json +12 -7
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
|
};
|
|
@@ -1604,8 +1609,8 @@ export declare interface PageResult<D> extends PageData {
|
|
|
1604
1609
|
data: D[];
|
|
1605
1610
|
}
|
|
1606
1611
|
|
|
1607
|
-
declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
1608
|
-
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<{
|
|
1609
1614
|
readonly onSearch?: (() => any) | undefined;
|
|
1610
1615
|
readonly onReset?: (() => any) | undefined;
|
|
1611
1616
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
|
|
@@ -1753,8 +1758,13 @@ declare const SelectDialog_2: <T = unknown>(__VLS_props: NonNullable<Awaited<typ
|
|
|
1753
1758
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
1754
1759
|
attrs: any;
|
|
1755
1760
|
slots: {
|
|
1756
|
-
|
|
1757
|
-
|
|
1761
|
+
list?(_: {}): any;
|
|
1762
|
+
item?(_: {
|
|
1763
|
+
item: T;
|
|
1764
|
+
}): any;
|
|
1765
|
+
'item-label'?(_: {
|
|
1766
|
+
item: T;
|
|
1767
|
+
}): any;
|
|
1758
1768
|
};
|
|
1759
1769
|
emit: ((evt: "confirm", list: T[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
1760
1770
|
}>) => VNode & {
|
|
@@ -1818,6 +1828,8 @@ export declare function showToast({ message, type, duration, }: {
|
|
|
1818
1828
|
duration?: number;
|
|
1819
1829
|
}): void;
|
|
1820
1830
|
|
|
1831
|
+
export declare const showVirtualSelectDialog: <DATA = unknown, ID_KEY extends keyof DATA = keyof DATA>(options: VirtualSelectDialogProps<DATA, ID_KEY>) => Promise<DATA[] | undefined>;
|
|
1832
|
+
|
|
1821
1833
|
/**
|
|
1822
1834
|
* 显示警告提示
|
|
1823
1835
|
*/
|
|
@@ -2034,6 +2046,50 @@ fields: AvailableStat[];
|
|
|
2034
2046
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2035
2047
|
export { VideoStatsInfo_2 as VideoStatsInfo }
|
|
2036
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
|
+
|
|
2037
2093
|
declare const visible: ModelRef<boolean, string, boolean, boolean>;
|
|
2038
2094
|
|
|
2039
2095
|
export declare const whiteColor = "#ffffff";
|