|
@@ -216,6 +216,46 @@ export interface FormItemType extends FormItem {
|
|
hidden?: boolean; //是否隐藏
|
|
hidden?: boolean; //是否隐藏
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+export const iframeCustom = [
|
|
|
|
+ {
|
|
|
|
+ key: 'iframe',
|
|
|
|
+ label: '网页地址',
|
|
|
|
+ type: 'string',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'operationalRect.x',
|
|
|
|
+ label: '可操作x',
|
|
|
|
+ type: 'number',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1,
|
|
|
|
+ placeholder: '范围0-1',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'operationalRect.y',
|
|
|
|
+ label: '可操作y',
|
|
|
|
+ type: 'number',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1,
|
|
|
|
+ placeholder: '范围0-1',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'operationalRect.width',
|
|
|
|
+ label: '可操作宽度',
|
|
|
|
+ type: 'number',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1,
|
|
|
|
+ placeholder: '范围0-1',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'operationalRect.height',
|
|
|
|
+ label: '可操作高度',
|
|
|
|
+ type: 'number',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 1,
|
|
|
|
+ placeholder: '范围0-1',
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+
|
|
export const shapes = [
|
|
export const shapes = [
|
|
{
|
|
{
|
|
name: '基本形状',
|
|
name: '基本形状',
|
|
@@ -1357,9 +1397,9 @@ export const formComponents = [
|
|
name: 'calendar',
|
|
name: 'calendar',
|
|
background: '#fff0',
|
|
background: '#fff0',
|
|
hoverTextColor: '#fff',
|
|
hoverTextColor: '#fff',
|
|
- dbInput:true,
|
|
|
|
|
|
+ dbInput: true,
|
|
// input: true,
|
|
// input: true,
|
|
- text:'8月'
|
|
|
|
|
|
+ text: '8月',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -1372,10 +1412,10 @@ export const formComponents = [
|
|
name: 'calendar',
|
|
name: 'calendar',
|
|
background: '#fff0',
|
|
background: '#fff0',
|
|
hoverTextColor: '#fff',
|
|
hoverTextColor: '#fff',
|
|
- dbInput:true,
|
|
|
|
|
|
+ dbInput: true,
|
|
// input: true,
|
|
// input: true,
|
|
text: '8月',
|
|
text: '8月',
|
|
- calendarType:'time'
|
|
|
|
|
|
+ calendarType: 'time',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -1732,13 +1772,7 @@ export const formComponents = [
|
|
externElement: true,
|
|
externElement: true,
|
|
iframe: 'https://le5le.com',
|
|
iframe: 'https://le5le.com',
|
|
props: {
|
|
props: {
|
|
- custom: [
|
|
|
|
- {
|
|
|
|
- key: 'iframe',
|
|
|
|
- label: '网页地址',
|
|
|
|
- type: 'string',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ custom: iframeCustom,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -2739,7 +2773,7 @@ export const formComponents = [
|
|
background: '#4583FF33',
|
|
background: '#4583FF33',
|
|
color: '#4583FF',
|
|
color: '#4583FF',
|
|
hiddenText: true,
|
|
hiddenText: true,
|
|
- onColor:'#58CC84',
|
|
|
|
|
|
+ onColor: '#58CC84',
|
|
frames: [
|
|
frames: [
|
|
{
|
|
{
|
|
background: '#4583FF33',
|
|
background: '#4583FF33',
|
|
@@ -2889,10 +2923,10 @@ export const formComponents = [
|
|
width: 32,
|
|
width: 32,
|
|
height: 128,
|
|
height: 128,
|
|
disableAnchor: true,
|
|
disableAnchor: true,
|
|
- color:'#4583FF',
|
|
|
|
- fontColor:'#FFFFFFB3',
|
|
|
|
|
|
+ color: '#4583FF',
|
|
|
|
+ fontColor: '#FFFFFFB3',
|
|
background: '#FF5D3C33',
|
|
background: '#FF5D3C33',
|
|
- activeBacground:'#FF5D3C',
|
|
|
|
|
|
+ activeBacground: '#FF5D3C',
|
|
value: -10,
|
|
value: -10,
|
|
min: -20,
|
|
min: -20,
|
|
max: 20,
|
|
max: 20,
|
|
@@ -2910,10 +2944,10 @@ export const formComponents = [
|
|
value: 0,
|
|
value: 0,
|
|
min: -20,
|
|
min: -20,
|
|
max: 20,
|
|
max: 20,
|
|
- color:'#4583FF',
|
|
|
|
|
|
+ color: '#4583FF',
|
|
markColor: '#fff',
|
|
markColor: '#fff',
|
|
- background:'#FF5D3C33',
|
|
|
|
- activeBackground:'#FF5D3C',
|
|
|
|
|
|
+ background: '#FF5D3C33',
|
|
|
|
+ activeBackground: '#FF5D3C',
|
|
fontColor: '#FFFFFFB3',
|
|
fontColor: '#FFFFFFB3',
|
|
sub: 5,
|
|
sub: 5,
|
|
barrel: {
|
|
barrel: {
|