GithubHelp home page GithubHelp logo

vitory's Introduction

Vue 3.x 组件库

开始

  1. 依赖安装
yarn && yarn lerna bootstrap
  1. 单独开发各个子包, 本地依赖软连接由 lerna 维护
# 开发网站示例
cd ./packages/website && yarn dev

# 如果要执行UI库主体的脚本先进入
cd ./packages/victory-ui

设计语言借鉴 ElementUI & Material

尺寸

分为4种组件尺寸(自定义样式除外)

  • large 最大, 适合在屏幕比较大, 分辨率比较高的设备上使用
  • medium 中等的, 默认尺寸(可以通过全局配置改变默认尺寸), 在普通的设备上使用
  • small 小的, 在小屏幕小设备上使用
  • mini 最小的, 适合在小屏且设辨率不高的设备上使用

在哪里定义组件的尺寸

  • 自动的, 根据当前屏幕来自动判断应用何种尺寸 (优先级低)
  • 在全局应用中设置 (优先级一般)
  • 在组件中通过props传入 (优先级高)

主题

  • color 主题色的字体色
  • bg 主题色的背景色

颜色

分为5种颜色, 每种色系分为原色, 暗阶(dark, 比原色暗10%), 亮阶(light, 比原色亮10%)三种. 总共15中颜色,使用css变量存储.

  • primary 主色, 普通的操作
  • info 信息色, 通知
  • success 成功色, 成功, 完成
  • warning 警告色, 过程
  • danger 危险色, 失败, 危险

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.