@@ -844,7 +844,7 @@ const openCallback = () => {
844
844
| 函数签名 | 描述 |
845
845
| ------------------------------------------------------------------------------ | -------------------------- |
846
846
| ` create: (option: LayerProps, defaultOption: LayerProps, callback?: Function) ` | 创建一个弹层 |
847
- | ` open: (option: LayerProps, callback?: Function ) ` | 打开一个弹层 |
847
+ | ` open: (option: LayerProps) ` | 打开一个弹层 |
848
848
| ` close: (id: string) ` | 关闭指定 ID 的弹层 |
849
849
| ` closeAll: () ` | 关闭当前上下文中全部的弹层 |
850
850
| ` reset: (id: string) ` | 重置某个弹层的位置和大小 |
@@ -889,7 +889,7 @@ const openCallback = () => {
889
889
| ------------------- | ----------------------------------------------------------------- | --------------------------------------------------------- | ---------------------- | ---------------------------------------------------------------------------------- | -------- |
890
890
| _ v-model_ | 显示 | boolean | ` false ` | | |
891
891
| _ id_ | layer 标识 可不传(内部生成) | ` string ` | | | |
892
- | _ type_ | 类型 | string | ` 1 ` | ` 0(dialog) ` ` 1(page) ` ` 2(iframe) ` ` 3(loading) ` ` 4(drawer) ` ` 5(photos) ` ` 6(notify) ` | |
892
+ | _ type_ | 类型 | string | ` 1 ` | ` 0(dialog) ` ` 1(page) ` ` 2(iframe) ` ` 3(loading) ` ` 4(drawer) ` ` 5(photos) ` ` 6(notify) ` ` 7(prompt) ` | |
893
893
| _ title_ | 标题 ** 当传入组件时,会影响内部寻找拖拽节点,需要给根元素设置 ` pointer-events: none ` ** | ` boolean ` ` PropsContentType (2.19.0) ` | ` 标题 ` | -- | |
894
894
| _ title-style_ | 标题样式 | ` string ` ` StyleValue ` | -- | -- | |
895
895
| _ footer_ | 底部 | ` boolean ` ` PropsContentType (2.19.0) ` | | | ` 2.19.0 ` |
@@ -956,7 +956,7 @@ const openCallback = () => {
956
956
| _ close_ | 内部(右上角/点击遮罩/默认确认按钮)关闭回调 | ` function ` | ` (id) => {} ` | |
957
957
| _ before-close_ | 内部(右上角/点击遮罩/默认确认按钮)关闭前回调,返回值为 ` true ` 内部才会关闭 | ` function ` | ` (id) => boolean ` | |
958
958
| _ destroy_ | 销毁回调 | ` function ` | ` () => {} ` | |
959
- | _ yes_ | 点击底部默认按钮 | ` function ` | ` id ` | |
959
+ | _ yes_ | 点击底部默认按钮(不会主动关闭 ` layer ` 需要手动关闭,可用于一些逻辑判断) | ` function ` | ` id ` | |
960
960
| _ move-start_ | 弹窗拖动位置开始回调 | ` function ` | ` id ` | - |
961
961
| _ moving_ | 弹窗拖动位置回调 | ` function ` | ` id ` | - |
962
962
| _ move-end_ | 弹窗拖动位置结束回调 | ` function ` | ` id ` | - |
@@ -1057,7 +1057,6 @@ const openCallback = () => {
1057
1057
| 参数名 | 描述 | 类型 | 默认值 |
1058
1058
| ---------- | ---------------- | ------------ | ------------ |
1059
1059
| _ option_ | 配置 | ` LayerProps ` | |
1060
- | _ callback_ | 弹层创建后的回调 | ` Function ` | ` (id) => {} ` |
1061
1060
1062
1061
:::
1063
1062
@@ -1093,7 +1092,6 @@ const openCallback = () => {
1093
1092
| ---------- | ---------------- | ------------ | ------------ |
1094
1093
| _ load_ | 加载层样式 | ` number ` | |
1095
1094
| _ option_ | 配置 | ` LayerProps ` | |
1096
- | _ callback_ | 弹层创建后的回调 | ` Function ` | ` (id) => {} ` |
1097
1095
1098
1096
:::
1099
1097
@@ -1138,7 +1136,6 @@ const openCallback = () => {
1138
1136
| ---------- | ---------------- | ------------ | ------------ |
1139
1137
| _ msg_ | 要显示的消息 | ` string ` | ` "" ` |
1140
1138
| _ option_ | 配置 | ` LayerProps ` | ` {} ` |
1141
- | _ callback_ | 弹层创建后的回调 | ` Function ` | ` (id) => {} ` |
1142
1139
1143
1140
:::
1144
1141
@@ -1175,7 +1172,6 @@ const openCallback = () => {
1175
1172
| 参数名 | 描述 | 类型 | 默认值 |
1176
1173
| ---------- | ---------------- | ---------------------- | ------------ |
1177
1174
| _ option_ | 配置 | ` string ` ` ImgListType ` | |
1178
- | _ callback_ | 弹层创建后的回调 | ` Function ` | ` (id) => {} ` |
1179
1175
1180
1176
:::
1181
1177
@@ -1272,7 +1268,6 @@ const openCallback = () => {
1272
1268
| 参数名 | 描述 | 类型 | 默认值 |
1273
1269
| ---------- | ---------------- | ------------ | ------------ |
1274
1270
| _ option_ | 配置 | ` LayerProps ` | |
1275
- | _ callback_ | 弹层创建后的回调 | ` Function ` | ` (id) => {} ` |
1276
1271
1277
1272
:::
1278
1273
@@ -1283,7 +1278,7 @@ const openCallback = () => {
1283
1278
1284
1279
| 属性 | 描述 | 值 |
1285
1280
| --------------- | ------------ | ---------- |
1286
- | _ type_ | 类型 | ` " prompt" ` |
1281
+ | _ type_ | 类型 | ` 7( prompt) ` |
1287
1282
| _ shade-close_ | 遮罩层关闭 | ` false ` |
1288
1283
| _ shade-opacity_ | 遮罩层透明度 | ` "0.2" ` |
1289
1284
@@ -1300,6 +1295,7 @@ const openCallback = () => {
1300
1295
| _ value_ | 表单初始值 | ` string ` | ` "" ` | |
1301
1296
| _ max-length_ | 最大输入长度 | ` number ` | | |
1302
1297
| _ placeholder_ | 占位符 | ` string ` | ` "请输入内容" ` | |
1298
+ | _ yes_ | 点击底部默认按钮(回调第 ` 2 ` 个参数可以拿到输入框内容) | ` (id, PromptValue) => void ` | | |
1303
1299
1304
1300
:::
1305
1301
0 commit comments