Git Product home page Git Product logo

ourbytedance's Introduction

技术文档

2023-01-20

组件暴露方式可以留着讨论,目前的声明方式同iview相同,例如button封装为Button。

packages

  • 组件代码都在packages中,其中组件的实现内容在index.ts和index.vue中,,将页面展示内容放在下层的doc文件夹中。
  • style文件中有scss文件,定义了颜色变量,后续可以将.vue的样式代码都转移过来。

doc

技术文档的展示页面为doc.md,其中实现了左侧的菜单栏和中间部分的组件展示(demo1.vue等)和代码展示(下文中的preview.vue),在src下的Home.vue中通过router实现。

src

components

代码展示模块在components中的preview.vue,只实现了代码展示和简单的高亮显示,未进行样式优化。

router和views中是常规的路由配置和跳转实现。

队员在开发过程中,在main.ts中引用本地packages包即可,记得不要引用已发布的npm包。

ourbytedance's People

Contributors

nnnnn319 avatar qianvenh avatar qin-pixier avatar qin0407 avatar tantanz0918 avatar

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.