![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.
goodluck-ui
Advanced tools
vue3 ui 组件库
使用 composition api+ typescript
npm i -s goodluck-ui
import { createApp } from 'vue'
import App from './App.vue'
import goodluck from 'goodluck-ui'
import 'goodluck-ui/lib/goodluck-ui.css'
const app = createApp(App)
app.use(goodluck)
npm i
npm run serve
按钮属性 /Button Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 按钮种类 | String | blue/yellow/green/red | blue |
dot | 右上方显示一个小圆点标记 | Boolean | true/false | false |
badge | 右上方标记内容 | String | - | - |
badgeColor | 右上方标记背景色 | String | - | yellow |
max | 如果 badge 字符串是数字,可以指定这个数字的最大值,超过最大值则显示 + | String | - | - |
demo
<g-button>登录</g-button>
<g-button type="red">通过</g-button>
<g-button type="green">通过</g-button>
<g-button type="yellow">通过</g-button>
<g-button dot>通过</g-button>
<g-button dot badgeColor="pink">通过</g-button>
<g-button badge="100">通过</g-button>
<g-button badge="100" max="50">通过</g-button>
FAQs
## 📝介绍
The npm package goodluck-ui receives a total of 2 weekly downloads. As such, goodluck-ui popularity was classified as not popular.
We found that goodluck-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.