@byteluck-fe/model-driven-controls 7.0.0-props.61 → 7.0.0-props.63
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/baseControls/Iframe/designer.js +158 -0
- package/dist/esm/baseControls/Iframe/index.js +11 -0
- package/dist/esm/baseControls/Iframe/property.js +121 -0
- package/dist/esm/baseControls/Iframe/runtime.js +112 -0
- package/dist/esm/baseControls/Iframe/schema.json +47 -0
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/formControls/RichText/designer.js +2 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +1 -0
- package/dist/types/baseControls/Iframe/designer.d.ts +12 -0
- package/dist/types/baseControls/Iframe/index.d.ts +12 -0
- package/dist/types/baseControls/Iframe/property.d.ts +40 -0
- package/dist/types/baseControls/Iframe/runtime.d.ts +10 -0
- package/dist/types/baseControls/index.d.ts +2 -0
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Text } from './baseControls/Text/property';
|
|
2
2
|
export { default as Link } from './baseControls/Link/property';
|
|
3
|
+
export { default as Iframe } from './baseControls/Iframe/property';
|
|
3
4
|
export { default as Button } from './baseControls/Button/property';
|
|
4
5
|
export { default as Divider } from './baseControls/Divider/property';
|
|
5
6
|
export { default as Title } from './baseControls/Title/property';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import IframeProperty from './property';
|
|
3
|
+
declare class IframeControl extends DesignerControl {
|
|
4
|
+
static get controlName(): string;
|
|
5
|
+
static get controlIcon(): string;
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static readonly setting: SettingOption[];
|
|
8
|
+
readonly props: IframeProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'iframe'>>);
|
|
10
|
+
}
|
|
11
|
+
export default IframeControl;
|
|
12
|
+
export { IframeControl as DesignerIframeControl };
|
|
@@ -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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_iframe
|
|
3
|
+
* description: 网页嵌入组件。用于在页面中嵌入外部 URL 页面。支持配置链接地址、宽度和高度,适合展示第三方报表、系统页面或外部内容。
|
|
4
|
+
*/
|
|
5
|
+
import { RuleItem } from 'async-validator';
|
|
6
|
+
import { Property, PropertyInterface, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
7
|
+
declare class IframePropertyRules extends PropertyRules {
|
|
8
|
+
content: RuleItem;
|
|
9
|
+
width: RuleItem;
|
|
10
|
+
height: RuleItem;
|
|
11
|
+
}
|
|
12
|
+
interface IframePropertyInterface extends PropertyInterface {
|
|
13
|
+
/**
|
|
14
|
+
* URL
|
|
15
|
+
* @defaultValue ''
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
content: string;
|
|
19
|
+
/**
|
|
20
|
+
* 宽
|
|
21
|
+
* @defaultValue 600
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
width: number;
|
|
25
|
+
/**
|
|
26
|
+
* 高
|
|
27
|
+
* @defaultValue 400
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
height: number;
|
|
31
|
+
}
|
|
32
|
+
declare class IframeProperty extends Property implements IframePropertyInterface {
|
|
33
|
+
static readonly Rules: typeof IframePropertyRules;
|
|
34
|
+
content: string;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
constructor(props?: Partial<IframeProperty>);
|
|
38
|
+
}
|
|
39
|
+
export default IframeProperty;
|
|
40
|
+
export { IframeProperty, IframePropertyInterface, IframePropertyRules };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RuntimeControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import IframeProperty from './property';
|
|
3
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
4
|
+
declare class IframeControl extends RuntimeControl {
|
|
5
|
+
static get controlType(): string;
|
|
6
|
+
readonly props: IframeProperty;
|
|
7
|
+
constructor(props?: Partial<Schema<'iframe'>>);
|
|
8
|
+
}
|
|
9
|
+
export default IframeControl;
|
|
10
|
+
export { IframeControl as RuntimeIframeControl };
|
|
@@ -2,6 +2,8 @@ export { default as Text } from './Text';
|
|
|
2
2
|
export type { TextPropertyInterface } from './Text';
|
|
3
3
|
export { default as Link } from './Link';
|
|
4
4
|
export type { LinkPropertyInterface } from './Link';
|
|
5
|
+
export { default as Iframe } from './Iframe';
|
|
6
|
+
export type { IframePropertyInterface } from './Iframe';
|
|
5
7
|
export { default as Button } from './Button';
|
|
6
8
|
export type { ButtonPropertyInterface } from './Button';
|
|
7
9
|
export { default as Divider } from './Divider';
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
|
|
2
2
|
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Slider, Switch, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage, Tag, Barcode, QrCode } 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';
|
|
@@ -11,6 +11,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
11
11
|
text: typeof Text;
|
|
12
12
|
title: typeof Title;
|
|
13
13
|
link: typeof Link;
|
|
14
|
+
iframe: typeof Iframe;
|
|
14
15
|
button: typeof Button;
|
|
15
16
|
'list-page-btn-create-form': typeof CreateFormListButton;
|
|
16
17
|
'list-page-btn-batch-submission': typeof BatchSubmissionListButton;
|
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.63",
|
|
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.63",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "7.0.0-props.63",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-props.63",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "4d32311c262b8805fffe11b925b54cc9c1339129"
|
|
35
35
|
}
|