guava-ui 0.1.0 → 0.1.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.
- package/lib/guava-ui.es.js +182 -182
- package/lib/guava-ui.es.js.map +1 -1
- package/lib/guava-ui.umd.js +2 -2
- package/lib/guava-ui.umd.js.map +1 -1
- package/lib/types/index.d.ts +6 -6
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -168,6 +168,12 @@ export declare const listToTree: <T = any>(list: any[], config?: Partial<TreeHel
|
|
|
168
168
|
|
|
169
169
|
declare const newPropTypes: PropTypes;
|
|
170
170
|
|
|
171
|
+
export declare const notify: {
|
|
172
|
+
alert: (msg: unknown, type?: MessageType) => Promise<void>;
|
|
173
|
+
message: (msg: unknown, type?: MessageType, tableedit?: boolean) => Promise<void>;
|
|
174
|
+
confirm: (msg: string, type?: MessageType) => Promise<unknown>;
|
|
175
|
+
};
|
|
176
|
+
|
|
171
177
|
export declare const pathResolve: (parentPath: string, path: string) => string;
|
|
172
178
|
|
|
173
179
|
declare type PropTypes = VueTypesInterface & {
|
|
@@ -212,12 +218,6 @@ export declare const useCrud: () => {
|
|
|
212
218
|
fetchData: <T = any>(fetch: any, params: any) => Promise<IResponse<T>>;
|
|
213
219
|
};
|
|
214
220
|
|
|
215
|
-
export declare const useNotify: () => {
|
|
216
|
-
alert: (msg: unknown, type?: MessageType) => Promise<void>;
|
|
217
|
-
message: (msg: unknown, type?: MessageType, tableedit?: boolean) => Promise<void>;
|
|
218
|
-
confirm: (msg: string, type?: MessageType) => Promise<unknown>;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
221
|
export declare function usePinyin(): {
|
|
222
222
|
toPinyin: (text: string, withTone?: boolean) => string;
|
|
223
223
|
getFirstLetter: (text: string) => string;
|