@byteluck-fe/model-driven-controls 7.0.0-props.32 → 7.0.0-props.34
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/esm/baseControls/Link/designer.js +0 -8
- package/dist/esm/baseControls/Link/property.js +9 -10
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/formControls/Department2/designer.js +0 -4
- package/dist/esm/formControls/Department2/property.js +14 -15
- package/dist/esm/formControls/Employee2/designer.js +0 -4
- package/dist/esm/formControls/Employee2/property.js +12 -13
- package/dist/esm/formControls/RichText/designer.js +2 -8
- package/dist/esm/formControls/RichText/property.js +23 -49
- package/dist/esm/formControls/Slider/designer.js +192 -0
- package/dist/esm/formControls/Slider/index.js +11 -0
- package/dist/esm/formControls/Slider/property.js +167 -0
- package/dist/esm/formControls/Slider/runtime.js +114 -0
- package/dist/esm/formControls/Slider/schema.json +186 -0
- package/dist/esm/formControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Link/property.d.ts +0 -21
- package/dist/types/formControls/Department2/property.d.ts +0 -7
- package/dist/types/formControls/Employee2/property.d.ts +0 -7
- package/dist/types/formControls/RichText/property.d.ts +0 -14
- package/dist/types/formControls/Slider/designer.d.ts +15 -0
- package/dist/types/formControls/Slider/index.d.ts +12 -0
- package/dist/types/formControls/Slider/property.d.ts +65 -0
- package/dist/types/formControls/Slider/runtime.d.ts +12 -0
- package/dist/types/formControls/index.d.ts +2 -0
- package/dist/types/type.d.ts +2 -1
- package/package.json +2 -2
|
@@ -10,12 +10,6 @@ interface LinkPropertyInterface extends PropertyInterface {
|
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
12
|
content: string;
|
|
13
|
-
/**
|
|
14
|
-
* 描述
|
|
15
|
-
* @defaultValue ''
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
description: string;
|
|
19
13
|
/**
|
|
20
14
|
* 链接地址
|
|
21
15
|
* @defaultValue ''
|
|
@@ -34,18 +28,6 @@ interface LinkPropertyInterface extends PropertyInterface {
|
|
|
34
28
|
* @public
|
|
35
29
|
*/
|
|
36
30
|
color: 'primary' | 'danger' | 'warning' | 'success' | 'info' | 'blue';
|
|
37
|
-
/**
|
|
38
|
-
* 脚本类型;取值:dynamic:动态脚本;js:JavaScript;
|
|
39
|
-
* @defaultValue 'js'
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
scriptType: 'dynamic' | 'js';
|
|
43
|
-
/**
|
|
44
|
-
* 脚本内容
|
|
45
|
-
* @defaultValue ''
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
scriptContent: string;
|
|
49
31
|
/**
|
|
50
32
|
* 打开方式;取值:new:新页面;current:当前;
|
|
51
33
|
* @defaultValue 'new'
|
|
@@ -62,11 +44,8 @@ interface LinkPropertyInterface extends PropertyInterface {
|
|
|
62
44
|
declare class LinkProperty extends Property implements LinkPropertyInterface {
|
|
63
45
|
content: string;
|
|
64
46
|
url: string;
|
|
65
|
-
description: string;
|
|
66
47
|
position: 'left' | 'center' | 'right';
|
|
67
48
|
color: 'primary' | 'danger' | 'warning' | 'success' | 'info' | 'blue';
|
|
68
|
-
scriptType: 'dynamic' | 'js';
|
|
69
|
-
scriptContent: string;
|
|
70
49
|
openMode: 'new' | 'current';
|
|
71
50
|
icon: string;
|
|
72
51
|
constructor(props?: Partial<LinkProperty>);
|
|
@@ -45,12 +45,6 @@ interface Department2PropertyInterface extends BaseControlPropertyInterface {
|
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
47
|
defaultValue: string[];
|
|
48
|
-
/**
|
|
49
|
-
* 存储值格式;取值:id:仅存储 id;json:存储完整 JSON;
|
|
50
|
-
* @defaultValue 'id'
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
valueFormat: 'id' | 'json';
|
|
54
48
|
/**
|
|
55
49
|
* 部门显示层级
|
|
56
50
|
* @defaultValue 1
|
|
@@ -121,7 +115,6 @@ declare class Department2Property extends BaseControlProperty implements Departm
|
|
|
121
115
|
multiple: boolean;
|
|
122
116
|
rangeOptions: string[];
|
|
123
117
|
defaultValue: string[];
|
|
124
|
-
valueFormat: 'id' | 'json';
|
|
125
118
|
displayLevel: number;
|
|
126
119
|
showSubDept: boolean;
|
|
127
120
|
multistageFilling?: MultistageFillingItem[];
|
|
@@ -45,12 +45,6 @@ interface Employee2PropertyInterface extends BaseControlPropertyInterface {
|
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
47
|
defaultValue: string[];
|
|
48
|
-
/**
|
|
49
|
-
* 存储值格式;取值:id:仅存储 id;json:存储完整 JSON;
|
|
50
|
-
* @defaultValue 'id'
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
valueFormat: 'id' | 'json';
|
|
54
48
|
/**
|
|
55
49
|
* 多级填充
|
|
56
50
|
* @defaultValue []
|
|
@@ -115,7 +109,6 @@ declare class Employee2Property extends BaseControlProperty implements Employee2
|
|
|
115
109
|
multiple: boolean;
|
|
116
110
|
defaultValueType: 'none' | 'current' | 'assigned';
|
|
117
111
|
defaultValue: string[];
|
|
118
|
-
valueFormat: 'id' | 'json';
|
|
119
112
|
multistageFilling?: MultistageFillingItem[];
|
|
120
113
|
datasourceBind: SuperDataSourceBind;
|
|
121
114
|
datasourceType: string;
|
|
@@ -26,18 +26,6 @@ interface RichTextPropertyInterface extends BaseControlPropertyInterface {
|
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
minLength: number;
|
|
29
|
-
/**
|
|
30
|
-
* 高度
|
|
31
|
-
* @defaultValue 400
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
height: number;
|
|
35
|
-
/**
|
|
36
|
-
* 工具栏选项
|
|
37
|
-
* @defaultValue ['undo', 'redo', '|', 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|', 'alignleft', 'aligncenter', 'alignright', 'alignjustify', 'outdent', 'indent', '|', 'styles', 'fontfamily', 'fontsize', '|', 'bullist', 'numlist', '|', 'blockquote', 'subscript', 'superscript', 'removeformat', '|', 'table', 'image', 'hr', 'preview', '|', 'fullscreen']
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
toolbarOptions: Array<string>;
|
|
41
29
|
/**
|
|
42
30
|
* 默认值
|
|
43
31
|
* @defaultValue ''
|
|
@@ -80,8 +68,6 @@ declare class RichTextProperty extends BaseControlProperty implements RichTextPr
|
|
|
80
68
|
static readonly RuntimeRules: typeof RichTextControlPropertyRuntimeRules;
|
|
81
69
|
maxLength: number;
|
|
82
70
|
minLength: number;
|
|
83
|
-
height: number;
|
|
84
|
-
toolbarOptions: Array<string>;
|
|
85
71
|
defaultValue: string;
|
|
86
72
|
aiContentSearch: boolean;
|
|
87
73
|
aiGeneration: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import SliderProperty from './property';
|
|
4
|
+
declare class SliderControl extends DesignerFormControl {
|
|
5
|
+
static controlEventKeys: string[];
|
|
6
|
+
static get controlName(): string;
|
|
7
|
+
static get controlType(): string;
|
|
8
|
+
static get controlIcon(): string;
|
|
9
|
+
static controlFieldType: FieldTypes;
|
|
10
|
+
static readonly setting: SettingOption[];
|
|
11
|
+
readonly props: SliderProperty;
|
|
12
|
+
constructor(props?: Partial<Schema<'slider'>>);
|
|
13
|
+
}
|
|
14
|
+
export default SliderControl;
|
|
15
|
+
export { SliderControl as DesignerSliderControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_slider
|
|
3
|
+
* description: 滑块组件,用于在连续范围内快速选择数值。适合进度、权重、阈值等场景,支持默认值、最小值、最大值、步长、提示标签和控制按钮配置。
|
|
4
|
+
*/
|
|
5
|
+
import { RuleItem } from 'async-validator';
|
|
6
|
+
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
7
|
+
interface SliderPropertyInterface extends BaseControlPropertyInterface {
|
|
8
|
+
/**
|
|
9
|
+
* 默认值
|
|
10
|
+
* @defaultValue ''
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
defaultValue: number | '';
|
|
14
|
+
/**
|
|
15
|
+
* 最小值
|
|
16
|
+
* @defaultValue 0
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
min: number | '';
|
|
20
|
+
/**
|
|
21
|
+
* 最大值
|
|
22
|
+
* @defaultValue 100
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
max: number | '';
|
|
26
|
+
/**
|
|
27
|
+
* 步长
|
|
28
|
+
* @defaultValue 1
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
step: number;
|
|
32
|
+
/**
|
|
33
|
+
* 是否显示提示标签
|
|
34
|
+
* @defaultValue true
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
showTooltip: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 是否使用控制按钮(左右+-按钮)
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
controls: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare class SliderPropertyRules extends BaseControlPropertyRules {
|
|
46
|
+
defaultValue: RuleItem[];
|
|
47
|
+
max: RuleItem;
|
|
48
|
+
constructor(props: SliderProperty);
|
|
49
|
+
}
|
|
50
|
+
declare class SliderPropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
51
|
+
constructor(props: SliderProperty);
|
|
52
|
+
}
|
|
53
|
+
declare class SliderProperty extends BaseControlProperty implements SliderPropertyInterface {
|
|
54
|
+
static readonly Rules: typeof SliderPropertyRules;
|
|
55
|
+
static readonly RuntimeRules: typeof SliderPropertyRuntimeRules;
|
|
56
|
+
defaultValue: number | '';
|
|
57
|
+
min: number | '';
|
|
58
|
+
max: number | '';
|
|
59
|
+
step: number;
|
|
60
|
+
showTooltip: boolean;
|
|
61
|
+
controls: boolean;
|
|
62
|
+
constructor(props?: Partial<SliderProperty>);
|
|
63
|
+
}
|
|
64
|
+
export default SliderProperty;
|
|
65
|
+
export { SliderProperty, SliderPropertyInterface, SliderPropertyRules, SliderPropertyRuntimeRules, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import SliderProperty from './property';
|
|
4
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class SliderControl extends RuntimeFormControl {
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly props: SliderProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'slider'>>);
|
|
10
|
+
}
|
|
11
|
+
export default SliderControl;
|
|
12
|
+
export { SliderControl as RuntimeSliderControl };
|
|
@@ -10,6 +10,8 @@ export { default as Radio } from './Radio';
|
|
|
10
10
|
export type { RadioPropertyInterface } from './Radio';
|
|
11
11
|
export { default as Number } from './Number';
|
|
12
12
|
export type { NumberPropertyInterface } from './Number';
|
|
13
|
+
export { default as Slider } from './Slider';
|
|
14
|
+
export type { SliderPropertyInterface } from './Slider';
|
|
13
15
|
export { default as DatePicker } from './DatePicker';
|
|
14
16
|
export type { DatePickerPropertyInterface } from './DatePicker';
|
|
15
17
|
export { default as DateRange } from './DateRange';
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
|
|
2
|
-
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage } from './formControls';
|
|
2
|
+
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Slider, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage } from './formControls';
|
|
3
3
|
import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar, Step, StepPane, TableLayout, TableLayoutRow, TableLayoutCol, TableLayoutWrapper, Collapse, CollapsePane } from './layoutControls';
|
|
4
4
|
import { SubTable, GridTable } from './listControls';
|
|
5
5
|
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn, ApprovalStatusColumn, GroupColumn } from './columnControls';
|
|
@@ -49,6 +49,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
49
49
|
employee: typeof Employee;
|
|
50
50
|
image: typeof Image;
|
|
51
51
|
number: typeof Number;
|
|
52
|
+
slider: typeof Slider;
|
|
52
53
|
radio: typeof Radio;
|
|
53
54
|
score: typeof Score;
|
|
54
55
|
textarea: typeof Textarea;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.34",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@byteluck-fe/model-driven-shared": "7.0.0-props.32",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "92f9a2df3b6eb3e6142bebd9fc636722876893b3"
|
|
35
35
|
}
|