@byteluck-fe/model-driven-settings 4.36.0-lx1 → 4.36.0-lx2

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/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # Settings
2
- 自定义控件设置
3
-
4
- ```
5
- │ defineInstance.ts // 定义控件函数
6
- │ index.ts
7
- │ initSettings.ts // 初始化setting,被外部引用
8
-
9
- ├─default // 内部默认值
10
- │ createBaseFields.ts // 基础控件的默认setting
11
- │ createFormBaseFields.ts // 表单控件的默认setting
12
- │ index.ts
13
-
14
- ├─props // 内置的setting控件
15
- │ base.ts
16
- │ checkbox.ts
17
- │ custom.ts
18
- │ input-number.ts
19
- │ input.ts
20
- │ radio.ts
21
- │ select.ts
22
- │ switch.ts
23
- │ textarea.ts
24
-
25
- └─schema // setting的容器和schema定义
26
- group.ts
27
- index.ts
28
- setting.ts
29
- tab.ts
30
- ```
1
+ # Settings
2
+ 自定义控件设置
3
+
4
+ ```
5
+ │ defineInstance.ts // 定义控件函数
6
+ │ index.ts
7
+ │ initSettings.ts // 初始化setting,被外部引用
8
+
9
+ ├─default // 内部默认值
10
+ │ createBaseFields.ts // 基础控件的默认setting
11
+ │ createFormBaseFields.ts // 表单控件的默认setting
12
+ │ index.ts
13
+
14
+ ├─props // 内置的setting控件
15
+ │ base.ts
16
+ │ checkbox.ts
17
+ │ custom.ts
18
+ │ input-number.ts
19
+ │ input.ts
20
+ │ radio.ts
21
+ │ select.ts
22
+ │ switch.ts
23
+ │ textarea.ts
24
+
25
+ └─schema // setting的容器和schema定义
26
+ group.ts
27
+ index.ts
28
+ setting.ts
29
+ tab.ts
30
+ ```
@@ -34,15 +34,15 @@ export var BaseProps = /*#__PURE__*/ function() {
34
34
  "use strict";
35
35
  function BaseProps(props) {
36
36
  _class_call_check(this, BaseProps);
37
- /**
38
- * 显示隐藏
37
+ /**
38
+ * 显示隐藏
39
39
  * */ _define_property(this, "visible", void 0);
40
- /**
41
- * 开启表达式
40
+ /**
41
+ * 开启表达式
42
42
  * */ _define_property(this, "expression", void 0);
43
- /**
44
- *
45
- * 是否改变父属性
43
+ /**
44
+ *
45
+ * 是否改变父属性
46
46
  */ _define_property(this, "updateParent", void 0);
47
47
  var _props_visible;
48
48
  this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;
@@ -1,2 +1,2 @@
1
- import { FieldSchema } from '../defineInstance';
2
- export declare function createBaseFields(): FieldSchema[];
1
+ import { FieldSchema } from '../defineInstance';
2
+ export declare function createBaseFields(): FieldSchema[];
@@ -1,3 +1,3 @@
1
- import { BaseControlProperty, DeepPartial } from '@byteluck-fe/model-driven-core';
2
- import { FieldSchema } from '../defineInstance';
3
- export declare function createFormBaseFields(defaultValues?: DeepPartial<BaseControlProperty>): FieldSchema[];
1
+ import { BaseControlProperty, DeepPartial } from '@byteluck-fe/model-driven-core';
2
+ import { FieldSchema } from '../defineInstance';
3
+ export declare function createFormBaseFields(defaultValues?: DeepPartial<BaseControlProperty>): FieldSchema[];
@@ -1,2 +1,2 @@
1
- export * from './createBaseFields';
2
- export * from './createFormBaseFields';
1
+ export * from './createBaseFields';
2
+ export * from './createFormBaseFields';
@@ -1,79 +1,79 @@
1
- import type { BaseSchema, GroupSchema } from './schema';
2
- import { InputProps } from './props/input';
3
- import { InputNumberProps } from './props/input-number';
4
- import { SwitchProps } from './props/switch';
5
- import { SelectProps } from './props/select';
6
- import { CheckboxProps } from './props/checkbox';
7
- import { RadioProps } from './props/radio';
8
- import { TextareaProps } from './props/textarea';
9
- import { CustomProps } from './props/custom';
10
- import { TabSchema } from './schema/tab';
11
- import { CustomEventItem, InnerEventCode } from '@byteluck-fe/model-driven-shared';
12
- interface InputSchema extends BaseSchema<InputProps> {
13
- /**
14
- * 输入框
15
- * */
16
- component: 'input';
17
- props?: Partial<InputProps>;
18
- }
19
- interface InputNumberSchema extends BaseSchema<InputNumberProps> {
20
- /**
21
- * 数字输入框
22
- * */
23
- component: 'input-number';
24
- props?: Partial<InputNumberProps>;
25
- }
26
- interface TextareaSchema extends BaseSchema<TextareaProps> {
27
- /**
28
- * 长文本输入框
29
- * */
30
- component: 'textarea';
31
- props?: Partial<TextareaProps>;
32
- }
33
- interface SwitchSchema extends BaseSchema<SwitchProps> {
34
- /**
35
- * 切换
36
- * */
37
- component: 'switch';
38
- props?: Partial<SwitchProps>;
39
- }
40
- interface SelectSchema extends BaseSchema<SelectProps> {
41
- /**
42
- * 下拉单选
43
- * */
44
- component: 'select';
45
- props?: Partial<SelectProps>;
46
- }
47
- interface CheckboxSchema extends BaseSchema<CheckboxProps> {
48
- /**
49
- * 多选框
50
- * */
51
- component: 'checkbox';
52
- props?: Partial<CheckboxProps>;
53
- }
54
- interface RadioSchema extends BaseSchema<RadioProps> {
55
- /**
56
- * 单选框
57
- * */
58
- component: 'radio';
59
- props?: Partial<RadioProps>;
60
- }
61
- interface CustomSchema extends BaseSchema<CustomProps> {
62
- component: string;
63
- props?: Partial<CustomProps>;
64
- }
65
- export type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
66
- export interface RuntimeValidator {
67
- (props: any, value: unknown, i18n: string): string | boolean | void;
68
- }
69
- export type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
- export type GroupsSchema = GroupSchema[] | TabSchema[];
71
- export interface DefineInstanceParams {
72
- fields: FieldSchema[];
73
- groups: GroupsSchema;
74
- runtimeValidator?: RuntimeValidator;
75
- events?: InnerEventCode[];
76
- customEvents?: CustomEventItem[];
77
- }
78
- export declare function defineInstance(params: DefineInstanceParams): DefineInstanceParams;
79
- export {};
1
+ import type { BaseSchema, GroupSchema } from './schema';
2
+ import { InputProps } from './props/input';
3
+ import { InputNumberProps } from './props/input-number';
4
+ import { SwitchProps } from './props/switch';
5
+ import { SelectProps } from './props/select';
6
+ import { CheckboxProps } from './props/checkbox';
7
+ import { RadioProps } from './props/radio';
8
+ import { TextareaProps } from './props/textarea';
9
+ import { CustomProps } from './props/custom';
10
+ import { TabSchema } from './schema/tab';
11
+ import { CustomEventItem, InnerEventCode } from '@byteluck-fe/model-driven-shared';
12
+ interface InputSchema extends BaseSchema<InputProps> {
13
+ /**
14
+ * 输入框
15
+ * */
16
+ component: 'input';
17
+ props?: Partial<InputProps>;
18
+ }
19
+ interface InputNumberSchema extends BaseSchema<InputNumberProps> {
20
+ /**
21
+ * 数字输入框
22
+ * */
23
+ component: 'input-number';
24
+ props?: Partial<InputNumberProps>;
25
+ }
26
+ interface TextareaSchema extends BaseSchema<TextareaProps> {
27
+ /**
28
+ * 长文本输入框
29
+ * */
30
+ component: 'textarea';
31
+ props?: Partial<TextareaProps>;
32
+ }
33
+ interface SwitchSchema extends BaseSchema<SwitchProps> {
34
+ /**
35
+ * 切换
36
+ * */
37
+ component: 'switch';
38
+ props?: Partial<SwitchProps>;
39
+ }
40
+ interface SelectSchema extends BaseSchema<SelectProps> {
41
+ /**
42
+ * 下拉单选
43
+ * */
44
+ component: 'select';
45
+ props?: Partial<SelectProps>;
46
+ }
47
+ interface CheckboxSchema extends BaseSchema<CheckboxProps> {
48
+ /**
49
+ * 多选框
50
+ * */
51
+ component: 'checkbox';
52
+ props?: Partial<CheckboxProps>;
53
+ }
54
+ interface RadioSchema extends BaseSchema<RadioProps> {
55
+ /**
56
+ * 单选框
57
+ * */
58
+ component: 'radio';
59
+ props?: Partial<RadioProps>;
60
+ }
61
+ interface CustomSchema extends BaseSchema<CustomProps> {
62
+ component: string;
63
+ props?: Partial<CustomProps>;
64
+ }
65
+ export type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
66
+ export interface RuntimeValidator {
67
+ (props: any, value: unknown, i18n: string): string | boolean | void;
68
+ }
69
+ export type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
+ export type GroupsSchema = GroupSchema[] | TabSchema[];
71
+ export interface DefineInstanceParams {
72
+ fields: FieldSchema[];
73
+ groups: GroupsSchema;
74
+ runtimeValidator?: RuntimeValidator;
75
+ events?: InnerEventCode[];
76
+ customEvents?: CustomEventItem[];
77
+ }
78
+ export declare function defineInstance(params: DefineInstanceParams): DefineInstanceParams;
79
+ export {};
@@ -1,4 +1,4 @@
1
- export * from './defineInstance';
2
- export * from './initSettings';
3
- export * from './schema';
4
- export * from './default';
1
+ export * from './defineInstance';
2
+ export * from './initSettings';
3
+ export * from './schema';
4
+ export * from './default';
@@ -1,14 +1,14 @@
1
- import { Group } from './schema';
2
- import { CustomProps } from './props/custom';
3
- import { InputProps } from './props/input';
4
- import { InputNumberProps } from './props/input-number';
5
- import { SwitchProps } from './props/switch';
6
- import { DefineInstanceParams } from './defineInstance';
7
- import { CheckboxProps } from './props/checkbox';
8
- import { SelectProps } from './props/select';
9
- import { RadioProps } from './props/radio';
10
- import { TextareaProps } from './props/textarea';
11
- import { Tab } from './schema/tab';
12
- export type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
- export type Settings = Group[] | Tab[];
14
- export declare function initSettings(params: DefineInstanceParams): Settings;
1
+ import { Group } from './schema';
2
+ import { CustomProps } from './props/custom';
3
+ import { InputProps } from './props/input';
4
+ import { InputNumberProps } from './props/input-number';
5
+ import { SwitchProps } from './props/switch';
6
+ import { DefineInstanceParams } from './defineInstance';
7
+ import { CheckboxProps } from './props/checkbox';
8
+ import { SelectProps } from './props/select';
9
+ import { RadioProps } from './props/radio';
10
+ import { TextareaProps } from './props/textarea';
11
+ import { Tab } from './schema/tab';
12
+ export type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
+ export type Settings = Group[] | Tab[];
14
+ export declare function initSettings(params: DefineInstanceParams): Settings;
@@ -1,21 +1,21 @@
1
- export declare class BaseProps {
2
- /**
3
- * 显示隐藏
4
- * */
5
- visible: boolean;
6
- /**
7
- * 开启表达式
8
- * */
9
- expression: boolean;
10
- /**
11
- *
12
- * 是否改变父属性
13
- */
14
- updateParent: boolean;
15
- constructor(props?: Partial<BaseProps>);
16
- get isAtomicComponent(): boolean;
17
- }
18
- export interface OptionItem {
19
- label: string;
20
- value: string;
21
- }
1
+ export declare class BaseProps {
2
+ /**
3
+ * 显示隐藏
4
+ * */
5
+ visible: boolean;
6
+ /**
7
+ * 开启表达式
8
+ * */
9
+ expression: boolean;
10
+ /**
11
+ *
12
+ * 是否改变父属性
13
+ */
14
+ updateParent: boolean;
15
+ constructor(props?: Partial<BaseProps>);
16
+ get isAtomicComponent(): boolean;
17
+ }
18
+ export interface OptionItem {
19
+ label: string;
20
+ value: string;
21
+ }
@@ -1,5 +1,5 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class CheckboxProps extends BaseProps {
3
- options: OptionItem[];
4
- constructor(props?: Partial<CheckboxProps>);
5
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class CheckboxProps extends BaseProps {
3
+ options: OptionItem[];
4
+ constructor(props?: Partial<CheckboxProps>);
5
+ }
@@ -1,5 +1,5 @@
1
- import { BaseProps } from './base';
2
- export declare class CustomProps extends BaseProps {
3
- [key: string]: unknown;
4
- constructor(props?: Partial<CustomProps>);
5
- }
1
+ import { BaseProps } from './base';
2
+ export declare class CustomProps extends BaseProps {
3
+ [key: string]: unknown;
4
+ constructor(props?: Partial<CustomProps>);
5
+ }
@@ -1,7 +1,7 @@
1
- import { BaseProps } from './base';
2
- export declare class InputNumberProps extends BaseProps {
3
- max: number | '';
4
- min: number | '';
5
- placeholder: string;
6
- constructor(props?: Partial<InputNumberProps>);
7
- }
1
+ import { BaseProps } from './base';
2
+ export declare class InputNumberProps extends BaseProps {
3
+ max: number | '';
4
+ min: number | '';
5
+ placeholder: string;
6
+ constructor(props?: Partial<InputNumberProps>);
7
+ }
@@ -1,8 +1,8 @@
1
- import { BaseProps } from './base';
2
- export declare class InputProps extends BaseProps {
3
- maxLength: number | '';
4
- minLength: number | '';
5
- placeholder: string;
6
- i18n: boolean;
7
- constructor(props?: Partial<InputProps>);
8
- }
1
+ import { BaseProps } from './base';
2
+ export declare class InputProps extends BaseProps {
3
+ maxLength: number | '';
4
+ minLength: number | '';
5
+ placeholder: string;
6
+ i18n: boolean;
7
+ constructor(props?: Partial<InputProps>);
8
+ }
@@ -1,6 +1,6 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class RadioProps extends BaseProps {
3
- options: OptionItem[];
4
- showType: 'solid' | 'outline';
5
- constructor(props?: Partial<RadioProps>);
6
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class RadioProps extends BaseProps {
3
+ options: OptionItem[];
4
+ showType: 'solid' | 'outline';
5
+ constructor(props?: Partial<RadioProps>);
6
+ }
@@ -1,6 +1,6 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class SelectProps extends BaseProps {
3
- placeholder: string;
4
- options: OptionItem[];
5
- constructor(props?: Partial<SelectProps>);
6
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class SelectProps extends BaseProps {
3
+ placeholder: string;
4
+ options: OptionItem[];
5
+ constructor(props?: Partial<SelectProps>);
6
+ }
@@ -1,7 +1,7 @@
1
- import { BaseProps } from './base';
2
- export declare class SwitchProps extends BaseProps {
3
- showType: 'switch' | 'checkbox';
4
- tips: string;
5
- disabled: boolean;
6
- constructor(props?: Partial<SwitchProps>);
7
- }
1
+ import { BaseProps } from './base';
2
+ export declare class SwitchProps extends BaseProps {
3
+ showType: 'switch' | 'checkbox';
4
+ tips: string;
5
+ disabled: boolean;
6
+ constructor(props?: Partial<SwitchProps>);
7
+ }
@@ -1,10 +1,10 @@
1
- import { BaseProps } from './base';
2
- export declare class TextareaProps extends BaseProps {
3
- maxLength: number | '';
4
- minLength: number | '';
5
- placeholder: string;
6
- i18n: boolean;
7
- maxRows: number | '';
8
- minRows: number | '';
9
- constructor(props?: Partial<TextareaProps>);
10
- }
1
+ import { BaseProps } from './base';
2
+ export declare class TextareaProps extends BaseProps {
3
+ maxLength: number | '';
4
+ minLength: number | '';
5
+ placeholder: string;
6
+ i18n: boolean;
7
+ maxRows: number | '';
8
+ minRows: number | '';
9
+ constructor(props?: Partial<TextareaProps>);
10
+ }
@@ -1,19 +1,19 @@
1
- import { Setting } from './setting';
2
- export interface GroupSchema {
3
- title?: string;
4
- required?: boolean;
5
- items: string[];
6
- tips?: string;
7
- }
8
- export declare class Group {
9
- type: "group";
10
- title: string;
11
- required: boolean;
12
- items: Setting[];
13
- tips?: string;
14
- fromId?: string;
15
- visible?: boolean;
16
- constructor(schema: Omit<GroupSchema, 'items'> & {
17
- items: Setting[];
18
- });
19
- }
1
+ import { Setting } from './setting';
2
+ export interface GroupSchema {
3
+ title?: string;
4
+ required?: boolean;
5
+ items: string[];
6
+ tips?: string;
7
+ }
8
+ export declare class Group {
9
+ type: "group";
10
+ title: string;
11
+ required: boolean;
12
+ items: Setting[];
13
+ tips?: string;
14
+ fromId?: string;
15
+ visible?: boolean;
16
+ constructor(schema: Omit<GroupSchema, 'items'> & {
17
+ items: Setting[];
18
+ });
19
+ }
@@ -1,3 +1,3 @@
1
- export * from './setting';
2
- export * from './group';
3
- export * from './tab';
1
+ export * from './setting';
2
+ export * from './group';
3
+ export * from './tab';
@@ -1,69 +1,69 @@
1
- import { BaseProps } from '../props/base';
2
- export interface EffectFn<Props extends object> {
3
- (driven: any, payload: any): void | Partial<Props>;
4
- }
5
- export type SupportedDataTypes = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'DataBind' | 'DataSourceBind';
6
- export type Validator<P extends any = any, T extends any = any> = (props: P, value: T) => boolean | string | void;
7
- export interface BaseSchema<Props extends object> {
8
- /**
9
- * 数据类型,
10
- * 会根据对应的数据类型生成一个property
11
- * */
12
- type?: SupportedDataTypes;
13
- /**
14
- * 部分component的标题,例如:switch
15
- * */
16
- label?: string;
17
- /**
18
- * 唯一标识符
19
- * 有type字段的时候,key代表生成的property的键
20
- * 有component字段的时候,用于在groups中对应当前component
21
- * 以上两种情况允许同时存在
22
- * */
23
- key: string;
24
- /**
25
- * 控件类型
26
- * */
27
- component?: string;
28
- /**
29
- * property副作用函数
30
- * 执行时机:在选中控件的那一刻以对象的key的顺序触发一次,并在之后property发生改变的时候触发对应的函数
31
- *
32
- * effect对象的key为其它property的key,这个key必须对应一个property,不然永远不会触发,
33
- * 如果这个property是内置对象类型,如DataBind,那也可以是dataBind.fieldCode这样的key
34
- * effect对象的值是一个副作用函数
35
- * */
36
- effect?: Record<string, EffectFn<Props>>;
37
- /**
38
- * 数据作用域副作用函数
39
- * 执行时机:在选中控件的那一刻触发一次,并在之后控件的数据作用域发生变化的时候执行
40
- * */
41
- scopeEffect?: EffectFn<Props>;
42
- /**
43
- * 仅当配置项有type字段,生成一个property的时候生效,代表property的默认值
44
- * */
45
- defaultValue?: unknown;
46
- /**
47
- * 仅当配置项有type字段,校验对应property的值
48
- * */
49
- validator?: Validator;
50
- }
51
- export declare class Setting<Props extends BaseProps = BaseProps> {
52
- type?: SupportedDataTypes;
53
- label?: string;
54
- key: string;
55
- component?: string;
56
- effect: Record<string, EffectFn<BaseProps>>;
57
- scopeEffect: EffectFn<BaseProps>;
58
- defaultValue?: unknown;
59
- validator?: Validator;
60
- props: BaseProps;
61
- private effectKeys;
62
- constructor(schema: BaseSchema<BaseProps> & {
63
- props?: BaseProps;
64
- });
65
- filterEffects(effectKey: string): EffectFn<BaseProps>[];
66
- callEffectFn(effectFn: EffectFn<BaseProps>, args: Parameters<EffectFn<BaseProps>>): void;
67
- callEffect(effectKey: string, ...args: Parameters<EffectFn<BaseProps>>): void;
68
- callScopeEffect(...args: Parameters<EffectFn<BaseProps>>): void;
69
- }
1
+ import { BaseProps } from '../props/base';
2
+ export interface EffectFn<Props extends object> {
3
+ (driven: any, payload: any): void | Partial<Props>;
4
+ }
5
+ export type SupportedDataTypes = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'DataBind' | 'DataSourceBind';
6
+ export type Validator<P extends any = any, T extends any = any> = (props: P, value: T) => boolean | string | void;
7
+ export interface BaseSchema<Props extends object> {
8
+ /**
9
+ * 数据类型,
10
+ * 会根据对应的数据类型生成一个property
11
+ * */
12
+ type?: SupportedDataTypes;
13
+ /**
14
+ * 部分component的标题,例如:switch
15
+ * */
16
+ label?: string;
17
+ /**
18
+ * 唯一标识符
19
+ * 有type字段的时候,key代表生成的property的键
20
+ * 有component字段的时候,用于在groups中对应当前component
21
+ * 以上两种情况允许同时存在
22
+ * */
23
+ key: string;
24
+ /**
25
+ * 控件类型
26
+ * */
27
+ component?: string;
28
+ /**
29
+ * property副作用函数
30
+ * 执行时机:在选中控件的那一刻以对象的key的顺序触发一次,并在之后property发生改变的时候触发对应的函数
31
+ *
32
+ * effect对象的key为其它property的key,这个key必须对应一个property,不然永远不会触发,
33
+ * 如果这个property是内置对象类型,如DataBind,那也可以是dataBind.fieldCode这样的key
34
+ * effect对象的值是一个副作用函数
35
+ * */
36
+ effect?: Record<string, EffectFn<Props>>;
37
+ /**
38
+ * 数据作用域副作用函数
39
+ * 执行时机:在选中控件的那一刻触发一次,并在之后控件的数据作用域发生变化的时候执行
40
+ * */
41
+ scopeEffect?: EffectFn<Props>;
42
+ /**
43
+ * 仅当配置项有type字段,生成一个property的时候生效,代表property的默认值
44
+ * */
45
+ defaultValue?: unknown;
46
+ /**
47
+ * 仅当配置项有type字段,校验对应property的值
48
+ * */
49
+ validator?: Validator;
50
+ }
51
+ export declare class Setting<Props extends BaseProps = BaseProps> {
52
+ type?: SupportedDataTypes;
53
+ label?: string;
54
+ key: string;
55
+ component?: string;
56
+ effect: Record<string, EffectFn<BaseProps>>;
57
+ scopeEffect: EffectFn<BaseProps>;
58
+ defaultValue?: unknown;
59
+ validator?: Validator;
60
+ props: BaseProps;
61
+ private effectKeys;
62
+ constructor(schema: BaseSchema<BaseProps> & {
63
+ props?: BaseProps;
64
+ });
65
+ filterEffects(effectKey: string): EffectFn<BaseProps>[];
66
+ callEffectFn(effectFn: EffectFn<BaseProps>, args: Parameters<EffectFn<BaseProps>>): void;
67
+ callEffect(effectKey: string, ...args: Parameters<EffectFn<BaseProps>>): void;
68
+ callScopeEffect(...args: Parameters<EffectFn<BaseProps>>): void;
69
+ }
@@ -1,15 +1,15 @@
1
- import { Group, GroupSchema } from './group';
2
- export declare function isTabSchema(schema: Record<string, any>): schema is TabSchema;
3
- export interface TabSchema {
4
- type: 'tab';
5
- title: string;
6
- items: GroupSchema[];
7
- }
8
- export declare class Tab {
9
- type: "tab";
10
- title: string;
11
- items: Group[];
12
- constructor(schema: Omit<TabSchema, 'items'> & {
13
- items: Group[];
14
- });
15
- }
1
+ import { Group, GroupSchema } from './group';
2
+ export declare function isTabSchema(schema: Record<string, any>): schema is TabSchema;
3
+ export interface TabSchema {
4
+ type: 'tab';
5
+ title: string;
6
+ items: GroupSchema[];
7
+ }
8
+ export declare class Tab {
9
+ type: "tab";
10
+ title: string;
11
+ items: Group[];
12
+ constructor(schema: Omit<TabSchema, 'items'> & {
13
+ items: Group[];
14
+ });
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-settings",
3
- "version": "4.36.0-lx1",
3
+ "version": "4.36.0-lx2",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "4.36.0-lx1",
29
+ "@byteluck-fe/model-driven-core": "4.36.0-lx2",
30
30
  "@byteluck-fe/model-driven-shared": "2.9.1-beta.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "e025fedefd536dab28b2d153831869d6ec5b4645"
33
+ "gitHead": "867a3a2b9bd62b7279cf01baee7a9dbd1fff8ed4"
34
34
  }