Advertisement
claukiller

Untitled

Mar 3rd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. <template>
  2. <div>
  3. <div>
  4. <div style="margin-top: 100px; margin-left: 50px;">
  5. <pb-checkbox color="red" :disabled="true" label="holaa"></pb-checkbox>
  6. <pb-checkbox style="margin-top: 20px;" color="yellow" label="holaa" labelPosition="left"
  7. true-value="1" false-value="0"></pb-checkbox>
  8. <pb-checkbox style="margin-top: 20px;" color="blue" label="hola"></pb-checkbox>
  9. <pb-checkbox v-model="checkboxValue"
  10. style="margin-top: 20px;"
  11. color="red"
  12. label="hola"
  13. labelPosition="left"
  14. :value="true"></pb-checkbox>
  15. </div>
  16. <div style="display:flex; align-items: center; padding: 20px;">
  17. <pb-button color="yellow">un boton</pb-button>
  18. <pb-button color="red" icon="search" icon-position="right" tooltip="hola" tooltip-position="bottom" @click="changeLoading()">un
  19. boton
  20. </pb-button>
  21. <pb-button color="blue" icon="search" type="void" tooltip="hola" tooltip-position="bottom">un boton</pb-button>
  22. <pb-button color="blue-light" icon="search" type="borderless" tooltip="hola" tooltip-position="bottom">un boton</pb-button>
  23. <pb-button color="purple" :loading="loading">un boton</pb-button>
  24. <pb-button color="red" :loading="loading">un boton</pb-button>
  25. <pb-button color="orange" :loading="loading">un boton</pb-button>
  26. <pb-button color="yellow" :loading="loading">un boton</pb-button>
  27. <pb-button color="green" :loading="loading">un boton</pb-button>
  28. <pb-button color="purple" :loading="loading">un boton</pb-button>
  29. <pb-button color="secondary" :loading="loading">un boton</pb-button>
  30. <pb-button color="blue" :loading="loading">un boton</pb-button>
  31. <pb-button color="blue-light" :loading="loading">un boton</pb-button>
  32. </div>
  33. <div style="display:flex; align-items: center; padding: 20px;">
  34. <pb-input placeholder="hola" v-model="pruebaModel" color="purple"/>
  35. </div>
  36. <div style="display:flex; align-items: center; padding: 20px;">
  37. <pb-input :disabled="true" type="password" label="Disabled" placeholder="hola" v-model="pruebaModel" color="red"/>
  38. </div>
  39. <div style="display:flex; align-items: center; padding: 20px;">
  40. <pb-input v-model="pruebaModel" label="Label:" size="small" icon="search" color="blue-light" placeholder="hola"/>
  41. </div>
  42. <div style="display:flex; align-items: center; padding: 20px;">
  43. <pb-input v-model="pruebaModel"
  44. label="Label:"
  45. help="longitud menos de 12"
  46. :invalid="invalid"
  47. :error="error"
  48. icon="dimension-user"
  49. icon-position="left"
  50. placeholder="hola"
  51. color="green"/>
  52. </div>
  53. <div style="display:flex; align-items: center; flex-direction:column; padding: 20px;">
  54. <pb-link href="hola" style="margin-bottom: 10px" :underlined="true">next</pb-link>
  55. <pb-link href="http://www.google.com" icon-position="left" icon="right-arrow" icon-size="big">next</pb-link>
  56. </div>
  57. <div style="display:flex; align-items: center; flex-direction:column; padding: 20px;">
  58. <pb-progress-bar color="blue-light" :progress="25" style="margin-bottom: 10px" :underlined="true"/>
  59. <pb-progress-bar color="yellow" :rounded="true" type="infinite" style="margin-bottom: 10px" :underlined="true"/>
  60. <pb-progress-bar color="green" :progress="50" style="margin-bottom: 10px" :underlined="true"/>
  61. <pb-progress-bar color="green" type="forwards" style="margin-bottom: 10px" :underlined="true"/>
  62. </div>
  63. <div style="display:flex; align-items: center; flex-direction:column; padding: 20px;">
  64. <pb-switch style="margin-top: 20px;" v-model="switchValue" color="yellow" label="holaa" labelPosition="left"
  65. true-value="1" false-value="0">
  66. </pb-switch>
  67. </div>
  68. </div>
  69. </div>
  70. </template>
  71.  
  72. <script lang="ts">
  73. import PbButton from './components/button.component.vue';
  74. import PbCheckbox from './components/checkbox.component.vue';
  75. import PbLink from './components/link.component.vue';
  76. import PbProgressBar from './components/progress-bar.component.vue';
  77. import PbSwitch from './components/switch.component.vue';
  78. import PbInput from './components/textbox.component.vue';
  79.  
  80. export default {
  81. name: 'app',
  82. components: {
  83. PbButton,
  84. PbInput,
  85. PbLink,
  86. PbProgressBar,
  87. PbCheckbox,
  88. PbSwitch
  89. },
  90. data: function () {
  91. return {
  92. loading: false,
  93. pruebaModel: '',
  94. error: '',
  95. checkboxValue: false,
  96. switchValue: false,
  97. invalid: false
  98. };
  99. },
  100. methods: {
  101. changeLoading() {
  102. this.loading = !this.loading;
  103. }
  104. },
  105. watch: {
  106. pruebaModel: function (val) {
  107. if (val.length > 12) {
  108. this.error = 'too long';
  109. this.invalid = true;
  110. } else {
  111. this.invalid = false;
  112. }
  113. }
  114. }
  115. };
  116. </script>
  117.  
  118. <style lang="scss">
  119. @import 'assets/sass/reset';
  120. @import 'assets/sass/resources';
  121. @import 'assets/sass/default';
  122. @import 'assets/sass/scroll';
  123. @import 'assets/sass/styles';
  124.  
  125. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement