@bildvitta/quasar-ui-asteroid 3.13.0 → 3.13.1
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
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
</q-item-section>
|
|
10
10
|
|
|
11
11
|
<q-item-section>
|
|
12
|
-
<div>
|
|
12
|
+
<div>
|
|
13
|
+
{{ item.label }}
|
|
14
|
+
</div>
|
|
13
15
|
</q-item-section>
|
|
14
16
|
</q-item>
|
|
15
17
|
</slot>
|
|
@@ -86,7 +88,7 @@ const { deleteBtnProps, hasDelete } = useDelete()
|
|
|
86
88
|
const fullList = computed(() => {
|
|
87
89
|
return {
|
|
88
90
|
...props.list,
|
|
89
|
-
...deleteBtnProps
|
|
91
|
+
...deleteBtnProps.value
|
|
90
92
|
}
|
|
91
93
|
})
|
|
92
94
|
|
|
@@ -189,20 +191,20 @@ function onClick (item = {}) {
|
|
|
189
191
|
|
|
190
192
|
// ------------------------------- composables ---------------------------------
|
|
191
193
|
function useDelete () {
|
|
192
|
-
const deleteBtnProps = {}
|
|
193
|
-
|
|
194
194
|
const hasDelete = computed(() => !!Object.keys(props.deleteProps).length)
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
196
|
+
const deleteBtnProps = computed(() => {
|
|
197
|
+
return {
|
|
198
|
+
...(hasDelete.value && {
|
|
199
|
+
delete: {
|
|
200
|
+
color: 'grey-10',
|
|
201
|
+
icon: props.deleteIcon,
|
|
202
|
+
label: props.deleteLabel,
|
|
203
|
+
handler: () => qas.delete(props.deleteProps)
|
|
204
|
+
}
|
|
205
|
+
})
|
|
206
|
+
}
|
|
207
|
+
})
|
|
206
208
|
|
|
207
209
|
return {
|
|
208
210
|
deleteBtnProps,
|