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">&lt;/template&gt;</span>
42
42
  </div>
43
43
  <div>
44
- <span v-show="scriptShow" class="highlight-syn-var"
44
+ <span v-show="scriptShow" class="highlight-syn-class"
45
45
  >&lt;script&gt;<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-var">}<br/>&lt;/script&gt;</span>
48
+ <span v-show="scriptShow" class="highlight-syn-class">}<br/>&lt;/script&gt;</span>
49
49
  </div>
50
50
  <div>
51
- <span v-show="cssShow" class="highlight-syn-var"
51
+ <span v-show="cssShow" class="highlight-syn-class"
52
52
  >&lt;style lang<span class="color-green">="css"</span>&gt;</span
53
53
  >
54
54
  <highlight-css ref="h-css" v-model="sty"></highlight-css>
55
- <span v-show="cssShow" class="highlight-syn-var">&lt;/style&gt;</span>
55
+ <span v-show="cssShow" class="highlight-syn-class">&lt;/style&gt;</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: white;
145
- background-color: #15212e;
146
- color: #fff;
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
- type="text"
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.setSplit(this.modelValue),
48
+ number: this.modelValue,
48
49
  active: false
49
50
  }
50
51
  },
51
52
  watch: {
52
53
  'modelValue': function (newVal) {
53
- setTimeout(() => {
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
- removeSplit(n) {
70
- return parseFloat(this.$helper.replacer(n.toString(), ',', ''))
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.removeSplit(this.number)
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
- const n = ((1 / this.step) + '').length - 1
86
- this.number = this.setSplit(d.toFixed(n))
87
- this.$emit('update:modelValue', this.removeSplit(this.number))
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",