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-image/props.js | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-image/props.js b/uni_modules/uview-ui/components/u-image/props.js new file mode 100644 index 0000000..2eabb74 --- /dev/null +++ b/uni_modules/uview-ui/components/u-image/props.js @@ -0,0 +1,84 @@ +export default { + props: { + // 鍥剧墖鍦板潃 + src: { + type: String, + default: uni.$u.props.image.src + }, + // 瑁佸壀妯″紡 + mode: { + type: String, + default: uni.$u.props.image.mode + }, + // 瀹藉害锛屽崟浣嶄换鎰� + width: { + type: [String, Number], + default: uni.$u.props.image.width + }, + // 楂樺害锛屽崟浣嶄换鎰� + height: { + type: [String, Number], + default: uni.$u.props.image.height + }, + // 鍥剧墖褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰 + shape: { + type: String, + default: uni.$u.props.image.shape + }, + // 鍦嗚锛屽崟浣嶄换鎰� + radius: { + type: [String, Number], + default: uni.$u.props.image.radius + }, + // 鏄惁鎳掑姞杞斤紝寰俊灏忕▼搴忋�丄pp銆佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 + lazyLoad: { + type: Boolean, + default: uni.$u.props.image.lazyLoad + }, + // 寮�鍚暱鎸夊浘鐗囨樉绀鸿瘑鍒井淇″皬绋嬪簭鐮佽彍鍗� + showMenuByLongpress: { + type: Boolean, + default: uni.$u.props.image.showMenuByLongpress + }, + // 鍔犺浇涓殑鍥炬爣锛屾垨鑰呭皬鍥剧墖 + loadingIcon: { + type: String, + default: uni.$u.props.image.loadingIcon + }, + // 鍔犺浇澶辫触鐨勫浘鏍囷紝鎴栬�呭皬鍥剧墖 + errorIcon: { + type: String, + default: uni.$u.props.image.errorIcon + }, + // 鏄惁鏄剧ず鍔犺浇涓殑鍥炬爣鎴栬�呰嚜瀹氫箟鐨剆lot + showLoading: { + type: Boolean, + default: uni.$u.props.image.showLoading + }, + // 鏄惁鏄剧ず鍔犺浇閿欒鐨勫浘鏍囨垨鑰呰嚜瀹氫箟鐨剆lot + showError: { + type: Boolean, + default: uni.$u.props.image.showError + }, + // 鏄惁闇�瑕佹贰鍏ユ晥鏋� + fade: { + type: Boolean, + default: uni.$u.props.image.fade + }, + // 鍙敮鎸佺綉缁滆祫婧愶紝鍙寰俊灏忕▼搴忔湁鏁� + webp: { + type: Boolean, + default: uni.$u.props.image.webp + }, + // 杩囨浮鏃堕棿锛屽崟浣峬s + duration: { + type: [String, Number], + default: uni.$u.props.image.duration + }, + // 鑳屾櫙棰滆壊锛岀敤浜庢繁鑹查〉闈㈠姞杞藉浘鐗囨椂锛屼负浜嗗拰鑳屾櫙鑹茶瀺鍚� + bgColor: { + type: String, + default: uni.$u.props.image.bgColor + } + } +} -- Gitblit v1.9.3