Blame view

src/components/Dropdown/props.ts 458 Bytes
陈文彬 authored
1
import type { PropType } from 'vue';
vben authored
2
陈文彬 authored
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export const dropdownProps = {
  /**
   * the trigger mode which executes the drop-down action
   * @default ['hover']
   * @type string[]
   */
  trigger: {
    type: [Array] as PropType<string[]>,
    default: () => {
      return ['contextmenu'];
    },
  },
};
export const basicDropdownProps = Object.assign({}, dropdownProps, {
  dropMenuList: {
    type: Array as PropType<any[]>,
    default: () => [],
  },
});