UNPKG

hy-app

Version:

fix: 修复text和tag换掉

81 lines (78 loc) 1.91 kB
import { IconConfig } from '../../libs/config' import type { CSSProperties, PropType } from 'vue' const dividerProps = { /** 是否虚线 */ dashed: { type: Boolean, default: false }, /** 是否细线 */ hairline: { type: Boolean, default: true }, /** 是否以点替代文字,优先于text字段起作用 */ dot: { type: Boolean, default: false }, /** * 内容文本的位置 * @values left,center,right * */ textPosition: { type: String, default: 'center' }, /** 文本内容,如果为loadMore就是加载前,如果为loading就是加载中,如果为noMore就是没有更多 */ text: { type: String, default: '' }, /** 文本大小 */ textSize: { type: [String, Number], default: 14 }, /** 文本颜色 */ textColor: String, /** 线条颜色 */ lineColor: String, /** 加载图标 */ loadingIcon: { type: String, default: IconConfig.LOADING }, /** 加载前的提示语 */ loadMoreText: { type: String, default: '加载更多' }, /** 加载中提示语 */ loadingText: { type: String, default: '正在加载...' }, /** 没有更多的提示语 */ noMoreText: { type: String, default: '没有更多了' }, /** 上边距 */ marginTop: { type: [String, Number], default: 0 }, /** 下边距 */ marginBottom: { type: [String, Number], default: 0 }, /** 定义需要用到的外部样式 */ customStyle: { type: Object as PropType<CSSProperties> }, /** 自定义外部类名 */ customClass: String } export default dividerProps