├── src
├── assets
│ ├── logo.png
│ ├── image
│ │ ├── scroll.png
│ │ ├── 20180827005509615.jpg
│ │ ├── t0103968d1bc80ae8ba.png
│ │ ├── t014cad66c488e589f3.png
│ │ ├── t016fed337a2131cd83.jpg
│ │ ├── t01a83ee242957a054f.png
│ │ ├── t01b68886e4ba7bb7c5.png
│ │ ├── t01d91636862957f76e.png
│ │ ├── t01e6e7b1790fcb40b2.jpg
│ │ └── t01e7d89615e1846abe.jpg
│ └── css
│ │ └── common.less
├── main.js
├── components
│ ├── zujian.vue
│ ├── container
│ │ ├── aside.vue
│ │ ├── main.vue
│ │ ├── footer.vue
│ │ ├── header.vue
│ │ └── index.vue
│ ├── timeline
│ │ ├── index.vue
│ │ ├── timelineItem.vue
│ │ └── timelineTree.vue
│ ├── tabs
│ │ ├── tab.vue
│ │ └── index.vue
│ ├── carousel
│ │ ├── carouselItem.vue
│ │ └── index.vue
│ ├── index.js
│ ├── scrolltop
│ │ └── index.vue
│ ├── navmenu
│ │ ├── submenu.vue
│ │ └── index.vue
│ ├── card
│ │ └── index.vue
│ └── codecard
│ │ └── index.vue
└── App.vue
├── .babelrc
├── .gitignore
├── .editorconfig
├── index.html
├── README.md
├── package.json
└── webpack.config.js
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", { "modules": false }],
4 | "stage-3"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/src/assets/image/scroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/scroll.png
--------------------------------------------------------------------------------
/src/assets/image/20180827005509615.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/20180827005509615.jpg
--------------------------------------------------------------------------------
/src/assets/image/t0103968d1bc80ae8ba.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t0103968d1bc80ae8ba.png
--------------------------------------------------------------------------------
/src/assets/image/t014cad66c488e589f3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t014cad66c488e589f3.png
--------------------------------------------------------------------------------
/src/assets/image/t016fed337a2131cd83.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t016fed337a2131cd83.jpg
--------------------------------------------------------------------------------
/src/assets/image/t01a83ee242957a054f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t01a83ee242957a054f.png
--------------------------------------------------------------------------------
/src/assets/image/t01b68886e4ba7bb7c5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t01b68886e4ba7bb7c5.png
--------------------------------------------------------------------------------
/src/assets/image/t01d91636862957f76e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t01d91636862957f76e.png
--------------------------------------------------------------------------------
/src/assets/image/t01e6e7b1790fcb40b2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t01e6e7b1790fcb40b2.jpg
--------------------------------------------------------------------------------
/src/assets/image/t01e7d89615e1846abe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yuanxin42/sir-zujian/HEAD/src/assets/image/t01e7d89615e1846abe.jpg
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | dist/
4 | npm-debug.log
5 | yarn-error.log
6 |
7 | # Editor directories and files
8 | .idea
9 | *.suo
10 | *.ntvs*
11 | *.njsproj
12 | *.sln
13 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 | import sir from './components/index.js'
4 | Vue.use(sir)
5 | new Vue({
6 | el: '#app',
7 | render: h => h(App)
8 | })
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/src/components/zujian.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 我是那个全局组件啊啊啊
4 |
5 |
10 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | sirpackages
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/components/container/aside.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
20 |
--------------------------------------------------------------------------------
/src/components/container/main.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
20 |
--------------------------------------------------------------------------------
/src/assets/css/common.less:
--------------------------------------------------------------------------------
1 | *{
2 | margin: 0;
3 | padding: 0;
4 | }
5 | body {
6 | font-family: arial, "Microsoft YaHei", "\5fae\8f6f\96c5\9ed1";
7 | color: #333;
8 | }
9 | a{
10 | text-decoration: none;
11 | color: #333;
12 | text-align: center;
13 | }
14 | h1,
15 | h2,
16 | h3,
17 | h4,
18 | h5 {
19 | font-weight: normal;
20 | }
21 |
22 | ul {
23 | list-style: none;
24 | padding: 0;
25 | }
26 |
27 | li {
28 | list-style: none;
29 | display: inline-block;
30 | }
31 | .boxzero() {
32 | padding: 0;
33 | margin: 0;
34 | padding: 0;
35 | }
36 |
--------------------------------------------------------------------------------
/src/components/container/footer.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
24 |
--------------------------------------------------------------------------------
/src/components/container/header.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
24 |
--------------------------------------------------------------------------------
/src/components/timeline/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
35 |
--------------------------------------------------------------------------------
/src/components/container/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
26 |
--------------------------------------------------------------------------------
/src/components/tabs/tab.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
37 |
40 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # sirpackages
2 |
3 | > vue组件库
4 |
5 | > 不断维护版本迭代中
6 |
7 | > 组件库api访问 : http://yyyxxxxin.top/sir(服务到期)
8 |
9 | > 基于组件库开发的博客 : http://yyyxxxxin.top/myblog(服务到期)
10 |
11 | ### 项目特点
12 | 1. 参考现在社区比较成熟如ElementUI,Ant Design,Material UI这些UI轮子的API设计和样式布局。
13 | 2. 该项目基于Vue2.x版本来开发和使用
14 | 3. 如果您访问了我的组件库地址,并问我为什么不用GitBook或者VuePress去写这个组件文档?emmmm...因为那时候还不知道这些东西
15 | 4. 有独特的style补充第三条,哈哈!
16 |
17 | ## Build Setup
18 |
19 | ``` bash
20 |
21 | npm install sirpackages
22 |
23 | ```
24 | ### 支持组件(持续更新研发中。。。。)
25 | 1. contain布局(sir-header/sir-footer/sir-main/sir-aside)
26 | 2. card卡片
27 | 3. navmenu导航菜单 (sir-navmenu/sir-submenu)
28 | 4. scrolltop 跳转头部滚动条
29 | 5. tabs选项卡 (sir-tabs/sir-tab)
30 | 6. timeline 时间轴 (sir-timeline/sir-timelineItem/sir-timelineTree)
31 | 7. carousel 轮播图 (开发中)
32 |
33 | ### https://github.com/yuanxin666/sir-zujian 感兴趣给个Star,感激不尽!
34 | For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
35 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sirpackages",
3 | "description": "一个vue组件库",
4 | "version": "1.1.6",
5 | "author": "原鑫 <1017123610@qq.com>",
6 | "license": "MIT",
7 | "private": false,
8 | "main": "dist/sir.js",
9 | "repository": {
10 | "type": "git",
11 | "url": "https://github.com/yuanxin666/sir-zujian.git"
12 | },
13 | "scripts": {
14 | "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
15 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
16 | },
17 | "dependencies": {
18 | "less": "^3.8.1",
19 | "less-loader": "^4.1.0",
20 | "vue": "^2.5.11"
21 | },
22 | "browserslist": [
23 | "> 1%",
24 | "last 2 versions",
25 | "not ie <= 8"
26 | ],
27 | "devDependencies": {
28 | "babel-core": "^6.26.0",
29 | "babel-loader": "^7.1.2",
30 | "babel-preset-env": "^1.6.0",
31 | "babel-preset-stage-3": "^6.24.1",
32 | "cross-env": "^5.0.5",
33 | "css-loader": "^0.28.7",
34 | "file-loader": "^1.1.4",
35 | "vue-loader": "^13.0.5",
36 | "vue-template-compiler": "^2.4.4",
37 | "webpack": "^3.6.0",
38 | "webpack-dev-server": "^2.9.1"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/components/timeline/timelineItem.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
23 |
--------------------------------------------------------------------------------
/src/components/carousel/carouselItem.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
51 |
--------------------------------------------------------------------------------
/src/components/index.js:
--------------------------------------------------------------------------------
1 | import zj from './zujian'
2 | import card from './card'
3 | import container from './container/index'
4 | import aside from './container/aside'
5 | import footer from './container/footer'
6 | import header from './container/header'
7 | import main from './container/main'
8 | import tabs from './tabs/index'
9 | import tab from './tabs/tab'
10 | import carousel from './carousel/index'
11 | import carouselItem from './carousel/carouselItem'
12 | import scrolltop from './scrolltop/index'
13 | import navmenu from './navmenu/index'
14 | import submenu from './navmenu/submenu'
15 | import codecard from './codecard/index'
16 | import timeline from './timeline/index'
17 | import timelineTree from './timeline/timelineTree'
18 | import timelineItem from './timeline/timelineItem'
19 |
20 | export default {
21 | install: (Vue) => {
22 | Vue.component('sir-zj', zj)
23 | Vue.component('sir-card', card)
24 | Vue.component('sir-container', container)
25 | Vue.component('sir-aside', aside)
26 | Vue.component('sir-footer', footer)
27 | Vue.component('sir-header', header)
28 | Vue.component('sir-main', main)
29 | Vue.component('sir-tabs', tabs)
30 | Vue.component('sir-tab', tab)
31 | Vue.component('sir-carousel', carousel)
32 | Vue.component('sir-carousel-item', carouselItem)
33 | Vue.component('sir-scrolltop', scrolltop)
34 | Vue.component('sir-navmenu', navmenu)
35 | Vue.component('sir-submenu', submenu)
36 | Vue.component('sir-codecard', codecard)
37 | Vue.component('sir-timeline', timeline)
38 | Vue.component('sir-timelineTree', timelineTree)
39 | Vue.component('sir-timelineItem', timelineItem)
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/components/scrolltop/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
49 |
--------------------------------------------------------------------------------
/src/components/navmenu/submenu.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
50 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var webpack = require('webpack')
3 |
4 | module.exports = {
5 | entry: './src/main.js',
6 | output: {
7 | path: path.resolve(__dirname, './dist'),
8 | publicPath: '/dist/',
9 | filename: 'build.js', //打包生成文件的名字
10 | },
11 | module: {
12 | rules: [
13 | {
14 | test: /\.css$/,
15 | use: [
16 | 'vue-style-loader',
17 | 'css-loader'
18 | ],
19 | }, {
20 | test: /\.vue$/,
21 | loader: 'vue-loader',
22 | options: {
23 | loaders: {
24 | }
25 | // other vue-loader options go here
26 | }
27 | },
28 | {
29 | test: /\.js$/,
30 | loader: 'babel-loader',
31 | exclude: /node_modules/
32 | },
33 | {
34 | test: /\.(png|jpg|gif|svg)$/,
35 | loader: 'file-loader',
36 | options: {
37 | name: '[name].[ext]?[hash]'
38 | }
39 | }
40 | ]
41 | },
42 | resolve: {
43 | alias: {
44 | 'vue$': 'vue/dist/vue.esm.js'
45 | },
46 | extensions: ['*', '.js', '.vue', '.json']
47 | },
48 | devServer: {
49 | historyApiFallback: true,
50 | noInfo: true,
51 | overlay: true
52 | },
53 | performance: {
54 | hints: false
55 | },
56 | devtool: '#eval-source-map'
57 | }
58 |
59 | if (process.env.NODE_ENV === 'production') {
60 | module.exports.devtool = '#source-map'
61 | // http://vue-loader.vuejs.org/en/workflow/production.html
62 | module.exports.plugins = (module.exports.plugins || []).concat([
63 | new webpack.DefinePlugin({
64 | 'process.env': {
65 | NODE_ENV: '"production"'
66 | }
67 | }),
68 | new webpack.optimize.UglifyJsPlugin({
69 | sourceMap: true,
70 | compress: {
71 | warnings: false
72 | }
73 | }),
74 | new webpack.LoaderOptionsPlugin({
75 | minimize: true
76 | })
77 | ])
78 | }
79 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 首页
7 |
8 |
9 | 标题1
10 | 标题2
11 | 标题3
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | 4444
32 | 4444
33 | 4444
34 |
35 |
36 | 555
37 | 555
38 | 555
39 |
40 |
41 |
42 |
43 |
44 |
55 |
56 |
68 |
--------------------------------------------------------------------------------
/src/components/card/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
47 |
106 |
--------------------------------------------------------------------------------
/src/components/timeline/timelineTree.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{title}} 
4 |
5 |
6 | -
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
39 |
--------------------------------------------------------------------------------
/src/components/codecard/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
17 | 隐藏代码
18 | 显示代码
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
44 |
--------------------------------------------------------------------------------
/src/components/navmenu/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
82 |
--------------------------------------------------------------------------------
/src/components/tabs/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
69 |
120 |
--------------------------------------------------------------------------------
/src/components/carousel/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 | <
9 |
10 |
11 | >
12 |
13 |
14 |
15 |
116 |
--------------------------------------------------------------------------------