fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,107 +1,107 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 姝ヨ繘鍣ㄦ爣璇嗙锛屽湪change鍥炶皟杩斿洖
|
||||
// 步进器标识符,在change回调返回
|
||||
name: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.name
|
||||
},
|
||||
// 鐢ㄤ簬鍙屽悜缁戝畾鐨勫€硷紝鍒濆鍖栨椂璁剧疆璁句负榛樿min鍊?鏈€灏忓€?
|
||||
// 用于双向绑定的值,初始化时设置设为默认min值(最小值)
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.value
|
||||
},
|
||||
// 鏈€灏忓€?
|
||||
// 最小值
|
||||
min: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.min
|
||||
},
|
||||
// 鏈€澶у€?
|
||||
// 最大值
|
||||
max: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.max
|
||||
},
|
||||
// 鍔犲噺鐨勬闀匡紝鍙负灏忔暟
|
||||
// 加减的步长,可为小数
|
||||
step: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.step
|
||||
},
|
||||
// 鏄惁鍙厑璁歌緭鍏ユ暣鏁?
|
||||
// 是否只允许输入整数
|
||||
integer: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.integer
|
||||
},
|
||||
// 鏄惁绂佺敤锛屽寘鎷緭鍏ユ锛屽姞鍑忔寜閽?
|
||||
// 是否禁用,包括输入框,加减按钮
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.disabled
|
||||
},
|
||||
// 鏄惁绂佺敤杈撳叆妗?
|
||||
// 是否禁用输入框
|
||||
disabledInput: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.disabledInput
|
||||
},
|
||||
// 鏄惁寮€鍚紓姝ュ彉鏇达紝寮€鍚悗闇€瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ€?
|
||||
// 是否开启异步变更,开启后需要手动控制输入值
|
||||
asyncChange: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.asyncChange
|
||||
},
|
||||
// 杈撳叆妗嗗搴︼紝鍗曚綅涓簆x
|
||||
// 输入框宽度,单位为px
|
||||
inputWidth: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.inputWidth
|
||||
},
|
||||
// 鏄惁鏄剧ず鍑忓皯鎸夐挳
|
||||
// 是否显示减少按钮
|
||||
showMinus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.showMinus
|
||||
},
|
||||
// 鏄惁鏄剧ず澧炲姞鎸夐挳
|
||||
// 是否显示增加按钮
|
||||
showPlus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.showPlus
|
||||
},
|
||||
// 鏄剧ず鐨勫皬鏁颁綅鏁?
|
||||
// 显示的小数位数
|
||||
decimalLength: {
|
||||
type: [String, Number, null],
|
||||
default: uni.$u.props.numberBox.decimalLength
|
||||
},
|
||||
// 鏄惁寮€鍚暱鎸夊姞鍑忔墜鍔?
|
||||
// 是否开启长按加减手势
|
||||
longPress: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.longPress
|
||||
},
|
||||
// 杈撳叆妗嗘枃瀛楀拰鍔犲噺鎸夐挳鍥炬爣鐨勯鑹?
|
||||
// 输入框文字和加减按钮图标的颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: uni.$u.props.numberBox.color
|
||||
},
|
||||
// 鎸夐挳澶у皬锛屽楂樼瓑浜庢鍊硷紝鍗曚綅px锛岃緭鍏ユ楂樺害鍜屾鍊间繚鎸佷竴鑷?
|
||||
// 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
|
||||
buttonSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.buttonSize
|
||||
},
|
||||
// 杈撳叆妗嗗拰鎸夐挳鐨勮儗鏅鑹?
|
||||
// 输入框和按钮的背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.numberBox.bgColor
|
||||
},
|
||||
// 鎸囧畾鍏夋爣浜庨敭鐩樼殑璺濈锛岄伩鍏嶉敭鐩橀伄鎸¤緭鍏ユ锛屽崟浣峱x
|
||||
// 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
|
||||
cursorSpacing: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.numberBox.cursorSpacing
|
||||
},
|
||||
// 鏄惁绂佺敤澧炲姞鎸夐挳
|
||||
// 是否禁用增加按钮
|
||||
disablePlus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.disablePlus
|
||||
},
|
||||
// 鏄惁绂佺敤鍑忓皯鎸夐挳
|
||||
// 是否禁用减少按钮
|
||||
disableMinus: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.numberBox.disableMinus
|
||||
},
|
||||
// 鍔犲噺鎸夐挳鍥炬爣鐨勬牱寮?
|
||||
// 加减按钮图标的样式
|
||||
iconStyle: {
|
||||
type: [Object, String],
|
||||
default: uni.$u.props.numberBox.iconStyle
|
||||
|
||||
Reference in New Issue
Block a user