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-search/props.js | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 118 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-search/props.js b/uni_modules/uview-ui/components/u-search/props.js new file mode 100644 index 0000000..df1b342 --- /dev/null +++ b/uni_modules/uview-ui/components/u-search/props.js @@ -0,0 +1,118 @@ +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 + } + } +} -- Gitblit v1.9.3