├── .gitignore ├── README.md ├── babel.config.js ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue └── main.js ├── vue.config.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Form Dinamis dengan menggunakan Vue.js 2 | 3 | * Demo bisa dilihat di https://vuejs.id/example-list-form/ 4 | * Video Youtube bisa dilihat di https://youtu.be/FuTu_VFFrOs 5 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sample", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "vue": "^2.5.17" 12 | }, 13 | "devDependencies": { 14 | "@vue/cli-plugin-babel": "^3.0.5", 15 | "@vue/cli-plugin-eslint": "^3.0.5", 16 | "@vue/cli-service": "^3.0.5", 17 | "vue-template-compiler": "^2.5.17" 18 | }, 19 | "eslintConfig": { 20 | "root": true, 21 | "env": { 22 | "node": true 23 | }, 24 | "extends": [ 25 | "plugin:vue/essential", 26 | "eslint:recommended" 27 | ], 28 | "rules": {}, 29 | "parserOptions": { 30 | "parser": "babel-eslint" 31 | } 32 | }, 33 | "postcss": { 34 | "plugins": { 35 | "autoprefixer": {} 36 | } 37 | }, 38 | "browserslist": [ 39 | "> 1%", 40 | "last 2 versions", 41 | "not ie <= 8" 42 | ] 43 | } 44 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuejs-id/example-list-form/8a8609297a8a103dd9f566908950cd2f0c70f6c2/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |# | 8 |Code | 9 |Name | 10 |Description | 11 |Qty | 12 |Unit | 13 |Price | 14 |Discount | 15 |Total | 16 |Action | 17 |
---|---|---|---|---|---|---|---|---|---|
{{ index + 1 }} | 22 |23 | {{ item.code }} 24 | 25 | 26 | 27 | | 28 |29 | {{ item.name }} 30 | 31 | 32 | 33 | | 34 |35 | {{ item.description }} 36 | 37 | 38 | 39 | | 40 |41 | {{ item.qty }} 42 | 43 | 44 | 45 | | 46 |47 | {{ item.unit }} 48 | 49 | 50 | 51 | | 52 |53 | {{ item.price }} 54 | 55 | 56 | 57 | | 58 |59 | {{ item.discount }} 60 | 61 | 62 | 63 | | 64 |{{ subtotal(item) | money }} |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | | 75 |