@tak-ps/vue-tabler 3.69.0 → 3.71.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 +13 -1
- package/components/input/Input.vue +4 -0
- package/components/internal/Label.vue +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/components/Delete.vue
CHANGED
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
<span v-text='label' />
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
|
+
<template v-else-if='displaytype === "menu"'>
|
|
12
|
+
<div
|
|
13
|
+
class='cursor-pointer col-12 d-flex align-items-center px-2 py-2'
|
|
14
|
+
@click.stop.prevent='modal = true'
|
|
15
|
+
>
|
|
16
|
+
<IconTrash
|
|
17
|
+
:size='32'
|
|
18
|
+
stroke='1'
|
|
19
|
+
/>
|
|
20
|
+
<span class='mx-2' v-text='label'/>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
11
23
|
<template v-else>
|
|
12
24
|
<TablerIconButton
|
|
13
25
|
title='Delete'
|
|
@@ -17,7 +29,7 @@
|
|
|
17
29
|
:size='size'
|
|
18
30
|
:stroke='1'
|
|
19
31
|
/>
|
|
20
|
-
</
|
|
32
|
+
</TablerIconButton>
|
|
21
33
|
</template>
|
|
22
34
|
|
|
23
35
|
<TablerModal v-if='modal'>
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
:disabled='disabled'
|
|
42
42
|
:autocomplete='autocomplete'
|
|
43
43
|
:autofocus='autofocus'
|
|
44
|
+
:accept='accept'
|
|
44
45
|
:type='computed_type'
|
|
45
46
|
:class='{
|
|
46
47
|
"is-invalid": errorstr
|
|
@@ -138,6 +139,9 @@ export default {
|
|
|
138
139
|
type: Boolean,
|
|
139
140
|
default: false,
|
|
140
141
|
},
|
|
142
|
+
accept: {
|
|
143
|
+
type: String,
|
|
144
|
+
},
|
|
141
145
|
description: {
|
|
142
146
|
type: String,
|
|
143
147
|
default: '',
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
/>
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
30
|
-
</dropdown
|
|
30
|
+
</dropdown>
|
|
31
|
+
</span>
|
|
31
32
|
<div class='align-self-center'>
|
|
32
33
|
<div
|
|
33
34
|
v-if='label'
|
|
34
35
|
class='px-2'
|
|
35
36
|
>
|
|
36
|
-
<span v-text='label' />
|
|
37
|
+
<span class='user-select-none' v-text='label' />
|
|
37
38
|
<span
|
|
38
39
|
v-if='props.required'
|
|
39
40
|
class='text-red mx-1'
|