2.0.3 • Published 5 months ago

@wu-component/wu-dialog v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Empty 空状态

空状态时的占位提示。

基础用法

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-empty description="描述文字"></wu-plus-empty>
    </div>
</template>
<script>
</script>

:::

自定义图片

通过设置 image 属性传入图片 URL。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-empty image="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"></wu-plus-empty>
    </div>
</template>
<script>
</script>

:::

图片尺寸

通过设置 size 属性来控制图片大小。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-empty size="150"></wu-plus-empty>
    </div>
</template>
<script>
</script>

:::

底部内容

使用默认插槽可在底部插入内容。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-empty>
            <wu-plus-button size="mini" type="primary">重试</wu-plus-button>
        </wu-plus-empty>
    </div>
</template>
<script>
</script>

:::

Attributes

参数说明类型可选值默认值
image指定图片地址String--
size图片大小(宽度)number-100
description文本描述String---

Slot

参数说明
--自定义底部内容
image自定义图片
description自定义描述文字
2.0.3

5 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.11.8

1 year ago

1.11.7

1 year ago

1.11.6

1 year ago

1.11.4

1 year ago

1.11.3

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.6

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.9.24

2 years ago

1.9.21

2 years ago

1.9.20

2 years ago

1.9.17

2 years ago

1.9.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.0.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago