fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,52 +1,52 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 鏄惁涓哄姞杞戒腑鐘舵€?
|
||||
// 是否为加载中状态
|
||||
loading: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.switch.loading
|
||||
},
|
||||
// 鏄惁涓虹鐢ㄨ濉?
|
||||
// 是否为禁用装填
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.switch.disabled
|
||||
},
|
||||
// 寮€鍏冲昂瀵革紝鍗曚綅px
|
||||
// 开关尺寸,单位px
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.switch.size
|
||||
},
|
||||
// 鎵撳紑鏃剁殑鑳屾櫙棰滆壊
|
||||
// 打开时的背景颜色
|
||||
activeColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.switch.activeColor
|
||||
},
|
||||
// 鍏抽棴鏃剁殑鑳屾櫙棰滆壊
|
||||
// 关闭时的背景颜色
|
||||
inactiveColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.switch.inactiveColor
|
||||
},
|
||||
// 閫氳繃v-model鍙屽悜缁戝畾鐨勫€?
|
||||
// 通过v-model双向绑定的值
|
||||
value: {
|
||||
type: [Boolean, String, Number],
|
||||
default: uni.$u.props.switch.value
|
||||
},
|
||||
// switch鎵撳紑鏃剁殑鍊?
|
||||
// switch打开时的值
|
||||
activeValue: {
|
||||
type: [String, Number, Boolean],
|
||||
default: uni.$u.props.switch.activeValue
|
||||
},
|
||||
// switch鍏抽棴鏃剁殑鍊?
|
||||
// switch关闭时的值
|
||||
inactiveValue: {
|
||||
type: [String, Number, Boolean],
|
||||
default: uni.$u.props.switch.inactiveValue
|
||||
},
|
||||
// 鏄惁寮€鍚紓姝ュ彉鏇达紝寮€鍚悗闇€瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ€?
|
||||
// 是否开启异步变更,开启后需要手动控制输入值
|
||||
asyncChange: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.switch.asyncChange
|
||||
},
|
||||
// 鍦嗙偣涓庡杈规鐨勮窛绂?
|
||||
// 圆点与外边框的距离
|
||||
space: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.switch.space
|
||||
|
||||
Reference in New Issue
Block a user