Commit 837757e1 authored by rockyl's avatar rockyl

增加属性

修复所有el-form自动提交的问题
parent 2bbf6a42
......@@ -2,7 +2,8 @@
* Created by rockyl on 2019-09-19.
*/
export const API_HOST = 'http://10.10.95.74:7777';
export const API_HOST = 'http://beacon.duibadev.com.cn';
//export const API_HOST = 'http://10.10.95.74:7777';
//export const API_HOST = 'http://localhost:3002';
export const UPLOAD_FILE_URL = API_HOST + '/api/uploadFile';
......
......@@ -61,8 +61,6 @@ export const projectStore = {
if (data) {
const {views, assets, dataMapping, processes, options,} = JSON.parse(data);
console.log(processes);
Vue.set(localData, 'options', options || getDefaultOptions());
Vue.set(localData, 'views', views || []);
Vue.set(localData, 'assets', assets || []);
......
......@@ -3,7 +3,11 @@
*/
export const template =
` <meta charset="UTF-8">
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>$PAGE_TITLE$</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
......@@ -24,14 +28,16 @@ content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, u
overflow: hidden;
position: absolute;
background-color: white;
}
</style>
}
</style>
</head>
<body>
<div id="$CONTAINER_ID$" style="line-height:0;font-size:0"></div>
<div id="$CONTAINER_ID$" style="line-height:0;font-size:0"></div>
<script src="http://10.10.94.134:4002/dist/index.js"></script>
<script>
engine.launch('http://10.10.94.134:4002/examples/mock/test.json');
</script>
engine.launch('//yun.duiba.com.cn/aurora/$VERSION$-data.json');
</script>
</body>
</html>
`;
export default ['init', 'awake', 'sleep', 'dataevent', 'click', 'touchstart', 'touchend', 'touchmove']
\ No newline at end of file
export default ['init', 'awake', 'sleep', 'datacenter', 'click', 'touchstart', 'touchend', 'touchmove']
\ No newline at end of file
......@@ -33,6 +33,16 @@ export default {
},
value: 0
},
anchorX: {
title: '锚点X',
type: 'inputNumber',
value: 0
},
anchorY: {
title: '锚点Y',
type: 'inputNumber',
value: 0
},
scaleX: {
title: 'X轴缩放',
type: 'inputNumber',
......@@ -59,6 +69,22 @@ export default {
step: 0.1
}
},
mouseEnabled: {
title: '可否交互',
type: 'switch',
props: {
width: 40
},
value: true
},
mouseChildren: {
title: '子集交互',
type: 'switch',
props: {
width: 40
},
value: true
},
visible: {
title: '是否可见',
type: 'switch',
......
<template>
<div class="zero-inspector-behavior-form" v-if="activeComponent.uuid">
<el-scrollbar class="scrollbar" wrap-class="wrap-x-hidden">
<el-form ref="form" size="mini" label-width="60px">
<el-form ref="form" size="mini" label-width="60px"v>
<div v-for="(evn, key) in eventsObj" :key="key">
<el-form-item :label="$t('Event') + ':'">
<div>{{key}}</div>
......
<template>
<div class="zero-inspector-props-form" v-if="activeComponent.uuid">
<el-scrollbar class="scrollbar" wrap-class="wrap-x-hidden">
<el-form ref="form" size="mini" :model="form" label-width="80px">
<el-form ref="form" size="mini" :model="form" label-width="80px" @submit.native.prevent>
<el-collapse v-model="configColl">
<el-collapse-item title="配置" name="properties">
<el-form-item label="名称">
......
......@@ -2,7 +2,7 @@
<div class="zero-inspector-script-form" v-if="activeComponent.uuid">
<el-collapse v-model="configColl">
<el-collapse-item title="配置" name="properties">
<el-form ref="form" size="mini" :model="form" label-width="80px">
<el-form ref="form" size="mini" :model="form" label-width="80px" @submit.native.prevent>
<el-form-item label="名称">
<el-input v-model="form.name" @input="v => handleChange('name', v)"></el-input>
</el-form-item>
......
......@@ -3,7 +3,7 @@
:close-on-click-modal="false"
:append-to-body="true">
<div class="meta-editor-wrapper">
<el-form ref="form" v-if="meta" :model="meta" :rules="rules" :show-message="false" class="info-editor" size="mini" label-position="right" label-width="70px">
<el-form ref="form" v-if="meta" :model="meta" :rules="rules" :show-message="false" class="info-editor" size="mini" label-position="right" label-width="70px" @submit.native.prevent>
<template>
<el-form-item prop="id" label="ID">
<el-input v-model="meta.id" :placeholder="$t('ID')" :readonly="!editable"/>
......
......@@ -5,7 +5,7 @@
</el-input>
<el-scrollbar class="scrollbar" wrap-class="wrap-x-hidden"
view-class="scrollbar-view">
<el-form v-model="process" size="mini" label-width="80px" label-position="left" @submit.prevent>
<el-form v-model="process" size="mini" label-width="80px" label-position="left" @submit.native.prevent>
<component v-for="(property, key) in process.meta.props"
:is="getEditor(property)"
v-model="process.data.props[key]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment