✨(component): update
This commit is contained in:
parent
4f1cd51e5a
commit
1239e6dbe6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "1.7.7",
|
"version": "1.7.8",
|
||||||
"author": "就眠儀式",
|
"author": "就眠儀式",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "a component library for Vue 3 base on layui-vue",
|
"description": "a component library for Vue 3 base on layui-vue",
|
||||||
|
@ -46,12 +46,12 @@ export default {
|
|||||||
::: title 手动上传
|
::: title 手动上传
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: demo 使用 `lay-upload` 标签, 创建一个上传按钮
|
::: demo 通过设置 `auto` 属性为 `false`, 使用 `v-model` 接收选择的文件对象。
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-upload url="https://www.mocky.io/v2/5cc8019d300000980a055e76" v-model="file1" field="file" :auto="false">
|
<lay-upload url="https://www.mocky.io/v2/5cc8019d300000980a055e76" v-model="file1" field="file" :auto="false">
|
||||||
<template #preview>
|
<template #preview>
|
||||||
{{ file1 }}
|
{{ file1[0]?.name }}
|
||||||
</template>
|
</template>
|
||||||
</lay-upload>
|
</lay-upload>
|
||||||
</template>
|
</template>
|
||||||
@ -62,7 +62,7 @@ import { ref,reactive } from 'vue'
|
|||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
|
|
||||||
const file1 = ref();
|
const file1 = ref([]);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
file1
|
file1
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<h3>1.7.8 <span class="layui-badge-rim">2022-11-15</span></h3>
|
<h3>1.7.8 <span class="layui-badge-rim">2022-11-15</span></h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>[新增] upload 组件 auto 属性, 是否自动上传配置。</li>
|
||||||
<li>[优化] backtop 组件部分浏览器版本无法正常返回顶部。</li>
|
<li>[优化] backtop 组件部分浏览器版本无法正常返回顶部。</li>
|
||||||
<li>[优化] date-picker 组件 btn 操作 border-radius 样式细节。</li>
|
<li>[优化] date-picker 组件 btn 操作 border-radius 样式细节。</li>
|
||||||
<li>[优化] tag-input 组件 maxWidth 属性默认为 100%。</li>
|
<li>[优化] tag-input 组件 maxWidth 属性默认为 100%。</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user