@bildvitta/quasar-ui-asteroid 3.11.0-beta.12 → 3.11.0-beta.13
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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<section class="text-body1 text-grey-8">
|
|
15
15
|
<component :is="componentTag" ref="form">
|
|
16
16
|
<slot name="description">
|
|
17
|
-
<
|
|
17
|
+
<component :is="descriptionComponentTag">{{ card.description }}</component>
|
|
18
18
|
</slot>
|
|
19
19
|
</component>
|
|
20
20
|
</section>
|
|
@@ -186,6 +186,14 @@ export default {
|
|
|
186
186
|
useEqualWidth: this.hasAllActions,
|
|
187
187
|
...this.actionsProps
|
|
188
188
|
}
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
hasRenderFunction () {
|
|
192
|
+
return typeof this.card.description?.render === 'function'
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
descriptionComponentTag () {
|
|
196
|
+
return this.hasRenderFunction ? this.card.description : 'div'
|
|
189
197
|
}
|
|
190
198
|
},
|
|
191
199
|
|
|
@@ -20,11 +20,20 @@ export default function (config = {}) {
|
|
|
20
20
|
const { entity, id, url } = deleteActionParams
|
|
21
21
|
|
|
22
22
|
const defaultDialogProps = {
|
|
23
|
-
|
|
23
|
+
...dialogProps,
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
card: {
|
|
26
|
+
description: 'Tem certeza que deseja excluir este item?',
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
...dialogProps.card
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
ok: {
|
|
32
|
+
label: 'Excluir',
|
|
33
|
+
onClick: () => destroy.call(this),
|
|
34
|
+
|
|
35
|
+
...dialogProps.ok
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
const defaultNotifyMessages = {
|