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-empty{text-align:center;margin-top:20px}.ant-empty-image{display:flex;justify-content:center}.ant-empty-image-element{width:100px;height:85px}.ant-empty-text{margin-top:12px}.ant-empty-text-main{color:#333;font-size:20px}.ant-empty-text-sub{color:#999;font-size:13px;margin-top:8px}.ant-empty-extra{padding-top:20px}

View File

@ -0,0 +1,26 @@
<view
class="ant-empty {{className || ''}}"
style="{{style || ''}}"
>
<view class="ant-empty">
<view class="ant-empty-image">
<slot name="image">
<image
class="ant-empty-image-element"
src="{{image || 'https://gw.alipayobjects.com/mdn/rms_226d75/afts/img/A*0AaRRrYlVDkAAAAAAAAAAAAAARQnAQ'}}"
></image>
</slot>
</view>
<view class="ant-empty-text">
<view class="ant-empty-text-main">
<slot name="title">{{title}}</slot>
</view>
<view class="ant-empty-text-sub">
<slot name="message">{{message}}</slot>
</view>
</view>
<view class="ant-empty-extra">
<slot name="extra"></slot>
</view>
</view>
</view>

View File

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

View File

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

View File

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

View File

@ -0,0 +1,20 @@
import { IBaseProps } from '../_util/base';
/**
* @description 空状态
*/
export interface IEmptyProps extends IBaseProps {
/**
* @description 主文案
*/
title: string;
/**
* @description 副文案
*/
message: string;
/**
* @description 图片路径
*/
image: string;
}
export declare const EmptyDefaultProps: Partial<IEmptyProps>;
export declare const EmptyFunctionalProps: IEmptyProps;

View File

@ -0,0 +1,6 @@
export var EmptyDefaultProps = {};
export var EmptyFunctionalProps = {
title: '',
message: '',
image: '',
};