import { Component, Prop, Vue } from "vue-property-decorator"; import Icon from "@/components/Icon/index.vue"; import Tooltip from "@/components/Tooltip/index.vue"; import { Route } from "vue-router"; @Component({ components: { Icon,Tooltip }, }) export default class BaseButton extends Vue { @Prop({ type: String }) readonly text!: string; @Prop({ type: String }) readonly icon!: string; @Prop({ type: String }) readonly beforeIcon!: string; @Prop({ type: String }) readonly afterIcon!: string; @Prop({ type: String }) readonly tooltip?: string; @Prop({ type: String }) readonly href?: string; @Prop({ type: String }) readonly target?: string; @Prop({ type: String, default: "button" }) readonly btnType!: string; @Prop({ type: String, default: "" }) readonly size?: string; @Prop({ type: String, default: "primary" }) readonly type!: string; @Prop({ type: Boolean, default: false }) readonly disabled!: boolean; @Prop({ type: Boolean, default: false }) readonly truncate!: boolean; @Prop({ type: Boolean, default: false }) readonly fill!: boolean; @Prop({ type: Boolean, default: false }) readonly loading!: boolean; @Prop({ type: [String, Object] }) readonly to?: Route; @Prop({ type: String }) readonly classes?: string; }