@farm-investimentos/front-mfe-components 15.4.4 → 15.4.5
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/dist/front-mfe-components.common.js +126 -117
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +126 -117
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Collapsible/Collapsible.stories.js +11 -0
- package/src/components/Collapsible/Collapsible.vue +15 -2
package/package.json
CHANGED
|
@@ -61,6 +61,17 @@ export const Export = () => ({
|
|
|
61
61
|
</div>`,
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
+
export const ExportDisabled = () => ({
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
clicked: false,
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
template: `<div>
|
|
71
|
+
clicked: {{clicked}} <farm-collapsible :disabledButton="true" icon="clipboard" title="With Button" :hasButton="true" @onClick="value => clicked = !clicked" >collapsible content</farm-collapsible>
|
|
72
|
+
</div>`,
|
|
73
|
+
});
|
|
74
|
+
|
|
64
75
|
export const Opened = () => ({
|
|
65
76
|
data() {
|
|
66
77
|
return {
|
|
@@ -11,7 +11,13 @@
|
|
|
11
11
|
<farm-heading type="6" color="black">
|
|
12
12
|
{{ title }}
|
|
13
13
|
</farm-heading>
|
|
14
|
-
<farm-btn
|
|
14
|
+
<farm-btn
|
|
15
|
+
outlined
|
|
16
|
+
class="ml-6"
|
|
17
|
+
v-if="hasButton"
|
|
18
|
+
:disabled="disabledButton"
|
|
19
|
+
@click.stop="onClick()"
|
|
20
|
+
>
|
|
15
21
|
{{ labelButton }}
|
|
16
22
|
</farm-btn>
|
|
17
23
|
</div>
|
|
@@ -93,7 +99,14 @@ export default defineComponent({
|
|
|
93
99
|
default: false,
|
|
94
100
|
},
|
|
95
101
|
/**
|
|
96
|
-
* export button
|
|
102
|
+
* export button disabled toggle
|
|
103
|
+
*/
|
|
104
|
+
disabledButton: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: false,
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* export button emit
|
|
97
110
|
*/
|
|
98
111
|
onExport: {
|
|
99
112
|
type: Boolean,
|