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-album/props.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-album/props.js b/uni_modules/uview-ui/components/u-album/props.js new file mode 100644 index 0000000..75cdb37 --- /dev/null +++ b/uni_modules/uview-ui/components/u-album/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 鍥剧墖鍦板潃锛孉rray<String>|Array<Object>褰㈠紡 + urls: { + type: Array, + default: uni.$u.props.album.urls + }, + // 鎸囧畾浠庢暟缁勭殑瀵硅薄鍏冪礌涓鍙栧摢涓睘鎬т綔涓哄浘鐗囧湴鍧� + keyName: { + type: String, + default: uni.$u.props.album.keyName + }, + // 鍗曞浘鏃讹紝鍥剧墖闀胯竟鐨勯暱搴� + singleSize: { + type: [String, Number], + default: uni.$u.props.album.singleSize + }, + // 澶氬浘鏃讹紝鍥剧墖杈归暱 + multipleSize: { + type: [String, Number], + default: uni.$u.props.album.multipleSize + }, + // 澶氬浘鏃讹紝鍥剧墖姘村钩鍜屽瀭鐩翠箣闂寸殑闂撮殧 + space: { + type: [String, Number], + default: uni.$u.props.album.space + }, + // 鍗曞浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� + singleMode: { + type: String, + default: uni.$u.props.album.singleMode + }, + // 澶氬浘鏃讹紝鍥剧墖缂╂斁瑁佸壀鐨勬ā寮� + multipleMode: { + type: String, + default: uni.$u.props.album.multipleMode + }, + // 鏈�澶氬睍绀虹殑鍥剧墖鏁伴噺锛岃秴鍑烘椂鏈�鍚庝竴涓綅缃皢浼氭樉绀哄墿浣欏浘鐗囨暟閲� + maxCount: { + type: [String, Number], + default: uni.$u.props.album.maxCount + }, + // 鏄惁鍙互棰勮鍥剧墖 + previewFullImage: { + type: Boolean, + default: uni.$u.props.album.previewFullImage + }, + // 姣忚灞曠ず鍥剧墖鏁伴噺锛屽璁剧疆锛宻ingleSize鍜宮ultipleSize灏嗕細鏃犳晥 + rowCount: { + type: [String, Number], + default: uni.$u.props.album.rowCount + }, + // 瓒呭嚭maxCount鏃舵槸鍚︽樉绀烘煡鐪嬫洿澶氱殑鎻愮ず + showMore: { + type: Boolean, + default: uni.$u.props.album.showMore + } + } +} -- Gitblit v1.9.3