frappe-ui 0.1.51 → 0.1.53
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 +1 -1
- package/readme.md +2 -2
- package/src/components/FileUploader.vue +5 -1
- package/src/components/Tabs.vue +1 -1
- package/src/utils/pageMeta.js +1 -1
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://github.com/frappe/frappe-ui">
|
|
3
|
-
<img src="./
|
|
3
|
+
<img src="./frappe-ui.svg" width="250" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
<h1 style="font-size: 24px" align="center">Rapidly build modern frontends for Frappe apps</h1>
|
|
@@ -56,7 +56,7 @@ Now, you can import needed components and start using it:
|
|
|
56
56
|
|
|
57
57
|
```html
|
|
58
58
|
<template>
|
|
59
|
-
<
|
|
59
|
+
<button>Click me</button>
|
|
60
60
|
</template>
|
|
61
61
|
<script>
|
|
62
62
|
import { Button } from 'frappe-ui'
|
|
@@ -51,7 +51,11 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
methods: {
|
|
54
|
-
openFileSelector() {
|
|
54
|
+
openFileSelector(type) {
|
|
55
|
+
if (type) {
|
|
56
|
+
// change inputs filetype to accept the type of file you want to upload
|
|
57
|
+
this.$refs['input'].accept = type
|
|
58
|
+
}
|
|
55
59
|
this.$refs['input'].click()
|
|
56
60
|
},
|
|
57
61
|
async onFileAdd(e) {
|
package/src/components/Tabs.vue
CHANGED
|
@@ -85,7 +85,7 @@ const changedIndex = computed({
|
|
|
85
85
|
|
|
86
86
|
const tabRef = ref([])
|
|
87
87
|
const indicator = ref(null)
|
|
88
|
-
const tabsLength =
|
|
88
|
+
const tabsLength = computed(() => props.tabs?.length)
|
|
89
89
|
|
|
90
90
|
const indicatorLeft = ref(props.options?.indicatorLeft)
|
|
91
91
|
const transitionClass = ref('')
|