@dazhicheng/ui 1.5.122 → 1.5.123
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-form/src/hooks/useSelectCollapse.d.ts +2 -4
- package/dist/components/tt-form/src/types.d.ts +2 -2
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +1 -1
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +1 -1
- package/dist/hooks/useBudinessData.d.ts +0 -21
- package/dist/hooks/useFormSchemasLink.d.ts +21 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10967 -11416
- package/package.json +1 -1
- package/dist/hooks/useElementScreenshot.d.ts +0 -27
- /package/dist/components/tt-panel-select/src/{props.d.ts → types.d.ts} +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { MaybeRef,
|
|
1
|
+
import { MaybeRef, ShallowRef, ComputedRef, Component } from 'vue';
|
|
2
2
|
import { BaseFormComponentMap } from '../types';
|
|
3
|
-
import { TtApiComponent } from '../../../tt-api-component';
|
|
4
|
-
import { ElSelect, ElSelectV2 } from 'element-plus';
|
|
5
3
|
type CollapseOptions = {
|
|
6
4
|
componentProps: MaybeRef<any>;
|
|
7
5
|
component: keyof BaseFormComponentMap | Component;
|
|
8
6
|
selectWrapRef: Readonly<ShallowRef<HTMLElement | null>>;
|
|
9
|
-
selectRef:
|
|
7
|
+
selectRef: any;
|
|
10
8
|
};
|
|
11
9
|
export declare function useSelectCollapseOptions(data: ComputedRef<CollapseOptions>): {
|
|
12
10
|
selectComponentProps: ComputedRef<any>;
|
|
@@ -8,7 +8,7 @@ import { TtUploadProps } from '../../tt-upload';
|
|
|
8
8
|
import { Props as TtApiComponentProps } from '../../tt-api-component';
|
|
9
9
|
import { Recordable } from '../../../../../utils/src';
|
|
10
10
|
import { FieldEntry, FieldArrayContext } from './types/forms';
|
|
11
|
-
import {
|
|
11
|
+
import { PanelContainerProps } from '../../tt-panel-select';
|
|
12
12
|
import { FormApi } from './formApi';
|
|
13
13
|
export type FormLayout = "horizontal" | "inline" | "vertical";
|
|
14
14
|
export interface BaseFormComponentMap {
|
|
@@ -31,7 +31,7 @@ export interface BaseFormComponentMap {
|
|
|
31
31
|
TtUpload: TtUploadProps;
|
|
32
32
|
ElColorPicker: ColorPickerProps;
|
|
33
33
|
TtApiComponent: TtApiComponentProps<Component>;
|
|
34
|
-
TtPanelSelect:
|
|
34
|
+
TtPanelSelect: PanelContainerProps;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* 表单组件类型字符串联合类型
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
|
-
import { PanelSelectValue, PanelMiddleProps } from '../
|
|
2
|
+
import { PanelSelectValue, PanelMiddleProps } from '../types';
|
|
3
3
|
declare function scrollToGroup(groupValue: PanelSelectValue): Promise<void>;
|
|
4
4
|
declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
5
5
|
scrollToGroup: typeof scrollToGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, WritableComputedRef } from 'vue';
|
|
2
|
-
import { PanelSelectModelValue, PanelSelectValue } from '../
|
|
2
|
+
import { PanelSelectModelValue, PanelSelectValue } from '../types';
|
|
3
3
|
import { OptionGroup, PanelTreeNode } from './usePanelData';
|
|
4
4
|
type UsePanelSelectSelectionParams = {
|
|
5
5
|
multiple: Readonly<Ref<boolean>>;
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 数据权限接口支持的联动数据类型。
|
|
3
|
-
*
|
|
4
|
-
* - platformId:平台
|
|
5
|
-
* - shopId:店铺,默认会跟随平台值联动过滤
|
|
6
|
-
* - purchasePlaceId:采购地
|
|
7
|
-
* - businessType:业务线
|
|
8
|
-
* - lockUserId:锁单人
|
|
9
|
-
*/
|
|
10
|
-
export type DataType = "platformId" | "shopId" | "purchasePlaceId" | "businessType" | "lockUserId";
|
|
11
|
-
/**
|
|
12
|
-
* ElSelectV2 消费的统一选项结构。
|
|
13
|
-
*/
|
|
14
|
-
export type SelectOption = Recordable & {
|
|
15
|
-
/** 展示文案 */
|
|
16
|
-
label: string;
|
|
17
|
-
/** 选项值 */
|
|
18
|
-
value: string | number;
|
|
19
|
-
/** 店铺所属平台 id,用于平台和店铺联动过滤 */
|
|
20
|
-
platformId?: string | number;
|
|
21
|
-
};
|
|
22
1
|
export declare function useBudinessData(): void;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { TtFormSchema } from '../components/tt-form';
|
|
2
2
|
import { Recordable } from '../../../utils/src';
|
|
3
3
|
import { MaybeRef, Ref } from 'vue';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 数据权限接口支持的联动数据类型。
|
|
6
|
+
*
|
|
7
|
+
* - platformId:平台
|
|
8
|
+
* - shopId:店铺,默认会跟随平台值联动过滤
|
|
9
|
+
* - purchasePlaceId:采购地
|
|
10
|
+
* - businessType:业务线
|
|
11
|
+
* - lockUserId:锁单人
|
|
12
|
+
*/
|
|
13
|
+
export type DataType = "platformId" | "shopId" | "purchasePlaceId" | "businessType" | "lockUserId";
|
|
5
14
|
/**
|
|
6
15
|
* 表单使用场景。
|
|
7
16
|
*
|
|
@@ -68,6 +77,17 @@ export interface UseFormSchemasLinkOptions {
|
|
|
68
77
|
/** Schema 级覆盖。传函数时可基于默认 schema 做增量修改。 */
|
|
69
78
|
schemas?: Partial<Record<DataType, FieldSchemaConfig>>;
|
|
70
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* ElSelectV2 消费的统一选项结构。
|
|
82
|
+
*/
|
|
83
|
+
export type SelectOption = Recordable & {
|
|
84
|
+
/** 展示文案 */
|
|
85
|
+
label: string;
|
|
86
|
+
/** 选项值 */
|
|
87
|
+
value: string | number;
|
|
88
|
+
/** 店铺所属平台 id,用于平台和店铺联动过滤 */
|
|
89
|
+
platformId?: string | number;
|
|
90
|
+
};
|
|
71
91
|
/**
|
|
72
92
|
* 构建后的表单 schema 集合。
|
|
73
93
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export * from './components/tt-panel-select';
|
|
|
25
25
|
export { useFormSchemasLink } from './hooks/useFormSchemasLink';
|
|
26
26
|
export { useFormat } from './hooks/useFormat';
|
|
27
27
|
export { useLoading } from './hooks/useLoading';
|
|
28
|
-
export { useElementScreenshot } from './hooks/useElementScreenshot';
|
|
29
28
|
export { setXHR };
|
|
30
29
|
/**
|
|
31
30
|
* 表单组件适配器
|