diff --git a/package.json b/package.json index 4894b105..7ebe581b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.5.3", + "version": "0.5.4", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu-private/" diff --git a/src/components/Dropdown/SDropdown.vue b/src/components/Dropdown/SDropdown.vue index bc1e294b..679a9c9c 100644 --- a/src/components/Dropdown/SDropdown.vue +++ b/src/components/Dropdown/SDropdown.vue @@ -29,7 +29,7 @@ - + @@ -47,11 +47,13 @@ import { ElDropdown } from 'element-ui/types/dropdown' import { DropdownType, DropdownSize, DropdownPlacement, DropdownTrigger } from './consts' import { ButtonTypes, SButton } from '../Button' +import { Icons, SIcon } from '../Icon' import { STooltip } from '../Tooltip' @Component({ components: { SButton, + SIcon, STooltip } }) @@ -63,6 +65,12 @@ export default class SDropdown extends Vue { * By default, it's set to `"default"` */ @Prop({ type: String, default: DropdownType.DEFAULT }) readonly type!: string + /** + * An icon for dropdown with `type="ellipsis"`. + * + * By default, it's set to `"more-horizontal"` + */ + @Prop({ type: String, default: Icons.MoreHorizontal }) readonly icon!: string /** * Button type of dropdown component. It can be used with `type="button"`. * Possible values: `"primary"`, `"secondary"`, `"tertiary"`.