@featherds/button
Advanced tools
Comparing version
@@ -20,8 +20,8 @@ var __defProp = Object.defineProperty; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
import { h } from "vue"; | ||
import { defineComponent, h } from "vue"; | ||
import { FeatherRipple } from "@featherds/ripple"; | ||
var FeatherButton_vue_vue_type_style_index_0_scoped_true_lang = ""; | ||
var _export_sfc = (sfc, props) => { | ||
var _export_sfc = (sfc, props2) => { | ||
const target = sfc.__vccOpts || sfc; | ||
for (const [key, val] of props) { | ||
for (const [key, val] of props2) { | ||
target[key] = val; | ||
@@ -31,33 +31,34 @@ } | ||
}; | ||
const _sfc_main = { | ||
const props = { | ||
primary: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
text: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
secondary: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
icon: { | ||
type: String | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
asAnchor: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
onColor: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}; | ||
const _sfc_main = defineComponent({ | ||
inheritAttrs: false, | ||
props: { | ||
primary: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
text: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
secondary: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
icon: { | ||
type: String | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
asAnchor: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
onColor: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
props, | ||
render() { | ||
@@ -100,2 +101,5 @@ const getClasses = () => { | ||
if (this.disabled) { | ||
if (this.asAnchor) { | ||
e.preventDefault(); | ||
} | ||
this.$emit("disabled-click", e); | ||
@@ -134,4 +138,4 @@ } else { | ||
} | ||
}; | ||
var FeatherButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f808d47e"]]); | ||
}); | ||
var FeatherButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-43817fe8"]]); | ||
export { FeatherButton }; |
{ | ||
"name": "@featherds/button", | ||
"version": "0.9.6", | ||
"version": "0.10.0", | ||
"publishConfig": { | ||
@@ -13,4 +13,4 @@ "access": "public" | ||
"dependencies": { | ||
"@featherds/ripple": "^0.9.6", | ||
"@featherds/styles": "^0.9.6", | ||
"@featherds/ripple": "^0.10.0", | ||
"@featherds/styles": "^0.10.0", | ||
"vue": "^3.1.0-0" | ||
@@ -23,3 +23,3 @@ }, | ||
"types": "./src/index.d.ts", | ||
"gitHead": "04a74207e8bfa8d39acc470365e30dd6c90b2e8e" | ||
"gitHead": "9871b17eaedcfc90174b78b21acb0cc06afd594c" | ||
} |
@@ -1,5 +0,4 @@ | ||
declare module "@featherds/button" { | ||
import { defineComponent } from "vue"; | ||
const FeatherButton: ReturnType<typeof defineComponent>; | ||
export { FeatherButton }; | ||
} | ||
import { DefineComponent } from "vue"; | ||
export const FeatherButton: DefineComponent< | ||
typeof import("./components/FeatherButton.vue").props | ||
>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76519
0.51%939
0.11%+ Added
+ Added
- Removed
- Removed
Updated
Updated