@magicgol/polyjuice 0.32.2 → 0.32.3
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
@@ -20,3 +20,9 @@ export const Default = Template.bind({});
|
|
20
20
|
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
21
21
|
Default.args = {
|
22
22
|
};
|
23
|
+
|
24
|
+
export const Disabled = Template.bind({});
|
25
|
+
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
26
|
+
Disabled.args = {
|
27
|
+
disabled: true
|
28
|
+
};
|
@@ -1,8 +1,9 @@
|
|
1
1
|
<template>
|
2
2
|
<mg-tertiary-button
|
3
|
-
@click="onClick"
|
4
|
-
:class="classes"
|
5
3
|
class="p-0"
|
4
|
+
:disabled="disabled"
|
5
|
+
:class="classes"
|
6
|
+
@click="onClick"
|
6
7
|
>
|
7
8
|
<svgicon name="circle-with-minus"></svgicon>
|
8
9
|
</mg-tertiary-button>
|
@@ -14,6 +15,13 @@ import MgTertiaryButton from "../../button/tertiary-button/TertiaryButton";
|
|
14
15
|
export default {
|
15
16
|
name: 'mg-remove-button',
|
16
17
|
|
18
|
+
props: {
|
19
|
+
disabled: {
|
20
|
+
type: Boolean,
|
21
|
+
default: false,
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
17
25
|
computed: {
|
18
26
|
classes() {
|
19
27
|
return {
|