- 修复 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)
120 lines
4.1 KiB
JavaScript
120 lines
4.1 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 鎼滅储妗嗗舰鐘讹紝round-鍦嗗舰锛宻quare-鏂瑰舰
|
|
shape: {
|
|
type: String,
|
|
default: uni.$u.props.search.shape
|
|
},
|
|
// 鎼滅储妗嗚儗鏅壊锛岄粯璁ゅ€?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
|
|
inputAlign: {
|
|
type: String,
|
|
default: uni.$u.props.search.inputAlign
|
|
},
|
|
// 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鐨勯鑹?
|
|
placeholderColor: {
|
|
type: String,
|
|
default: uni.$u.props.search.placeholderColor
|
|
},
|
|
// 宸﹁竟杈撳叆妗嗙殑鍥炬爣锛屽彲浠ヤ负uView鍥炬爣鍚嶇О鎴栧浘鐗囪矾寰?
|
|
searchIcon: {
|
|
type: String,
|
|
default: uni.$u.props.search.searchIcon
|
|
},
|
|
searchIconSize: {
|
|
type: [Number, String],
|
|
default: uni.$u.props.search.searchIconSize
|
|
},
|
|
// 缁勪欢涓庡叾浠栦笂涓嬪乏鍙冲厓绱犱箣闂寸殑璺濈锛屽甫鍗曚綅鐨勫瓧绗︿覆褰㈠紡锛屽"30px"銆?30px 20px"绛夊啓娉?
|
|
margin: {
|
|
type: String,
|
|
default: uni.$u.props.search.margin
|
|
},
|
|
// 寮€鍚痵howAction鏃讹紝鏄惁鍦╥nput鑾峰彇鐒︾偣鏃舵墠鏄剧ず
|
|
animation: {
|
|
type: Boolean,
|
|
default: uni.$u.props.search.animation
|
|
},
|
|
// 杈撳叆妗嗙殑鍒濆鍖栧唴瀹?
|
|
value: {
|
|
type: String,
|
|
default: uni.$u.props.search.value
|
|
},
|
|
// 杈撳叆妗嗘渶澶ц兘杈撳叆鐨勯暱搴︼紝-1涓轰笉闄愬埗闀垮害(鏉ヨ嚜uniapp鏂囨。)
|
|
maxlength: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.search.maxlength
|
|
},
|
|
// 鎼滅储妗嗛珮搴︼紝鍗曚綅px
|
|
height: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.search.height
|
|
},
|
|
// 鎼滅储妗嗗乏渚ф枃鏈?
|
|
label: {
|
|
type: [String, Number, null],
|
|
default: uni.$u.props.search.label
|
|
}
|
|
}
|
|
}
|