fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,117 +1,117 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 杈撳叆妗嗙殑鍐呭
|
||||
// 输入框的内容
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.textarea.value
|
||||
},
|
||||
// 杈撳叆妗嗕负绌烘椂鍗犱綅绗?
|
||||
// 输入框为空时占位符
|
||||
placeholder: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.textarea.placeholder
|
||||
},
|
||||
// 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇€瑕佸湪绫诲悕鍓嶅啓/deep/
|
||||
// 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
||||
placeholderClass: {
|
||||
type: String,
|
||||
default: uni.$u.props.input.placeholderClass
|
||||
},
|
||||
// 鎸囧畾placeholder鐨勬牱寮?
|
||||
// 指定placeholder的样式
|
||||
placeholderStyle: {
|
||||
type: [String, Object],
|
||||
default: uni.$u.props.input.placeholderStyle
|
||||
},
|
||||
// 杈撳叆妗嗛珮搴?
|
||||
// 输入框高度
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.textarea.height
|
||||
},
|
||||
// 璁剧疆閿洏鍙充笅瑙掓寜閽殑鏂囧瓧锛屼粎寰俊灏忕▼搴忥紝App-vue鍜孒5鏈夋晥
|
||||
// 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
|
||||
confirmType: {
|
||||
type: String,
|
||||
default: uni.$u.props.textarea.confirmType
|
||||
},
|
||||
// 鏄惁绂佺敤
|
||||
// 是否禁用
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.disabled
|
||||
},
|
||||
// 鏄惁鏄剧ず缁熻瀛楁暟
|
||||
// 是否显示统计字数
|
||||
count: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.count
|
||||
},
|
||||
// 鏄惁鑷姩鑾峰彇鐒︾偣锛宯vue涓嶆敮鎸侊紝H5鍙栧喅浜庢祻瑙堝櫒鐨勫疄鐜?
|
||||
// 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
|
||||
focus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.focus
|
||||
},
|
||||
// 鏄惁鑷姩澧炲姞楂樺害
|
||||
// 是否自动增加高度
|
||||
autoHeight: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.autoHeight
|
||||
},
|
||||
// 濡傛灉textarea鏄湪涓€涓猵osition:fixed鐨勫尯鍩燂紝闇€瑕佹樉绀烘寚瀹氬睘鎬ixed涓簍rue
|
||||
// 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.fixed
|
||||
},
|
||||
// 鎸囧畾鍏夋爣涓庨敭鐩樼殑璺濈
|
||||
// 指定光标与键盘的距离
|
||||
cursorSpacing: {
|
||||
type: Number,
|
||||
default: uni.$u.props.textarea.cursorSpacing
|
||||
},
|
||||
// 鎸囧畾focus鏃剁殑鍏夋爣浣嶇疆
|
||||
// 指定focus时的光标位置
|
||||
cursor: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.textarea.cursor
|
||||
},
|
||||
// 鏄惁鏄剧ず閿洏涓婃柟甯︽湁鈥濆畬鎴愨€滄寜閽偅涓€鏍忥紝
|
||||
// 是否显示键盘上方带有”完成“按钮那一栏,
|
||||
showConfirmBar: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.showConfirmBar
|
||||
},
|
||||
// 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤
|
||||
// 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
|
||||
selectionStart: {
|
||||
type: Number,
|
||||
default: uni.$u.props.textarea.selectionStart
|
||||
},
|
||||
// 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤
|
||||
// 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
|
||||
selectionEnd: {
|
||||
type: Number,
|
||||
default: uni.$u.props.textarea.selectionEnd
|
||||
},
|
||||
// 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰
|
||||
// 键盘弹起时,是否自动上推页面
|
||||
adjustPosition: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.adjustPosition
|
||||
},
|
||||
// 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝鍙井淇″皬绋嬪簭鏈夋晥
|
||||
// 是否去掉 iOS 下的默认内边距,只微信小程序有效
|
||||
disableDefaultPadding: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.disableDefaultPadding
|
||||
},
|
||||
// focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽彧寰俊灏忕▼搴忔湁鏁?
|
||||
// focus时,点击页面的时候不收起键盘,只微信小程序有效
|
||||
holdKeyboard: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.textarea.holdKeyboard
|
||||
},
|
||||
// 鏈€澶ц緭鍏ラ暱搴︼紝璁剧疆涓?-1 鐨勬椂鍊欎笉闄愬埗鏈€澶ч暱搴?
|
||||
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
||||
maxlength: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.textarea.maxlength
|
||||
},
|
||||
// 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宐ottom-搴曢儴杈规
|
||||
// 边框类型,surround-四周边框,bottom-底部边框
|
||||
border: {
|
||||
type: String,
|
||||
default: uni.$u.props.textarea.border
|
||||
},
|
||||
// 鐢ㄤ簬澶勭悊鎴栬€呰繃婊よ緭鍏ユ鍐呭鐨勬柟娉?
|
||||
// 用于处理或者过滤输入框内容的方法
|
||||
formatter: {
|
||||
type: [Function, null],
|
||||
default: uni.$u.props.textarea.formatter
|
||||
},
|
||||
// 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞?
|
||||
// 是否忽略组件内对文本合成系统事件的处理
|
||||
ignoreCompositionEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
||||
Reference in New Issue
Block a user