diff --git a/assets/iframe-router.6349d441.js b/assets/iframe-router.6db65383.js similarity index 99% rename from assets/iframe-router.6349d441.js rename to assets/iframe-router.6db65383.js index e7ace9f9..3b2fd72d 100644 --- a/assets/iframe-router.6349d441.js +++ b/assets/iframe-router.6db65383.js @@ -336,7 +336,7 @@ db.collection(<van-button color="linear-gradient(to right, #4bb0ff, #6149f6)"> \u6E10\u53D8\u8272\u6309\u94AE </van-button> -
\u53C2\u6570 | \u8BF4\u660E | \u7C7B\u578B | \u9ED8\u8BA4\u503C |
---|---|---|---|
id | \u6807\u8BC6\u7B26 | string | - |
type | \u6309\u94AE\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A primary info warning danger | string | default |
size | \u6309\u94AE\u5C3A\u5BF8\uFF0C\u53EF\u9009\u503C\u4E3A normal large small mini | string | normal |
color v1.0.0 | \u6309\u94AE\u989C\u8272\uFF0C\u652F\u6301\u4F20\u5165linear-gradient \u6E10\u53D8\u8272 | string | - |
icon | \u5DE6\u4FA7\u56FE\u6807\u540D\u79F0\u6216\u56FE\u7247\u94FE\u63A5\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | string | - |
class-prefix | \u56FE\u6807\u7C7B\u540D\u524D\u7F00\uFF0C\u540C Icon \u7EC4\u4EF6\u7684 class-prefix \u5C5E\u6027 | string | van-icon |
plain | \u662F\u5426\u4E3A\u6734\u7D20\u6309\u94AE | boolean | false |
block | \u662F\u5426\u4E3A\u5757\u7EA7\u5143\u7D20 | boolean | false |
round | \u662F\u5426\u4E3A\u5706\u5F62\u6309\u94AE | boolean | false |
square | \u662F\u5426\u4E3A\u65B9\u5F62\u6309\u94AE | boolean | false |
disabled | \u662F\u5426\u7981\u7528\u6309\u94AE | boolean | false |
hairline | \u662F\u5426\u4F7F\u7528 0.5px \u8FB9\u6846 | boolean | false |
loading | \u662F\u5426\u663E\u793A\u4E3A\u52A0\u8F7D\u72B6\u6001 | boolean | false |
loading-text | \u52A0\u8F7D\u72B6\u6001\u63D0\u793A\u6587\u5B57 | string | - |
loading-type | \u52A0\u8F7D\u72B6\u6001\u56FE\u6807\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A spinner | string | circular |
loading-size | \u52A0\u8F7D\u56FE\u6807\u5927\u5C0F | string | 20px |
custom-style | \u81EA\u5B9A\u4E49\u6837\u5F0F | string | - |
open-type | \u5FAE\u4FE1\u5F00\u653E\u80FD\u529B\uFF0C\u5177\u4F53\u652F\u6301\u53EF\u53C2\u8003 \u5FAE\u4FE1\u5B98\u65B9\u6587\u6863 | string | - |
app-parameter | \u6253\u5F00 APP \u65F6\uFF0C\u5411 APP \u4F20\u9012\u7684\u53C2\u6570 | string | - |
lang | \u6307\u5B9A\u8FD4\u56DE\u7528\u6237\u4FE1\u606F\u7684\u8BED\u8A00\uFF0Czh_CN \u7B80\u4F53\u4E2D\u6587\uFF0C zh_TW \u7E41\u4F53\u4E2D\u6587\uFF0Cen \u82F1\u6587 | string | en |
session-from | \u4F1A\u8BDD\u6765\u6E90 | string | - |
business-id | \u5BA2\u670D\u6D88\u606F\u5B50\u5546\u6237 id | number | - |
send-message-title | \u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247\u6807\u9898 | string | \u5F53\u524D\u6807\u9898 |
send-message-path | \u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247\u70B9\u51FB\u8DF3\u8F6C\u5C0F\u7A0B\u5E8F\u8DEF\u5F84 | string | \u5F53\u524D\u5206\u4EAB\u8DEF\u5F84 |
send-message-img | sendMessageImg | string | \u622A\u56FE |
show-message-card | \u663E\u793A\u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247 | string | false |
dataset | \u6309\u94AE dataset\uFF0Copen-type \u4E3A share \u65F6\uFF0C\u53EF\u5728 onShareAppMessage \u4E8B\u4EF6\u7684 event.target.dataset.detail \u4E2D\u770B\u5230\u4F20\u5165\u7684\u503C | any | - |
form-type | \u7528\u4E8E form \u7EC4\u4EF6\uFF0C\u53EF\u9009\u503C\u4E3Asubmit reset \uFF0C\u70B9\u51FB\u5206\u522B\u4F1A\u89E6\u53D1 form \u7EC4\u4EF6\u7684 submit/reset \u4E8B\u4EF6 | string | - |
\u4E8B\u4EF6\u540D | \u8BF4\u660E | \u53C2\u6570 |
---|---|---|
bind:click | \u70B9\u51FB\u6309\u94AE\uFF0C\u4E14\u6309\u94AE\u72B6\u6001\u4E0D\u4E3A\u52A0\u8F7D\u6216\u7981\u7528\u65F6\u89E6\u53D1 | - |
bind:getuserinfo | \u7528\u6237\u70B9\u51FB\u8BE5\u6309\u94AE\u65F6\uFF0C\u4F1A\u8FD4\u56DE\u83B7\u53D6\u5230\u7684\u7528\u6237\u4FE1\u606F\uFF0C \u4ECE\u8FD4\u56DE\u53C2\u6570\u7684 detail \u4E2D\u83B7\u53D6\u5230\u7684\u503C\u540C wx.getUserInfo | - |
bind:contact | \u5BA2\u670D\u6D88\u606F\u56DE\u8C03 | - |
bind:getphonenumber | \u83B7\u53D6\u7528\u6237\u624B\u673A\u53F7\u56DE\u8C03 | - |
bind:error | \u5F53\u4F7F\u7528\u5F00\u653E\u80FD\u529B\u65F6\uFF0C\u53D1\u751F\u9519\u8BEF\u7684\u56DE\u8C03 | - |
bind:opensetting | \u5728\u6253\u5F00\u6388\u6743\u8BBE\u7F6E\u9875\u540E\u56DE\u8C03 | - |
Button \u63D0\u4F9B\u7684\u662F click \u4E8B\u4EF6\u800C\u4E0D\u662F\u539F\u751F tap \u4E8B\u4EF6\uFF0C\u6309\u94AE\u7981\u7528\u65F6\uFF0Cclick \u4E8B\u4EF6\u4E0D\u4F1A\u89E6\u53D1\uFF0Ctap \u4E8B\u4EF6\u4F9D\u7136\u4F1A\u89E6\u53D1\u3002
\u7C7B\u540D | \u8BF4\u660E |
---|---|
custom-class | \u6839\u8282\u70B9\u6837\u5F0F\u7C7B |
loading-class | \u52A0\u8F7D\u56FE\u6807\u6837\u5F0F\u7C7B |
\u65E5\u5386\u7EC4\u4EF6\u7528\u4E8E\u9009\u62E9\u65E5\u671F\u6216\u65E5\u671F\u533A\u95F4\u3002
\u5728app.json
\u6216index.json
\u4E2D\u5F15\u5165\u7EC4\u4EF6\uFF0C\u8BE6\u7EC6\u4ECB\u7ECD\u89C1\u5FEB\u901F\u4E0A\u624B\u3002
"usingComponents": {
+
\u53C2\u6570 | \u8BF4\u660E | \u7C7B\u578B | \u9ED8\u8BA4\u503C |
---|---|---|---|
id | \u6807\u8BC6\u7B26 | string | - |
type | \u6309\u94AE\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A primary info warning danger | string | default |
size | \u6309\u94AE\u5C3A\u5BF8\uFF0C\u53EF\u9009\u503C\u4E3A normal large small mini | string | normal |
color v1.0.0 | \u6309\u94AE\u989C\u8272\uFF0C\u652F\u6301\u4F20\u5165linear-gradient \u6E10\u53D8\u8272 | string | - |
icon | \u5DE6\u4FA7\u56FE\u6807\u540D\u79F0\u6216\u56FE\u7247\u94FE\u63A5\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | string | - |
class-prefix | \u56FE\u6807\u7C7B\u540D\u524D\u7F00\uFF0C\u540C Icon \u7EC4\u4EF6\u7684 class-prefix \u5C5E\u6027 | string | van-icon |
plain | \u662F\u5426\u4E3A\u6734\u7D20\u6309\u94AE | boolean | false |
block | \u662F\u5426\u4E3A\u5757\u7EA7\u5143\u7D20 | boolean | false |
round | \u662F\u5426\u4E3A\u5706\u5F62\u6309\u94AE | boolean | false |
square | \u662F\u5426\u4E3A\u65B9\u5F62\u6309\u94AE | boolean | false |
disabled | \u662F\u5426\u7981\u7528\u6309\u94AE | boolean | false |
hairline | \u662F\u5426\u4F7F\u7528 0.5px \u8FB9\u6846 | boolean | false |
loading | \u662F\u5426\u663E\u793A\u4E3A\u52A0\u8F7D\u72B6\u6001 | boolean | false |
loading-text | \u52A0\u8F7D\u72B6\u6001\u63D0\u793A\u6587\u5B57 | string | - |
loading-type | \u52A0\u8F7D\u72B6\u6001\u56FE\u6807\u7C7B\u578B\uFF0C\u53EF\u9009\u503C\u4E3A spinner | string | circular |
loading-size | \u52A0\u8F7D\u56FE\u6807\u5927\u5C0F | string | 20px |
custom-style | \u81EA\u5B9A\u4E49\u6837\u5F0F | string | - |
open-type | \u5FAE\u4FE1\u5F00\u653E\u80FD\u529B\uFF0C\u5177\u4F53\u652F\u6301\u53EF\u53C2\u8003 \u5FAE\u4FE1\u5B98\u65B9\u6587\u6863 | string | - |
app-parameter | \u6253\u5F00 APP \u65F6\uFF0C\u5411 APP \u4F20\u9012\u7684\u53C2\u6570 | string | - |
lang | \u6307\u5B9A\u8FD4\u56DE\u7528\u6237\u4FE1\u606F\u7684\u8BED\u8A00\uFF0Czh_CN \u7B80\u4F53\u4E2D\u6587\uFF0C zh_TW \u7E41\u4F53\u4E2D\u6587\uFF0Cen \u82F1\u6587 | string | en |
session-from | \u4F1A\u8BDD\u6765\u6E90 | string | - |
business-id | \u5BA2\u670D\u6D88\u606F\u5B50\u5546\u6237 id | number | - |
send-message-title | \u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247\u6807\u9898 | string | \u5F53\u524D\u6807\u9898 |
send-message-path | \u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247\u70B9\u51FB\u8DF3\u8F6C\u5C0F\u7A0B\u5E8F\u8DEF\u5F84 | string | \u5F53\u524D\u5206\u4EAB\u8DEF\u5F84 |
send-message-img | sendMessageImg | string | \u622A\u56FE |
show-message-card | \u663E\u793A\u4F1A\u8BDD\u5185\u6D88\u606F\u5361\u7247 | string | false |
dataset | \u6309\u94AE dataset\uFF0Copen-type \u4E3A share \u65F6\uFF0C\u53EF\u5728 onShareAppMessage \u4E8B\u4EF6\u7684 event.target.dataset.detail \u4E2D\u770B\u5230\u4F20\u5165\u7684\u503C | any | - |
form-type | \u7528\u4E8E form \u7EC4\u4EF6\uFF0C\u53EF\u9009\u503C\u4E3Asubmit reset \uFF0C\u70B9\u51FB\u5206\u522B\u4F1A\u89E6\u53D1 form \u7EC4\u4EF6\u7684 submit/reset \u4E8B\u4EF6 | string | - |
\u4E8B\u4EF6\u540D | \u8BF4\u660E | \u53C2\u6570 |
---|---|---|
bind:click | \u70B9\u51FB\u6309\u94AE\uFF0C\u4E14\u6309\u94AE\u72B6\u6001\u4E0D\u4E3A\u52A0\u8F7D\u6216\u7981\u7528\u65F6\u89E6\u53D1 | - |
bind:getuserinfo | \u7528\u6237\u70B9\u51FB\u8BE5\u6309\u94AE\u65F6\uFF0C\u4F1A\u8FD4\u56DE\u83B7\u53D6\u5230\u7684\u7528\u6237\u4FE1\u606F\uFF0C \u4ECE\u8FD4\u56DE\u53C2\u6570\u7684 detail \u4E2D\u83B7\u53D6\u5230\u7684\u503C\u540C wx.getUserInfo | - |
bind:contact | \u5BA2\u670D\u6D88\u606F\u56DE\u8C03 | - |
bind:getphonenumber | \u83B7\u53D6\u7528\u6237\u624B\u673A\u53F7\u56DE\u8C03 | - |
bind:error | \u5F53\u4F7F\u7528\u5F00\u653E\u80FD\u529B\u65F6\uFF0C\u53D1\u751F\u9519\u8BEF\u7684\u56DE\u8C03 | - |
bind:opensetting | \u5728\u6253\u5F00\u6388\u6743\u8BBE\u7F6E\u9875\u540E\u56DE\u8C03 | - |
bind:chooseavatar | \u5F53 open-type \u7684\u503C\u4E3A chooseAvatar \u65F6\uFF0C\u9009\u62E9\u5934\u50CF\u4E4B\u540E\u7684\u56DE\u8C03 |
Button \u63D0\u4F9B\u7684\u662F click \u4E8B\u4EF6\u800C\u4E0D\u662F\u539F\u751F tap \u4E8B\u4EF6\uFF0C\u6309\u94AE\u7981\u7528\u65F6\uFF0Cclick \u4E8B\u4EF6\u4E0D\u4F1A\u89E6\u53D1\uFF0Ctap \u4E8B\u4EF6\u4F9D\u7136\u4F1A\u89E6\u53D1\u3002
\u7C7B\u540D | \u8BF4\u660E |
---|---|
custom-class | \u6839\u8282\u70B9\u6837\u5F0F\u7C7B |
loading-class | \u52A0\u8F7D\u56FE\u6807\u6837\u5F0F\u7C7B |
\u65E5\u5386\u7EC4\u4EF6\u7528\u4E8E\u9009\u62E9\u65E5\u671F\u6216\u65E5\u671F\u533A\u95F4\u3002
\u5728app.json
\u6216index.json
\u4E2D\u5F15\u5165\u7EC4\u4EF6\uFF0C\u8BE6\u7EC6\u4ECB\u7ECD\u89C1\u5FEB\u901F\u4E0A\u624B\u3002
"usingComponents": {
"van-calendar": "@vant/weapp/calendar/index"
}
\u4E0B\u9762\u6F14\u793A\u4E86\u7ED3\u5408\u5355\u5143\u683C\u6765\u4F7F\u7528\u65E5\u5386\u7EC4\u4EF6\u7684\u7528\u6CD5\uFF0C\u65E5\u671F\u9009\u62E9\u5B8C\u6210\u540E\u4F1A\u89E6\u53D1confirm
\u4E8B\u4EF6\u3002
<van-cell title="\u9009\u62E9\u5355\u4E2A\u65E5\u671F" value="{{ date }}" bind:click="onDisplay" />
@@ -3217,4 +3217,4 @@ page {
filePath: chooseResult.url
});
}
-
\u53C2\u6570 | \u8BF4\u660E | \u7C7B\u578B | \u9ED8\u8BA4\u503C |
---|---|---|---|
name | \u6807\u8BC6\u7B26\uFF0C\u53EF\u4EE5\u5728\u56DE\u8C03\u51FD\u6570\u7684\u7B2C\u4E8C\u9879\u53C2\u6570\u4E2D\u83B7\u53D6 | string | number | - |
accept | \u63A5\u53D7\u7684\u6587\u4EF6\u7C7B\u578B, \u53EF\u9009\u503C\u4E3Aall media image file video | string | image |
sizeType | \u6240\u9009\u7684\u56FE\u7247\u7684\u5C3A\u5BF8, \u5F53accept \u4E3Aimage \u7C7B\u578B\u65F6\u8BBE\u7F6E\u6240\u9009\u56FE\u7247\u7684\u5C3A\u5BF8\u53EF\u9009\u503C\u4E3Aoriginal compressed | string[] | ['original','compressed'] |
preview-size | \u9884\u89C8\u56FE\u548C\u4E0A\u4F20\u533A\u57DF\u7684\u5C3A\u5BF8\uFF0C\u9ED8\u8BA4\u5355\u4F4D\u4E3Apx | string | number | 80px |
preview-image | \u662F\u5426\u5728\u4E0A\u4F20\u5B8C\u6210\u540E\u5C55\u793A\u9884\u89C8\u56FE | boolean | true |
preview-full-image | \u662F\u5426\u5728\u70B9\u51FB\u9884\u89C8\u56FE\u540E\u5C55\u793A\u5168\u5C4F\u56FE\u7247\u9884\u89C8 | boolean | true |
multiple | \u662F\u5426\u5F00\u542F\u56FE\u7247\u591A\u9009\uFF0C\u90E8\u5206\u5B89\u5353\u673A\u578B\u4E0D\u652F\u6301 | boolean | false |
disabled | \u662F\u5426\u7981\u7528\u6587\u4EF6\u4E0A\u4F20 | boolean | false |
show-upload | \u662F\u5426\u5C55\u793A\u6587\u4EF6\u4E0A\u4F20\u6309\u94AE | boolean | true |
deletable | \u662F\u5426\u5C55\u793A\u5220\u9664\u6309\u94AE | boolean | true |
capture | \u56FE\u7247\u6216\u8005\u89C6\u9891\u9009\u53D6\u6A21\u5F0F\uFF0C\u5F53accept \u4E3Aimage \u7C7B\u578B\u65F6\u8BBE\u7F6Ecapture \u53EF\u9009\u503C\u4E3Acamera \u53EF\u4EE5\u76F4\u63A5\u8C03\u8D77\u6444\u50CF\u5934 | string | string[] | ['album', 'camera'] |
max-size | \u6587\u4EF6\u5927\u5C0F\u9650\u5236\uFF0C\u5355\u4F4D\u4E3Abyte | number | - |
max-count | \u6587\u4EF6\u4E0A\u4F20\u6570\u91CF\u9650\u5236 | number | - |
upload-text | \u4E0A\u4F20\u533A\u57DF\u6587\u5B57\u63D0\u793A | string | - |
image-fit | \u9884\u89C8\u56FE\u88C1\u526A\u6A21\u5F0F\uFF0C\u53EF\u9009\u503C\u53C2\u8003\u5C0F\u7A0B\u5E8Fimage \u7EC4\u4EF6\u7684mode \u5C5E\u6027 | string | scaleToFill |
use-before-read | \u662F\u5426\u5F00\u542F\u6587\u4EF6\u8BFB\u53D6\u524D\u4E8B\u4EF6 | boolean | - |
camera | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u53EF\u9009\u503C\u4E3A back front | string | - |
compressed | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u662F\u5426\u538B\u7F29\u89C6\u9891\uFF0C\u9ED8\u8BA4\u4E3Atrue | boolean | - |
max-duration | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u62CD\u6444\u89C6\u9891\u6700\u957F\u62CD\u6444\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2 | number | - |
upload-icon | \u4E0A\u4F20\u533A\u57DF\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | string | plus |
\u53C2\u6570 | \u8BF4\u660E |
---|---|
media | \u56FE\u7247\u548C\u89C6\u9891 |
image | \u56FE\u7247 |
video | \u89C6\u9891 |
file | \u4ECE\u5BA2\u6237\u7AEF\u4F1A\u8BDD\u9009\u62E9\u56FE\u7247\u548C\u89C6\u9891\u4EE5\u5916\u7684\u6587\u4EF6 |
all | \u4ECE\u5BA2\u6237\u7AEF\u4F1A\u8BDD\u9009\u62E9\u6240\u6709\u6587\u4EF6 |
file-list
\u4E3A\u4E00\u4E2A\u5BF9\u8C61\u6570\u7EC4\uFF0C\u6570\u7EC4\u4E2D\u7684\u6BCF\u4E00\u4E2A\u5BF9\u8C61\u5305\u542B\u4EE5\u4E0B key
\u3002
\u53C2\u6570 | \u8BF4\u660E |
---|---|
url | \u56FE\u7247\u548C\u89C6\u9891\u7684\u7F51\u7EDC\u8D44\u6E90\u5730\u5740 |
name | \u6587\u4EF6\u540D\u79F0\uFF0C\u89C6\u9891\u5C06\u5728\u5168\u5C4F\u9884\u89C8\u65F6\u4F5C\u4E3A\u6807\u9898\u663E\u793A |
thumb | \u56FE\u7247\u7F29\u7565\u56FE\u6216\u89C6\u9891\u5C01\u9762\u7684\u7F51\u7EDC\u8D44\u6E90\u5730\u5740\uFF0C\u4EC5\u5BF9\u56FE\u7247\u548C\u89C6\u9891\u6709\u6548 |
type | \u6587\u4EF6\u7C7B\u578B\uFF0C\u53EF\u9009\u503Cimage video file |
isImage | \u624B\u52A8\u6807\u8BB0\u56FE\u7247\u8D44\u6E90 |
isVideo | \u624B\u52A8\u6807\u8BB0\u89C6\u9891\u8D44\u6E90 |
\u540D\u79F0 | \u8BF4\u660E |
---|---|
- | \u81EA\u5B9A\u4E49\u4E0A\u4F20\u533A\u57DF |
\u4E8B\u4EF6\u540D | \u8BF4\u660E | \u56DE\u8C03\u53C2\u6570 |
---|---|---|
bind:before-read | \u6587\u4EF6\u8BFB\u53D6\u524D\uFF0C\u5728\u56DE\u8C03\u51FD\u6570\u4E2D\u8FD4\u56DE false \u53EF\u7EC8\u6B62\u6587\u4EF6\u8BFB\u53D6\uFF0C\u7ED1\u5B9A\u4E8B\u4EF6\u7684\u540C\u65F6\u9700\u8981\u5C06use-before-read \u5C5E\u6027\u8BBE\u7F6E\u4E3Atrue | event.detail.file : \u5F53\u524D\u8BFB\u53D6\u7684\u6587\u4EF6\uFF0Cevent.detail.callback : \u56DE\u8C03\u51FD\u6570\uFF0C\u8C03\u7528callback(false) \u7EC8\u6B62\u6587\u4EF6\u8BFB\u53D6 |
bind:after-read | \u6587\u4EF6\u8BFB\u53D6\u5B8C\u6210\u540E | event.detail.file : \u5F53\u524D\u8BFB\u53D6\u7684\u6587\u4EF6 |
bind:oversize | \u6587\u4EF6\u8D85\u51FA\u5927\u5C0F\u9650\u5236 | - |
bind:click-preview | \u70B9\u51FB\u9884\u89C8\u56FE\u7247 | event.detail.index : \u70B9\u51FB\u56FE\u7247\u7684\u5E8F\u53F7\u503C |
bind:delete | \u5220\u9664\u56FE\u7247 | event.detail.index : \u5220\u9664\u56FE\u7247\u7684\u5E8F\u53F7\u503C |
\u53C2\u6570 | \u8BF4\u660E | \u7C7B\u578B | \u9ED8\u8BA4\u503C |
---|---|---|---|
name | \u6807\u8BC6\u7B26\uFF0C\u53EF\u4EE5\u5728\u56DE\u8C03\u51FD\u6570\u7684\u7B2C\u4E8C\u9879\u53C2\u6570\u4E2D\u83B7\u53D6 | string | number | - |
accept | \u63A5\u53D7\u7684\u6587\u4EF6\u7C7B\u578B, \u53EF\u9009\u503C\u4E3Aall media image file video | string | image |
sizeType | \u6240\u9009\u7684\u56FE\u7247\u7684\u5C3A\u5BF8, \u5F53accept \u4E3Aimage \u7C7B\u578B\u65F6\u8BBE\u7F6E\u6240\u9009\u56FE\u7247\u7684\u5C3A\u5BF8\u53EF\u9009\u503C\u4E3Aoriginal compressed | string[] | ['original','compressed'] |
preview-size | \u9884\u89C8\u56FE\u548C\u4E0A\u4F20\u533A\u57DF\u7684\u5C3A\u5BF8\uFF0C\u9ED8\u8BA4\u5355\u4F4D\u4E3Apx | string | number | 80px |
preview-image | \u662F\u5426\u5728\u4E0A\u4F20\u5B8C\u6210\u540E\u5C55\u793A\u9884\u89C8\u56FE | boolean | true |
preview-full-image | \u662F\u5426\u5728\u70B9\u51FB\u9884\u89C8\u56FE\u540E\u5C55\u793A\u5168\u5C4F\u56FE\u7247\u9884\u89C8 | boolean | true |
multiple | \u662F\u5426\u5F00\u542F\u56FE\u7247\u591A\u9009\uFF0C\u90E8\u5206\u5B89\u5353\u673A\u578B\u4E0D\u652F\u6301 | boolean | false |
disabled | \u662F\u5426\u7981\u7528\u6587\u4EF6\u4E0A\u4F20 | boolean | false |
show-upload | \u662F\u5426\u5C55\u793A\u6587\u4EF6\u4E0A\u4F20\u6309\u94AE | boolean | true |
deletable | \u662F\u5426\u5C55\u793A\u5220\u9664\u6309\u94AE | boolean | true |
capture | \u56FE\u7247\u6216\u8005\u89C6\u9891\u9009\u53D6\u6A21\u5F0F\uFF0C\u5F53accept \u4E3Aimage \u7C7B\u578B\u65F6\u8BBE\u7F6Ecapture \u53EF\u9009\u503C\u4E3Acamera \u53EF\u4EE5\u76F4\u63A5\u8C03\u8D77\u6444\u50CF\u5934 | string | string[] | ['album', 'camera'] |
max-size | \u6587\u4EF6\u5927\u5C0F\u9650\u5236\uFF0C\u5355\u4F4D\u4E3Abyte | number | - |
max-count | \u6587\u4EF6\u4E0A\u4F20\u6570\u91CF\u9650\u5236 | number | - |
upload-text | \u4E0A\u4F20\u533A\u57DF\u6587\u5B57\u63D0\u793A | string | - |
image-fit | \u9884\u89C8\u56FE\u88C1\u526A\u6A21\u5F0F\uFF0C\u53EF\u9009\u503C\u53C2\u8003\u5C0F\u7A0B\u5E8Fimage \u7EC4\u4EF6\u7684mode \u5C5E\u6027 | string | scaleToFill |
use-before-read | \u662F\u5426\u5F00\u542F\u6587\u4EF6\u8BFB\u53D6\u524D\u4E8B\u4EF6 | boolean | - |
camera | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u53EF\u9009\u503C\u4E3A back front | string | - |
compressed | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u662F\u5426\u538B\u7F29\u89C6\u9891\uFF0C\u9ED8\u8BA4\u4E3Atrue | boolean | - |
max-duration | \u5F53 accept \u4E3A video \u65F6\u751F\u6548\uFF0C\u62CD\u6444\u89C6\u9891\u6700\u957F\u62CD\u6444\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2 | number | - |
upload-icon | \u4E0A\u4F20\u533A\u57DF\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | string | plus |
\u53C2\u6570 | \u8BF4\u660E |
---|---|
media | \u56FE\u7247\u548C\u89C6\u9891 |
image | \u56FE\u7247 |
video | \u89C6\u9891 |
file | \u4ECE\u5BA2\u6237\u7AEF\u4F1A\u8BDD\u9009\u62E9\u56FE\u7247\u548C\u89C6\u9891\u4EE5\u5916\u7684\u6587\u4EF6 |
all | \u4ECE\u5BA2\u6237\u7AEF\u4F1A\u8BDD\u9009\u62E9\u6240\u6709\u6587\u4EF6 |
file-list
\u4E3A\u4E00\u4E2A\u5BF9\u8C61\u6570\u7EC4\uFF0C\u6570\u7EC4\u4E2D\u7684\u6BCF\u4E00\u4E2A\u5BF9\u8C61\u5305\u542B\u4EE5\u4E0B key
\u3002
\u53C2\u6570 | \u8BF4\u660E |
---|---|
url | \u56FE\u7247\u548C\u89C6\u9891\u7684\u7F51\u7EDC\u8D44\u6E90\u5730\u5740 |
name | \u6587\u4EF6\u540D\u79F0\uFF0C\u89C6\u9891\u5C06\u5728\u5168\u5C4F\u9884\u89C8\u65F6\u4F5C\u4E3A\u6807\u9898\u663E\u793A |
thumb | \u56FE\u7247\u7F29\u7565\u56FE\u6216\u89C6\u9891\u5C01\u9762\u7684\u7F51\u7EDC\u8D44\u6E90\u5730\u5740\uFF0C\u4EC5\u5BF9\u56FE\u7247\u548C\u89C6\u9891\u6709\u6548 |
type | \u6587\u4EF6\u7C7B\u578B\uFF0C\u53EF\u9009\u503Cimage video file |
isImage | \u624B\u52A8\u6807\u8BB0\u56FE\u7247\u8D44\u6E90 |
isVideo | \u624B\u52A8\u6807\u8BB0\u89C6\u9891\u8D44\u6E90 |
\u540D\u79F0 | \u8BF4\u660E |
---|---|
- | \u81EA\u5B9A\u4E49\u4E0A\u4F20\u533A\u57DF |
\u4E8B\u4EF6\u540D | \u8BF4\u660E | \u56DE\u8C03\u53C2\u6570 |
---|---|---|
bind:before-read | \u6587\u4EF6\u8BFB\u53D6\u524D\uFF0C\u5728\u56DE\u8C03\u51FD\u6570\u4E2D\u8FD4\u56DE false \u53EF\u7EC8\u6B62\u6587\u4EF6\u8BFB\u53D6\uFF0C\u7ED1\u5B9A\u4E8B\u4EF6\u7684\u540C\u65F6\u9700\u8981\u5C06use-before-read \u5C5E\u6027\u8BBE\u7F6E\u4E3Atrue | event.detail.file : \u5F53\u524D\u8BFB\u53D6\u7684\u6587\u4EF6\uFF0Cevent.detail.callback : \u56DE\u8C03\u51FD\u6570\uFF0C\u8C03\u7528callback(false) \u7EC8\u6B62\u6587\u4EF6\u8BFB\u53D6 |
bind:after-read | \u6587\u4EF6\u8BFB\u53D6\u5B8C\u6210\u540E | event.detail.file : \u5F53\u524D\u8BFB\u53D6\u7684\u6587\u4EF6 |
bind:oversize | \u6587\u4EF6\u8D85\u51FA\u5927\u5C0F\u9650\u5236 | - |
bind:click-preview | \u70B9\u51FB\u9884\u89C8\u56FE\u7247 | event.detail.index : \u70B9\u51FB\u56FE\u7247\u7684\u5E8F\u53F7\u503C |
bind:delete | \u5220\u9664\u56FE\u7247 | event.detail.index : \u5220\u9664\u56FE\u7247\u7684\u5E8F\u53F7\u503C |