From 1b8482b4446a3ba3032da4fd9fe9b43742218f10 Mon Sep 17 00:00:00 2001 From: hkaikai <617760820@qq.com> Date: Thu, 7 Dec 2023 01:01:12 +0800 Subject: [PATCH] =?UTF-8?q?docs(fab):=20miniprogram=20fab=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=AF=E7=A7=BB=E5=8A=A8=E6=96=87=E6=A1=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/TDesign.db | Bin 856064 -> 856064 bytes .../src/fab/README.en-US.md | 3 + .../tdesign-miniprogram/src/fab/README.md | 3 + packages/scripts/api.json | 107 ++++++++++++++++++ 4 files changed, 113 insertions(+) diff --git a/db/TDesign.db b/db/TDesign.db index ffcb004a2b94dc73bd186818f48535f6cdd5f02e..c043c959b8bb4942089f12d8267b8a356ddda3bd 100644 GIT binary patch delta 1769 zcmchX`%lwQ6vx|bY~7#(rA-okZ_wg=GRpB>r~qx#ym9&$*xP2@Dkm zh6+QOaAnVtinK~7pB)hhk$^=)BNAGX(1}EvNa#hvAQFg37)8P~O_+y%=uy0-n1%M-uvDR+%`vmaw9iTp0Em5>oZ5fnm5->^_xg?k#AX58Z?uTo^o6_)Y&k?8oG{AeO3c1IT`&w5zw zbO}aKELqD@3>}{zP>v%{X5~;%e7-9-*S|73ihI4PD@BtmN8#~#ejw66C5Oi3_hXU4 z&Pe-IBrv}2Ux$1Bq79yn2|nQb zP)QjVEs6R>eR7p$N|o&f$jJYnGPkUf2W{DnGUq#&0|J{UT5%+7D9`rE!8hT> zaa)nERqbTkdMDdf7Wltt()w6FvSBe ztb(EIsQM-rPrzd@usiZ>_Pl~3%vR*GpK&=Io0w90Tn>aNnj_gdyq3gL53xHNY@Tyr zIe^0)>@JqmOtLi`Rf{XT28N|>Gc>1eX@(|q+?Yx#xaMIPFNxD`tQBnNrbZ9Rf*^j5 zrRaJ$*7mzmD!p#r?{s7LmIFPkbm|aL8GHai(c=(O21EvJXl!IDp)n13H>n6m8m!T0 z^GSVhI9>LXKCGDxi}2UOsq#&V{4eU||194vx!w(|`N`4vHq33y^=@Fz_sKirTG5#b z;ZEQdj!Gv0Ei)JOXba5m112W=VP#h@$ delta 175 zcmV;g08sycpfrG>G>{tsJdqqj1v~&QUmJmBg=7JRWCDd`1BGM+g=7VVWCn#~2Zdw^ zg=7hZWD2!p3!wi5djm28m%bnY7PTG>-~yMh0}M2`G6M|B3ISl3{0$5~m)hG09=BKy z45{%Q2fhFc215W3Y79mV%?s%Z0tyldLI}nPQwBo@ direction:移动方向,默认all
inertia:是否带有惯性,默认false
x:定义x轴方向的偏移,单位支持px(默认)、rpx,默认靠屏幕右侧16px
y:定义y轴方向的偏移,单位支持px(默认)、rpx,默认靠屏幕底部32px
disabled:是否禁用,默认false。TS 类型:`movableViewProps` `interface movableViewProps { direction?: 'all' \| 'vertical' \| 'horizontal' \| 'none'; inertia?: boolean; x?: number \| string; y?: number \| string; disabled?: boolean; }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/fab/type.ts) | N style | String | right: 16px; bottom: 32px; | 悬浮按钮的样式,常用于调整位置 | N text | String | - | 文本内容 | N @@ -15,3 +17,4 @@ text | String | - | 文本内容 | N 名称 | 参数 | 描述 -- | -- | -- click | `(detail: {e: MouseEvent})` | 悬浮按钮点击事件 +move | `(detail: {e: MouseEvent})` | 移动事件 diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 50d2dd0f7..cd58396b2 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -41250,6 +41250,80 @@ "String" ] }, + { + "id": 1701880074, + "platform_framework": [ + "64" + ], + "component": "Fab", + "field_category": 1, + "field_name": "movable", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否可移动", + "field_desc_en": "Control whether it is movable", + "field_required": 0, + "event_input": "", + "create_time": "2023-12-06 16:27:54", + "update_time": "2023-12-06 16:27:54", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1701880193, + "platform_framework": [ + "64" + ], + "component": "Fab", + "field_category": 1, + "field_name": "movableViewProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "移动配置
direction:移动方向,默认all
inertia:是否带有惯性,默认false
x:定义x轴方向的偏移,单位支持px(默认)、rpx,默认靠屏幕右侧16px
y:定义y轴方向的偏移,单位支持px(默认)、rpx,默认靠屏幕底部32px
disabled:是否禁用,默认false", + "field_desc_en": "movable Configuration", + "field_required": 0, + "event_input": "", + "create_time": "2023-12-06 16:29:53", + "update_time": "2023-12-06 16:29:53", + "event_output": null, + "custom_field_type": "movableViewProps【interface movableViewProps { direction?: 'all' | 'vertical' | 'horizontal' | 'none'; inertia?: boolean; x?: number | string; y?: number | string; disabled?: boolean; }】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, { "id": 2503, "platform_framework": [ @@ -41373,6 +41447,39 @@ ], "field_type_text": [] }, + { + "id": 1701880523, + "platform_framework": [ + "64" + ], + "component": "Fab", + "field_category": 2, + "field_name": "move", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "移动事件", + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: {e: MouseEvent})", + "create_time": "2023-12-06 16:35:23", + "update_time": "2023-12-06 16:35:23", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, { "id": 1602, "platform_framework": [