提交 3bc6760c 编写于 作者: S shenjizhe

1

上级 44a3617e
<template>
<view style="display: flex;flex-direction: column;justify-content: space-between;">
<view style="flex: 1;">
<uni-steps :options="[{ title: '1.创建模型' }, { title: '2.新建仓库' }, { title: '3.生成代码' }, { title: '4.推送代码' }]" :active="processIndex"></uni-steps>
</view>
<view style="height: 95vh">
<thirdlucky-data-view
:buttons="buttons"
:columns="entity.columns"
:datas="entity.datas"
:tableNames="entity.tableNames"
:showButton="false"
@selected="onSelected"
@changed="onChanged"
></thirdlucky-data-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
processIndex: 0,
column: {},
buttons: [{ id: 'edit', name: '编辑', color: 'green' }],
entity: {
columns: [
{
name: 'name',
info: '名称',
type: 'text',
tips: '名称'
},
{
name: 'title',
info: '标题',
type: 'text',
tips: '标题'
},
{
name: 'comment',
info: '描述',
type: 'text',
tips: '描述'
},
{
name: 'show',
info: '开关',
type: 'switch',
tips: ''
}
],
datas: [],
tableNames: ['name', 'comment']
}
};
},
methods: {
onSelected(index, action, data) {
if (action == 'edit') {
}
},
}
};
</script>
<style></style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册