From d1448cb0ef10f358bb7bddb4e1ec268515e0b787 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 11:46:57 +0800 Subject: [PATCH] 项目初始化 --- uni_modules/uview-ui/components/u-textarea/props.js | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 114 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-textarea/props.js b/uni_modules/uview-ui/components/u-textarea/props.js new file mode 100644 index 0000000..fd5a498 --- /dev/null +++ b/uni_modules/uview-ui/components/u-textarea/props.js @@ -0,0 +1,114 @@ +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 + } + } +} -- Gitblit v1.9.3