docs: 更新文档

This commit is contained in:
就眠儀式
2022-03-28 00:03:05 +08:00
parent 8e767faca3
commit 529d21c593
3 changed files with 32 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ export default {
import "./index.less";
import { Recordable } from "../../types";
import { layer } from "@layui/layer-vue";
import { ref, useSlots, withDefaults, onMounted, defineExpose } from "vue";
import { ref, useSlots, withDefaults } from "vue";
import { templateRef } from "@vueuse/core";
// 组件的参数字段类型
@@ -32,6 +32,7 @@ const props = withDefaults(defineProps<LayUploadProps>(), {
number: 0,
drag: false,
});
const slot = useSlots();
const slots = slot.default && slot.default();
const emit = defineEmits(["choose", "before", "done", "error"]);