fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,82 +1,82 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 閿洏鐨勭被鍨嬶紝number-鏁板瓧閿洏锛宑ard-韬唤璇侀敭鐩橈紝car-杞︾墝鍙烽敭鐩?
|
||||
// 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.mode
|
||||
},
|
||||
// 鏄惁鏄剧ず閿洏鐨?."绗﹀彿
|
||||
// 是否显示键盘的"."符号
|
||||
dotDisabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.dotDisabled
|
||||
},
|
||||
// 鏄惁鏄剧ず椤堕儴宸ュ叿鏉?
|
||||
// 是否显示顶部工具条
|
||||
tooltip: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.tooltip
|
||||
},
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉′腑闂寸殑鎻愮ず
|
||||
// 是否显示工具条中间的提示
|
||||
showTips: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showTips
|
||||
},
|
||||
// 宸ュ叿鏉′腑闂寸殑鎻愮ず鏂囧瓧
|
||||
// 工具条中间的提示文字
|
||||
tips: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.tips
|
||||
},
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉″乏杈圭殑"鍙栨秷"鎸夐挳
|
||||
// 是否显示工具条左边的"取消"按钮
|
||||
showCancel: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showCancel
|
||||
},
|
||||
// 鏄惁鏄剧ず宸ュ叿鏉″彸杈圭殑"瀹屾垚"鎸夐挳
|
||||
// 是否显示工具条右边的"完成"按钮
|
||||
showConfirm: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.showConfirm
|
||||
},
|
||||
// 鏄惁鎵撲贡閿洏鎸夐敭鐨勯『搴?
|
||||
// 是否打乱键盘按键的顺序
|
||||
random: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.random
|
||||
},
|
||||
// 鏄惁寮€鍚簳閮ㄥ畨鍏ㄥ尯閫傞厤锛屽紑鍚殑璇濓紝浼氬湪iPhoneX鏈哄瀷搴曢儴娣诲姞涓€瀹氱殑鍐呰竟璺?
|
||||
// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.safeAreaInsetBottom
|
||||
},
|
||||
// 鏄惁鍏佽閫氳繃鐐瑰嚮閬僵鍏抽棴閿洏
|
||||
// 是否允许通过点击遮罩关闭键盘
|
||||
closeOnClickOverlay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.closeOnClickOverlay
|
||||
},
|
||||
// 鎺у埗閿洏鐨勫脊鍑轰笌鏀惰捣
|
||||
// 控制键盘的弹出与收起
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.show
|
||||
},
|
||||
// 鏄惁鏄剧ず閬僵锛屾煇浜涙椂鍊欐暟瀛楅敭鐩樻椂锛岀敤鎴峰笇鏈涚湅鍒拌嚜宸辩殑鏁板€硷紝鎵€浠ュ彲鑳戒笉鎯宠閬僵
|
||||
// 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
|
||||
overlay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.overlay
|
||||
},
|
||||
// z-index鍊?
|
||||
// z-index值
|
||||
zIndex: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.keyboard.zIndex
|
||||
},
|
||||
// 鍙栨秷鎸夐挳鐨勬枃瀛?
|
||||
// 取消按钮的文字
|
||||
cancelText: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.cancelText
|
||||
},
|
||||
// 纭鎸夐挳鐨勬枃瀛?
|
||||
// 确认按钮的文字
|
||||
confirmText: {
|
||||
type: String,
|
||||
default: uni.$u.props.keyboard.confirmText
|
||||
},
|
||||
// 杈撳叆涓€涓腑鏂囧悗锛屾槸鍚﹁嚜鍔ㄥ垏鎹㈠埌鑻辨枃
|
||||
// 输入一个中文后,是否自动切换到英文
|
||||
autoChange: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.keyboard.autoChange
|
||||
|
||||
Reference in New Issue
Block a user