@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 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 mobile component library based on Vue3, Material Design 2, Material Design 3, and supports desktop development.</p>
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 Material design mobile component library developed based on `Vue3`, developed and maintained by `varletjs` community team.
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>一个移动端组件库,基于 Vue3, Material Design 2, Material Design 3,并支持桌面端开发。</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 是一个基于 `Vue3` 开发的 Material 风格移动端组件库,全面拥抱 `Vue3` 生态,由 `varletjs` 社区团队进行维护。
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
- 我们推荐使用`issue`列表进行最直接有效的反馈,也可以下面的方式
133
+ 我们推荐使用 [issue](https://github.com/varletjs/varlet/issues) 列表进行最直接有效的反馈,也可以下面的方式
134
134
 
135
135
  * 微信
136
136
 
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionItemSfc.css'
7
6
  import '../ActionSheetSfc.css'
7
+ import '../ActionItemSfc.css'
@@ -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.4'
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.4'
179
+ const version = '3.3.5-alpha.1720530125141'
180
180
 
181
181
  function install(app) {
182
182
  ActionSheet.install && app.use(ActionSheet)
@@ -252,7 +252,7 @@ const __sfc__ = defineComponent({
252
252
  if (props2.type === "number") {
253
253
  value = formatNumber(value);
254
254
  }
255
- const targetValue = withMaxlength(withTrim(value));
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
  }