@byteluck-fe/model-driven-controls 7.0.0-props.33 → 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.
@@ -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';
@@ -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.33",
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": "a85d43441ad3ea723eedb55c892df8585c47ad72"
34
+ "gitHead": "92f9a2df3b6eb3e6142bebd9fc636722876893b3"
35
35
  }