@kizmann/nano-ui 0.8.35 → 0.8.37
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -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
|
|
@@ -4,6 +4,14 @@ export default {
|
|
4
4
|
|
5
5
|
name: 'NDatetimepicker',
|
6
6
|
|
7
|
+
inject: {
|
8
|
+
|
9
|
+
NFormItem: {
|
10
|
+
default: undefined
|
11
|
+
}
|
12
|
+
|
13
|
+
},
|
14
|
+
|
7
15
|
props: {
|
8
16
|
|
9
17
|
modelValue: {
|
@@ -152,6 +160,14 @@ export default {
|
|
152
160
|
|
153
161
|
},
|
154
162
|
|
163
|
+
computed: {
|
164
|
+
|
165
|
+
deepDisabled() {
|
166
|
+
return this.NFormItem ? this.NFormItem.disabled(this.disabled) :
|
167
|
+
this.disabled;
|
168
|
+
}
|
169
|
+
|
170
|
+
},
|
155
171
|
|
156
172
|
watch: {
|
157
173
|
|
@@ -246,7 +262,7 @@ export default {
|
|
246
262
|
|
247
263
|
let props = {};
|
248
264
|
|
249
|
-
if ( ! this.
|
265
|
+
if ( ! this.deepDisabled ) {
|
250
266
|
props.onMousedown = this.clearDatetimepicker;
|
251
267
|
}
|
252
268
|
|
@@ -270,7 +286,7 @@ export default {
|
|
270
286
|
{
|
271
287
|
let props = {
|
272
288
|
value: '',
|
273
|
-
disabled: this.
|
289
|
+
disabled: this.deepDisabled,
|
274
290
|
placeholder: this.placeholder,
|
275
291
|
onInput: this.onValueInput,
|
276
292
|
};
|
@@ -357,7 +373,7 @@ export default {
|
|
357
373
|
size: this.size,
|
358
374
|
position: this.position,
|
359
375
|
scrollClose: true,
|
360
|
-
disabled: this.
|
376
|
+
disabled: this.deepDisabled
|
361
377
|
};
|
362
378
|
|
363
379
|
let slots = {
|
@@ -391,7 +407,7 @@ export default {
|
|
391
407
|
classList.push('n-focus');
|
392
408
|
}
|
393
409
|
|
394
|
-
if ( this.
|
410
|
+
if ( this.deepDisabled ) {
|
395
411
|
classList.push('n-disabled');
|
396
412
|
}
|
397
413
|
|