pimelon-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
CHANGED
|
@@ -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('')
|