Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
implement blurring dimmer feature
Browse files Browse the repository at this point in the history
  • Loading branch information
comfuture committed Jul 19, 2017
1 parent bd5b57e commit 8f26803
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/modules/dimmer/Dimmer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</template>
<script>
import {PropClass} from 'semantic/mixins'
import {addClass, removeClass} from 'semantic/helper'
export default {
name: 'ui-dimmer',
Expand All @@ -20,7 +21,15 @@ export default {
],
props: {
loading: [Boolean, String],
active: Boolean
active: Boolean,
blurring: Boolean
},
watch: {
active(value) {
if (this.blurring && !this.page) {
(value ? addClass : removeClass)(this.$el.parentNode, 'blurring dimmable dimmed')
}
}
},
computed: {
loadingText() {
Expand Down

0 comments on commit 8f26803

Please sign in to comment.