@@ -84,10 +84,18 @@ export default defineComponent({
computed: {
/**
- * Transition name, if any.
+ * Bindable modal attributes.
*/
- transitionName(): string {
- return this.noAnimation ? "" : "blow-up"
+ modalAttributes(): Record {
+ const attributes: Record = {}
+
+ for (const attribute in this.$attrs) {
+ if (attribute.startsWith("data-") || attribute === "class") {
+ attributes[attribute] = this.$attrs[attribute]
+ }
+ }
+
+ return attributes
},
/**
@@ -139,6 +147,13 @@ export default defineComponent({
return classNames
},
+
+ /**
+ * Transition name, if any.
+ */
+ transitionName(): string {
+ return this.noAnimation ? "" : "blow-up"
+ },
},
mounted() {