更新文档

This commit is contained in:
就眠仪式 2021-10-14 18:35:09 +08:00
parent 6db6af49a5
commit 222f0fcc3e
2 changed files with 39 additions and 4 deletions

View File

@ -1,7 +1,7 @@
::: demo
<template>
<lay-transfer :dataSource="dataSource"></lay-transfer>
<lay-transfer :dataSource="dataSource1"></lay-transfer>
</template>
<script>
@ -10,13 +10,48 @@ import { ref } from 'vue'
export default {
setup() {
const dataSource = [{id:'1', title:'易大师'},{id:'2', title:'战争之王'}]
const dataSource1 = [{id:'1', title:'易大师'},{id:'2', title:'战争之王'}]
return {
dataSource
dataSource1
}
}
}
</script>
:::
::: demo
<template>
<lay-transfer :dataSource="dataSource2" :title="title"></lay-transfer>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const dataSource2 = [{id:'1', title:'易大师'},{id:'2', title:'战争之王'}]
const title = ['我喜欢的','我不喜欢的']
return {
dataSource2,
title
}
}
}
</script>
:::
::: field transfer attributes
:::
| Name | Description | Accepted Values |
| -------- | ---- | ----------------------- |
| dataSource | 数据来源 | -- |
| title | 标题 | -- |

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "0.0.18",
"version": "0.1.0",
"description": "a component library for Vue 3 base on layui-vue",
"main": "lib/layui-vue.umd.js",
"module": "lib/layui-vue.es.js",