@tak-ps/vue-tabler 3.45.1 → 3.47.0
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/CHANGELOG.md +8 -0
- package/components/Delete.vue +5 -1
- package/components/input/Enum.vue +9 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.47.0
|
|
14
|
+
|
|
15
|
+
- :rocket: Use data function to setup Enum current state
|
|
16
|
+
|
|
17
|
+
### v3.46.0
|
|
18
|
+
|
|
19
|
+
- :rocket: Add `size` prop for delete icon size
|
|
20
|
+
|
|
13
21
|
### v3.45.1
|
|
14
22
|
|
|
15
23
|
- :bug: Placeholder should be first option on input if present
|
package/components/Delete.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
<template v-else>
|
|
9
|
-
<IconTrash @click.stop.prevent='modal = true' size='
|
|
9
|
+
<IconTrash @click.stop.prevent='modal = true' :size='size' class='cursor-pointer'/>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<TablerModal v-if='modal'>
|
|
@@ -44,6 +44,10 @@ export default {
|
|
|
44
44
|
type: String,
|
|
45
45
|
default: 'Delete'
|
|
46
46
|
},
|
|
47
|
+
size: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 32
|
|
50
|
+
},
|
|
47
51
|
displaytype: {
|
|
48
52
|
type: String,
|
|
49
53
|
default: 'button' // Or icon
|
|
@@ -42,13 +42,17 @@ export default {
|
|
|
42
42
|
label: String,
|
|
43
43
|
},
|
|
44
44
|
data: function() {
|
|
45
|
-
|
|
45
|
+
const data = {
|
|
46
46
|
current: ''
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
else
|
|
48
|
+
|
|
49
|
+
if (!this.modelValue && this.default) {
|
|
50
|
+
data.current = this.default
|
|
51
|
+
} else {
|
|
52
|
+
data.current = this.modelValue;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return data;
|
|
52
56
|
},
|
|
53
57
|
watch: {
|
|
54
58
|
modelValue: function() {
|