-Vue Material is lightweight framework built exactly according to the Material Design specs.
+Vue Material is lightweight framework built exactly according to the Material Design specs.
-It aims to deliver a collection of reusable components and a series of UI Elements to build applications with support to all modern Web Browsers through Vue 2.
+It aims to deliver a collection of reusable components and a series of UI Elements to build applications with support to all modern Web Browsers through Vue 2.
Build powerful and well-designed web apps that can fit on every screen. You can generate and use themes dynamically, use components on demand, take advantage of UI Elements and Components with an ease-to-use API.
@@ -114,11 +114,11 @@ Vue Material supports the latest version of all Browsers. This means:
* Thanks a lot to elviskang for donating the npm package name!
* Thanks to Evan You for allowing me to use Vue.js Logo.
-## Internal Dependencies
+## Internal Dependencies
You don't need to include any other library to work with vue-material. The focus of this project is to have a standalone build with no external dependence, but aiming to deliver the best experience without break the compatibility with the Vue.js core.
* vue
* autosize
* element.scrollintoviewifneeded-polyfill
-## License
+## License
MIT
diff --git a/docs/src/pages/components/BottomBar.vue b/docs/src/pages/components/BottomBar.vue
index f51d465..3c22b1d 100644
--- a/docs/src/pages/components/BottomBar.vue
+++ b/docs/src/pages/components/BottomBar.vue
@@ -94,7 +94,7 @@
disabledBoolean
- Disable the item and prevent his actions. Default false
+ Disable the item and prevent its actions. Default false
diff --git a/docs/src/pages/components/Buttons.vue b/docs/src/pages/components/Buttons.vue
index 5689aa1..cf6f6ee 100644
--- a/docs/src/pages/components/Buttons.vue
+++ b/docs/src/pages/components/Buttons.vue
@@ -26,7 +26,7 @@
disabledBoolean
- Disable the button and prevent his actions. Default false
+ Disable the button and prevent its actions. Default false
@@ -79,32 +79,32 @@
md-fab-top-left
- Position the md-fab absolutely on the top left of his parent
+ Position the md-fab absolutely on the top left of its parentmd-fab-top-center
- Position the md-fab absolutely on the top center of his parent
+ Position the md-fab absolutely on the top center of its parentmd-fab-top-right
- Position the md-fab absolutely on the top right of his parent
+ Position the md-fab absolutely on the top right of its parentmd-fab-bottom-left
- Position the md-fab absolutely on the bottom left of his parent
+ Position the md-fab absolutely on the bottom left of its parentmd-fab-bottom-center
- Position the md-fab absolutely on the bottom center of his parent
+ Position the md-fab absolutely on the bottom center of its parentmd-fab-bottom-right
- Position the md-fab absolutely on the bottom right of his parent
+ Position the md-fab absolutely on the bottom right of its parent
diff --git a/docs/src/pages/components/Checkbox.vue b/docs/src/pages/components/Checkbox.vue
index 58cf13a..9b4f233 100644
--- a/docs/src/pages/components/Checkbox.vue
+++ b/docs/src/pages/components/Checkbox.vue
@@ -43,7 +43,7 @@
disabledBoolean
- Disable the checkbox and prevent his actions. Default false
+ Disable the checkbox and prevent its actions. Default false
@@ -61,7 +61,7 @@
changeReceive the state of the checkbox
- Triggered when the checkbox changes his value.
+ Triggered when the checkbox changes its value.
diff --git a/docs/src/pages/components/Chips.vue b/docs/src/pages/components/Chips.vue
index dfe42e6..9f6ab7a 100644
--- a/docs/src/pages/components/Chips.vue
+++ b/docs/src/pages/components/Chips.vue
@@ -20,7 +20,7 @@
disabledBoolean
- Disable the chip and prevent his actions. Default: false
+ Disable the chip and prevent its actions. Default: false
@@ -81,7 +81,7 @@
disabledBoolean
- Disable the chips and prevent his actions. Default: false
+ Disable the chips and prevent its actions. Default: false
diff --git a/docs/src/pages/components/Dialog.vue b/docs/src/pages/components/Dialog.vue
index b418c40..c095686 100644
--- a/docs/src/pages/components/Dialog.vue
+++ b/docs/src/pages/components/Dialog.vue
@@ -534,6 +534,7 @@
:md-cancel-text="prompt.cancel"
@open="onOpen"
@close="onClose"
+ v-model="prompt.value"
ref="dialog6">
</md-dialog-prompt>
diff --git a/docs/src/pages/components/File.vue b/docs/src/pages/components/File.vue
index 2b80f0e..5d6df9e 100644
--- a/docs/src/pages/components/File.vue
+++ b/docs/src/pages/components/File.vue
@@ -38,7 +38,7 @@
disabledBoolean
- Disable the input and prevent his actions. Default false
+ Disable the input and prevent its actions. Default false
diff --git a/docs/src/pages/components/Input.vue b/docs/src/pages/components/Input.vue
index 679ad39..8f06eda 100644
--- a/docs/src/pages/components/Input.vue
+++ b/docs/src/pages/components/Input.vue
@@ -86,7 +86,7 @@
disabledBoolean
- Disable the input and prevent his actions. Default false
+ Disable the input and prevent its actions. Default false
@@ -136,7 +136,7 @@
disabledBoolean
- Disable the textarea and prevent his actions. Default false
+ Disable the textarea and prevent its actions. Default false
diff --git a/docs/src/pages/components/List.vue b/docs/src/pages/components/List.vue
index 2cb5901..2527a1e 100644
--- a/docs/src/pages/components/List.vue
+++ b/docs/src/pages/components/List.vue
@@ -68,7 +68,7 @@
disabledBoolean
- Disable the item and prevent his actions. Default false
+ Disable the item and prevent its actions. Default false
@@ -974,6 +974,17 @@
diff --git a/docs/src/pages/components/Menu.vue b/docs/src/pages/components/Menu.vue
index 9d3e139..3929adb 100644
--- a/docs/src/pages/components/Menu.vue
+++ b/docs/src/pages/components/Menu.vue
@@ -125,7 +125,7 @@
disabledBoolean
- Disable the button and prevent his actions. Default false
+ Disable the button and prevent its actions. Default false
diff --git a/docs/src/pages/components/Radio.vue b/docs/src/pages/components/Radio.vue
index 9b086b7..897552c 100644
--- a/docs/src/pages/components/Radio.vue
+++ b/docs/src/pages/components/Radio.vue
@@ -49,7 +49,7 @@
disabledBoolean
- Disable the radio and prevent his actions. Default false
+ Disable the radio and prevent its actions. Default false
@@ -67,7 +67,7 @@
changeReceive the state of the radio
- Triggered when the radio changes his value.
+ Triggered when the radio changes its value.
diff --git a/docs/src/pages/components/Select.vue b/docs/src/pages/components/Select.vue
index 93958cc..72fb43f 100644
--- a/docs/src/pages/components/Select.vue
+++ b/docs/src/pages/components/Select.vue
@@ -38,7 +38,7 @@
disabledBoolean
- Disable the input and prevent his actions. Default false
+ Disable the input and prevent its actions. Default false
@@ -115,7 +115,7 @@
disabledBoolean
- Disable the button and prevent his actions. Default false
+ Disable the button and prevent its actions. Default false
diff --git a/docs/src/pages/components/SpeedDial.vue b/docs/src/pages/components/SpeedDial.vue
index 82fcc17..fcb7d9f 100644
--- a/docs/src/pages/components/SpeedDial.vue
+++ b/docs/src/pages/components/SpeedDial.vue
@@ -20,22 +20,22 @@
md-fab-top-left
- Position the md-fab absolutely on the top left of his parent
+ Position the md-fab absolutely on the top left of its parentmd-fab-top-center
- Position the md-fab absolutely on the top center of his parent
+ Position the md-fab absolutely on the top center of its parentmd-fab-top-right
- Position the md-fab absolutely on the top right of his parent
+ Position the md-fab absolutely on the top right of its parentmd-fab-bottom-left
- Position the md-fab absolutely on the bottom left of his parent
+ Position the md-fab absolutely on the bottom left of its parent
diff --git a/docs/src/pages/components/Switch.vue b/docs/src/pages/components/Switch.vue
index b82fd07..e1f2434 100644
--- a/docs/src/pages/components/Switch.vue
+++ b/docs/src/pages/components/Switch.vue
@@ -49,7 +49,7 @@
disabledBoolean
- Disable the switch and prevent his actions. Default false
+ Disable the switch and prevent its actions. Default false
@@ -67,7 +67,7 @@
changeReceive the state of the switch
- Triggered when the switch changes his value.
+ Triggered when the switch changes its value.
diff --git a/docs/src/pages/components/Tabs.vue b/docs/src/pages/components/Tabs.vue
index 9ff04ee..6833d27 100644
--- a/docs/src/pages/components/Tabs.vue
+++ b/docs/src/pages/components/Tabs.vue
@@ -135,7 +135,7 @@
md-disabledBoolean
- Disable the tab and prevent his actions. Default false
+ Disable the tab and prevent its actions. Default false
diff --git a/src/components/mdBottomBar/mdBottomBarItem.vue b/src/components/mdBottomBar/mdBottomBarItem.vue
index 6bf6b76..c9ca8b7 100644
--- a/src/components/mdBottomBar/mdBottomBarItem.vue
+++ b/src/components/mdBottomBar/mdBottomBarItem.vue
@@ -28,7 +28,7 @@
mdIconSrc: String,
mdIconset: String,
mdActive: Boolean,
- disabled: String,
+ disabled: Boolean,
href: String
},
data() {
diff --git a/src/components/mdMenu/mdMenuContent.vue b/src/components/mdMenu/mdMenuContent.vue
index a26568c..4076c22 100644
--- a/src/components/mdMenu/mdMenuContent.vue
+++ b/src/components/mdMenu/mdMenuContent.vue
@@ -50,8 +50,13 @@
},
fireClick() {
if (this.highlighted > 0) {
- this.$children[0].$children[this.highlighted - 1].$el.click();
+ this.getOptions()[this.highlighted - 1].$el.click();
}
+ },
+ getOptions() {
+ return this.$children[0].$children.filter((child) => {
+ return child.$el.classList.contains('md-option');
+ });
}
},
mounted() {
diff --git a/src/components/mdRadio/mdRadio.scss b/src/components/mdRadio/mdRadio.scss
index c35da46..81a369d 100644
--- a/src/components/mdRadio/mdRadio.scss
+++ b/src/components/mdRadio/mdRadio.scss
@@ -1,7 +1,7 @@
@import '../../core/stylesheets/variables.scss';
$radio-size: 20px;
-$radio-ripple-size: 48px;
+$radio-touch-size: 48px;
.md-radio {
width: auto;
@@ -19,8 +19,8 @@ $radio-ripple-size: 48px;
transition: $swift-ease-out;
&:before {
- width: $radio-ripple-size;
- height: $radio-ripple-size;
+ width: $radio-touch-size;
+ height: $radio-touch-size;
position: absolute;
top: 50%;
left: 50%;
@@ -57,8 +57,8 @@ $radio-ripple-size: 48px;
color: rgba(#000, .54);
.md-ripple {
- width: $radio-ripple-size !important;
- height: $radio-ripple-size !important;
+ width: $radio-touch-size !important;
+ height: $radio-touch-size !important;
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
diff --git a/src/components/mdRadio/mdRadio.vue b/src/components/mdRadio/mdRadio.vue
index f8604f4..abb9b68 100644
--- a/src/components/mdRadio/mdRadio.vue
+++ b/src/components/mdRadio/mdRadio.vue
@@ -1,7 +1,7 @@