0.31.0 โ€ข Published 1 year ago

@wu-web/fighting-design v0.31.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

โœจ Features

  • ๐Ÿช 60+ common components
  • ๐Ÿ’ช Developed with the latest features of Vue.js
  • ๐Ÿ† Fully based on Vite, fast enough
  • ๐ŸคŸ Ultimate development experience
  • ๐Ÿฅ‡ Ultra detailed JSDoc comments
  • ๐Ÿฆฉ Zero third party dependency
  • ๐Ÿช Different packaging modes which compatible with different projects
  • ๐Ÿ† Support full import and on-demand import
  • โœ… Written with TypeScript & Template
  • ๐Ÿ–๏ธ Strict TypeScript Type
  • ๐ŸคŸ Global no any type
  • โœ”๏ธ Easy to configure and easy to use
  • ๐Ÿšฉ Complete and adequate unit tests
  • ๐Ÿ‘ Maintained by the community team
  • โค๏ธ Developed according to actual demand
  • ๐Ÿ“ƒ High quality detailed documentation
  • ๐Ÿ“Œ Improve RFC
  • โ˜๏ธ Put forward demands and keep improving
  • ๐ŸŒ More configuration options & flexible components
  • ๐Ÿ›  More features are under development

๐Ÿ”‘ Install

Use pnpm install

pnpm add --save-dev fighting-design

Use npm install

npm install --save-dev fighting-design

Use yarn install

yarn add --save-dev fighting-design

๐ŸŽ‰ Quick Start

Put the following code into main.ts

import { createApp } from 'vue'
import App from './App.vue'

import FightingDesign from 'fighting-design'
import 'fighting-design/dist/index.css'

createApp(App).use(FightingDesign).mount('#app')

๐Ÿช‚ Quick experience

<head>
  <link
    rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/fighting-design/dist/index.css"
  />
</head>

<body>
  <div id="app">
    <f-space>
      <f-button round type="default">้ป˜่ฎคๆŒ‰้’ฎ</f-button>
      <f-button round type="primary">ไธป่ฆๆŒ‰้’ฎ</f-button>
      <f-button round type="success">ๆˆๅŠŸๆŒ‰้’ฎ</f-button>
      <f-button round type="danger">ๅฑ้™ฉๆŒ‰้’ฎ</f-button>
      <f-button round type="warning">่ญฆๅ‘ŠๆŒ‰้’ฎ</f-button>
    </f-space>

    <f-divider>ๅŽไธฝ็š„ๅˆ†้š”็บฟ</f-divider>

    <f-button type="primary" @click="visible = true">ๆ‰“ๅผ€ Dialog</f-button>
    <f-dialog title="Title" v-model:visible="visible">
      ๆฌข่ฟŽไฝฟ็”จ Fighting Design๏ผ
    </f-dialog>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.global.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/fighting-design/dist/index.umd.js"></script>
  <script>
    const { createApp, ref } = Vue

    const app = createApp({
      setup() {
        const visible = ref(false)

        return { visible }
      }
    })

    app.use(FightingDesign.default)
    app.mount('#app')
  </script>
</body>

๐Ÿณ Related links

๐ŸŒˆ Join Fighting Design

Add WeChat & please note the Github username

WeChat

๐Ÿ’Œ Special Thanks

Thanks to everyone who has already contributed to Fighting Design!

๐Ÿ’ฌ LICENSE

MIT