Socket
Book a DemoInstallSign in
Socket

goodgame-ui

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

goodgame-ui

``` npm install -s goodgame-ui ```

0.1.11
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

goodgame-ui/ui组件库

vue3 + ts

下载/download

npm install -s goodgame-ui

使用/import and use

import { createApp } from 'vue'
import App from './App.vue'
import goodgame from 'goodgame-ui'
import 'goodgame-ui/lib/goodgame-ui.css'
const app = createApp(App);
app.use(goodgame)

项目安装依赖/npm insatll

npm install

项目运行查看组件示例/npm run serve to see demos

npm run serve

输入图片说明

1.步骤条 steps

步骤条属性/Steps Attributes

参数说明类型可选值默认值
stepArrsteps内容,数组对象中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>

输入图片说明

2.按钮 button

按钮属性/Button Attributes

参数说明类型可选值默认值
type按钮种类,注意,type权重没有backgroundColor和borderRadius属性高,即同时使用backgroundColor和borderRadius属性后type不生效Stringblue/yellow/greenblue
backgroundColor按钮背景颜色string#f68d1
borderRadius按钮外边框圆角度数string0
fontSize按钮中字体大小string18
badge按钮右上方的标记内容string
max按钮右上方的标记的最大数值,超过则显示最大数值+的形式string
dot右上方标记不需要内容,仅需要一个小圆点时使用。注意使用dot后badge和max不生效Booleanfalse
badgeColor按钮右上方的标记背景颜色string#E6A23C

demo

<template>
  <g-button  fontSize="20" backgroundColor="skyblue" borderRadius="0" badge="10" max="99" dot badgeColor="skyblue">通过</g-button>
</template>

输入图片说明

3.标题 title

按钮属性/Button Attributes

参数说明类型可选值默认值
clip显示梯形标题booleanfalse
line显示标题下划线booleanfalse
backgroundColor标题与下划线背景颜色stringwhite
width标题宽度,可以与line属性有效搭配stringauto

demo

<template>
    <g-title clip line backgroundColor="skyblue" width="100">这是一个标题</g-title>
</template>

FAQs

Package last updated on 05 Nov 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.