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: {
|
||||
// 鏍囬
|
||||
// 标题
|
||||
title: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.cell.title
|
||||
},
|
||||
// 鏍囬涓嬫柟鐨勬弿杩颁俊鎭?
|
||||
// 标题下方的描述信息
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.cell.label
|
||||
},
|
||||
// 鍙充晶鐨勫唴瀹?
|
||||
// 右侧的内容
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.cell.value
|
||||
},
|
||||
// 宸︿晶鍥炬爣鍚嶇О锛屾垨鑰呭浘鐗囬摼鎺?鏈湴鏂囦欢寤鸿浣跨敤缁濆鍦板潃)
|
||||
// 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
|
||||
icon: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.icon
|
||||
},
|
||||
// 鏄惁绂佺敤cell
|
||||
// 是否禁用cell
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.disabled
|
||||
},
|
||||
// 鏄惁鏄剧ず涓嬭竟妗?
|
||||
// 是否显示下边框
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.border
|
||||
},
|
||||
// 鍐呭鏄惁鍨傜洿灞呬腑(涓昏鏄拡瀵瑰彸渚х殑value閮ㄥ垎)
|
||||
// 内容是否垂直居中(主要是针对右侧的value部分)
|
||||
center: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.center
|
||||
},
|
||||
// 鐐瑰嚮鍚庤烦杞殑URL鍦板潃
|
||||
// 点击后跳转的URL地址
|
||||
url: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.url
|
||||
},
|
||||
// 閾炬帴璺宠浆鐨勬柟寮忥紝鍐呴儴浣跨敤鐨勬槸uView灏佽鐨剅oute鏂规硶锛屽彲鑳戒細杩涜鎷︽埅鎿嶄綔
|
||||
// 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
|
||||
linkType: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.linkType
|
||||
},
|
||||
// 鏄惁寮€鍚偣鍑诲弽棣?琛ㄧ幇涓虹偣鍑绘椂鍔犱笂鐏拌壊鑳屾櫙)
|
||||
// 是否开启点击反馈(表现为点击时加上灰色背景)
|
||||
clickable: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.clickable
|
||||
},
|
||||
// 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣?
|
||||
// 是否展示右侧箭头并开启点击反馈
|
||||
isLink: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.isLink
|
||||
},
|
||||
// 鏄惁鏄剧ず琛ㄥ崟鐘舵€佷笅鐨勫繀濉槦鍙?姝ょ粍浠跺彲鑳戒細鍐呭祵鍏nput缁勪欢)
|
||||
// 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
|
||||
required: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.required
|
||||
},
|
||||
// 鍙充晶鐨勫浘鏍囩澶?
|
||||
// 右侧的图标箭头
|
||||
rightIcon: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.rightIcon
|
||||
},
|
||||
// 鍙充晶绠ご鐨勬柟鍚戯紝鍙€夊€间负锛歭eft锛寀p锛宒own
|
||||
// 右侧箭头的方向,可选值为:left,up,down
|
||||
arrowDirection: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.arrowDirection
|
||||
},
|
||||
// 宸︿晶鍥炬爣鏍峰紡
|
||||
// 左侧图标样式
|
||||
iconStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return uni.$u.props.cell.iconStyle
|
||||
}
|
||||
},
|
||||
// 鍙充晶绠ご鍥炬爣鐨勬牱寮?
|
||||
// 右侧箭头图标的样式
|
||||
rightIconStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return uni.$u.props.cell.rightIconStyle
|
||||
}
|
||||
},
|
||||
// 鏍囬鐨勬牱寮?
|
||||
// 标题的样式
|
||||
titleStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return uni.$u.props.cell.titleStyle
|
||||
}
|
||||
},
|
||||
// 鍗曚綅鍏冪殑澶у皬锛屽彲閫夊€间负large
|
||||
// 单位元的大小,可选值为large
|
||||
size: {
|
||||
type: String,
|
||||
default: uni.$u.props.cell.size
|
||||
},
|
||||
// 鐐瑰嚮cell鏄惁闃绘浜嬩欢浼犳挱
|
||||
// 点击cell是否阻止事件传播
|
||||
stop: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.cell.stop
|
||||
},
|
||||
// 鏍囪瘑绗︼紝cell琚偣鍑绘椂杩斿洖
|
||||
// 标识符,cell被点击时返回
|
||||
name: {
|
||||
type: [Number, String],
|
||||
default: uni.$u.props.cell.name
|
||||
|
||||
Reference in New Issue
Block a user