@kizmann/nano-ui 0.8.35 → 0.8.36

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.8.35",
3
+ "version": "0.8.36",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -18,7 +18,7 @@ export default {
18
18
  extraValue: {
19
19
  default()
20
20
  {
21
- return {};
21
+ return null;
22
22
  },
23
23
  type: [Object]
24
24
  },
@@ -44,7 +44,7 @@ export default {
44
44
  data()
45
45
  {
46
46
  return {
47
- tempValue: this.modelValue, sempValue: this.extraValue
47
+ tempValue: this.modelValue, sempValue: this.extraValue || this.modelValue
48
48
  };
49
49
  },
50
50
 
@@ -152,6 +152,14 @@ export default {
152
152
 
153
153
  },
154
154
 
155
+ computed: {
156
+
157
+ deepDisabled() {
158
+ return this.NFormItem ? this.NFormItem.disabled(this.disabled) :
159
+ this.disabled;
160
+ }
161
+
162
+ },
155
163
 
156
164
  watch: {
157
165
 
@@ -246,7 +254,7 @@ export default {
246
254
 
247
255
  let props = {};
248
256
 
249
- if ( ! this.disabled ) {
257
+ if ( ! this.deepDisabled ) {
250
258
  props.onMousedown = this.clearDatetimepicker;
251
259
  }
252
260
 
@@ -270,7 +278,7 @@ export default {
270
278
  {
271
279
  let props = {
272
280
  value: '',
273
- disabled: this.disabled,
281
+ disabled: this.deepDisabled,
274
282
  placeholder: this.placeholder,
275
283
  onInput: this.onValueInput,
276
284
  };
@@ -357,7 +365,7 @@ export default {
357
365
  size: this.size,
358
366
  position: this.position,
359
367
  scrollClose: true,
360
- disabled: this.disabled
368
+ disabled: this.deepDisabled
361
369
  };
362
370
 
363
371
  let slots = {
@@ -391,7 +399,7 @@ export default {
391
399
  classList.push('n-focus');
392
400
  }
393
401
 
394
- if ( this.disabled ) {
402
+ if ( this.deepDisabled ) {
395
403
  classList.push('n-disabled');
396
404
  }
397
405