mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(List): add @list-loading-icon-size less var (#8365)
This commit is contained in:
parent
465bf07095
commit
648a768bdd
@ -118,7 +118,9 @@ export default defineComponent({
|
||||
{slots.loading ? (
|
||||
slots.loading()
|
||||
) : (
|
||||
<Loading size={16}>{props.loadingText || t('loading')}</Loading>
|
||||
<Loading class={bem('loading-icon')}>
|
||||
{props.loadingText || t('loading')}
|
||||
</Loading>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
@ -204,7 +204,8 @@ How to use: [Custom Theme](#/en-US/theme).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| ----------------------- | --------------- | ----------- |
|
||||
| @list-icon-margin-right | `5px` | - |
|
||||
| @list-icon-margin-right | `@padding-base` | - |
|
||||
| @list-text-color | `@gray-6` | - |
|
||||
| @list-text-font-size | `@font-size-md` | - |
|
||||
| @list-text-line-height | `50px` | - |
|
||||
| @list-loading-icon-size | `16px` | - |
|
||||
|
@ -219,10 +219,11 @@ export default {
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ----------------------- | --------------- | ---- |
|
||||
| @list-icon-margin-right | `5px` | - |
|
||||
| @list-icon-margin-right | `@padding-base` | - |
|
||||
| @list-text-color | `@gray-6` | - |
|
||||
| @list-text-font-size | `@font-size-md` | - |
|
||||
| @list-text-line-height | `50px` | - |
|
||||
| @list-loading-icon-size | `16px` | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
@ -14,4 +14,11 @@
|
||||
height: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&__loading-icon {
|
||||
.van-loading__spinner {
|
||||
width: @list-loading-icon-size;
|
||||
height: @list-loading-icon-size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,10 +46,8 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
aria-busy="true"
|
||||
>
|
||||
<div class="van-list__loading">
|
||||
<div class="van-loading van-loading--circular">
|
||||
<span class="van-loading__spinner van-loading__spinner--circular"
|
||||
style="width: 16px; height: 16px;"
|
||||
>
|
||||
<div class="van-loading van-loading--circular van-list__loading-icon">
|
||||
<span class="van-loading__spinner van-loading__spinner--circular">
|
||||
<svg class="van-loading__circular"
|
||||
viewbox="25 25 50 50"
|
||||
>
|
||||
|
@ -469,10 +469,11 @@
|
||||
@image-preview-close-icon-z-index: 1;
|
||||
|
||||
// List
|
||||
@list-icon-margin-right: 5px;
|
||||
@list-icon-margin-right: @padding-base;
|
||||
@list-text-color: @gray-6;
|
||||
@list-text-font-size: @font-size-md;
|
||||
@list-text-line-height: 50px;
|
||||
@list-loading-icon-size: 16px;
|
||||
|
||||
// Loading
|
||||
@loading-text-color: @gray-6;
|
||||
|
Loading…
x
Reference in New Issue
Block a user