Commit f45149c1 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents b4504f14 c49fe493
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
</div> </div>
<h3 class="mb20">用户登陆</h3> <h3 class="mb20">用户登陆</h3>
<Login @on-submit="handleSubmit"> <Login @on-submit="handleSubmit">
<UserName name="username" value="13211111111" /> <UserName name="username" value="" />
<Password name="password" value="1" enter-to-submit /> <Password name="password" value="" enter-to-submit />
<div class="page-account-auto-login mb20"> <div class="page-account-auto-login mb20">
<Checkbox v-model="autoLogin">{{ $t('page.login.remember') }}</Checkbox> <Checkbox v-model="autoLogin">{{ $t('page.login.remember') }}</Checkbox>
<a href>{{ $t('page.login.forgot') }}</a> <a href>{{ $t('page.login.forgot') }}</a>
......
<template> <template>
<div class="flex view"> <div class="flex">
<div class="item"> <div class="fg1">
aaa <Form ref="form" :model="entity" :rules="rules" :label-width="110">
<Row class="view">
<Col :span="12" class="item" v-for="(li,i) in items" :key="i" v-dragging="{ item: li, list: items}">
<FormItem :label="li.key" :prop="li.key">
<component :is="li.control" :value="entity[li.key]" />
</FormItem>
</Col>
</Row>
<div>
{{
entity
}}
<Button type="primary" @click="con">conso</Button>
</div> </div>
</Form>
</div> </div>
</template> <div v-width="25">
<ul>
<li>
名称
控件
显示
</li>
</ul>
</div>
</div>
</template>
<script> <script>
export default { export default {
name: '', name: "",
data() { data() {
return { return {
items:[] items: [],
} entity: {},
rules: null
};
}, },
methods:{ created() {
init(){ this.init();
var items=[]; },
for (let i = 0; i <30; i++) { methods: {
con() {
console.warn("entity", this.entity);
},
init() {
let items = [];
let controls = ["Input", "InputNumber", "Dictionary", "DatePicker"];
for (let i = 0; i < 5; i++) {
this.entity["I" + i] = i;
items.push({ items.push({
key:"I"+i, key: "I" + i,
name:"Item"+v, name: "Item" + i,
width:4, width: 4,
height:1 control: controls[i % 4],
}) height: 1
});
}
} }
this.items = items;
} }
} }
};
</script> </script>
<style lang="less" > <style lang="less" >
@line-height:40px; @line-height: 40px;
@item-width:12.5%; @item-width: 12.5%;
.view{ .view {
margin: 30px;
border: 1px solid #ddd;
line-height: @line-height;
background-color: white;
.item {
border-right: 1px solid #ddd;
border-top: 1px solid #ddd;
margin-right: -1px;
margin-top: -1px;
border-bottom: 1px solid #ddd;
text-align: center;
box-sizing: border-box;
} }
}
</style> </style>
\ No newline at end of file
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