Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-11-21 18:49:01 +08:00
7 changed files with 39 additions and 19 deletions
+1
View File
@@ -164,6 +164,7 @@ export default {
| actions | Actions | _Action[]_ | `[]` |
| placement | Placement | _string_ | `bottom` |
| theme | Themecan be set to `dark` | _string_ | `light` |
| offset | Distance to reference | _[number, number]_ | `[0, 8]` |
| overlay | Whether to show overlay | _boolean_ | `false` |
| close-on-click-action | Whether to close when clicking action | _boolean_ | `true` |
| close-on-click-outside | Whether to close when clicking outside | _boolean_ | `true` |
+1
View File
@@ -206,6 +206,7 @@ export default {
| actions | 选项列表 | _Action[]_ | `[]` |
| placement | 弹出位置 | _string_ | `bottom` |
| theme | 主题风格,可选值为 `dark` | _string_ | `light` |
| offset | 出现位置的偏移量 | _[number, number]_ | `[0, 8]` |
| overlay | 是否显示遮罩层 | _boolean_ | `false` |
| close-on-click-action | 是否在点击选项后关闭 | _boolean_ | `true` |
| close-on-click-outside | 是否在点击外部元素后关闭菜单 | _boolean_ | `true` |
-2
View File
@@ -29,8 +29,6 @@ export default createComponent({
props: {
show: Boolean,
overlay: Boolean,
textColor: String,
backgroundColor: String,
offset: {
type: Array,
default: () => [0, 8],