- basic button. nothing special, should pay attention to style
- dialog
- vue transition
- vue .self .sync v-slot
- vue-loader v-deep
- input
- how to support v-model.
v-modal='data'
=:value='data'
+@input='data=$event.target.value'
- clearable show-password
- how to support v-model.
- switch
- switch color
watch
,this.$refs
- switch color
- radio and radio-group
provide / inject
. like provider and consumer in react
- checkbox and checkbox-group
- just like
radio / radio-group
, but checkbox-group should get an array
- just like
- form / form-item
- package all components
- copy all
src/components
.vue andsrc/assets
fonts file intopackages
. seecopy-to-pkgs.js
- add
index.js
inpackages
to install all components - extends
vue.config.js
, compile allpackages
file - add
"lib": "node copy-to-pkgs.js && vue-cli-service build --target lib packages/index.js"
in package.json
- copy all
- publish in npm
- in
package.json
changeprivete: false
- no duplicate name in npm
- change main value
- add files in
package.json
, don't use .npmignore - npm publish
npm get registry
must be original npm org- need a npm account
npm login
npm publish
- update & publish: after change file, push to github
- add
package.json
version
- in