Skip to content

Commit b6b27d3

Browse files
committed
feat: import luban components from npm
1 parent 80d98b5 commit b6b27d3

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

front-end/h5/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"engine:build": "PAGE=ENGINE vue-cli-service build --target lib --name engine ./src/engine-entry.js"
1414
},
1515
"dependencies": {
16+
"@luban-h5/lbc-button": "^0.0.2",
1617
"@luban-h5/lbs-text-align": "^0.0.3",
1718
"animate.css": "^3.7.2",
1819
"ant-design-vue": "^1.3.14",

front-end/h5/src/mixins/load-plugins.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import LbpButton from '../components/plugins/lbp-button'
2+
import LbpButton from '@luban-h5/lbc-button'
33
import LbpPicture from '../components/plugins/lbp-picture'
44
import LbpVideo from '../components/plugins/lbp-video'
55
import LbpText from '../components/plugins/lbp-text'

front-end/h5/yarn.lock

+50
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,17 @@
740740
cssnano-preset-default "^4.0.0"
741741
postcss "^7.0.0"
742742

743+
"@luban-h5/lbc-button@^0.0.2":
744+
version "0.0.2"
745+
resolved "https://registry.npmjs.org/@luban-h5/lbc-button/-/lbc-button-0.0.2.tgz#76a2d2567eacc31ab8faa8dcff7fa0dd5202512b"
746+
integrity sha512-IzSTxhh9wKExvZklvD4QR6pJu1aBil8lw/B0XzSg+OVfSczXi+tbP1CNWNXmlZHf5pIKfiONIanVB0pkW+j6QA==
747+
dependencies:
748+
"@luban-h5/lbs-text-align" "^0.0.3"
749+
ant-design-vue "^1.2.4"
750+
core-js "^3.3.2"
751+
font-awesome "4.7.0"
752+
vue "^2.6.10"
753+
743754
"@luban-h5/lbs-text-align@^0.0.3":
744755
version "0.0.3"
745756
resolved "https://registry.npmjs.org/@luban-h5/lbs-text-align/-/lbs-text-align-0.0.3.tgz#b25a66ad846ee2530e7519c691f74d3c51c352fd"
@@ -1429,6 +1440,40 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
14291440
dependencies:
14301441
color-convert "^1.9.0"
14311442

1443+
ant-design-vue@^1.2.4:
1444+
version "1.4.4"
1445+
resolved "https://registry.npm.taobao.org/ant-design-vue/download/ant-design-vue-1.4.4.tgz#e3950489324a870273928ed22f5dabf6284424a7"
1446+
integrity sha1-45UEiTJKhwJzko7SL12r9ihEJKc=
1447+
dependencies:
1448+
"@ant-design/icons" "^2.1.1"
1449+
"@ant-design/icons-vue" "^2.0.0"
1450+
add-dom-event-listener "^1.0.2"
1451+
array-tree-filter "^2.1.0"
1452+
async-validator "^3.0.3"
1453+
babel-helper-vue-jsx-merge-props "^2.0.3"
1454+
babel-runtime "6.x"
1455+
classnames "^2.2.5"
1456+
component-classes "^1.2.6"
1457+
dom-align "^1.7.0"
1458+
dom-closest "^0.2.0"
1459+
dom-scroll-into-view "^1.2.1"
1460+
enquire.js "^2.1.6"
1461+
intersperse "^1.0.0"
1462+
is-negative-zero "^2.0.0"
1463+
ismobilejs "^0.5.1"
1464+
json2mq "^0.2.0"
1465+
lodash "^4.17.5"
1466+
moment "^2.21.0"
1467+
mutationobserver-shim "^0.3.2"
1468+
node-emoji "^1.10.0"
1469+
omit.js "^1.0.0"
1470+
raf "^3.4.0"
1471+
resize-observer-polyfill "^1.5.1"
1472+
shallow-equal "^1.0.0"
1473+
shallowequal "^1.0.2"
1474+
vue-ref "^1.0.4"
1475+
warning "^3.0.0"
1476+
14321477
ant-design-vue@^1.3.14:
14331478
version "1.3.14"
14341479
resolved "https://registry.npm.taobao.org/ant-design-vue/download/ant-design-vue-1.3.14.tgz#4bef079ec7a74e79a20c5c4fab7b0ab7fb3568fc"
@@ -1671,6 +1716,11 @@ async-validator@^1.8.2:
16711716
dependencies:
16721717
babel-runtime "6.x"
16731718

1719+
async-validator@^3.0.3:
1720+
version "3.2.0"
1721+
resolved "https://registry.npm.taobao.org/async-validator/download/async-validator-3.2.0.tgz#fcbd644e7b5b7c9304d29a4752c3f06214ef0d56"
1722+
integrity sha1-/L1kTntbfJME0ppHUsPwYhTvDVY=
1723+
16741724
async-validator@~1.8.1:
16751725
version "1.8.5"
16761726
resolved "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz#dc3e08ec1fd0dddb67e60842f02c0cd1cec6d7f0"

0 commit comments

Comments
 (0)