You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
911 B
40 lines
911 B
|
2 years ago
|
import '../../../utils/index.mjs';
|
||
|
|
import '../../../constants/index.mjs';
|
||
|
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
||
|
|
import { componentSizes } from '../../../constants/size.mjs';
|
||
|
|
import { isNumber } from '../../../utils/types.mjs';
|
||
|
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
||
|
|
|
||
|
|
const avatarProps = buildProps({
|
||
|
|
size: {
|
||
|
|
type: [Number, String],
|
||
|
|
values: componentSizes,
|
||
|
|
default: "",
|
||
|
|
validator: (val) => isNumber(val)
|
||
|
|
},
|
||
|
|
shape: {
|
||
|
|
type: String,
|
||
|
|
values: ["circle", "square"],
|
||
|
|
default: "circle"
|
||
|
|
},
|
||
|
|
icon: {
|
||
|
|
type: iconPropType
|
||
|
|
},
|
||
|
|
src: {
|
||
|
|
type: String,
|
||
|
|
default: ""
|
||
|
|
},
|
||
|
|
alt: String,
|
||
|
|
srcSet: String,
|
||
|
|
fit: {
|
||
|
|
type: definePropType(String),
|
||
|
|
default: "cover"
|
||
|
|
}
|
||
|
|
});
|
||
|
|
const avatarEmits = {
|
||
|
|
error: (evt) => evt instanceof Event
|
||
|
|
};
|
||
|
|
|
||
|
|
export { avatarEmits, avatarProps };
|
||
|
|
//# sourceMappingURL=avatar.mjs.map
|