fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,70 +1,70 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 鏄惁鏄剧ず鍦嗙偣
|
||||
// 是否显示圆点
|
||||
isDot: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.badge.isDot
|
||||
},
|
||||
// 鏄剧ず鐨勫唴瀹?
|
||||
// 显示的内容
|
||||
value: {
|
||||
type: [Number, String],
|
||||
default: uni.$u.props.badge.value
|
||||
},
|
||||
// 鏄惁鏄剧ず
|
||||
// 是否显示
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.badge.show
|
||||
},
|
||||
// 鏈€澶у€硷紝瓒呰繃鏈€澶у€间細鏄剧ず '{max}+'
|
||||
// 最大值,超过最大值会显示 '{max}+'
|
||||
max: {
|
||||
type: [Number, String],
|
||||
default: uni.$u.props.badge.max
|
||||
},
|
||||
// 涓婚绫诲瀷锛宔rror|warning|success|primary
|
||||
// 主题类型,error|warning|success|primary
|
||||
type: {
|
||||
type: String,
|
||||
default: uni.$u.props.badge.type
|
||||
},
|
||||
// 褰撴暟鍊间负 0 鏃讹紝鏄惁灞曠ず Badge
|
||||
// 当数值为 0 时,是否展示 Badge
|
||||
showZero: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.badge.showZero
|
||||
},
|
||||
// 鑳屾櫙棰滆壊锛屼紭鍏堢骇姣攖ype楂橈紝濡傝缃紝type鍙傛暟浼氬け鏁?
|
||||
// 背景颜色,优先级比type高,如设置,type参数会失效
|
||||
bgColor: {
|
||||
type: [String, null],
|
||||
default: uni.$u.props.badge.bgColor
|
||||
},
|
||||
// 瀛椾綋棰滆壊
|
||||
// 字体颜色
|
||||
color: {
|
||||
type: [String, null],
|
||||
default: uni.$u.props.badge.color
|
||||
},
|
||||
// 寰芥爣褰㈢姸锛宑ircle-鍥涜鍧囦负鍦嗚锛宧orn-宸︿笅瑙掍负鐩磋
|
||||
// 徽标形状,circle-四角均为圆角,horn-左下角为直角
|
||||
shape: {
|
||||
type: String,
|
||||
default: uni.$u.props.badge.shape
|
||||
},
|
||||
// 璁剧疆鏁板瓧鐨勬樉绀烘柟寮忥紝overflow|ellipsis|limit
|
||||
// overflow浼氭牴鎹甿ax瀛楁鍒ゆ柇锛岃秴鍑烘樉绀篳${max}+`
|
||||
// ellipsis浼氭牴鎹甿ax鍒ゆ柇锛岃秴鍑烘樉绀篳${max}...`
|
||||
// limit浼氫緷鎹?000浣滀负鍒ゆ柇鏉′欢锛岃秴鍑?000锛屾樉绀篳${value/1000}K`锛屾瘮濡?.2k銆?.34w锛屾渶澶氫繚鐣?浣嶅皬鏁?
|
||||
// 设置数字的显示方式,overflow|ellipsis|limit
|
||||
// overflow会根据max字段判断,超出显示`${max}+`
|
||||
// ellipsis会根据max判断,超出显示`${max}...`
|
||||
// limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
|
||||
numberType: {
|
||||
type: String,
|
||||
default: uni.$u.props.badge.numberType
|
||||
},
|
||||
// 璁剧疆badge鐨勪綅缃亸绉伙紝鏍煎紡涓?[x, y]锛屼篃鍗宠缃殑涓簍op鍜宺ight鐨勫€硷紝absolute涓簍rue鏃舵湁鏁?
|
||||
// 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
|
||||
offset: {
|
||||
type: Array,
|
||||
default: uni.$u.props.badge.offset
|
||||
},
|
||||
// 鏄惁鍙嶈浆鑳屾櫙鍜屽瓧浣撻鑹?
|
||||
// 是否反转背景和字体颜色
|
||||
inverted: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.badge.inverted
|
||||
},
|
||||
// 鏄惁缁濆瀹氫綅
|
||||
// 是否绝对定位
|
||||
absolute: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.badge.absolute
|
||||
|
||||
Reference in New Issue
Block a user