@tak-ps/vue-tabler 3.0.1 → 3.1.2
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 +12 -0
- package/components/Delete.vue +12 -3
- package/components/Toggle.vue +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.1.2
|
|
14
|
+
|
|
15
|
+
- :rocket: `Toggle`: Increase padding between label and toggle
|
|
16
|
+
|
|
17
|
+
### v3.1.1
|
|
18
|
+
|
|
19
|
+
- :bug: Fix display type display
|
|
20
|
+
|
|
21
|
+
### v3.1.0
|
|
22
|
+
|
|
23
|
+
- :rocket: Add display type to Delete
|
|
24
|
+
|
|
13
25
|
### v3.0.1
|
|
14
26
|
|
|
15
27
|
- :bug: Fix initial value
|
package/components/Delete.vue
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
3
|
+
<template v-if='displaytype === "button"'>
|
|
4
|
+
<div @click='modal = true' class="btn btn-outline-danger">
|
|
5
|
+
<span v-text='label'/>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
<template v-else>
|
|
9
|
+
<TrashIcon @click='modal = true' class='cursor-pointer'/>
|
|
10
|
+
</template>
|
|
6
11
|
|
|
7
12
|
<TablerModal v-if='modal'>
|
|
8
13
|
<button type="button" class="btn-close" @click='modal = false' aria-label="Close"></button>
|
|
@@ -34,6 +39,10 @@ export default {
|
|
|
34
39
|
label: {
|
|
35
40
|
type: String,
|
|
36
41
|
default: 'Delete'
|
|
42
|
+
},
|
|
43
|
+
displaytype: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: 'button' // Or icon
|
|
37
46
|
}
|
|
38
47
|
},
|
|
39
48
|
data: function() {
|
package/components/Toggle.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div class='d-flex align-items-center'>
|
|
4
|
-
<label class='form-label my-1' v-text='label'/>
|
|
4
|
+
<label class='form-label my-1 mx-2' v-text='label'/>
|
|
5
5
|
<label class="ms-auto form-check form-switch pt-2">
|
|
6
6
|
<input v-model='current' :disabled='disabled' class="form-check-input" type="checkbox">
|
|
7
7
|
</label>
|