Skip to content

Commit

Permalink
build v2.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
smallweis committed Jan 21, 2020
1 parent a2cb124 commit 2264f99
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 143 deletions.
11 changes: 10 additions & 1 deletion examples/element-ui/crud/cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,14 @@
type: "datetime",
format: "yyyy-MM-dd hh:mm:ss",
valueFormat: "timestamp",
cell: true
cell: true,
rules: [
{
required: true,
message: '请选择日期',
trigger: 'blur'
}
]
}, {
label: '地址',
prop: 'textarea',
Expand Down Expand Up @@ -319,6 +326,7 @@
area: '130202',
datetime: '2019-01-01 00:00:00',
switch1: false,
$cellEdit: true,
switch2: false
},
{
Expand All @@ -334,6 +342,7 @@
area: '110101',
datetime: '2019-01-01 00:00:00',
switch1: true,
$cellEdit: true,
switch2: false
}
]
Expand Down
4 changes: 4 additions & 0 deletions examples/element-ui/crud/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
}
},
mounted() {
setTimeout(() => {
console.log('clear')
this.$refs.crud.searchReset()
}, 5000)
setTimeout(() => {
console.log('开始异步加载了')
this.option = {
Expand Down
21 changes: 20 additions & 1 deletion examples/element-ui/form/date.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@

<body>
<div id="app">
<avue-form v-model="form" :option="option" @submit="submit"></avue-form>
<avue-form v-model="form" :option="option" @submit="submit">
<template slot-scope="{}" slot="daterangeLabel">
<span>姓名&nbsp;&nbsp;</span>
<el-tooltip class="item" effect="dark" content="文字提示" placement="top-start">
<i class="el-icon-warning"></i>
</el-tooltip>
</template>
<template slot-scope="{error}" slot="daterangeError">
<p style="color:green">自定义提示</p>
</template>
</avue-form>
</div>
</body>
<script>
Expand All @@ -33,9 +43,18 @@
option: {
labelWidth: 110,
column: [{
rules: [
{
required: true,
message: '请输入数字',
trigger: 'blur'
}
],
label: "日期范围",
prop: "daterange",
type: "daterange",
labelslot: true,
errorslot: true,
startPlaceholder: '日期开始范围自定义',
endPlaceholder: '日期结束范围自定义',
}, {
Expand Down
4 changes: 2 additions & 2 deletions examples/element-ui/form/tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
data() {
return {
data: {
shenfeng: [6],
shenfeng1: 6
shenfeng: [],
shenfeng1: ''
},
option: {
column: [{
Expand Down
1 change: 1 addition & 0 deletions examples/element-ui/tree/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
}
],
option: {
defaultExpandAll: true,
nodeKey: 'id',
dialogWidth: '60%',
formOption: {
Expand Down
Loading

0 comments on commit 2264f99

Please sign in to comment.