[修正] types定义声明问题
This commit is contained in:
parent
1b851c4212
commit
f8fb05de41
@ -7,11 +7,10 @@ export default {
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
import { withDefaults } from "vue";
|
import { withDefaults } from "vue";
|
||||||
import { String } from "src/types";
|
|
||||||
|
|
||||||
export interface LayEmptyProps {
|
export interface LayEmptyProps {
|
||||||
description?: String;
|
description?: string;
|
||||||
image?: String;
|
image?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<LayEmptyProps>(), {
|
const props = withDefaults(defineProps<LayEmptyProps>(), {
|
||||||
@ -24,8 +23,6 @@ const props = withDefaults(defineProps<LayEmptyProps>(), {
|
|||||||
<div class="layui-empty-image">
|
<div class="layui-empty-image">
|
||||||
<img class="layui-empty-image-default" src="./index.svg" />
|
<img class="layui-empty-image-default" src="./index.svg" />
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-empty-description">
|
<div class="layui-empty-description">{{ description }}</div>
|
||||||
{{ description }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user