Explorar el Código

[ADD] first ui skeleton

Gogs hace 7 años
padre
commit
a3f7de2d8d
Se han modificado 4 ficheros con 59 adiciones y 7 borrados
  1. 2 1
      .gitignore
  2. 1 1
      package.json
  3. 53 2
      src/App.vue
  4. 3 3
      yarn.lock

+ 2 - 1
.gitignore

@@ -1,3 +1,4 @@
 *.pyc
 node_modules
-static/src
+static/src
+yarn.lock

+ 1 - 1
package.json

@@ -29,7 +29,7 @@
 	"dependencies": {
 		"fuse.js": "^3.0.5",
 		"vue": "^2.4.1",
-		"vue-form-wizard": "^0.6.1",
+		"vue-form-wizard": "^0.7.0",
 		"vue-js-modal": "^1.2.6",
 		"vue-simple-spinner": "^1.2.1",
 		"vuex": "^2.3.1"

+ 53 - 2
src/App.vue

@@ -1,11 +1,23 @@
 <template lang="pug">
-    .purchases Hello
+    .purchases
+        form-wizard(title='' subtitle='' finishButtonText='Finalizar' color='#7c7bad' nextButtonText='Continuar' backButtonText='Volver')
+            tab-content(title='Cuál es su proveedor?')
+                h2 Proveedor
+            tab-content(title='Qué productos adquirirás?')
+                h2 Productos
+            tab-content(title='Cómo quieres pagar?')
+                h2 Pago
 </template>
 
 <script>
+    import { FormWizard, TabContent } from 'vue-form-wizard'
     import { mapActions } from 'vuex'
 
     export default {
+        components: {
+            FormWizard,
+            TabContent
+        },
         methods: mapActions([
             'initPurchase'
         ]),
@@ -16,5 +28,44 @@
 </script>
 
 <style lang="sass">
-
+    .purchases
+        width: 100%
+        height: 100%
+        position: absolute
+        .vue-form-wizard
+            width: 100%
+            height: 100%
+            padding-bottom: 0
+            .wizard-header
+                display: none
+            .wizard-navigation
+                width: 100%
+                height: 100%
+                .wizard-progress-with-circle
+                    top: 35px
+                .wizard-icon-circle
+                    width: 60px
+                    height: 60px
+                .wizard-tab-content
+                    width: 100%
+                    height: calc(100% - 82px)
+                    padding: 0
+                    overflow: hidden
+                    .wizard-tab-container
+                        width: calc(100% - 20px)
+                        height: calc(100% - 20px)
+                        margin: 10px
+            .wizard-card-footer
+                width: 100%
+                height: 50px
+                position: absolute
+                bottom: 0
+                .wizard-btn
+                    width: 160px
+                    height: 40px
+                    border-radius: 0
+                    box-shadow: none
+                    border: none
+                    &:hover, &:focus
+                        background: #7c7bad
 </style>

+ 3 - 3
yarn.lock

@@ -4181,9 +4181,9 @@ void-elements@^2.0.1:
   version "2.0.1"
   resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
 
-vue-form-wizard@^0.6.1:
-  version "0.6.6"
-  resolved "https://registry.yarnpkg.com/vue-form-wizard/-/vue-form-wizard-0.6.6.tgz#baf2fc2b6285923037fabced5f5212c0573fab24"
+vue-form-wizard@^0.7.0:
+  version "0.7.0"
+  resolved "https://registry.yarnpkg.com/vue-form-wizard/-/vue-form-wizard-0.7.0.tgz#fcfbb2d7b430cb9e2642ba577cf5c192131aa80e"
 
 vue-hot-reload-api@^2.1.0:
   version "2.1.1"