GithubHelp home page GithubHelp logo

yu-minggang / jx3box-common-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jx3box/jx3box-common-ui

0.0 0.0 0.0 1.22 MB

basic layout,vue components

JavaScript 5.51% HTML 0.33% Vue 74.11% Less 20.05%

jx3box-common-ui's Introduction

JX3BOX UI

通用 UI 组件

Step.1 Install

npm install @jx3box/jx3box-common-ui

Step.2 Import

  • 基础布局(标准三栏布局,公共头底,侧边栏)
import JX3BOX_UI from "@jx3box/jx3box-common-ui";
Vue.use(JX3BOX_UI);
  • 指定模块
import xx from "@jx3box/jx3box-common-ui/src/xx.vue";
Vue.component(xx.name, xx);

新增公共组件流程

  1. 打开 index.js,添加对应模块
import Fav from "./src/Fav.vue";
const components = {
    ...Fav,
};
  1. 打开 src/App.vue,引入模块作为测试预览
import Fav from "./Fav.vue";
components: {
    ...
    Fav
},
  1. 在 src/下新建$module.vue 参考其他模块

在页面远程引入公共头

  1. 头部引入文件
<script src="https://oss.jx3box.com/static/jx3box-lib/vue.js"></script>
<script src="https://oss.jx3box.com/static/jx3box-common-ui/newheader.umd.min.js"></script>
<link rel="stylesheet" href="https://oss.jx3box.com/static/jx3box-common-ui/newheader.css"/>
  1. 需要插入的位置
<div id="app">
    <newheader></newheader>
</div>
  1. 初始化脚本
<script>
new Vue({
    components: {
        newheader: newheader,
    },
}).$mount("#app");
</script>

jx3box-common-ui's People

Contributors

iruxu avatar kaviilee avatar kuguats avatar tinymins avatar x3zvawq avatar zixuan1986 avatar whc2001 avatar fakedestinyck 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.