This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<view
a:if="{{loading && rows > 0}}"
class="ant-skeleton-paragraph {{animate ? 'ant-skeleton-paragraph-animate' : ''}} {{className || ''}}"
style="{{style}}"
>
<block
a:for="{{rows}}"
a:for-index="index"
a:for-item="item"
>
<view class="ant-skeleton-paragraph-row"></view>
</block>
</view>
<slot a:else></slot>

View File

@ -0,0 +1 @@
export {};

View File

@ -0,0 +1,3 @@
import { Component } from '../../_util/simply';
import { SkeletonParagraphDefaultProps } from './props';
Component(SkeletonParagraphDefaultProps);

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1,22 @@
@import '../variable.less';
.@{skeletonPrefix}-paragraph {
&-animate {
.@{skeletonPrefix}-paragraph-row {
.skeleton-animation();
}
}
&-row {
width: 100%;
height: 30 * @rpx;
margin-bottom: 24 * @rpx;
border-radius: @default-radius;
background: @skeleton-fill;
&:nth-last-of-type(1) {
margin-bottom: 0;
&:not(:nth-of-type(1)) {
width: 60%;
}
}
}
}

View File

@ -0,0 +1,5 @@
import { ISkeletonBaseProps } from '../props';
export interface SkeletonParagraphProps extends ISkeletonBaseProps {
rows: number;
}
export declare const SkeletonParagraphDefaultProps: Partial<SkeletonParagraphProps>;

View File

@ -0,0 +1,3 @@
import { __assign } from "tslib";
import { SkeletonDefaultBaseProps } from '../props';
export var SkeletonParagraphDefaultProps = __assign(__assign({}, SkeletonDefaultBaseProps), { rows: 3 });