Element UI - VueJS

Viewed 31
1 Answers

You can achieve that by adding a ref to el-dropdown element.

<el-dropdown ref="dropdownElement" split-button type="primary" @click="handleClick">

Then, In the handleClick() method you can access the split-button flag true/false and then do the code as per your requirement.

if (this.$refs.dropdownElement.splitButton) {
  // write your code here
}
Related