From 97421023e454e36a595948ff2a8eb9836f118723 Mon Sep 17 00:00:00 2001 From: Gustavo Gomes Date: Tue, 30 Jul 2024 10:25:51 -0300 Subject: [PATCH 1/5] Added modal attribute binding --- src/components/slds-modal/slds-modal.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/components/slds-modal/slds-modal.vue b/src/components/slds-modal/slds-modal.vue index b2e32d2..8452f54 100644 --- a/src/components/slds-modal/slds-modal.vue +++ b/src/components/slds-modal/slds-modal.vue @@ -8,7 +8,7 @@ -
+
@@ -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() { From 2c2b93b19df2388db87f9860401a3dab28c11a87 Mon Sep 17 00:00:00 2001 From: Gustavo Gomes Date: Fri, 18 Oct 2024 18:51:24 -0300 Subject: [PATCH 2/5] Slds-svg added to export file --- src/components/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/index.ts b/src/components/index.ts index ede74ba..1ef2b1c 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -59,6 +59,7 @@ export { default as SldsScopedNotification } from "./slds-scoped-notification/sl export { default as SldsScopedTabs } from "./slds-scoped-tabs/slds-scoped-tabs.vue" export { default as SldsSpinner } from "./slds-spinner/slds-spinner.vue" export { default as SldsSpinnerContainer } from "./slds-spinner/slds-spinner-container.vue" +export { default as SldsSvg } from "./slds-svg/slds-svg.vue" export { default as SldsTab } from "./slds-tabs/slds-tab.vue" export { default as SldsTabContent } from "./slds-tabs/slds-tab-content.vue" export { default as SldsTabs } from "./slds-tabs/slds-tabs.vue" From 4ee4119d110fb31680ded7c02392bfc4fcb9dc5e Mon Sep 17 00:00:00 2001 From: Gustavo Gomes Date: Wed, 6 Nov 2024 16:03:30 -0300 Subject: [PATCH 3/5] slds-group-button-dropdown created --- docs/examples/test.vue | 70 +++++++++++- .../slds-button-group-dropdown.vue | 55 ++++++++++ .../slds-button-group/slds-button-group.vue | 103 +++++++++++++++++- 3 files changed, 225 insertions(+), 3 deletions(-) create mode 100644 src/components/slds-button-group/slds-button-group-dropdown.vue diff --git a/docs/examples/test.vue b/docs/examples/test.vue index dee3f87..b74eec9 100644 --- a/docs/examples/test.vue +++ b/docs/examples/test.vue @@ -1,5 +1,51 @@