fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,87 +1,87 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 鏄惁灞曠ずmodal
|
||||
// 是否展示modal
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.show
|
||||
},
|
||||
// 鏍囬
|
||||
// 标题
|
||||
title: {
|
||||
type: [String],
|
||||
default: uni.$u.props.modal.title
|
||||
},
|
||||
// 寮圭獥鍐呭
|
||||
// 弹窗内容
|
||||
content: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.content
|
||||
},
|
||||
// 纭鏂囨
|
||||
// 确认文案
|
||||
confirmText: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.confirmText
|
||||
},
|
||||
// 鍙栨秷鏂囨
|
||||
// 取消文案
|
||||
cancelText: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.cancelText
|
||||
},
|
||||
// 鏄惁鏄剧ず纭鎸夐挳
|
||||
// 是否显示确认按钮
|
||||
showConfirmButton: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.showConfirmButton
|
||||
},
|
||||
// 鏄惁鏄剧ず鍙栨秷鎸夐挳
|
||||
// 是否显示取消按钮
|
||||
showCancelButton: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.showCancelButton
|
||||
},
|
||||
// 纭鎸夐挳棰滆壊
|
||||
// 确认按钮颜色
|
||||
confirmColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.confirmColor
|
||||
},
|
||||
// 鍙栨秷鏂囧瓧棰滆壊
|
||||
// 取消文字颜色
|
||||
cancelColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.cancelColor
|
||||
},
|
||||
// 瀵硅皟纭鍜屽彇娑堢殑浣嶇疆
|
||||
// 对调确认和取消的位置
|
||||
buttonReverse: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.buttonReverse
|
||||
},
|
||||
// 鏄惁寮€鍚缉鏀炬晥鏋?
|
||||
// 是否开启缩放效果
|
||||
zoom: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.zoom
|
||||
},
|
||||
// 鏄惁寮傛鍏抽棴锛屽彧瀵圭‘瀹氭寜閽湁鏁?
|
||||
// 是否异步关闭,只对确定按钮有效
|
||||
asyncClose: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.asyncClose
|
||||
},
|
||||
// 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴modal
|
||||
// 是否允许点击遮罩关闭modal
|
||||
closeOnClickOverlay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.modal.closeOnClickOverlay
|
||||
},
|
||||
// 缁欎竴涓礋鐨刴argin-top锛屽線涓婂亸绉伙紝閬垮厤鍜岄敭鐩橀噸鍚堢殑鎯呭喌
|
||||
// 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
||||
negativeTop: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.modal.negativeTop
|
||||
},
|
||||
// modal瀹藉害锛屼笉鏀寔鐧惧垎姣旓紝鍙互鏁板€硷紝px锛宺px鍗曚綅
|
||||
// modal宽度,不支持百分比,可以数值,px,rpx单位
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.modal.width
|
||||
},
|
||||
// 纭鎸夐挳鐨勬牱寮忥紝circle-鍦嗗舰锛宻quare-鏂瑰舰锛屽璁剧疆锛屽皢涓嶄細鏄剧ず鍙栨秷鎸夐挳
|
||||
// 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
|
||||
confirmButtonShape: {
|
||||
type: String,
|
||||
default: uni.$u.props.modal.confirmButtonShape
|
||||
},
|
||||
// 寮圭獥鍔ㄧ敾杩囧害鏃堕棿
|
||||
// 弹窗动画过度时间
|
||||
duration:{
|
||||
type:String | Number,
|
||||
default: uni.$u.props.modal.duration
|
||||
|
||||
Reference in New Issue
Block a user