1. vue-thai-address-input

vue-thai-address-input

VueThaiAddressInput

npm vue2

Autocomplete ที่อยู่ประเทศไทย สำหรับ Vue.js (ไม่ต้องใช้ jQuery) โดยใช้ฐานข้อมูลและโค้ดบางส่วนจาก jquery.Thailand.js

Demo

https://tsctao.github.io/vue-thai-address-input/

Installation

 npm install --save vue-thai-address-input

Usage

Bundler (Webpack, Rollup)

 import Vue from 'vue'
import VueThaiAddressInput from 'vue-thai-address-input'
// You need a specific loader for CSS files like https://github.com/webpack/css-loader
import 'vue-thai-address-input/dist/vue-thai-address-input.css'

Vue.use(ThaiAddressInput);

ดูตัวอย่างการใช้งานในโฟลเดอร์ demo

Development

Launch visual tests

 npm run dev

Build

Bundle the js and css of to the dist folder:

 npm run build

License

MIT

Dependencies

add-asset-html-webpack-plugin: ^2.0.0babel-core: ^6.24.0babel-eslint: ^7.2.0babel-helper-vue-jsx-merge-props: ^2.0.0babel-loader: ^7.0.0babel-plugin-istanbul: ^4.1.0babel-plugin-syntax-jsx: ^6.18.0babel-plugin-transform-object-rest-spread: ^6.23.0babel-plugin-transform-runtime: ^6.23.0babel-plugin-transform-vue-jsx: ^3.4.0babel-preset-env: ^1.4.0buble: ^0.15.2chai: ^3.5.0chai-dom: ^1.4.0clean-css: ^4.0.0copy-webpack-plugin: ^4.3.1cross-env: ^4.0.0css-loader: ^0.28.0eslint: ^4.8.0eslint-config-airbnb-base: ^12.0.2eslint-plugin-import: ^2.7.0eslint-plugin-vue: ^3.13.0extract-text-webpack-plugin: ^2.1.0html-webpack-plugin: ^2.28.0karma: ^1.7.0karma-chai-dom: ^1.1.0karma-chrome-launcher: ^2.1.0karma-coverage: ^1.1.0karma-mocha: ^1.3.0karma-sinon-chai: ^1.3.0karma-sourcemap-loader: ^0.3.7karma-spec-reporter: ^0.0.31karma-webpack: ^2.0.0lint-staged: ^3.4.0mkdirp: ^0.5.1mocha: ^3.3.0mocha-css: ^1.0.1postcss: ^6.0.0postcss-cssnext: ^2.10.0pre-commit: ^1.2.0rimraf: ^2.6.0rollup: ^0.41.6rollup-plugin-buble: ^0.15.0rollup-plugin-commonjs: ^8.0.0rollup-plugin-jsx: ^1.0.0rollup-plugin-node-resolve: ^3.0.0rollup-plugin-postcss: ^0.4.1rollup-plugin-replace: ^1.1.0rollup-plugin-vue: ^2.3.0sinon: 2.2.0sinon-chai: ^2.10.0style-loader: ^0.17.0stylefmt: ^5.3.0stylelint: ^7.10.0stylelint-config-standard: ^16.0.0stylelint-processor-html: ^1.0.0uglify-js: ^3.0.0uppercamelcase: ^3.0.0vue: ^2.5.0vue-loader: ^13.7.0vue-template-compiler: ^2.5.13webpack: ^2.5.0webpack-bundle-analyzer: ^2.4.0webpack-dashboard: ^0.4.0webpack-dev-server: ^2.4.0webpack-merge: ^4.0.0yarn-or-npm: ^2.0.0