{"_id":"@bnfe/bm-vue","_rev":"8-6d7c7251ae4b1f2c3fafed08a1c11e9d","name":"@bnfe/bm-vue","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@bnfe/bm-vue","version":"1.0.1","keywords":["banu","vue","bm-vue","mobile"],"license":"MIT","_id":"@bnfe/bm-vue@1.0.1","maintainers":[{"name":"topb25","email":"gd523718@gmail.com"},{"name":"dujunhui15","email":"djhvince15@163.com"},{"name":"whh2828","email":"1426849006@qq.com"},{"name":"zyh941109","email":"1124596031@qq.com"}],"homepage":"https://github.com/bnfe/bm-vue","bugs":{"url":"https://github.com/bnfe/bm-vue/issues"},"dist":{"shasum":"bcb9b851448859280f892adce298b53faca0065f","tarball":"https://registry.npmjs.org/@bnfe/bm-vue/-/bm-vue-1.0.1.tgz","fileCount":582,"integrity":"sha512-eCjyyehi9xPKXwkLv2cvnZ59DFSAScD0IP0Wwj881Wu/l99Cnjv6j/b2aQWJvTaiVGpVNcjm+SbPtqD9G2BiHA==","signatures":[{"sig":"MEUCIQCTgO7C7SmnLRXnlv3kIj8W0NSncBMbckHFKj7r6NIarwIgdpaHGoML7aNym2SKZlJ732jFlbnNfwm+3NibnuFIPXQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9132207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7zHqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolsQ//YPrjQTdFnBxBrNJkzx1ZvdTx4B+x5/CROwzQ1bzrGzgH+wCX\r\nYAEMj4Efqyhv4bdPiaKQOKZoyfVHo2eMeqbQEMjo4ib+cauU2d3+LM5BVaLu\r\nrhL/rBNjOJnmcMSHcn2QbDTCD30hKRaXaESA2WowXDYoQMJitOWOtGcnvuiu\r\nIc8DOl8k9O6VPWgxvDxy50uHQnDsuqmduQxLBeMMDTGIv8uUtfvd4Mvpu9nk\r\nz/EsDL9SJrNt31vaFnBo1gekr6nS8QYeddLS84qhXcmQ0KF7TaVIC4ajUIfx\r\nzsU9ghFpGgetEtJkFi0EHNJ/kUb+Ar74zjXJ7+5q3o2RMtncR3Rdo+shTbiy\r\nmmF21eXkF9ZgX6hWOzp4WY/BnwjSjp9jQUxNGKeA0aYdPYpwevzuftIP3Ltx\r\ndzcUJp3C/LyZk0eNiDxx1J86Gj9aIP5D+3GXiH9Vhr5BwM3825g3Rc3a729W\r\n+2wLuSe03m3GDio6JLEcIxPxfAl+j780p0LQ6pr7ISeuQYEe0AGQfgwymNIT\r\nCfhi1mQeAPCw2uZ/gHm8jbekfh+2WMdCAwbtRfd6i+W4TE8ydLJhThHzhUuu\r\nykCo+Mo4hwxul3IPWnIh6u9fPwZUw1jTuktFitmXWQFDhDAJzRPmqxlE/Nwo\r\nmXt95VO38x/i85zSo+GMTmq1Kjct1z3CGQg=\r\n=nrsH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/bm-vue.common.js","tags":["banu","vue","bm-vue"],"engines":{"npm":">= 3.0.0","node":">= 6.0.0"},"gitHead":"1510daaccde04633b9956019830c4148f6a0cb82","scripts":{"dev":"cross-env NODE_ENV=development webpack-dev-server --config ./build/webpack.dev.conf.js","pub":"npm run build:all && npm publish ./release --access public","lint":"npm run lint:vue && npm run lint:style","page":"gh-pages -d dist --remote origin","clean":"rimraf release","start":"cross-env NODE_ENV=development webpack-dev-server --config ./build/webpack.dev.conf.js","create":"node script/create-component.js","deploy":"rimraf dist && cross-env NODE_ENV=production webpack --config ./build/webpack.deploy.conf.js","analyze":"cross-env NODE_ENV=production npm_config_report=true npm run build:all","lint:vue":"eslint --ext .js,.vue src","build:all":"npm run clean && npm run build:umd && npm run build:lib && npm run build:style && npm run build:theme && npm run build:release","build:lib":"cross-env NODE_ENV=production webpack --config ./build/webpack.prod.conf.js","build:umd":"cross-env NODE_ENV=production webpack --config ./build/webpack.umd.conf.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","commitmsg":"commitlint -e $GIT_PARAMS","precommit":"npm run lint","lint:style":"stylelint --syntax scss styles/**/**/*.scss src/**/**/*.scss","build:style":"cross-env NODE_ENV=production webpack --config ./build/webpack.style.conf.js","build:theme":"cross-env NODE_ENV=production webpack --config ./build/webpack.theme.conf.js","deploy:page":"npm run deploy && npm run page","build:release":"cp -r src release && cp -r styles release && cp -r README.md release && cp -r package.json release"},"_npmUser":{"name":"zyh941109","email":"1124596031@qq.com"},"repository":{"url":"git+https://github.com/bnfe/bm-vue.git","type":"git"},"_npmVersion":"9.3.0","description":"巴奴移动端组件库","directories":{},"_nodeVersion":"14.21.1","browserslist":["> 1%","last 2 versions","not ie <= 8","iOS >= 8","Android >= 4"],"dependencies":{"dayjs":"^1.7.7","autosize":"^4.0.0","popper.js":"^1.15.0","better-scroll":"1.12.0"},"_hasShrinkwrap":false,"devDependencies":{"ip":"^1.1.8","vue":"^2.6.10","glob":"^7.1.2","sass":"~1.32.13","vuex":"^3.0.1","axios":"^0.18.0","chalk":"^2.4.2","fetch":"^1.1.0","husky":"^8.0.3","eslint":"^4.19.1","lodash":"^4.17.15","rimraf":"^2.6.1","cheerio":"^0.22.0","core-js":"^3.0.1","webpack":"^4.10.1","gh-pages":"^2.0.1","cross-env":"^5.0.1","lodash-es":"^4.17.15","stylelint":"^7.12.0","@babel/cli":"^7.4.4","css-loader":"^0.28.0","element-ui":"^2.4.9","handlebars":"^4.0.11","url-loader":"^1.0.1","vue-loader":"^15.0.7","vue-router":"^2.6.0","@babel/core":"^7.4.5","@babel/node":"^7.4.5","file-loader":"^1.1.11","markdown-it":"^8.4.1","sass-loader":"^7.0.1","webpack-cli":"^3.3.5","autoprefixer":"^7.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","highlight.js":"^11.7.0","loader-utils":"^1.1.0","eslint-loader":"^2.0.0","normalize.css":"^8.0.0","webpack-merge":"^4.2.1","@babel/runtime":"^7.4.5","postcss-loader":"^2.0.6","@commitlint/cli":"^6.2.0","vue-style-loader":"^4.1.0","@babel/preset-env":"^7.4.5","eslint-plugin-html":"^3.2.2","markdown-it-anchor":"^5.0.2","webpack-dev-server":"^3.2.1","babel-plugin-import":"^1.11.0","copy-webpack-plugin":"^4.0.1","github-markdown-css":"^2.10.0","html-webpack-plugin":"^3.2.0","eslint-plugin-import":"^2.2.0","@vue/babel-preset-jsx":"^1.0.0","markdown-it-container":"^2.0.0","vue-template-compiler":"^2.6.10","@babel/runtime-corejs2":"^7.4.2","babel-plugin-syntax-jsx":"^6.18.0","mini-css-extract-plugin":"^0.4.0","webpack-bundle-analyzer":"^3.3.2","eslint-friendly-formatter":"^3.0.0","stylelint-config-standard":"^16.0.0","conventional-changelog-cli":"^1.3.22","connect-history-api-fallback":"^1.3.0","babel-plugin-transform-vue-jsx":"^3.7.0","eslint-import-resolver-webpack":"^0.8.1","friendly-errors-webpack-plugin":"^1.1.3","@babel/plugin-transform-runtime":"^7.4.4","@commitlint/config-conventional":"^6.1.3","babel-helper-vue-jsx-merge-props":"^2.0.3","babel-plugin-dynamic-import-node":"^2.3.0","optimize-css-assets-webpack-plugin":"^4.0.2","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/plugin-transform-object-assign":"^7.2.0","@babel/plugin-transform-modules-commonjs":"^7.0.0"},"peerDependencies":{"vue":"> 2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/bm-vue_1.0.1_1676620266301_0.5745640144704585","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-02-17T07:51:06.211Z","modified":"2025-07-02T06:28:09.502Z","1.0.0":"2023-02-17T06:37:05.476Z","1.0.1":"2023-02-17T07:51:06.541Z"},"bugs":{"url":"https://github.com/bnfe/bm-vue/issues"},"license":"MIT","homepage":"https://github.com/bnfe/bm-vue","keywords":["banu","vue","bm-vue","mobile"],"repository":{"url":"git+https://github.com/bnfe/bm-vue.git","type":"git"},"description":"巴奴移动端组件库","maintainers":[{"email":"1124596031@qq.com","name":"zyh941109"},{"email":"1426849006@qq.com","name":"whh2828"},{"email":"djhvince15@163.com","name":"dujunhui15"},{"email":"gd523718@gmail.com","name":"topb25"},{"email":"15938527720@163.com","name":"zmlman"}],"readme":"### Install 安装\n\n```bash\nnpm install @bnfe/bm-vue -S\n```\n\n### Import 引入\n\n> 全组件引入\n\n```javascript\nimport Vue from \"vue\";\nimport bmVue from \"@bnfe/bm-vue\";\n// 引入全局样式\nimport \"@bnfe/bm-vue/bm-vue.default.css\";\nVue.use(bmVue);\n```\n\n> 按需引入\n\n借助`ElementUI`提供的[babel-plugin-component](https://github.com/ElementUI/babel-plugin-component)，我们可以只引入需要的组件，以达到减小项目体积的目的。\n\n首先，安装 babel-plugin-component：\n\n```bash\nnpm install babel-plugin-component -D\n```\n\n然后，将 .babelrc 添加：\n\n```javascript\n{\n  // ...\n  \"plugins\": [[\"component\", {\n      \"libraryName\": \"@bnfe/bm-vue\",\n      \"styleLibraryName\": \"theme\"\n    }\n  ]]\n}\n```\n\n接下来，如果你只希望引入部分组件，那么只需要写入以下内容：\n\n```javascript\nimport { Button } from \"@bnfe/bm-vue\";\nVue.use(Button);\n```\n\n> 也可以通过 cdn 引入 umd 模块\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\" />\n    <!-- import CSS -->\n    <link rel=\"stylesheet\" href=\"//xxx/@bnfe/bm-vue/bm-vue.default.css\" />\n    <!-- import JS -->\n    <script src=\"//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js\"></script>\n    <script src=\"//xxx/@bnfe/bm-vue/bm-vue.umd.js\"></script>\n  </head>\n  <body>\n    <div id=\"app\">\n      <bm-button theme=\"primary\">普通按钮</bm-button>\n    </div>\n  </body>\n  <script>\n    new Vue({\n      el: \"#app\",\n    });\n  </script>\n</html>\n```\n","readmeFilename":"README.md"}