fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,108 +1,108 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 涓婚棰滆壊
|
||||
// 主题颜色
|
||||
type: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.type
|
||||
},
|
||||
// 鏄惁鏄剧ず
|
||||
// 是否显示
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.text.show
|
||||
},
|
||||
// 鏄剧ず鐨勫€?
|
||||
// 显示的值
|
||||
text: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.text.text
|
||||
},
|
||||
// 鍓嶇疆鍥炬爣
|
||||
// 前置图标
|
||||
prefixIcon: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.prefixIcon
|
||||
},
|
||||
// 鍚庣疆鍥炬爣
|
||||
// 后置图标
|
||||
suffixIcon: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.suffixIcon
|
||||
},
|
||||
// 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮?
|
||||
// text-鏅€氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺?
|
||||
// 文本处理的匹配模式
|
||||
// text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.mode
|
||||
},
|
||||
// mode=link涓嬶紝閰嶇疆鐨勯摼鎺?
|
||||
// mode=link下,配置的链接
|
||||
href: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.href
|
||||
},
|
||||
// 鏍煎紡鍖栬鍒?
|
||||
// 格式化规则
|
||||
format: {
|
||||
type: [String, Function],
|
||||
default: uni.$u.props.text.format
|
||||
},
|
||||
// mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽
|
||||
// mode=phone时,点击文本是否拨打电话
|
||||
call: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.text.call
|
||||
},
|
||||
// 灏忕▼搴忕殑鎵撳紑鏂瑰紡
|
||||
// 小程序的打开方式
|
||||
openType: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.openType
|
||||
},
|
||||
// 鏄惁绮椾綋锛岄粯璁ormal
|
||||
// 是否粗体,默认normal
|
||||
bold: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.text.bold
|
||||
},
|
||||
// 鏄惁鍧楃姸
|
||||
// 是否块状
|
||||
block: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.text.block
|
||||
},
|
||||
// 鏂囨湰鏄剧ず鐨勮鏁帮紝濡傛灉璁剧疆锛岃秴鍑烘琛屾暟锛屽皢浼氭樉绀虹渷鐣ュ彿
|
||||
// 文本显示的行数,如果设置,超出此行数,将会显示省略号
|
||||
lines: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.text.lines
|
||||
},
|
||||
// 鏂囨湰棰滆壊
|
||||
// 文本颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.color
|
||||
},
|
||||
// 瀛椾綋澶у皬
|
||||
// 字体大小
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.text.size
|
||||
},
|
||||
// 鍥炬爣鐨勬牱寮?
|
||||
// 图标的样式
|
||||
iconStyle: {
|
||||
type: [Object, String],
|
||||
default: uni.$u.props.text.iconStyle
|
||||
},
|
||||
// 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙€夊€?none|underline|line-through
|
||||
// 文字装饰,下划线,中划线等,可选值 none|underline|line-through
|
||||
decoration: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.decoration
|
||||
},
|
||||
// 澶栬竟璺濓紝瀵硅薄銆佸瓧绗︿覆锛屾暟鍊煎舰寮忓潎鍙?
|
||||
// 外边距,对象、字符串,数值形式均可
|
||||
margin: {
|
||||
type: [Object, String, Number],
|
||||
default: uni.$u.props.text.margin
|
||||
},
|
||||
// 鏂囨湰琛岄珮
|
||||
// 文本行高
|
||||
lineHeight: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.text.lineHeight
|
||||
},
|
||||
// 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊€糽eft|center|right
|
||||
// 文本对齐方式,可选值left|center|right
|
||||
align: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.align
|
||||
},
|
||||
// 鏂囧瓧鎹㈣锛屽彲閫夊€糱reak-word|normal|anywhere
|
||||
// 文字换行,可选值break-word|normal|anywhere
|
||||
wordWrap: {
|
||||
type: String,
|
||||
default: uni.$u.props.text.wordWrap
|
||||
|
||||
Reference in New Issue
Block a user