fix: 修复 uView 组件文件编码乱码

- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM
- uview-ui/index.js 修复 2 行注释乱码
- 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
2026-09-08 15:44:20 +08:00
parent 99c139d6ce
commit ffd214eeba
86 changed files with 1020 additions and 1020 deletions
@@ -1,82 +1,82 @@
import '@/common/uview-init.js'
import '@/common/uview-init.js'
export default {
props: {
// 鎼滅储妗嗗舰鐘讹紝round-鍦嗗舰锛宻quare-鏂瑰舰
// 搜索框形状,round-圆形,square-方形
shape: {
type: String,
default: uni.$u.props.search.shape
},
// 鎼滅储妗嗚儗鏅壊锛岄粯璁ゅ€?f2f2f2
// 搜索框背景色,默认值#f2f2f2
bgColor: {
type: String,
default: uni.$u.props.search.bgColor
},
// 鍗犱綅鎻愮ず鏂囧瓧
// 占位提示文字
placeholder: {
type: String,
default: uni.$u.props.search.placeholder
},
// 鏄惁鍚敤娓呴櫎鎺т欢
// 是否启用清除控件
clearabled: {
type: Boolean,
default: uni.$u.props.search.clearabled
},
// 鏄惁鑷姩鑱氱劍
// 是否自动聚焦
focus: {
type: Boolean,
default: uni.$u.props.search.focus
},
// 鏄惁鍦ㄦ悳绱㈡鍙充晶鏄剧ず鍙栨秷鎸夐挳
// 是否在搜索框右侧显示取消按钮
showAction: {
type: Boolean,
default: uni.$u.props.search.showAction
},
// 鍙宠竟鎺т欢鐨勬牱寮?
// 右边控件的样式
actionStyle: {
type: Object,
default: uni.$u.props.search.actionStyle
},
// 鍙栨秷鎸夐挳鏂囧瓧
// 取消按钮文字
actionText: {
type: String,
default: uni.$u.props.search.actionText
},
// 杈撳叆妗嗗唴瀹瑰榻愭柟寮忥紝鍙€夊€间负 left|center|right
// 输入框内容对齐方式,可选值为 left|center|right
inputAlign: {
type: String,
default: uni.$u.props.search.inputAlign
},
// input杈撳叆妗嗙殑鏍峰紡锛屽彲浠ュ畾涔夋枃瀛楅鑹诧紝澶у皬绛夛紝瀵硅薄褰㈠紡
// input输入框的样式,可以定义文字颜色,大小等,对象形式
inputStyle: {
type: Object,
default: uni.$u.props.search.inputStyle
},
// 鏄惁鍚敤杈撳叆妗?
// 是否启用输入框
disabled: {
type: Boolean,
default: uni.$u.props.search.disabled
},
// 杈规棰滆壊
// 边框颜色
borderColor: {
type: String,
default: uni.$u.props.search.borderColor
},
// 鎼滅储鍥炬爣鐨勯鑹诧紝榛樿鍚岃緭鍏ユ瀛椾綋棰滆壊
// 搜索图标的颜色,默认同输入框字体颜色
searchIconColor: {
type: String,
default: uni.$u.props.search.searchIconColor
},
// 杈撳叆妗嗗瓧浣撻鑹?
// 输入框字体颜色
color: {
type: String,
default: uni.$u.props.search.color
},
// placeholder鐨勯鑹?
// placeholder的颜色
placeholderColor: {
type: String,
default: uni.$u.props.search.placeholderColor
},
// 宸﹁竟杈撳叆妗嗙殑鍥炬爣锛屽彲浠ヤ负uView鍥炬爣鍚嶇О鎴栧浘鐗囪矾寰?
// 左边输入框的图标,可以为uView图标名称或图片路径
searchIcon: {
type: String,
default: uni.$u.props.search.searchIcon
@@ -85,32 +85,32 @@ export default {
type: [Number, String],
default: uni.$u.props.search.searchIconSize
},
// 缁勪欢涓庡叾浠栦笂涓嬪乏鍙冲厓绱犱箣闂寸殑璺濈锛屽甫鍗曚綅鐨勫瓧绗︿覆褰㈠紡锛屽"30px"銆?30px 20px"绛夊啓娉?
// 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
margin: {
type: String,
default: uni.$u.props.search.margin
},
// 寮€鍚痵howAction鏃讹紝鏄惁鍦╥nput鑾峰彇鐒︾偣鏃舵墠鏄剧ず
// 开启showAction时,是否在input获取焦点时才显示
animation: {
type: Boolean,
default: uni.$u.props.search.animation
},
// 杈撳叆妗嗙殑鍒濆鍖栧唴瀹?
// 输入框的初始化内容
value: {
type: String,
default: uni.$u.props.search.value
},
// 杈撳叆妗嗘渶澶ц兘杈撳叆鐨勯暱搴︼紝-1涓轰笉闄愬埗闀垮害(鏉ヨ嚜uniapp鏂囨。)
// 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
maxlength: {
type: [String, Number],
default: uni.$u.props.search.maxlength
},
// 鎼滅储妗嗛珮搴︼紝鍗曚綅px
// 搜索框高度,单位px
height: {
type: [String, Number],
default: uni.$u.props.search.height
},
// 鎼滅储妗嗗乏渚ф枃鏈?
// 搜索框左侧文本
label: {
type: [String, Number, null],
default: uni.$u.props.search.label