提交 567f5a6a 编写于 作者: S shenjizhe

1

上级 e8ac2338
......@@ -3,13 +3,15 @@
</template>
<script>
methods: {
openinfo:{
uni.navigateTo({
url: '../test/test-er/test-er'
});
export default {
methods: {
openinfo: function(e) {
uni.navigateTo({
url: '../test/test-er/test-er'
});
}
}
}
};
</script>
<style></style>
<template>
<view class="box">
<movable-area class="content-window"><thirdlucky-uml-entity :title="title" @start="onStart" @end="onEnd"></thirdlucky-uml-entity></movable-area>
<movable-area class="tool-bar"><thirdlucky-uml-entity @start="onStart" @end="onEnd"></thirdlucky-uml-entity></movable-area>
<movable-area class="content-window">
<thirdlucky-uml-entity
v-for="(table, index) in tables"
:key="table.key"
:entityName="table.key"
:title="table.title"
:columns="table.columns"
@start="onStart"
@end="onEnd"
/>
</movable-area>
<movable-area class="tool-bar"><thirdlucky-uml-entity entityName="entity" title="实体" @start="onStart" @end="onEnd" /></movable-area>
<view class="property-bar"></view>
</view>
</template>
......@@ -18,7 +28,60 @@ export default {
y: 0,
scale: 2
},
title:"实体"
tables: [
{
key: 'CalendarEvent',
title: 'CalendarEvent',
columns: [
{
name: 'id',
info: '唯一主键',
type: 'BigInt'
},
{
name: 'name',
info: '说明',
type: 'String'
},
{
name: 'date',
info: '日期',
type: 'Date'
},
{
name: 'endtime',
info: '结束日期',
type: 'DateTime'
}
]
},
{
key: 'CalendarEventAlert',
title: 'CalendarEventAlert',
columns: [
{
name: 'id',
info: '唯一主键',
type: 'BigInt'
},
{
name: 'name',
info: '说明',
type: 'String'
},
{
name: 'date',
info: '日期',
type: 'Date'
},
{
name: 'endtime',
info: '结束日期',
type: 'DateTime'
}
]
}
]
};
},
methods: {
......@@ -42,11 +105,11 @@ export default {
onScale: function(e) {
this.old.scale = e.detail.scale;
},
onStart: function(type, x, y) {
console.log(type + ':' + x + ':' + y);
onStart: function(key, type, x, y) {
console.log(key + ':' + type + ':' + x + ':' + y);
},
onEnd: function(type, x, y) {
console.log(type + ':' + x + ':' + y);
onEnd: function(key, type, x, y) {
console.log(key + ':' + type + ':' + x + ':' + y);
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册