![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
goodluck-ui
Advanced tools
npm install -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 install
npm run serve
步骤条属性/Steps Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
stepArr | steps内容,数组对象中title为中部标题内容,desc为底部描述内容 | array | — | — |
activeIndex | 当前激活位置 | number | — | — |
demo
<template>
<g-steps :stepArr="stepArr" :activeIndex="activeIndex"></g-steps>
</template>
<script>
import { defineComponent, reactive, ref } from "vue"
export default defineComponent({
setup() {
let stepArr = reactive([
{ title: "提交信息", desc: "2021/04/13 08:24:46" },
{ title: "提交信息", desc: "2021/04/13 08:24:46" },
{ title: "提交信息", desc: "2021/04/13 08:24:46" },
{ title: "提交信息", desc: "2021/04/13 08:24:46" },
{ title: "提交信息", desc: "2021/04/13 08:24:46" },
])
let activeIndex = ref(0)
return {
stepArr,
activeIndex,
}
},
})
</script>
按钮属性/Button Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 按钮种类,注意,type权重没有backgroundColor和borderRadius属性高,即同时使用backgroundColor和borderRadius属性后type不生效 | String | blue/yellow/green | blue |
backgroundColor | 按钮背景颜色 | string | — | #f68d1 |
borderRadius | 按钮外边框圆角度数 | string | — | 0 |
fontSize | 按钮中字体大小 | string | — | 18 |
badge | 按钮右上方的标记内容 | string | — | — |
max | 按钮右上方的标记的最大数值,超过则显示最大数值+的形式 | string | — | — |
dot | 右上方标记不需要内容,仅需要一个小圆点时使用。注意使用dot后badge和max不生效 | Boolean | — | false |
badgeColor | 按钮右上方的标记背景颜色 | string | — | #E6A23C |
demo
<template>
<g-button
fontSize="20"
backgroundColor="skyblue"
borderRadius="0"
badge="10"
max="99"
dot
badgeColor="skyblue"
>通过</g-button
>
</template>
按钮属性/Button Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
clip | 显示梯形标题 | boolean | — | false |
line | 显示标题下划线 | boolean | — | false |
backgroundColor | 标题与下划线背景颜色 | string | — | white |
width | 标题宽度,可以与line属性有效搭配 | string | — | auto |
demo
<template>
<g-title clip line backgroundColor="skyblue" width="100"
>这是一个标题</g-title
>
</template>
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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.