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 @@
.ant-skeleton-avatar{width:44px;height:44px;border-radius:4px;background:#eee;display:inline-block}.ant-skeleton-avatar-animate{background:linear-gradient(90deg,#eee 25%,rgba(204,204,204,.6) 37%,#eee 63%);background-size:400% 100%;animation:ant-skeleton-loading 1.4s ease infinite}.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-avatar-x-small{width:40px;height:40px}.ant-skeleton-avatar-small{width:44px;height:44px}.ant-skeleton-avatar-medium{width:52px;height:52px}.ant-skeleton-avatar-large{width:60px;height:60px}

View File

@ -0,0 +1,10 @@
<import-sjs
from="./index.sjs"
name="utils"
></import-sjs>
<view
a:if="{{loading}}"
style="{{style}}"
class="ant-skeleton-avatar ant-skeleton-avatar-{{shape}} {{animate ? 'ant-skeleton-avatar-animate' : ''}} {{utils.getClass(size)}} {{className || ''}}"
></view>
<slot a:else></slot>

View File

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

View File

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

View File

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

View File

@ -0,0 +1,10 @@
function getClass(size) {
var list = ['x-small', 'small', 'medium', 'large'];
if (list.indexOf(size) >= 0) {
return "ant-skeleton-avatar-".concat(size);
}
return 'ant-skeleton-avatar-medium';
}
export default {
getClass: getClass
};

View File

@ -0,0 +1,6 @@
import { ISkeletonBaseProps } from '../props';
export interface SkeletonAvatarProps extends ISkeletonBaseProps {
shape: 'circle' | 'square';
size: 'x-small' | 'small' | 'medium' | 'large';
}
export declare const SkeletonAvatarDefaultProps: Partial<SkeletonAvatarProps>;

View File

@ -0,0 +1,3 @@
import { __assign } from "tslib";
import { SkeletonDefaultBaseProps } from '../props';
export var SkeletonAvatarDefaultProps = __assign(__assign({}, SkeletonDefaultBaseProps), { shape: 'square', size: 'medium' });