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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
<text
class="ant-icon ant-icon-{{type}} {{className ? className : ''}}"
style="{{style}}"
onTap="{{onTap ? 'onTap' : ''}}"
catchTap="{{catchTap ? 'catchTap' : ''}}"
></text>

View File

@ -0,0 +1 @@
import '../_util/assert-component2';

View File

@ -0,0 +1,18 @@
import { IconDefaultProps } from './props';
import fmtEvent from '../_util/fmtEvent';
import '../_util/assert-component2';
Component({
props: IconDefaultProps,
methods: {
onTap: function (e) {
if (this.props.onTap) {
this.props.onTap(fmtEvent(this.props, e));
}
},
catchTap: function (e) {
if (this.props.catchTap) {
this.props.catchTap(fmtEvent(this.props, e));
}
},
},
});

View File

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

View File

@ -0,0 +1,20 @@
import { IBaseProps } from '../_util/base';
/**
* @description 图标,内置丰富的图标可以选择。
*/
export interface IconProps extends IBaseProps {
/**
* @description icon 图标的类型
* @default ""
*/
type?: string;
/**
* 点击图标
*/
onTap?: (e: any) => void;
/**
* 点击图标
*/
catchTap?: (e: any) => void;
}
export declare const IconDefaultProps: Partial<IconProps>;

View File

@ -0,0 +1,3 @@
export var IconDefaultProps = {
type: '',
};