frappe-ui 0.1.140 → 0.1.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ const props = withDefaults(defineProps<ButtonProps>(), {
|
|
|
85
85
|
})
|
|
86
86
|
|
|
87
87
|
const slots = useSlots()
|
|
88
|
+
const router = useRouter()
|
|
88
89
|
|
|
89
90
|
const buttonClasses = computed(() => {
|
|
90
91
|
let solidClasses = {
|
|
@@ -215,7 +216,6 @@ const isIconButton = computed(() => {
|
|
|
215
216
|
|
|
216
217
|
const handleClick = () => {
|
|
217
218
|
if (props.route) {
|
|
218
|
-
const router = useRouter()
|
|
219
219
|
return router.push(props.route)
|
|
220
220
|
} else if (props.link) {
|
|
221
221
|
return window.open(props.link, '_blank')
|