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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frappe-ui",
3
- "version": "0.1.140",
3
+ "version": "0.1.141",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.ts",
6
6
  "type": "module",
@@ -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')