@dazhicheng/ui 1.5.59 → 1.5.61
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/tt-api-component/index.d.ts +2 -2
- package/dist/components/tt-api-component/types.d.ts +1 -4
- package/dist/components/tt-form/src/group-form/lazyContext.d.ts +5 -0
- package/dist/components/tt-form/src/types.d.ts +1 -1
- package/dist/components/tt-log/index.d.ts +6 -0
- package/dist/components/tt-log/index.vue.d.ts +5 -0
- package/dist/components/tt-log/types.d.ts +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4319 -4291
- package/dist/style.css +1 -1
- package/dist/utils/xhr.d.ts +4 -0
- package/package.json +5 -3
|
@@ -20,8 +20,8 @@ export declare const TtApiComponent: import('../../../../utils/src').SFCWithInst
|
|
|
20
20
|
optionsPropName?: string | undefined;
|
|
21
21
|
immediate?: boolean | undefined;
|
|
22
22
|
alwaysLoad?: boolean | undefined;
|
|
23
|
-
beforeFetch?: import('
|
|
24
|
-
afterFetch?: import('
|
|
23
|
+
beforeFetch?: import('../../../../utils/src').AnyPromiseFunction<any, any> | undefined;
|
|
24
|
+
afterFetch?: import('../../../../utils/src').AnyPromiseFunction<any, any> | undefined;
|
|
25
25
|
options?: import('./types').OptionsItem[] | undefined;
|
|
26
26
|
loadingSlot?: string | undefined;
|
|
27
27
|
visibleEvent?: string | undefined;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Component, ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { AnyPromiseFunction } from '../../../../utils/src';
|
|
2
3
|
/**
|
|
3
4
|
* @description 根据组件定义类型推导 `<component :is>` 上 `ref` 得到的实例类型(如 `DefineComponent` 可用构造签名推断,否则回退为 `ComponentPublicInstance`)
|
|
4
5
|
*/
|
|
5
6
|
export type ComponentInstanceOf<T extends Component> = T extends abstract new (...args: any) => infer I ? I : ComponentPublicInstance;
|
|
6
|
-
/**
|
|
7
|
-
* 任意类型的异步函数
|
|
8
|
-
*/
|
|
9
|
-
export type AnyPromiseFunction<T extends any[] = any[], R = void> = (...arg: T) => PromiseLike<R>;
|
|
10
7
|
export type OptionsItem = {
|
|
11
8
|
[name: string]: any;
|
|
12
9
|
children?: OptionsItem[];
|
|
@@ -40,3 +40,8 @@ export declare const RENDER_SCHEDULER_KEY: InjectionKey<RenderScheduler>;
|
|
|
40
40
|
* 当分组的 ifShow 求值结果变化时,GroupSection 调用此回调通知 API 层同步隐藏状态。
|
|
41
41
|
*/
|
|
42
42
|
export declare const GROUP_VISIBILITY_CALLBACK_KEY: InjectionKey<(key: string, visible: boolean) => void>;
|
|
43
|
+
/**
|
|
44
|
+
* 当外部通过 formApi.setGroupVisible(key, false) 隐藏分组时,
|
|
45
|
+
* GroupSection 读取此集合决定是否渲染,实现 API 驱动的分组显隐。
|
|
46
|
+
*/
|
|
47
|
+
export declare const HIDDEN_GROUP_KEYS_KEY: InjectionKey<Set<string>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as TtLogConstructor } from './index.vue';
|
|
2
|
+
export declare const TtLog: import('../../../../utils/src').SFCWithInstall<import('vue').DefineComponent<import('./types').TtLogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').TtLogProps> & Readonly<{}>, {
|
|
3
|
+
tableProps: import('../tt-table').TtTableProps;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
|
5
|
+
export type TtLogInstance = InstanceType<typeof TtLogConstructor>;
|
|
6
|
+
export default TtLog;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TtLogProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<TtLogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TtLogProps> & Readonly<{}>, {
|
|
3
|
+
tableProps: import('../tt-table').TtTableProps;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App, Component } from 'vue';
|
|
2
2
|
import { BaseFormComponentType } from './components/tt-form';
|
|
3
|
+
import { setXHR } from './utils/xhr';
|
|
3
4
|
export * from './components/tt-area';
|
|
4
5
|
export * from './components/tt-button';
|
|
5
6
|
export * from './components/tt-checkbox';
|
|
@@ -19,8 +20,10 @@ export * from './components/tt-table';
|
|
|
19
20
|
export * from './components/tt-upload';
|
|
20
21
|
export * from './components/tt-nav-anchor';
|
|
21
22
|
export * from './components/tt-api-component';
|
|
23
|
+
export * from './components/tt-log';
|
|
22
24
|
export { useFormat } from './hooks/useFormat';
|
|
23
25
|
export { useLoading } from './hooks/useLoading';
|
|
26
|
+
export { setXHR };
|
|
24
27
|
/**
|
|
25
28
|
* 表单组件适配器
|
|
26
29
|
* @param options 适配器选项
|