@mozaic-ds/vue 0.8.1-beta.0 → 0.8.2-beta.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.8.1-beta.0",
3
+ "version": "0.8.2-beta.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build ./src/index.js",
@@ -40,8 +40,6 @@ export default {
40
40
  MIcon,
41
41
  },
42
42
 
43
- inheritAttrs: false,
44
-
45
43
  props: {
46
44
  id: {
47
45
  type: String,
@@ -91,7 +89,8 @@ export default {
91
89
 
92
90
  setLabelClasses() {
93
91
  return {
94
- 'mc-accordion__header__label--with-before-slot': this.$slots.beforeLabel,
92
+ 'mc-accordion__header__label--with-before-slot':
93
+ this.$slots.beforeLabel,
95
94
  'mc-accordion__header__label--with-after-slot': this.$slots.afterLabel,
96
95
  };
97
96
  },
@@ -101,18 +100,18 @@ export default {
101
100
  open: function () {
102
101
  this.checked = !this.checked;
103
102
  },
104
- checked:function() {
105
- this.$emit('update:open',this.checked);
106
- }
103
+ checked: function () {
104
+ this.$emit('update:open', this.checked);
105
+ },
107
106
  },
108
107
 
109
- methods:{
110
- onClick(){
111
- if(this.disabled === false) {
108
+ methods: {
109
+ onClick() {
110
+ if (this.disabled === false) {
112
111
  this.checked = !this.checked;
113
112
  }
114
- }
115
- }
113
+ },
114
+ },
116
115
  };
117
116
  </script>
118
117
 
@@ -351,8 +351,9 @@ export default {
351
351
  watch: {
352
352
  source: {
353
353
  immediate: true,
354
+ deep: true,
354
355
  async handler(newValue, oldValue) {
355
- if (deepEqual(newValue, oldValue)) {
356
+ if (deepEqual(newValue, oldValue) && !(newValue instanceof Function)) {
356
357
  return;
357
358
  }
358
359
 
Binary file