@varlet/ui 3.3.4 → 3.3.5-alpha.1720530125141
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 +2 -2
- package/README.zh-CN.md +3 -3
- package/es/action-sheet/style/index.mjs +1 -1
- 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 +7 -7
- package/types/checkboxGroup.d.ts +2 -2
- package/umd/varlet.js +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<img src="https://varlet.pages.dev/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
8
|
<a href="https://varlet.pages.dev/#/en-US/index">Documentation(Cloudflare)</a> |
|
|
9
9
|
<a href="https://varlet-varletjs.vercel.app/#/en-US/index">Documentation(Vercel)</a> |
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
### Intro
|
|
26
26
|
|
|
27
|
-
Varlet is a
|
|
27
|
+
Varlet is a `Vue3` component library based on Material Design 2 and 3, supporting mobile and desktop, developed and maintained by `varletjs` organization.
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
### Features
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<img src="https://varlet.pages.dev/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
9
|
<a href="https://varlet.pages.dev">文档(Cloudflare)</a> |
|
|
10
10
|
<a href="https://varlet-varletjs.vercel.app">文档(Vercel)</a> |
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
### 介绍
|
|
27
27
|
|
|
28
|
-
Varlet
|
|
28
|
+
Varlet 是一个 `Vue3` 组件库,基于 Material Design 2 和 3,支持移动端、桌面端,由 `varletjs` 组织维护。
|
|
29
29
|
|
|
30
30
|
### 特性
|
|
31
31
|
|
|
@@ -130,7 +130,7 @@ createApp(App).use(Varlet).mount('#app')
|
|
|
130
130
|
|
|
131
131
|
### 反馈和交流
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
我们推荐使用 [issue](https://github.com/varletjs/varlet/issues) 列表进行最直接有效的反馈,也可以下面的方式
|
|
134
134
|
|
|
135
135
|
* 微信
|
|
136
136
|
|
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-alpha.1720530125141'
|
|
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-alpha.1720530125141'
|
|
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
|
}
|