- 修复 uni-popup-dialog/uni-data-picker keypress.js 中 $once 在 H5 端报错(改用生命周期钩子清理监听) - main.js 补 $delete globalProperties polyfill(z-paging 自动高度逻辑依赖) - App.vue onLaunch 补设备信息初始化,修复 X-Device-Id 恒为 unknown - 68 处 ::v-deep、/deep/ 旧深度选择器替换为 :deep()(含 login-page.scss) - zetank-personalpage 组件 .sync 修饰符改为 v-model:xxx(Vue3 已移除 .sync) - vite.config.js HBuilderX 路径支持 HBUILDERX_HOME 环境变量覆盖 - 根 package.json 清理 image-grid 插件遗留元数据 - 收录此前未提交的 uView Vue3 兜底补丁(common/uview-init.js 及各组件 props.js)
163 lines
6.4 KiB
JavaScript
163 lines
6.4 KiB
JavaScript
import '@/common/uview-init.js'
|
|
/*
|
|
* @Author : LQ
|
|
* @Description :
|
|
* @version : 1.0
|
|
* @Date : 2021-08-16 10:04:04
|
|
* @LastAuthor : LQ
|
|
* @lastTime : 2021-08-16 10:04:24
|
|
* @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
|
|
*/
|
|
export default {
|
|
props: {
|
|
// 鏄惁缁嗚竟妗?
|
|
hairline: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.hairline
|
|
},
|
|
// 鎸夐挳鐨勯缃牱寮忥紝info锛宲rimary锛宔rror锛寃arning锛宻uccess
|
|
type: {
|
|
type: String,
|
|
default: uni.$u.props.button.type
|
|
},
|
|
// 鎸夐挳灏哄锛宭arge锛宯ormal锛宻mall锛宮ini
|
|
size: {
|
|
type: String,
|
|
default: uni.$u.props.button.size
|
|
},
|
|
// 鎸夐挳褰㈢姸锛宑ircle锛堜袱杈逛负鍗婂渾锛夛紝square锛堝甫鍦嗚锛?
|
|
shape: {
|
|
type: String,
|
|
default: uni.$u.props.button.shape
|
|
},
|
|
// 鎸夐挳鏄惁闀傜┖
|
|
plain: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.plain
|
|
},
|
|
// 鏄惁绂佹鐘舵€?
|
|
disabled: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.disabled
|
|
},
|
|
// 鏄惁鍔犺浇涓?
|
|
loading: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.loading
|
|
},
|
|
// 鍔犺浇涓彁绀烘枃瀛?
|
|
loadingText: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.loadingText
|
|
},
|
|
// 鍔犺浇鐘舵€佸浘鏍囩被鍨?
|
|
loadingMode: {
|
|
type: String,
|
|
default: uni.$u.props.button.loadingMode
|
|
},
|
|
// 鍔犺浇鍥炬爣澶у皬
|
|
loadingSize: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.loadingSize
|
|
},
|
|
// 寮€鏀捐兘鍔涳紝鍏蜂綋璇风湅uniapp绋冲畾鍏充簬button缁勪欢閮ㄥ垎璇存槑
|
|
// https://uniapp.dcloud.io/component/button
|
|
openType: {
|
|
type: String,
|
|
default: uni.$u.props.button.openType
|
|
},
|
|
// 鐢ㄤ簬 <form> 缁勪欢锛岀偣鍑诲垎鍒細瑙﹀彂 <form> 缁勪欢鐨?submit/reset 浜嬩欢
|
|
// 鍙栧€间负submit锛堟彁浜よ〃鍗曪級锛宺eset锛堥噸缃〃鍗曪級
|
|
formType: {
|
|
type: String,
|
|
default: uni.$u.props.button.formType
|
|
},
|
|
// 鎵撳紑 APP 鏃讹紝鍚?APP 浼犻€掔殑鍙傛暟锛宱pen-type=launchApp鏃舵湁鏁?
|
|
// 鍙井淇″皬绋嬪簭銆丵Q灏忕▼搴忔湁鏁?
|
|
appParameter: {
|
|
type: String,
|
|
default: uni.$u.props.button.appParameter
|
|
},
|
|
// 鎸囧畾鏄惁闃绘鏈妭鐐圭殑绁栧厛鑺傜偣鍑虹幇鐐瑰嚮鎬侊紝寰俊灏忕▼搴忔湁鏁?
|
|
hoverStopPropagation: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.hoverStopPropagation
|
|
},
|
|
// 鎸囧畾杩斿洖鐢ㄦ埛淇℃伅鐨勮瑷€锛寊h_CN 绠€浣撲腑鏂囷紝zh_TW 绻佷綋涓枃锛宔n 鑻辨枃銆傚彧寰俊灏忕▼搴忔湁鏁?
|
|
lang: {
|
|
type: String,
|
|
default: uni.$u.props.button.lang
|
|
},
|
|
// 浼氳瘽鏉ユ簮锛宱pen-type="contact"鏃舵湁鏁堛€傚彧寰俊灏忕▼搴忔湁鏁?
|
|
sessionFrom: {
|
|
type: String,
|
|
default: uni.$u.props.button.sessionFrom
|
|
},
|
|
// 浼氳瘽鍐呮秷鎭崱鐗囨爣棰橈紝open-type="contact"鏃舵湁鏁?
|
|
// 榛樿褰撳墠鏍囬锛屽彧寰俊灏忕▼搴忔湁鏁?
|
|
sendMessageTitle: {
|
|
type: String,
|
|
default: uni.$u.props.button.sendMessageTitle
|
|
},
|
|
// 浼氳瘽鍐呮秷鎭崱鐗囩偣鍑昏烦杞皬绋嬪簭璺緞锛宱pen-type="contact"鏃舵湁鏁?
|
|
// 榛樿褰撳墠鍒嗕韩璺緞锛屽彧寰俊灏忕▼搴忔湁鏁?
|
|
sendMessagePath: {
|
|
type: String,
|
|
default: uni.$u.props.button.sendMessagePath
|
|
},
|
|
// 浼氳瘽鍐呮秷鎭崱鐗囧浘鐗囷紝open-type="contact"鏃舵湁鏁?
|
|
// 榛樿褰撳墠椤甸潰鎴浘锛屽彧寰俊灏忕▼搴忔湁鏁?
|
|
sendMessageImg: {
|
|
type: String,
|
|
default: uni.$u.props.button.sendMessageImg
|
|
},
|
|
// 鏄惁鏄剧ず浼氳瘽鍐呮秷鎭崱鐗囷紝璁剧疆姝ゅ弬鏁颁负 true锛岀敤鎴疯繘鍏ュ鏈嶄細璇濅細鍦ㄥ彸涓嬭鏄剧ず"鍙兘瑕佸彂閫佺殑灏忕▼搴?鎻愮ず锛?
|
|
// 鐢ㄦ埛鐐瑰嚮鍚庡彲浠ュ揩閫熷彂閫佸皬绋嬪簭娑堟伅锛宱pen-type="contact"鏃舵湁鏁?
|
|
showMessageCard: {
|
|
type: Boolean,
|
|
default: uni.$u.props.button.showMessageCard
|
|
},
|
|
// 棰濆浼犲弬鍙傛暟锛岀敤浜庡皬绋嬪簭鐨刣ata-xxx灞炴€э紝閫氳繃target.dataset.name鑾峰彇
|
|
dataName: {
|
|
type: String,
|
|
default: uni.$u.props.button.dataName
|
|
},
|
|
// 鑺傛祦锛屼竴瀹氭椂闂村唴鍙兘瑙﹀彂涓€娆?
|
|
throttleTime: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.throttleTime
|
|
},
|
|
// 鎸変綇鍚庡涔呭嚭鐜扮偣鍑绘€侊紝鍗曚綅姣
|
|
hoverStartTime: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.hoverStartTime
|
|
},
|
|
// 鎵嬫寚鏉惧紑鍚庣偣鍑绘€佷繚鐣欐椂闂达紝鍗曚綅姣
|
|
hoverStayTime: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.hoverStayTime
|
|
},
|
|
// 鎸夐挳鏂囧瓧锛屼箣鎵€浠ラ€氳繃props浼犲叆锛屾槸鍥犱负slot浼犲叆鐨勮瘽
|
|
// nvue涓棤娉曟帶鍒舵枃瀛楃殑鏍峰紡
|
|
text: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.button.text
|
|
},
|
|
// 鎸夐挳鍥炬爣
|
|
icon: {
|
|
type: String,
|
|
default: uni.$u.props.button.icon
|
|
},
|
|
// 鎸夐挳鍥炬爣
|
|
iconColor: {
|
|
type: String,
|
|
default: uni.$u.props.button.icon
|
|
},
|
|
// 鎸夐挳棰滆壊锛屾敮鎸佷紶鍏inear-gradient娓愬彉鑹?
|
|
color: {
|
|
type: String,
|
|
default: uni.$u.props.button.color
|
|
}
|
|
}
|
|
}
|