From 627c3e0a6920131d75eafa4646db373ccc936546 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 26 十月 2023 13:52:07 +0800
Subject: [PATCH] 小程序diamante
---
minipro_standard/uni_modules/uview-ui/components/u-upload/props.js | 124 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/minipro_standard/uni_modules/uview-ui/components/u-upload/props.js b/minipro_standard/uni_modules/uview-ui/components/u-upload/props.js
index e69de29..b106ae7 100644
--- a/minipro_standard/uni_modules/uview-ui/components/u-upload/props.js
+++ b/minipro_standard/uni_modules/uview-ui/components/u-upload/props.js
@@ -0,0 +1,124 @@
+export default {
+ props: {
+ // 鎺ュ彈鐨勬枃浠剁被鍨�, 鍙�夊�间负all media image file video
+ accept: {
+ type: String,
+ default: uni.$u.props.upload.accept
+ },
+ // 鍥剧墖鎴栬棰戞嬀鍙栨ā寮忥紝褰揳ccept涓篿mage绫诲瀷鏃惰缃甤apture鍙�夐澶朿amera鍙互鐩存帴璋冭捣鎽勫儚澶�
+ capture: {
+ type: [String, Array],
+ default: uni.$u.props.upload.capture
+ },
+ // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鏄惁鍘嬬缉瑙嗛锛岄粯璁や负true
+ compressed: {
+ type: Boolean,
+ default: uni.$u.props.upload.compressed
+ },
+ // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鍙�夊�间负back鎴杅ront
+ camera: {
+ type: String,
+ default: uni.$u.props.upload.camera
+ },
+ // 褰揳ccept涓簐ideo鏃剁敓鏁堬紝鎷嶆憚瑙嗛鏈�闀挎媿鎽勬椂闂达紝鍗曚綅绉�
+ maxDuration: {
+ type: Number,
+ default: uni.$u.props.upload.maxDuration
+ },
+ // 涓婁紶鍖哄煙鐨勫浘鏍囷紝鍙兘鍐呯疆鍥炬爣
+ uploadIcon: {
+ type: String,
+ default: uni.$u.props.upload.uploadIcon
+ },
+ // 涓婁紶鍖哄煙鐨勫浘鏍囩殑棰滆壊锛岄粯璁�
+ uploadIconColor: {
+ type: String,
+ default: uni.$u.props.upload.uploadIconColor
+ },
+ // 鏄惁寮�鍚枃浠惰鍙栧墠浜嬩欢
+ useBeforeRead: {
+ type: Boolean,
+ default: uni.$u.props.upload.useBeforeRead
+ },
+ // 璇诲彇鍚庣殑澶勭悊鍑芥暟
+ afterRead: {
+ type: Function,
+ default: null
+ },
+ // 璇诲彇鍓嶇殑澶勭悊鍑芥暟
+ beforeRead: {
+ type: Function,
+ default: null
+ },
+ // 鏄惁鏄剧ず缁勪欢鑷甫鐨勫浘鐗囬瑙堝姛鑳�
+ previewFullImage: {
+ type: Boolean,
+ default: uni.$u.props.upload.previewFullImage
+ },
+ // 鏈�澶т笂浼犳暟閲�
+ maxCount: {
+ type: [String, Number],
+ default: uni.$u.props.upload.maxCount
+ },
+ // 鏄惁鍚敤
+ disabled: {
+ type: Boolean,
+ default: uni.$u.props.upload.disabled
+ },
+ // 棰勮涓婁紶鐨勫浘鐗囨椂鐨勮鍓ā寮忥紝鍜宨mage缁勪欢mode灞炴�т竴鑷�
+ imageMode: {
+ type: String,
+ default: uni.$u.props.upload.imageMode
+ },
+ // 鏍囪瘑绗︼紝鍙互鍦ㄥ洖璋冨嚱鏁扮殑绗簩椤瑰弬鏁颁腑鑾峰彇
+ name: {
+ type: String,
+ default: uni.$u.props.upload.name
+ },
+ // 鎵�閫夌殑鍥剧墖鐨勫昂瀵�, 鍙�夊�间负original compressed
+ sizeType: {
+ type: Array,
+ default: uni.$u.props.upload.sizeType
+ },
+ // 鏄惁寮�鍚浘鐗囧閫夛紝閮ㄥ垎瀹夊崜鏈哄瀷涓嶆敮鎸�
+ multiple: {
+ type: Boolean,
+ default: uni.$u.props.upload.multiple
+ },
+ // 鏄惁灞曠ず鍒犻櫎鎸夐挳
+ deletable: {
+ type: Boolean,
+ default: uni.$u.props.upload.deletable
+ },
+ // 鏂囦欢澶у皬闄愬埗锛屽崟浣嶄负byte
+ maxSize: {
+ type: [String, Number],
+ default: uni.$u.props.upload.maxSize
+ },
+ // 鏄剧ず宸蹭笂浼犵殑鏂囦欢鍒楄〃
+ fileList: {
+ type: Array,
+ default: uni.$u.props.upload.fileList
+ },
+ // 涓婁紶鍖哄煙鐨勬彁绀烘枃瀛�
+ uploadText: {
+ type: String,
+ default: uni.$u.props.upload.uploadText
+ },
+ // 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熷搴�
+ width: {
+ type: [String, Number],
+ default: uni.$u.props.upload.width
+ },
+ // 鍐呴儴棰勮鍥剧墖鍖哄煙鍜岄�夋嫨鍥剧墖鎸夐挳鐨勫尯鍩熼珮搴�
+ height: {
+ type: [String, Number],
+ default: uni.$u.props.upload.height
+ },
+ // 鏄惁鍦ㄤ笂浼犲畬鎴愬悗灞曠ず棰勮鍥�
+ previewImage: {
+ type: Boolean,
+ default: uni.$u.props.upload.previewImage
+ }
+ }
+}
--
Gitblit v1.9.3