✨(component): release 1.4.5
This commit is contained in:
parent
cbb0912a19
commit
762e797614
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"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",
|
||||||
|
@ -6,7 +6,17 @@ export default {
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
import { withDefaults, provide, useSlots, ref, computed, VNode, Ref, Component, watch } from "vue";
|
import {
|
||||||
|
withDefaults,
|
||||||
|
provide,
|
||||||
|
useSlots,
|
||||||
|
ref,
|
||||||
|
computed,
|
||||||
|
VNode,
|
||||||
|
Ref,
|
||||||
|
Component,
|
||||||
|
watch,
|
||||||
|
} from "vue";
|
||||||
import CarouselItem from "../carouselItem/index.vue";
|
import CarouselItem from "../carouselItem/index.vue";
|
||||||
|
|
||||||
const slot = useSlots() as any;
|
const slot = useSlots() as any;
|
||||||
|
@ -181,10 +181,10 @@ const localUploadTransaction = (option: localUploadTransaction) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Array.isArray(files) && files.length > 0) {
|
if (Array.isArray(files) && files.length > 0) {
|
||||||
for (let i = 0; i < files.length; i++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
let _file = files[i];
|
let _file = files[i];
|
||||||
formData.append(props.field + "[" + i + "]", _file);
|
formData.append(props.field + "[" + i + "]", _file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (props.data && props.data instanceof Object) {
|
if (props.data && props.data instanceof Object) {
|
||||||
let _requestDate = props.data;
|
let _requestDate = props.data;
|
||||||
@ -245,7 +245,11 @@ const localUpload = (option: localUploadOption, callback: Function) => {
|
|||||||
}
|
}
|
||||||
} else if (xhr.readyState === 4) {
|
} else if (xhr.readyState === 4) {
|
||||||
let successText = xhr.responseText ? xhr.responseText : uploadSuccess;
|
let successText = xhr.responseText ? xhr.responseText : uploadSuccess;
|
||||||
if ((xhr.status >= 200 && xhr.status <= 300) || xhr.status === 304 || xhr.status == 0) {
|
if (
|
||||||
|
(xhr.status >= 200 && xhr.status <= 300) ||
|
||||||
|
xhr.status === 304 ||
|
||||||
|
xhr.status == 0
|
||||||
|
) {
|
||||||
let data = xhr.responseText;
|
let data = xhr.responseText;
|
||||||
emit("done", { currentTimeStamp, msg: successText, data: data });
|
emit("done", { currentTimeStamp, msg: successText, data: data });
|
||||||
}
|
}
|
||||||
@ -308,8 +312,14 @@ const getUploadChange = (e: any) => {
|
|||||||
activeUploadFilesImgs.value.push(res);
|
activeUploadFilesImgs.value.push(res);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
let arm1 = props.cut && props.acceptMime.indexOf("image") != -1 && props.multiple == false;
|
let arm1 =
|
||||||
let arm2 = props.cut && props.acceptMime.indexOf("image") != -1 && props.multiple == true;
|
props.cut &&
|
||||||
|
props.acceptMime.indexOf("image") != -1 &&
|
||||||
|
props.multiple == false;
|
||||||
|
let arm2 =
|
||||||
|
props.cut &&
|
||||||
|
props.acceptMime.indexOf("image") != -1 &&
|
||||||
|
props.multiple == true;
|
||||||
if (arm1) {
|
if (arm1) {
|
||||||
innerCutVisible.value = true;
|
innerCutVisible.value = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user