- 修复 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)
121 lines
3.8 KiB
JavaScript
121 lines
3.8 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 杈撳叆妗嗙殑鍐呭
|
|
value: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.textarea.value
|
|
},
|
|
// 杈撳叆妗嗕负绌烘椂鍗犱綅绗?
|
|
placeholder: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.textarea.placeholder
|
|
},
|
|
// 鎸囧畾placeholder鐨勬牱寮忕被锛屾敞鎰忛〉闈㈡垨缁勪欢鐨剆tyle涓啓浜唖coped鏃讹紝闇€瑕佸湪绫诲悕鍓嶅啓/deep/
|
|
placeholderClass: {
|
|
type: String,
|
|
default: uni.$u.props.input.placeholderClass
|
|
},
|
|
// 鎸囧畾placeholder鐨勬牱寮?
|
|
placeholderStyle: {
|
|
type: [String, Object],
|
|
default: uni.$u.props.input.placeholderStyle
|
|
},
|
|
// 杈撳叆妗嗛珮搴?
|
|
height: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.textarea.height
|
|
},
|
|
// 璁剧疆閿洏鍙充笅瑙掓寜閽殑鏂囧瓧锛屼粎寰俊灏忕▼搴忥紝App-vue鍜孒5鏈夋晥
|
|
confirmType: {
|
|
type: String,
|
|
default: uni.$u.props.textarea.confirmType
|
|
},
|
|
// 鏄惁绂佺敤
|
|
disabled: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.disabled
|
|
},
|
|
// 鏄惁鏄剧ず缁熻瀛楁暟
|
|
count: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.count
|
|
},
|
|
// 鏄惁鑷姩鑾峰彇鐒︾偣锛宯vue涓嶆敮鎸侊紝H5鍙栧喅浜庢祻瑙堝櫒鐨勫疄鐜?
|
|
focus: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.focus
|
|
},
|
|
// 鏄惁鑷姩澧炲姞楂樺害
|
|
autoHeight: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.autoHeight
|
|
},
|
|
// 濡傛灉textarea鏄湪涓€涓猵osition:fixed鐨勫尯鍩燂紝闇€瑕佹樉绀烘寚瀹氬睘鎬ixed涓簍rue
|
|
fixed: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.fixed
|
|
},
|
|
// 鎸囧畾鍏夋爣涓庨敭鐩樼殑璺濈
|
|
cursorSpacing: {
|
|
type: Number,
|
|
default: uni.$u.props.textarea.cursorSpacing
|
|
},
|
|
// 鎸囧畾focus鏃剁殑鍏夋爣浣嶇疆
|
|
cursor: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.textarea.cursor
|
|
},
|
|
// 鏄惁鏄剧ず閿洏涓婃柟甯︽湁鈥濆畬鎴愨€滄寜閽偅涓€鏍忥紝
|
|
showConfirmBar: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.showConfirmBar
|
|
},
|
|
// 鍏夋爣璧峰浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-end鎼厤浣跨敤
|
|
selectionStart: {
|
|
type: Number,
|
|
default: uni.$u.props.textarea.selectionStart
|
|
},
|
|
// 鍏夋爣缁撴潫浣嶇疆锛岃嚜鍔ㄨ仛鐒︽椂鏈夋晥锛岄渶涓巗election-start鎼厤浣跨敤
|
|
selectionEnd: {
|
|
type: Number,
|
|
default: uni.$u.props.textarea.selectionEnd
|
|
},
|
|
// 閿洏寮硅捣鏃讹紝鏄惁鑷姩涓婃帹椤甸潰
|
|
adjustPosition: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.adjustPosition
|
|
},
|
|
// 鏄惁鍘绘帀 iOS 涓嬬殑榛樿鍐呰竟璺濓紝鍙井淇″皬绋嬪簭鏈夋晥
|
|
disableDefaultPadding: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.disableDefaultPadding
|
|
},
|
|
// focus鏃讹紝鐐瑰嚮椤甸潰鐨勬椂鍊欎笉鏀惰捣閿洏锛屽彧寰俊灏忕▼搴忔湁鏁?
|
|
holdKeyboard: {
|
|
type: Boolean,
|
|
default: uni.$u.props.textarea.holdKeyboard
|
|
},
|
|
// 鏈€澶ц緭鍏ラ暱搴︼紝璁剧疆涓?-1 鐨勬椂鍊欎笉闄愬埗鏈€澶ч暱搴?
|
|
maxlength: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.textarea.maxlength
|
|
},
|
|
// 杈规绫诲瀷锛宻urround-鍥涘懆杈规锛宐ottom-搴曢儴杈规
|
|
border: {
|
|
type: String,
|
|
default: uni.$u.props.textarea.border
|
|
},
|
|
// 鐢ㄤ簬澶勭悊鎴栬€呰繃婊よ緭鍏ユ鍐呭鐨勬柟娉?
|
|
formatter: {
|
|
type: [Function, null],
|
|
default: uni.$u.props.textarea.formatter
|
|
},
|
|
// 鏄惁蹇界暐缁勪欢鍐呭鏂囨湰鍚堟垚绯荤粺浜嬩欢鐨勫鐞?
|
|
ignoreCompositionEvent: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
}
|
|
}
|