@varlet/ui 3.3.4 → 3.3.5
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 -9
- package/README.zh-CN.md +7 -9
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +5 -2
- package/es/varlet.esm.js +416 -416
- package/highlight/web-types.en-US.json +4 -4
- package/highlight/web-types.zh-CN.json +4 -4
- package/lib/varlet.cjs.js +6 -3
- package/package.json +8 -8
- package/types/checkboxGroup.d.ts +2 -2
- package/umd/varlet.js +7 -7
package/README.md
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<a href="https://
|
|
3
|
-
<img src="https://
|
|
2
|
+
<a href="https://varletjs.org/#/en-US/index">
|
|
3
|
+
<img src="https://varletjs.org/logo.svg" width="150">
|
|
4
4
|
</a>
|
|
5
5
|
<h1>VARLET</h1>
|
|
6
|
-
<p>A
|
|
6
|
+
<p>A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.</p>
|
|
7
7
|
<p>
|
|
8
|
-
<a href="https://
|
|
9
|
-
<a href="https://varlet-
|
|
10
|
-
<a href="https://varletjs.github.io/varlet/#/en-US/index">Documentation(Github)</a> |
|
|
11
|
-
<a href="https://github.com/varletjs/varlet/blob/dev/README.zh-CN.md">中文README</a>
|
|
8
|
+
<a href="https://varletjs.org/#/en-US/index">Documentation</a> |
|
|
9
|
+
<a href="https://github.com/varletjs/varlet/blob/dev/README.zh-CN.md">中文介绍</a>
|
|
12
10
|
</p>
|
|
13
11
|
<p>
|
|
14
12
|
<img src="https://img.shields.io/npm/v/@varlet/ui?style=flat-square" alt="version">
|
|
@@ -24,7 +22,7 @@
|
|
|
24
22
|
|
|
25
23
|
### Intro
|
|
26
24
|
|
|
27
|
-
Varlet is a
|
|
25
|
+
Varlet is a `Vue3` component library based on Material Design 2 and 3, supporting mobile and desktop, developed and maintained by `varletjs` organization.
|
|
28
26
|
|
|
29
27
|
|
|
30
28
|
### Features
|
|
@@ -122,7 +120,7 @@ The following projects are maintained by community personnel, welcome to add.
|
|
|
122
120
|
|
|
123
121
|
### Playground
|
|
124
122
|
|
|
125
|
-
See [Varlet UI Playground](https://varletjs.
|
|
123
|
+
See [Varlet UI Playground](https://varletjs.org/playground).
|
|
126
124
|
|
|
127
125
|
### Contribution
|
|
128
126
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="https://
|
|
4
|
-
<img src="https://
|
|
3
|
+
<a href="https://varletjs.org">
|
|
4
|
+
<img src="https://varletjs.org/logo.svg" width="150">
|
|
5
5
|
</a>
|
|
6
6
|
<h1>VARLET</h1>
|
|
7
|
-
<p
|
|
7
|
+
<p>一个 Vue3 组件库,基于 Material Design 2 和 3,支持移动端、桌面端。</p>
|
|
8
8
|
<p>
|
|
9
|
-
<a href="https://
|
|
10
|
-
<a href="https://varlet-varletjs.vercel.app">文档(Vercel)</a> |
|
|
11
|
-
<a href="https://varletjs.github.io/varlet">文档(Github)</a> |
|
|
9
|
+
<a href="https://varletjs.org">文档</a> |
|
|
12
10
|
<a href="https://github.com/varletjs/varlet/blob/dev/README.md">ENGLISH README</a>
|
|
13
11
|
</p>
|
|
14
12
|
<p>
|
|
@@ -25,7 +23,7 @@
|
|
|
25
23
|
|
|
26
24
|
### 介绍
|
|
27
25
|
|
|
28
|
-
Varlet
|
|
26
|
+
Varlet 是一个 `Vue3` 组件库,基于 Material Design 2 和 3,支持移动端、桌面端,由 `varletjs` 组织维护。
|
|
29
27
|
|
|
30
28
|
### 特性
|
|
31
29
|
|
|
@@ -122,7 +120,7 @@ createApp(App).use(Varlet).mount('#app')
|
|
|
122
120
|
|
|
123
121
|
### 演练场
|
|
124
122
|
|
|
125
|
-
在 [Varlet UI Playground](https://varletjs.
|
|
123
|
+
在 [Varlet UI Playground](https://varletjs.org/playground) 对组件进行在线编辑。
|
|
126
124
|
|
|
127
125
|
### 贡献
|
|
128
126
|
|
|
@@ -130,7 +128,7 @@ createApp(App).use(Varlet).mount('#app')
|
|
|
130
128
|
|
|
131
129
|
### 反馈和交流
|
|
132
130
|
|
|
133
|
-
|
|
131
|
+
我们推荐使用 [issue](https://github.com/varletjs/varlet/issues) 列表进行最直接有效的反馈,也可以下面的方式
|
|
134
132
|
|
|
135
133
|
* 微信
|
|
136
134
|
|
package/es/index.bundle.mjs
CHANGED
|
@@ -265,7 +265,7 @@ import './tooltip/style/index.mjs'
|
|
|
265
265
|
import './uploader/style/index.mjs'
|
|
266
266
|
import './watermark/style/index.mjs'
|
|
267
267
|
|
|
268
|
-
const version = '3.3.
|
|
268
|
+
const version = '3.3.5'
|
|
269
269
|
|
|
270
270
|
function install(app) {
|
|
271
271
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -176,7 +176,7 @@ export * from './tooltip/index.mjs'
|
|
|
176
176
|
export * from './uploader/index.mjs'
|
|
177
177
|
export * from './watermark/index.mjs'
|
|
178
178
|
|
|
179
|
-
const version = '3.3.
|
|
179
|
+
const version = '3.3.5'
|
|
180
180
|
|
|
181
181
|
function install(app) {
|
|
182
182
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -252,7 +252,7 @@ const __sfc__ = defineComponent({
|
|
|
252
252
|
if (props2.type === "number") {
|
|
253
253
|
value = formatNumber(value);
|
|
254
254
|
}
|
|
255
|
-
const targetValue = withMaxlength(
|
|
255
|
+
const targetValue = withMaxlength(value);
|
|
256
256
|
if (targetValue === props2.modelValue) {
|
|
257
257
|
target.value = targetValue;
|
|
258
258
|
}
|
|
@@ -278,7 +278,10 @@ const __sfc__ = defineComponent({
|
|
|
278
278
|
validateWithTrigger("onInput");
|
|
279
279
|
}
|
|
280
280
|
function handleChange(e) {
|
|
281
|
-
const value = updateValue(e);
|
|
281
|
+
const value = withTrim(updateValue(e));
|
|
282
|
+
if (props2.modelModifiers.trim) {
|
|
283
|
+
call(props2["onUpdate:modelValue"], value);
|
|
284
|
+
}
|
|
282
285
|
call(props2.onChange, value, e);
|
|
283
286
|
validateWithTrigger("onChange");
|
|
284
287
|
}
|