@byteluck-fe/model-driven-controls 7.0.0-props.37 → 7.0.0-props.38
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/api-doc-index.js +1 -0
- package/dist/esm/formControls/Tag/designer.js +275 -0
- package/dist/esm/formControls/Tag/index.js +11 -0
- package/dist/esm/formControls/Tag/property.js +138 -0
- package/dist/esm/formControls/Tag/runtime.js +114 -0
- package/dist/esm/formControls/Tag/schema.json +1001 -0
- package/dist/esm/formControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +1 -0
- package/dist/types/formControls/Tag/designer.d.ts +15 -0
- package/dist/types/formControls/Tag/index.d.ts +12 -0
- package/dist/types/formControls/Tag/property.d.ts +79 -0
- package/dist/types/formControls/Tag/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 +5 -5
|
@@ -20,6 +20,7 @@ export { default as BatchPrintListButton } from './baseControls/BatchPrintListBu
|
|
|
20
20
|
export { default as BatchPrintRecordListButton } from './baseControls/BatchPrintRecordListButton/property';
|
|
21
21
|
export { default as OperationButton } from './baseControls/OperationButton/property';
|
|
22
22
|
export { default as BatchDeleteButton } from './baseControls/BatchDeleteButton/property';
|
|
23
|
+
export { default as Tag } from './formControls/Tag/property';
|
|
23
24
|
export { default as VarcharColumn } from './columnControls/VarcharColumn/property';
|
|
24
25
|
export { default as TextColumn } from './columnControls/TextColumn/property';
|
|
25
26
|
export { default as DecimalColumn } from './columnControls/DecimalColumn/property';
|
|
@@ -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 TagProperty from './property';
|
|
4
|
+
declare class TagControl extends DesignerFormControl {
|
|
5
|
+
static controlEventKeys: string[];
|
|
6
|
+
static get controlName(): string;
|
|
7
|
+
static get controlIcon(): string;
|
|
8
|
+
static get controlType(): string;
|
|
9
|
+
static controlFieldType: FieldTypes;
|
|
10
|
+
static readonly setting: SettingOption[];
|
|
11
|
+
readonly props: TagProperty;
|
|
12
|
+
constructor(props?: Partial<Schema<'tag'>>);
|
|
13
|
+
}
|
|
14
|
+
export default TagControl;
|
|
15
|
+
export { TagControl as DesignerTagControl };
|
|
@@ -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,79 @@
|
|
|
1
|
+
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class TagPropertyRules extends OptionAndDataSourcePropertyRules {
|
|
3
|
+
constructor(props: TagProperty);
|
|
4
|
+
}
|
|
5
|
+
declare class TagPropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
6
|
+
constructor(props: TagProperty);
|
|
7
|
+
}
|
|
8
|
+
interface TagPropertyInterface extends BaseControlPropertyInterface {
|
|
9
|
+
/**
|
|
10
|
+
* 展示形式;取值:tag:标签;text:文本;
|
|
11
|
+
* @defaultValue 'tag'
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
displayType: 'tag' | 'text';
|
|
15
|
+
/**
|
|
16
|
+
* 标签样式;取值:default:默认;success:成功;processing:处理中;error:错误;warning:警告;blue:蓝色;green:绿色;purple:紫色;
|
|
17
|
+
* @defaultValue 'default'
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
tagStyle: 'default' | 'success' | 'processing' | 'error' | 'warning';
|
|
21
|
+
/**
|
|
22
|
+
* 标签尺寸;取值:large:大;middle:中;small:小;
|
|
23
|
+
* @defaultValue 'middle'
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
size: 'large' | 'middle' | 'small';
|
|
27
|
+
/**
|
|
28
|
+
* 位置;取值:left:居左;center:居中;right:居右;
|
|
29
|
+
* @defaultValue 'left'
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
align: 'left' | 'center' | 'right';
|
|
33
|
+
/**
|
|
34
|
+
* 选项配置方式;取值:custom:自定义;datasource:数据源;
|
|
35
|
+
* @defaultValue 'custom'
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
optionConfig: 'custom' | 'datasource';
|
|
39
|
+
/**
|
|
40
|
+
* 默认值
|
|
41
|
+
* @defaultValue []
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
defaultValue: string[];
|
|
45
|
+
/**
|
|
46
|
+
* 数据源绑定
|
|
47
|
+
* @defaultValue new DataSourceBind()
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
datasourceBind: DataSourceBind;
|
|
51
|
+
/**
|
|
52
|
+
* 多级填充
|
|
53
|
+
* @defaultValue []
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
multistageFilling?: MultistageFillingItem[];
|
|
57
|
+
/**
|
|
58
|
+
* 是否开启填充
|
|
59
|
+
* @defaultValue false
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
openMultistageFilling: boolean;
|
|
63
|
+
}
|
|
64
|
+
declare class TagProperty extends BaseControlProperty implements TagPropertyInterface {
|
|
65
|
+
static readonly Rules: typeof TagPropertyRules;
|
|
66
|
+
static readonly RuntimeRules: typeof TagPropertyRuntimeRules;
|
|
67
|
+
defaultValue: string[];
|
|
68
|
+
displayType: 'tag' | 'text';
|
|
69
|
+
tagStyle: 'default' | 'success' | 'processing' | 'error' | 'warning';
|
|
70
|
+
size: 'large' | 'middle' | 'small';
|
|
71
|
+
align: 'left' | 'center' | 'right';
|
|
72
|
+
optionConfig: 'custom' | 'datasource';
|
|
73
|
+
datasourceBind: DataSourceBind;
|
|
74
|
+
multistageFilling?: MultistageFillingItem[];
|
|
75
|
+
openMultistageFilling: boolean;
|
|
76
|
+
constructor(props?: Partial<TagProperty>);
|
|
77
|
+
}
|
|
78
|
+
export default TagProperty;
|
|
79
|
+
export { TagProperty, TagPropertyInterface, TagPropertyRules, TagPropertyRuntimeRules, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import TagProperty from './property';
|
|
4
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class TagControl extends RuntimeFormControl {
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly props: TagProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'tag'>>);
|
|
10
|
+
}
|
|
11
|
+
export default TagControl;
|
|
12
|
+
export { TagControl as RuntimeTagControl };
|
|
@@ -12,6 +12,8 @@ export { default as Number } from './Number';
|
|
|
12
12
|
export type { NumberPropertyInterface } from './Number';
|
|
13
13
|
export { default as Slider } from './Slider';
|
|
14
14
|
export type { SliderPropertyInterface } from './Slider';
|
|
15
|
+
export { default as Tag } from './Tag';
|
|
16
|
+
export type { TagPropertyInterface } from './Tag';
|
|
15
17
|
export { default as DatePicker } from './DatePicker';
|
|
16
18
|
export type { DatePickerPropertyInterface } from './DatePicker';
|
|
17
19
|
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, Slider, 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, Tag } 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';
|
|
@@ -67,6 +67,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
67
67
|
department2: typeof Department2;
|
|
68
68
|
'organization-selection': typeof OrganizationSelection;
|
|
69
69
|
'vue-page': typeof VuePage;
|
|
70
|
+
tag: typeof Tag;
|
|
70
71
|
}
|
|
71
72
|
interface LayoutControls {
|
|
72
73
|
'subtable-column': typeof SubTableColumn;
|
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.38",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "7.0.0-props.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "7.0.0-props.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "7.0.0-props.38",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "7.0.0-props.38",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-props.38",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "0502c0acb67414018904dea040caf8004c29491c"
|
|
35
35
|
}
|