├── .babelrc ├── .editorconfig ├── .postcssrc.js ├── README.md ├── build ├── build.js ├── check-versions.js ├── dev-client.js ├── dev-server.js ├── utils.js ├── vue-loader.conf.js ├── webpack.base.conf.js ├── webpack.dev.conf.js ├── webpack.prod.conf.js └── webpack.src.conf.js ├── config ├── dev.env.js ├── index.js └── prod.env.js ├── demo ├── App.vue ├── assets │ └── logo.png ├── components │ ├── ActionSheet.vue │ ├── Article.vue │ ├── Badge.vue │ ├── Bar.vue │ ├── Button.vue │ ├── Cell.vue │ ├── Dialog.vue │ ├── Flex.vue │ ├── Footer.vue │ ├── Gallery.vue │ ├── Girds.vue │ ├── Icon.vue │ ├── Index.vue │ ├── Message.vue │ ├── Navbar.vue │ ├── Panel.vue │ ├── Progress.vue │ ├── SearchBar.vue │ ├── Tabbar.vue │ └── Toast.vue ├── main.js └── router │ └── index.js ├── image └── qrcode.png ├── index.html ├── package-lock.json ├── package.json ├── src ├── Badge │ └── Badge.vue ├── actionsheet │ └── ActionSheet.vue ├── article │ └── Article.vue ├── bar │ ├── Navbar.vue │ ├── NavbarItem.vue │ ├── Tab.vue │ ├── Tabbar.vue │ └── TabbarItem.vue ├── button │ ├── Button.vue │ └── ButtonArea.vue ├── cells │ ├── Cell.vue │ ├── CellBody.vue │ ├── CellFooter.vue │ ├── CellHeader.vue │ ├── CellInput.vue │ ├── CellSelect.vue │ ├── CellTextarea.vue │ ├── Cells.vue │ ├── CellsTips.vue │ ├── CellsTitle.vue │ ├── CheckboxCell.vue │ ├── InputCell.vue │ ├── LinkCell.vue │ ├── RadioCell.vue │ ├── SelectCell.vue │ └── SwitchCell.vue ├── dialog │ └── Dialog.vue ├── flex │ ├── Flex.vue │ └── FlexItem.vue ├── footer │ └── Footer.vue ├── gallery │ ├── Gallery.vue │ └── GalleryButton.vue ├── grids │ ├── Grid.vue │ └── Grids.vue ├── icon │ └── Icon.vue ├── index.js ├── media │ ├── MediaAppmsgThumb.vue │ ├── MediaBody.vue │ ├── MediaBox.vue │ ├── MediaDescription.vue │ ├── MediaHeader.vue │ ├── MediaInfo.vue │ ├── MediaInfoMeta.vue │ └── MediaTitle.vue ├── message │ └── Message.vue ├── panel │ ├── Panel.vue │ ├── PanelBody.vue │ ├── PanelFooter.vue │ └── PanelHeader.vue ├── progress │ └── Progress.vue ├── search-bar │ └── SearchBar.vue ├── tips │ └── Toptips.vue ├── toast │ └── Toast.vue └── uploader │ ├── Uploader.vue │ ├── UploaderFile.vue │ └── UploaderFiles.vue └── static └── .gitkeep /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-runtime"], 12 | "env": { 13 | "test": { 14 | "presets": ["env", "stage-2"], 15 | "plugins": ["istanbul"] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserslist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Weui-Vue 2 | 3 | > 基于WeUI设计的Vue.js组件库 4 | 5 | ## 特点 6 | 7 | 使用Vue封装了WeUI的所有组件 8 | 通过npm安装,可以一次引入所有组件,也可选择只引入需要的组件 9 | 带css,可以愉快的修改其中内容,组件与样式分离 10 | 11 | ## 预览 12 | ### 微信扫描二维码预览 13 | 14 | ![][1] 15 | 16 | ### 或直接打开 17 | http://wv.buzhizhe.cn/#/ 18 | 19 | ## 安装 20 | ```bash 21 | npm install weui-vue --save 22 | ``` 23 | ## 使用 24 | ```javascript 25 | // 引入组件 26 | import WeuiVue from 'weui-vue' 27 | // 引入样式 28 | import 'weui-vue/weui.css' 29 | ``` 30 | ## 组件列表 31 | 32 | https://blog.buzhizhe.cn/index.php/category/wv/ 33 | 正在更新中,没有提到的问题请直接提issue ☺ 34 | 35 | ## 示例 36 | ```bash 37 | git clone https://github.com/Janmin/weui-vue.git 38 | cd weui-vue 39 | npm i 40 | npm run dev 41 | ``` 42 | ## 反馈 43 | https://github.com/Janmin/weui-vue/issues 44 | 45 | > 业余时间开发的组件库,存在的不足之处还请谅解,下面会持续的进行更新。 46 | 在此感谢腾讯的WeUi,以及@adcentury童鞋的vue-weui(Deprecated)在开发weui-vue过程中的启示和帮助! 47 | 48 | [1]: https://github.com/Janmin/weui-vue/blob/master/image/qrcode.png?raw=true -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | require('./check-versions')() 3 | 4 | process.env.NODE_ENV = 'production' 5 | 6 | const ora = require('ora') 7 | const rm = require('rimraf') 8 | const path = require('path') 9 | const chalk = require('chalk') 10 | const webpack = require('webpack') 11 | const config = require('../config') 12 | const webpackConfig = require('./webpack.prod.conf') 13 | 14 | const spinner = ora('building for production...') 15 | spinner.start() 16 | 17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 18 | if (err) throw err 19 | webpack(webpackConfig, function (err, stats) { 20 | spinner.stop() 21 | if (err) throw err 22 | process.stdout.write(stats.toString({ 23 | colors: true, 24 | modules: false, 25 | children: false, 26 | chunks: false, 27 | chunkModules: false 28 | }) + '\n\n') 29 | 30 | if (stats.hasErrors()) { 31 | console.log(chalk.red(' Build failed with errors.\n')) 32 | process.exit(1) 33 | } 34 | 35 | console.log(chalk.cyan(' Build complete.\n')) 36 | console.log(chalk.yellow( 37 | ' Tip: built files are meant to be served over an HTTP server.\n' + 38 | ' Opening index.html over file:// won\'t work.\n' 39 | )) 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /build/check-versions.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const chalk = require('chalk') 3 | const semver = require('semver') 4 | const packageConfig = require('../package.json') 5 | const shell = require('shelljs') 6 | function exec (cmd) { 7 | return require('child_process').execSync(cmd).toString().trim() 8 | } 9 | 10 | const versionRequirements = [ 11 | { 12 | name: 'node', 13 | currentVersion: semver.clean(process.version), 14 | versionRequirement: packageConfig.engines.node 15 | } 16 | ] 17 | 18 | if (shell.which('npm')) { 19 | versionRequirements.push({ 20 | name: 'npm', 21 | currentVersion: exec('npm --version'), 22 | versionRequirement: packageConfig.engines.npm 23 | }) 24 | } 25 | 26 | module.exports = function () { 27 | const warnings = [] 28 | for (let i = 0; i < versionRequirements.length; i++) { 29 | const mod = versionRequirements[i] 30 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 31 | warnings.push(mod.name + ': ' + 32 | chalk.red(mod.currentVersion) + ' should be ' + 33 | chalk.green(mod.versionRequirement) 34 | ) 35 | } 36 | } 37 | 38 | if (warnings.length) { 39 | console.log('') 40 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 41 | console.log() 42 | for (let i = 0; i < warnings.length; i++) { 43 | const warning = warnings[i] 44 | console.log(' ' + warning) 45 | } 46 | console.log() 47 | process.exit(1) 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /build/dev-client.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | 'use strict' 3 | require('eventsource-polyfill') 4 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') 5 | 6 | hotClient.subscribe(function (event) { 7 | if (event.action === 'reload') { 8 | window.location.reload() 9 | } 10 | }) 11 | -------------------------------------------------------------------------------- /build/dev-server.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | require('./check-versions')() 3 | 4 | const config = require('../config') 5 | if (!process.env.NODE_ENV) { 6 | process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) 7 | } 8 | 9 | const opn = require('opn') 10 | const path = require('path') 11 | const express = require('express') 12 | const webpack = require('webpack') 13 | const proxyMiddleware = require('http-proxy-middleware') 14 | const webpackConfig = require('./webpack.dev.conf') 15 | 16 | // default port where dev server listens for incoming traffic 17 | const port = process.env.PORT || config.dev.port 18 | // automatically open browser, if not set will be false 19 | const autoOpenBrowser = !!config.dev.autoOpenBrowser 20 | // Define HTTP proxies to your custom API backend 21 | // https://github.com/chimurai/http-proxy-middleware 22 | const proxyTable = config.dev.proxyTable 23 | 24 | const app = express() 25 | const compiler = webpack(webpackConfig) 26 | 27 | const devMiddleware = require('webpack-dev-middleware')(compiler, { 28 | publicPath: webpackConfig.output.publicPath, 29 | quiet: true 30 | }) 31 | 32 | const hotMiddleware = require('webpack-hot-middleware')(compiler, { 33 | log: false, 34 | heartbeat: 2000 35 | }) 36 | // force page reload when html-webpack-plugin template changes 37 | // currently disabled until this is resolved: 38 | // https://github.com/jantimon/html-webpack-plugin/issues/680 39 | // compiler.plugin('compilation', function (compilation) { 40 | // compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { 41 | // hotMiddleware.publish({ action: 'reload' }) 42 | // cb() 43 | // }) 44 | // }) 45 | 46 | // enable hot-reload and state-preserving 47 | // compilation error display 48 | app.use(hotMiddleware) 49 | 50 | // proxy api requests 51 | Object.keys(proxyTable).forEach(function (context) { 52 | let options = proxyTable[context] 53 | if (typeof options === 'string') { 54 | options = { target: options } 55 | } 56 | app.use(proxyMiddleware(options.filter || context, options)) 57 | }) 58 | 59 | // handle fallback for HTML5 history API 60 | app.use(require('connect-history-api-fallback')()) 61 | 62 | // serve webpack bundle output 63 | app.use(devMiddleware) 64 | 65 | // serve pure static assets 66 | const staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) 67 | app.use(staticPath, express.static('./static')) 68 | 69 | const uri = 'http://localhost:' + port 70 | 71 | var _resolve 72 | var _reject 73 | var readyPromise = new Promise((resolve, reject) => { 74 | _resolve = resolve 75 | _reject = reject 76 | }) 77 | 78 | var server 79 | var portfinder = require('portfinder') 80 | portfinder.basePort = port 81 | 82 | console.log('> Starting dev server...') 83 | devMiddleware.waitUntilValid(() => { 84 | portfinder.getPort((err, port) => { 85 | if (err) { 86 | _reject(err) 87 | } 88 | process.env.PORT = port 89 | var uri = 'http://localhost:' + port 90 | console.log('> Listening at ' + uri + '\n') 91 | // when env is testing, don't need open it 92 | if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { 93 | opn(uri) 94 | } 95 | server = app.listen(port) 96 | _resolve() 97 | }) 98 | }) 99 | 100 | module.exports = { 101 | ready: readyPromise, 102 | close: () => { 103 | server.close() 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /build/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const config = require('../config') 4 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 5 | 6 | exports.assetsPath = function (_path) { 7 | const assetsSubDirectory = process.env.NODE_ENV === 'production' 8 | ? config.build.assetsSubDirectory 9 | : config.dev.assetsSubDirectory 10 | return path.posix.join(assetsSubDirectory, _path) 11 | } 12 | 13 | exports.cssLoaders = function (options) { 14 | options = options || {} 15 | 16 | const cssLoader = { 17 | loader: 'css-loader', 18 | options: { 19 | minimize: process.env.NODE_ENV === 'production', 20 | sourceMap: options.sourceMap 21 | } 22 | } 23 | 24 | // generate loader string to be used with extract text plugin 25 | function generateLoaders (loader, loaderOptions) { 26 | const loaders = [cssLoader] 27 | if (loader) { 28 | loaders.push({ 29 | loader: loader + '-loader', 30 | options: Object.assign({}, loaderOptions, { 31 | sourceMap: options.sourceMap 32 | }) 33 | }) 34 | } 35 | 36 | // Extract CSS when that option is specified 37 | // (which is the case during production build) 38 | if (options.extract) { 39 | return ExtractTextPlugin.extract({ 40 | use: loaders, 41 | fallback: 'vue-style-loader' 42 | }) 43 | } else { 44 | return ['vue-style-loader'].concat(loaders) 45 | } 46 | } 47 | 48 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 49 | return { 50 | css: generateLoaders(), 51 | postcss: generateLoaders(), 52 | less: generateLoaders('less'), 53 | sass: generateLoaders('sass', { indentedSyntax: true }), 54 | scss: generateLoaders('sass'), 55 | stylus: generateLoaders('stylus'), 56 | styl: generateLoaders('stylus') 57 | } 58 | } 59 | 60 | // Generate loaders for standalone style files (outside of .vue) 61 | exports.styleLoaders = function (options) { 62 | const output = [] 63 | const loaders = exports.cssLoaders(options) 64 | for (const extension in loaders) { 65 | const loader = loaders[extension] 66 | output.push({ 67 | test: new RegExp('\\.' + extension + '$'), 68 | use: loader 69 | }) 70 | } 71 | return output 72 | } 73 | -------------------------------------------------------------------------------- /build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const config = require('../config') 4 | const isProduction = process.env.NODE_ENV === 'production' 5 | 6 | module.exports = { 7 | loaders: utils.cssLoaders({ 8 | sourceMap: isProduction 9 | ? config.build.productionSourceMap 10 | : config.dev.cssSourceMap, 11 | extract: isProduction 12 | }), 13 | transformToRequire: { 14 | video: 'src', 15 | source: 'src', 16 | img: 'src', 17 | image: 'xlink:href' 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const config = require('../config') 5 | const vueLoaderConfig = require('./vue-loader.conf') 6 | 7 | function resolve (dir) { 8 | return path.join(__dirname, '..', dir) 9 | } 10 | 11 | module.exports = { 12 | entry: { 13 | app: './demo/main.js' 14 | }, 15 | output: { 16 | path: config.build.assetsRoot, 17 | filename: '[name].js', 18 | publicPath: process.env.NODE_ENV === 'production' 19 | ? config.build.assetsPublicPath 20 | : config.dev.assetsPublicPath 21 | }, 22 | resolve: { 23 | extensions: ['.js', '.vue', '.json'], 24 | alias: { 25 | 'vue$': 'vue/dist/vue.esm.js', 26 | '@': resolve('demo'), 27 | } 28 | }, 29 | module: { 30 | rules: [ 31 | { 32 | test: /\.vue$/, 33 | loader: 'vue-loader', 34 | options: vueLoaderConfig 35 | }, 36 | { 37 | test: /\.js$/, 38 | loader: 'babel-loader', 39 | include: [resolve('demo'), resolve('test')] 40 | }, 41 | { 42 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 43 | loader: 'url-loader', 44 | options: { 45 | limit: 10000, 46 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 47 | } 48 | }, 49 | { 50 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, 51 | loader: 'url-loader', 52 | options: { 53 | limit: 10000, 54 | name: utils.assetsPath('media/[name].[hash:7].[ext]') 55 | } 56 | }, 57 | { 58 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 59 | loader: 'url-loader', 60 | options: { 61 | limit: 10000, 62 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 63 | } 64 | } 65 | ] 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const webpack = require('webpack') 4 | const config = require('../config') 5 | const merge = require('webpack-merge') 6 | const baseWebpackConfig = require('./webpack.base.conf') 7 | const HtmlWebpackPlugin = require('html-webpack-plugin') 8 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 9 | 10 | // add hot-reload related code to entry chunks 11 | Object.keys(baseWebpackConfig.entry).forEach(function (name) { 12 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) 13 | }) 14 | 15 | module.exports = merge(baseWebpackConfig, { 16 | module: { 17 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) 18 | }, 19 | // cheap-module-eval-source-map is faster for development 20 | devtool: '#cheap-module-eval-source-map', 21 | plugins: [ 22 | new webpack.DefinePlugin({ 23 | 'process.env': config.dev.env 24 | }), 25 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage 26 | new webpack.HotModuleReplacementPlugin(), 27 | new webpack.NoEmitOnErrorsPlugin(), 28 | // https://github.com/ampedandwired/html-webpack-plugin 29 | new HtmlWebpackPlugin({ 30 | filename: 'index.html', 31 | template: 'index.html', 32 | inject: true 33 | }), 34 | new FriendlyErrorsPlugin() 35 | ] 36 | }) 37 | -------------------------------------------------------------------------------- /build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const webpack = require('webpack') 5 | const config = require('../config') 6 | const merge = require('webpack-merge') 7 | const baseWebpackConfig = require('./webpack.base.conf') 8 | const CopyWebpackPlugin = require('copy-webpack-plugin') 9 | const HtmlWebpackPlugin = require('html-webpack-plugin') 10 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 12 | 13 | const env = config.build.env 14 | 15 | const webpackConfig = merge(baseWebpackConfig, { 16 | module: { 17 | rules: utils.styleLoaders({ 18 | sourceMap: config.build.productionSourceMap, 19 | extract: true 20 | }) 21 | }, 22 | devtool: config.build.productionSourceMap ? '#source-map' : false, 23 | output: { 24 | path: config.build.assetsRoot, 25 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 26 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 27 | }, 28 | plugins: [ 29 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 30 | new webpack.DefinePlugin({ 31 | 'process.env': env 32 | }), 33 | // UglifyJs do not support ES6+, you can also use babel-minify for better treeshaking: https://github.com/babel/minify 34 | new webpack.optimize.UglifyJsPlugin({ 35 | compress: { 36 | warnings: false 37 | }, 38 | sourceMap: true 39 | }), 40 | // extract css into its own file 41 | new ExtractTextPlugin({ 42 | filename: utils.assetsPath('css/[name].[contenthash].css') 43 | }), 44 | // Compress extracted CSS. We are using this plugin so that possible 45 | // duplicated CSS from different components can be deduped. 46 | new OptimizeCSSPlugin({ 47 | cssProcessorOptions: { 48 | safe: true 49 | } 50 | }), 51 | // generate dist index.html with correct asset hash for caching. 52 | // you can customize output by editing /index.html 53 | // see https://github.com/ampedandwired/html-webpack-plugin 54 | new HtmlWebpackPlugin({ 55 | filename: config.build.index, 56 | template: 'index.html', 57 | inject: true, 58 | minify: { 59 | removeComments: true, 60 | collapseWhitespace: true, 61 | removeAttributeQuotes: true 62 | // more options: 63 | // https://github.com/kangax/html-minifier#options-quick-reference 64 | }, 65 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 66 | chunksSortMode: 'dependency' 67 | }), 68 | // keep module.id stable when vender modules does not change 69 | new webpack.HashedModuleIdsPlugin(), 70 | // split vendor js into its own file 71 | new webpack.optimize.CommonsChunkPlugin({ 72 | name: 'vendor', 73 | minChunks: function (module) { 74 | // any required modules inside node_modules are extracted to vendor 75 | return ( 76 | module.resource && 77 | /\.js$/.test(module.resource) && 78 | module.resource.indexOf( 79 | path.join(__dirname, '../node_modules') 80 | ) === 0 81 | ) 82 | } 83 | }), 84 | // extract webpack runtime and module manifest to its own file in order to 85 | // prevent vendor hash from being updated whenever app bundle is updated 86 | new webpack.optimize.CommonsChunkPlugin({ 87 | name: 'manifest', 88 | chunks: ['vendor'] 89 | }), 90 | // copy custom static assets 91 | new CopyWebpackPlugin([ 92 | { 93 | from: path.resolve(__dirname, '../static'), 94 | to: config.build.assetsSubDirectory, 95 | ignore: ['.*'] 96 | } 97 | ]) 98 | ] 99 | }) 100 | 101 | if (config.build.productionGzip) { 102 | const CompressionWebpackPlugin = require('compression-webpack-plugin') 103 | 104 | webpackConfig.plugins.push( 105 | new CompressionWebpackPlugin({ 106 | asset: '[path].gz[query]', 107 | algorithm: 'gzip', 108 | test: new RegExp( 109 | '\\.(' + 110 | config.build.productionGzipExtensions.join('|') + 111 | ')$' 112 | ), 113 | threshold: 10240, 114 | minRatio: 0.8 115 | }) 116 | ) 117 | } 118 | 119 | if (config.build.bundleAnalyzerReport) { 120 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 121 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 122 | } 123 | 124 | module.exports = webpackConfig 125 | -------------------------------------------------------------------------------- /build/webpack.src.conf.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | entry: { 5 | 'weui-vue': path.resolve(__dirname, "../src/index.js") 6 | }, 7 | output: { 8 | path: path.resolve(__dirname, "../dist/weui-vue"), 9 | filename: "[name].js", 10 | library: "WeuiVue", 11 | libraryTarget: "umd" 12 | }, 13 | module: { 14 | rules: [ 15 | { 16 | test: /\.vue$/, 17 | loader: "vue-loader", 18 | options: { 19 | loaders: { 20 | "scss": "vue-style-loader!css-loader!sass-loader" 21 | } 22 | } 23 | }, 24 | { 25 | test: /\.js$/, 26 | loader: "babel-loader", 27 | exclude: /node_modules/ 28 | } 29 | ] 30 | }, 31 | resolve: { 32 | extensions: [".js", ".json", ".vue"] 33 | } 34 | }; -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | 2 | 'use strict' 3 | // Template version: 1.1.3 4 | // see http://vuejs-templates.github.io/webpack for documentation. 5 | 6 | const path = require('path') 7 | 8 | module.exports = { 9 | build: { 10 | env: require('./prod.env'), 11 | index: path.resolve(__dirname, '../dist/index.html'), 12 | assetsRoot: path.resolve(__dirname, '../dist'), 13 | assetsSubDirectory: 'static', 14 | assetsPublicPath: '/', 15 | productionSourceMap: true, 16 | // Gzip off by default as many popular static hosts such as 17 | // Surge or Netlify already gzip all static assets for you. 18 | // Before setting to `true`, make sure to: 19 | // npm install --save-dev compression-webpack-plugin 20 | productionGzip: false, 21 | productionGzipExtensions: ['js', 'css'], 22 | // Run the build command with an extra argument to 23 | // View the bundle analyzer report after build finishes: 24 | // `npm run build --report` 25 | // Set to `true` or `false` to always turn it on or off 26 | bundleAnalyzerReport: process.env.npm_config_report 27 | }, 28 | dev: { 29 | env: require('./dev.env'), 30 | port: process.env.PORT || 8080, 31 | autoOpenBrowser: true, 32 | assetsSubDirectory: 'static', 33 | assetsPublicPath: '/', 34 | proxyTable: {}, 35 | // CSS Sourcemaps off by default because relative paths are "buggy" 36 | // with this option, according to the CSS-Loader README 37 | // (https://github.com/webpack/css-loader#sourcemaps) 38 | // In our experience, they generally work as expected, 39 | // just be aware of this issue when enabling this option. 40 | cssSourceMap: false 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /demo/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /demo/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Janmin/weui-vue/3421527bf466af27c9b9d4dda90435dd4754f5b1/demo/assets/logo.png -------------------------------------------------------------------------------- /demo/components/ActionSheet.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 39 | 40 | -------------------------------------------------------------------------------- /demo/components/Article.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | -------------------------------------------------------------------------------- /demo/components/Badge.vue: -------------------------------------------------------------------------------- 1 | 14 | 19 | -------------------------------------------------------------------------------- /demo/components/Bar.vue: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /demo/components/Button.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 46 | 47 | -------------------------------------------------------------------------------- /demo/components/Cell.vue: -------------------------------------------------------------------------------- 1 | 134 | 135 | -------------------------------------------------------------------------------- /demo/components/Dialog.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 40 | -------------------------------------------------------------------------------- /demo/components/Flex.vue: -------------------------------------------------------------------------------- 1 | 60 | 70 | -------------------------------------------------------------------------------- /demo/components/Footer.vue: -------------------------------------------------------------------------------- 1 | 16 | 26 | -------------------------------------------------------------------------------- /demo/components/Gallery.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 31 | -------------------------------------------------------------------------------- /demo/components/Girds.vue: -------------------------------------------------------------------------------- 1 | 13 | 23 | -------------------------------------------------------------------------------- /demo/components/Icon.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | -------------------------------------------------------------------------------- /demo/components/Index.vue: -------------------------------------------------------------------------------- 1 | 33 | 58 | -------------------------------------------------------------------------------- /demo/components/Message.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /demo/components/Navbar.vue: -------------------------------------------------------------------------------- 1 | 18 | 55 | -------------------------------------------------------------------------------- /demo/components/Panel.vue: -------------------------------------------------------------------------------- 1 | 94 | 95 | -------------------------------------------------------------------------------- /demo/components/Progress.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | -------------------------------------------------------------------------------- /demo/components/SearchBar.vue: -------------------------------------------------------------------------------- 1 | 7 | 21 | -------------------------------------------------------------------------------- /demo/components/Tabbar.vue: -------------------------------------------------------------------------------- 1 | 21 | 32 | -------------------------------------------------------------------------------- /demo/components/Toast.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 47 | -------------------------------------------------------------------------------- /demo/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue' 4 | import App from './App' 5 | import router from './router' 6 | // import WeuiVue from 'weui-vue' 7 | import WeuiVue from '../dist/weui-vue/weui-vue' 8 | import 'weui-vue/weui.css' 9 | 10 | Vue.config.productionTip = false 11 | Vue.use(WeuiVue) 12 | 13 | /* eslint-disable no-new */ 14 | new Vue({ 15 | el: '#app', 16 | router, 17 | template: '', 18 | components: { App } 19 | }) 20 | -------------------------------------------------------------------------------- /demo/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Index from '@/components/Index' 4 | import ActionSheet from '@/components/ActionSheet' 5 | import Button from '@/components/Button' 6 | import Cell from '@/components/Cell' 7 | import Toast from '@/components/Toast' 8 | import Dialog from '@/components/Dialog' 9 | import Progress from '@/components/Progress' 10 | import Message from '@/components/Message' 11 | import Article from '@/components/Article' 12 | import Icon from '@/components/Icon' 13 | import Panel from '@/components/Panel' 14 | import Girds from '@/components/Girds' 15 | import Tabbar from '@/components/Tabbar' 16 | import Navbar from '@/components/Navbar' 17 | import SearchBar from '@/components/SearchBar' 18 | import Bar from '@/components/Bar' 19 | import Flex from '@/components/Flex' 20 | import Gallery from '@/components/Gallery' 21 | import Footer from '@/components/Footer' 22 | import Badge from '@/components/Badge' 23 | 24 | Vue.use(Router) 25 | 26 | export default new Router({ 27 | routes: [ 28 | { 29 | path: '/', 30 | name: 'Index', 31 | component: Index 32 | }, 33 | { 34 | path: '/action-sheet', 35 | name: 'ActionSheet', 36 | component: ActionSheet 37 | }, 38 | { 39 | path: '/button', 40 | name: 'Button', 41 | component: Button 42 | }, 43 | { 44 | path: '/cell', 45 | name: 'Cell', 46 | component: Cell 47 | }, 48 | { 49 | path: '/toast', 50 | name: 'Toast', 51 | component: Toast 52 | }, 53 | { 54 | path: '/dialog', 55 | name: 'Dialog', 56 | component: Dialog 57 | }, 58 | { 59 | path: '/progress', 60 | name: 'Progress', 61 | component: Progress 62 | }, 63 | { 64 | path: '/message', 65 | name: 'Message', 66 | component: Message 67 | }, 68 | { 69 | path: '/article', 70 | name: 'Article', 71 | component: Article 72 | }, 73 | { 74 | path: '/icon', 75 | name: 'Icon', 76 | component: Icon 77 | }, 78 | { 79 | path: '/panel', 80 | name: 'Panel', 81 | component: Panel 82 | }, 83 | { 84 | path: '/girds', 85 | name: 'Girds', 86 | component: Girds 87 | }, 88 | { 89 | path: '/tabbar', 90 | name: 'Tabbar', 91 | component: Tabbar 92 | }, 93 | { 94 | path: '/navbar', 95 | name: 'Navbar', 96 | component: Navbar 97 | }, 98 | { 99 | path: '/search', 100 | name: 'SearchBar', 101 | component: SearchBar 102 | }, 103 | { 104 | path: '/bar', 105 | name: 'Bar', 106 | component: Bar 107 | }, 108 | { 109 | path: '/flex', 110 | name: 'Flex', 111 | component: Flex 112 | }, 113 | { 114 | path: '/gallery', 115 | name: 'Gallery', 116 | component: Gallery 117 | }, 118 | { 119 | path: '/footer', 120 | name: 'Footer', 121 | component: Footer 122 | }, 123 | { 124 | path: '/badge', 125 | name: 'Badge', 126 | component: Badge 127 | } 128 | ] 129 | }) 130 | -------------------------------------------------------------------------------- /image/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Janmin/weui-vue/3421527bf466af27c9b9d4dda90435dd4754f5b1/image/qrcode.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | weui-vue 7 | 8 | 19 | 20 | 21 | 22 |
23 | 24 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "weui-vue-case", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project", 5 | "author": "谢子剑 ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "node build/dev-server.js", 9 | "start": "npm run dev", 10 | "build": "node build/build.js", 11 | "build:src": "webpack --config ./build/webpack.src.conf.js --progress --profile" 12 | }, 13 | "dependencies": { 14 | "vue": "^2.5.2", 15 | "vue-router": "^3.0.1", 16 | "weui-vue": "^1.0.4" 17 | }, 18 | "devDependencies": { 19 | "autoprefixer": "^7.1.2", 20 | "babel-core": "^6.22.1", 21 | "babel-loader": "^7.1.1", 22 | "babel-plugin-transform-runtime": "^6.22.0", 23 | "babel-preset-env": "^1.3.2", 24 | "babel-preset-stage-2": "^6.22.0", 25 | "babel-register": "^6.22.0", 26 | "chalk": "^2.0.1", 27 | "connect-history-api-fallback": "^1.3.0", 28 | "copy-webpack-plugin": "^4.0.1", 29 | "css-loader": "^0.28.0", 30 | "eventsource-polyfill": "^0.9.6", 31 | "express": "^4.14.1", 32 | "extract-text-webpack-plugin": "^3.0.0", 33 | "file-loader": "^1.1.4", 34 | "friendly-errors-webpack-plugin": "^1.6.1", 35 | "html-webpack-plugin": "^2.30.1", 36 | "http-proxy-middleware": "^0.17.3", 37 | "webpack-bundle-analyzer": "^2.9.0", 38 | "semver": "^5.3.0", 39 | "shelljs": "^0.7.6", 40 | "opn": "^5.1.0", 41 | "optimize-css-assets-webpack-plugin": "^3.2.0", 42 | "ora": "^1.2.0", 43 | "rimraf": "^2.6.0", 44 | "url-loader": "^0.5.8", 45 | "vue-loader": "^13.3.0", 46 | "vue-style-loader": "^3.0.1", 47 | "vue-template-compiler": "^2.5.2", 48 | "portfinder": "^1.0.13", 49 | "webpack": "^3.6.0", 50 | "webpack-dev-middleware": "^1.12.0", 51 | "webpack-hot-middleware": "^2.18.2", 52 | "webpack-merge": "^4.1.0" 53 | }, 54 | "engines": { 55 | "node": ">= 4.0.0", 56 | "npm": ">= 3.0.0" 57 | }, 58 | "browserslist": [ 59 | "> 1%", 60 | "last 2 versions", 61 | "not ie <= 8" 62 | ] 63 | } 64 | -------------------------------------------------------------------------------- /src/Badge/Badge.vue: -------------------------------------------------------------------------------- 1 | 4 | 41 | -------------------------------------------------------------------------------- /src/actionsheet/ActionSheet.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | -------------------------------------------------------------------------------- /src/article/Article.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/bar/Navbar.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /src/bar/NavbarItem.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/bar/Tab.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/bar/Tabbar.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/bar/TabbarItem.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | -------------------------------------------------------------------------------- /src/button/Button.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/button/ButtonArea.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/Cell.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/cells/CellBody.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/CellFooter.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/CellHeader.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/CellInput.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /src/cells/CellSelect.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/cells/CellTextarea.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /src/cells/Cells.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/cells/CellsTips.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/CellsTitle.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/cells/CheckboxCell.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /src/cells/InputCell.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | -------------------------------------------------------------------------------- /src/cells/LinkCell.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/cells/RadioCell.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | -------------------------------------------------------------------------------- /src/cells/SelectCell.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/cells/SwitchCell.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/dialog/Dialog.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | -------------------------------------------------------------------------------- /src/flex/Flex.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/flex/FlexItem.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/footer/Footer.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/gallery/Gallery.vue: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/gallery/GalleryButton.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /src/grids/Grid.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/grids/Grids.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/icon/Icon.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import ButtonArea from './button/ButtonArea.vue' 2 | import Button from './button/Button.vue' 3 | 4 | import CellsTitle from './cells/CellsTitle.vue' 5 | import CellsTips from './cells/CellsTips.vue' 6 | import Cells from './cells/Cells.vue' 7 | import Cell from './cells/Cell.vue' 8 | import LinkCell from './cells/LinkCell.vue' 9 | import RadioCell from './cells/RadioCell.vue' 10 | 11 | import CheckboxCell from './cells/CheckboxCell.vue' 12 | import SwitchCell from './cells/SwitchCell.vue' 13 | import InputCell from './cells/InputCell.vue' 14 | import SelectCell from './cells/SelectCell.vue' 15 | import CellHeader from './cells/CellHeader.vue' 16 | import CellBody from './cells/CellBody.vue' 17 | import CellFooter from './cells/CellFooter.vue' 18 | 19 | import CellInput from './cells/CellInput.vue' 20 | import CellTextarea from './cells/CellTextarea.vue' 21 | import CellSelect from './cells/CellSelect.vue' 22 | 23 | import Toptips from './tips/Toptips.vue' 24 | 25 | import Toast from './toast/Toast.vue' 26 | 27 | import Dialog from './dialog/Dialog.vue' 28 | 29 | import Progress from './progress/Progress.vue' 30 | 31 | import Message from './message/Message.vue' 32 | 33 | import Article from './article/Article.vue' 34 | 35 | import Actionsheet from './actionsheet/ActionSheet.vue' 36 | 37 | import Icon from './icon/Icon.vue' 38 | 39 | import Grids from './grids/Grids.vue' 40 | import Grid from './grids/Grid.vue' 41 | 42 | import Uploader from './uploader/Uploader.vue' 43 | import UploaderFiles from './uploader/UploaderFiles.vue' 44 | import UploaderFile from './uploader/UploaderFile.vue' 45 | 46 | import Tab from './bar/Tab.vue' 47 | import Navbar from './bar/Navbar.vue' 48 | import NavbarItem from './bar/NavbarItem.vue' 49 | import Tabbar from './bar/Tabbar.vue' 50 | import TabbarItem from './bar/TabbarItem.vue' 51 | 52 | import Panel from './panel/Panel.vue' 53 | import PanelHeader from './panel/PanelHeader.vue' 54 | import PanelBody from './panel/PanelBody.vue' 55 | import PanelFooter from './panel/PanelFooter.vue' 56 | 57 | import MediaBox from './media/MediaBox.vue' 58 | import MediaHeader from './media/MediaHeader.vue' 59 | import MediaBody from './media/MediaBody.vue' 60 | import MediaAppmsgThumb from './media/MediaAppmsgThumb.vue' 61 | import MediaTitle from './media/MediaTitle.vue' 62 | import MediaDescription from './Media/MediaDescription.vue' 63 | import MediaInfo from './media/MediaInfo.vue' 64 | import MediaInfoMeta from './media/MediaInfoMeta.vue' 65 | 66 | import SearchBar from './search-bar/SearchBar.vue' 67 | 68 | import Flex from './flex/Flex.vue' 69 | import FlexItem from './flex/FlexItem.vue' 70 | 71 | import Gallery from './gallery/Gallery.vue' 72 | import GalleryButton from './gallery/GalleryButton.vue' 73 | 74 | import Footer from './footer/Footer.vue' 75 | 76 | import Badge from './badge/Badge.vue' 77 | 78 | const components = [ 79 | ButtonArea, 80 | Button, 81 | CellsTitle, 82 | CellsTips, 83 | Cells, 84 | Cell, 85 | LinkCell, 86 | RadioCell, 87 | CheckboxCell, 88 | SwitchCell, 89 | InputCell, 90 | SelectCell, 91 | CellHeader, 92 | CellBody, 93 | CellFooter, 94 | CellInput, 95 | CellTextarea, 96 | CellSelect, 97 | Toptips, 98 | Toast, 99 | Dialog, 100 | Progress, 101 | Message, 102 | Article, 103 | Actionsheet, 104 | Icon, 105 | Grids, 106 | Grid, 107 | Uploader, 108 | UploaderFiles, 109 | UploaderFile, 110 | Tab, 111 | Navbar, 112 | NavbarItem, 113 | Tabbar, 114 | TabbarItem, 115 | Panel, 116 | PanelHeader, 117 | PanelBody, 118 | PanelFooter, 119 | MediaBox, 120 | MediaHeader, 121 | MediaBody, 122 | MediaAppmsgThumb, 123 | MediaTitle, 124 | MediaDescription, 125 | MediaInfo, 126 | MediaInfoMeta, 127 | SearchBar, 128 | Flex, 129 | FlexItem, 130 | Gallery, 131 | GalleryButton, 132 | Footer, 133 | Badge 134 | ] 135 | 136 | const install = function (Vue, opts = {}) { 137 | components.map(component => { 138 | Vue.component(component.name, component); 139 | }); 140 | }; 141 | 142 | if (typeof window !== "undefined" && window.Vue) { 143 | install(window.Vue); 144 | } 145 | 146 | export default { 147 | install, 148 | ButtonArea, 149 | Button, 150 | CellsTitle, 151 | CellsTips, 152 | Cells, 153 | Cell, 154 | LinkCell, 155 | RadioCell, 156 | CheckboxCell, 157 | SwitchCell, 158 | InputCell, 159 | SelectCell, 160 | CellHeader, 161 | CellBody, 162 | CellFooter, 163 | CellInput, 164 | CellTextarea, 165 | CellSelect, 166 | Toptips, 167 | Toast, 168 | Dialog, 169 | Progress, 170 | Message, 171 | Article, 172 | Actionsheet, 173 | Icon, 174 | Grids, 175 | Grid, 176 | Uploader, 177 | UploaderFiles, 178 | UploaderFile, 179 | Tab, 180 | Navbar, 181 | NavbarItem, 182 | Tabbar, 183 | TabbarItem, 184 | Panel, 185 | PanelHeader, 186 | PanelBody, 187 | PanelFooter, 188 | MediaBox, 189 | MediaHeader, 190 | MediaBody, 191 | MediaAppmsgThumb, 192 | MediaTitle, 193 | MediaDescription, 194 | MediaInfo, 195 | MediaInfoMeta, 196 | SearchBar, 197 | Flex, 198 | FlexItem, 199 | Gallery, 200 | GalleryButton, 201 | Footer, 202 | Badge 203 | } 204 | -------------------------------------------------------------------------------- /src/media/MediaAppmsgThumb.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /src/media/MediaBody.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/media/MediaBox.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/media/MediaDescription.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/media/MediaHeader.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/media/MediaInfo.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/media/MediaInfoMeta.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/media/MediaTitle.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/message/Message.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | -------------------------------------------------------------------------------- /src/panel/Panel.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/panel/PanelBody.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/panel/PanelFooter.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /src/panel/PanelHeader.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/progress/Progress.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /src/search-bar/SearchBar.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | -------------------------------------------------------------------------------- /src/tips/Toptips.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/toast/Toast.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | -------------------------------------------------------------------------------- /src/uploader/Uploader.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | -------------------------------------------------------------------------------- /src/uploader/UploaderFile.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /src/uploader/UploaderFiles.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Janmin/weui-vue/3421527bf466af27c9b9d4dda90435dd4754f5b1/static/.gitkeep --------------------------------------------------------------------------------