matrix_components 2.0.501 → 2.0.502
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/README.md +7 -0
- package/dist/ComponentDemo/Test.vue +16 -1
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +71 -25
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/ComponentDemo/ExampleFormConfig.js +0 -270
- package/dist/ComponentDemo/SaturationLineDemo copy 2.vue +0 -1516
- package/dist/ComponentDemo/SaturationLineDemo copy 3.vue +0 -1546
- package/dist/ComponentDemo/SaturationLineDemo copy 4.vue +0 -1557
- package/dist/ComponentDemo/SaturationLineDemo copy.vue +0 -1366
- package/dist/ComponentDemo/SimpleFormConfig.json +0 -97
package/README.md
CHANGED
|
@@ -33,6 +33,13 @@ Matrix Components 是一个功能丰富的 Vue 3 企业级组件库,提供办
|
|
|
33
33
|
### 浸润线:
|
|
34
34
|

|
|
35
35
|
|
|
36
|
+
```
|
|
37
|
+
version:2.0.502
|
|
38
|
+
2026-01-23
|
|
39
|
+
更新日志:
|
|
40
|
+
1.优化v-length输入中文长度被截断的问题
|
|
41
|
+
```
|
|
42
|
+
|
|
36
43
|
```
|
|
37
44
|
version:2.0.500
|
|
38
45
|
2026-01-23
|
|
@@ -24,6 +24,21 @@
|
|
|
24
24
|
<span>当前: "{{ basicInput }}" ({{ basicInput.length }}/5)</span>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
|
+
<h3>中文输入测试 - 限制10个字符</h3>
|
|
28
|
+
<div class="input-group">
|
|
29
|
+
<label>中文输入测试:</label>
|
|
30
|
+
<el-input v-model="chineseInput" v-length="10" placeholder="测试中文输入(拼音输入时不截断)" style="width: 300px;" />
|
|
31
|
+
<span>当前: "{{ chineseInput }}" ({{ chineseInput.length }}/10)</span>
|
|
32
|
+
<el-tag type="info">输入中文时,拼音阶段不会截断,失去焦点后才会截断</el-tag>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<h3>原生 input 测试 - 限制8个字符</h3>
|
|
36
|
+
<div class="input-group">
|
|
37
|
+
<label>原生 input 测试:</label>
|
|
38
|
+
<input v-model="nativeInput" v-length="8" placeholder="原生input测试" class="native-input" />
|
|
39
|
+
<span>当前: "{{ nativeInput }}" ({{ nativeInput.length }}/8)</span>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
27
42
|
<h3>数字模式 - v-length.number</h3>
|
|
28
43
|
<div class="input-group">
|
|
29
44
|
<label>仅数字,限制8位:</label>
|
|
@@ -53,8 +68,8 @@
|
|
|
53
68
|
style="width: 300px;"
|
|
54
69
|
/>
|
|
55
70
|
<span>当前: "{{ rangeInput1 }}"</span>
|
|
71
|
+
<el-tag v-if="rangeInput1 && (parseFloat(rangeInput1) < 0 || parseFloat(rangeInput1) > 100)" type="danger">超出范围</el-tag>
|
|
56
72
|
</div>
|
|
57
|
-
|
|
58
73
|
<div class="input-group">
|
|
59
74
|
<label>负数范围 -50到50:</label>
|
|
60
75
|
<el-input
|