renusify 2.4.2 → 2.4.3
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.
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
<span v-show="templateShow" class="highlight-syn-func"></template></span>
|
|
42
42
|
</div>
|
|
43
43
|
<div>
|
|
44
|
-
<span v-show="scriptShow" class="highlight-syn-
|
|
44
|
+
<span v-show="scriptShow" class="highlight-syn-class"
|
|
45
45
|
><script><br/>export default {</span
|
|
46
46
|
>
|
|
47
47
|
<highlight-script ref="h-js" v-model="scr"></highlight-script>
|
|
48
|
-
<span v-show="scriptShow" class="highlight-syn-
|
|
48
|
+
<span v-show="scriptShow" class="highlight-syn-class">}<br/></script></span>
|
|
49
49
|
</div>
|
|
50
50
|
<div>
|
|
51
|
-
<span v-show="cssShow" class="highlight-syn-
|
|
51
|
+
<span v-show="cssShow" class="highlight-syn-class"
|
|
52
52
|
><style lang<span class="color-green">="css"</span>></span
|
|
53
53
|
>
|
|
54
54
|
<highlight-css ref="h-css" v-model="sty"></highlight-css>
|
|
55
|
-
<span v-show="cssShow" class="highlight-syn-
|
|
55
|
+
<span v-show="cssShow" class="highlight-syn-class"></style></span>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
58
|
</div>
|
|
@@ -141,9 +141,9 @@ export default {
|
|
|
141
141
|
.#{base.$prefix}code-editor {
|
|
142
142
|
position: relative;
|
|
143
143
|
white-space: break-spaces;
|
|
144
|
-
caret-color:
|
|
145
|
-
background-color: #
|
|
146
|
-
color: #
|
|
144
|
+
caret-color: #f8f8f2;
|
|
145
|
+
background-color: #1a1a1c;
|
|
146
|
+
color: #f8f8f2;
|
|
147
147
|
padding: 10px;
|
|
148
148
|
font-size: 14px;
|
|
149
149
|
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
@focusin="active=true"
|
|
14
14
|
@focusout="active=false"
|
|
15
15
|
ref="input"
|
|
16
|
-
|
|
16
|
+
:step="step"
|
|
17
|
+
type="number"
|
|
17
18
|
autocomplete="no"
|
|
18
19
|
v-model="number"
|
|
19
20
|
/>
|
|
@@ -44,15 +45,13 @@ export default {
|
|
|
44
45
|
emits: ['update:modelValue'],
|
|
45
46
|
data() {
|
|
46
47
|
return {
|
|
47
|
-
number: this.
|
|
48
|
+
number: this.modelValue,
|
|
48
49
|
active: false
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
watch: {
|
|
52
53
|
'modelValue': function (newVal) {
|
|
53
|
-
|
|
54
|
-
this.number = this.setSplit(newVal)
|
|
55
|
-
})
|
|
54
|
+
this.number = newVal
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
methods: {
|
|
@@ -66,8 +65,8 @@ export default {
|
|
|
66
65
|
}
|
|
67
66
|
return n
|
|
68
67
|
},
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
set_step(number) {
|
|
69
|
+
|
|
71
70
|
},
|
|
72
71
|
emit() {
|
|
73
72
|
if (this.number === '' || this.number === null) {
|
|
@@ -75,16 +74,16 @@ export default {
|
|
|
75
74
|
this.$emit('update:modelValue', this.number)
|
|
76
75
|
return
|
|
77
76
|
}
|
|
78
|
-
let d = this.
|
|
77
|
+
let d = this.number
|
|
79
78
|
if (this.max !== undefined && d > this.max) {
|
|
80
79
|
d = this.max
|
|
81
80
|
}
|
|
82
81
|
if (this.min !== undefined && d < this.min) {
|
|
83
82
|
d = this.min
|
|
84
83
|
}
|
|
85
|
-
|
|
86
|
-
this.number =
|
|
87
|
-
this.$emit('update:modelValue', this.
|
|
84
|
+
|
|
85
|
+
this.number = d
|
|
86
|
+
this.$emit('update:modelValue', this.number)
|
|
88
87
|
},
|
|
89
88
|
plus() {
|
|
90
89
|
let n = this.modelValue || 0
|
|
@@ -51,9 +51,9 @@ export default {
|
|
|
51
51
|
emits:['update:modelValue'],
|
|
52
52
|
data() {
|
|
53
53
|
return {
|
|
54
|
-
lazyValue: this.modelValue.value,
|
|
54
|
+
lazyValue: this.modelValue ? this.modelValue.value : null,
|
|
55
55
|
active: false,
|
|
56
|
-
unit: this.modelValue.unit
|
|
56
|
+
unit: this.modelValue ? this.modelValue.unit : null
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
watch: {
|