![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
babel-plugin-veui
Advanced tools
This Babel plugin enables you to wrtie simpler import
statements by converting such statements:
import { Button, Input } from 'veui'
...into:
import Button from 'veui/components/Button'
import Input from 'veui/components/Input'
...just like babel-plugin-lodash
does.
1.0.0-alpha.10
[^] AlertBox
组件,之前只能通过 ui
属性传递类型信息( success
/ error
/ info
),现在和 Toast
保持风格统一,使用 type
属性传递类型信息。<!-- #AlertBox -->
迁移指南
对于非如下两种情况的用户,本次变更并不产生影响。
所有直接使用
AlertBox
的情况下,需要将如ui="success"
修改为type="success"
的方式进行指定。对于主题包的作者,需要将原来针对如
[ui~="success"]
编写的样式,修改为.veui-alert-box-success
。
[-] [预告] Input
组件的 type
属性将在下个版本去除对 textarea
的支持,请使用 Textarea
组件代替。<!-- #Input -->
NumberInput
组件。<!-- #NumberInput -->Input
增加了 before
/ after
插槽,提供扩展的空间。<!-- #Input -->Select
增加了 filter
属性,用来过滤下拉内容。<!-- #Select -->OptionGroup
增加了 position
属性,用来指定在弹出菜单中显示。<!-- #OptionGroup -->Option
增加了 hidden
属性。<!-- #Option -->Overlay
增加了 locate
事件,在位置发生变化时触发(时机为 tether
的 reposition
事件)。<!-- #Overlay -->Searchbox
组件增加 suggest-trigger
属性,用来指定推荐列表的弹出时机;增加 suggest
事件,当需要显示推荐列表时触发。<!-- #SearchBox -->Field
的 rules
中增加 priority
的配置,用来覆盖当前内置的规则优先级。<!-- #Field -->icons
mixin 并入 ui
。<!-- #veui -->ui
属性项的元数据,以支持进一步校验及根据 ui
值配置图标。<!-- #veui -->Progress
组件硬编码在组件代码中的尺寸解耦到 veui-theme-one
中,现在组件可以从主题包的 JS 模块中注入预定义的样式参数。<!-- #Progress -->Uploader
组件的 image
模式在图片的遮罩层上增加作用域插槽 extra-operation
;在上传项目前后分别增加 file-before
和 file-after
两个作用域插槽。<!-- #Uploader -->Uploader
组件增加属性 order
,配置新上传文件的插入顺序。<!-- #Uploader -->uiTypes
定制了选项合并策略,并修正了 Select
组件在 uiTypes
中声明的 input
被 mixin 中加入的 select
覆盖的问题。<!-- #Select -->Link
组件中错误注册组件的代码。<!-- #Link -->modal
的 Dialog
时 FocusManager
报错的问题。<!-- #Dialog -->FocusManager
在 trap
模式下会自动聚焦最后一个元素的问题。<!-- #veui -->Textarea
组件在 IE9 下的兼容性问题。<!-- #Textarea -->Field
组件使用插槽时 class
判断遗漏的问题。<!-- #Field -->pattern
/ numeric
校验规则的优先级,使 pattern
置于 numeric
之后。<!-- #veui -->rule
校验失败信息中包含部分校验成功的无用信息。<!-- #veui -->Input
部分过时的属性。<!-- #Input -->FAQs
Import VEUI components with ease.
The npm package babel-plugin-veui receives a total of 50 weekly downloads. As such, babel-plugin-veui popularity was classified as not popular.
We found that babel-plugin-veui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.