autocomplete.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet">
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8. <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  9. <script src="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.js"></script>
  10. <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet">
  11. <script>
  12. (window.__goplaidVueComponentRegisters =
  13. window.__goplaidVueComponentRegisters || []).push(function(Vue, vueOptions) {
  14. var vuetify = new Vuetify({
  15. icons: {
  16. iconfont: 'md', // 'mdi' || 'mdiSvg' || 'md' || 'fa' || 'fa4'
  17. },
  18. theme: {
  19. themes: {
  20. light: {
  21. primary: "#673ab7",
  22. secondary: "#009688",
  23. accent: "#ff5722",
  24. error: "#f44336",
  25. warning: "#ff9800",
  26. info: "#8bc34a",
  27. success: "#4caf50"
  28. },
  29. },
  30. },
  31. });
  32. Vue.use(Vuetify);
  33. vueOptions.vuetify = vuetify;
  34. });
  35. </script>
  36. <title>vuetify demo</title>
  37. </head>
  38. <body>
  39. <script>
  40. window.__serverSideData__ = {
  41. states: {
  42. Name2: ["react", "jquery"],
  43. }
  44. }
  45. </script>
  46. <div id="app">
  47. <v-app>
  48. <v-content>
  49. <v-progress-linear
  50. :active="isFetching"
  51. indeterminate
  52. fixed
  53. height="2"
  54. ></v-progress-linear>
  55. <v-container>
  56. <h2>Multiple Remote</h2>
  57. <vx-autocomplete
  58. field-name="Name1"
  59. item-value="symbol"
  60. item-text="name"
  61. :multiple="true"
  62. :items-event-func-id='{"id": "getCoins"}'
  63. :selected-items='[{"symbol": "BTC", "name": "BitCoin"}, {"symbol": "ETH", "name": "Ethereum"}]'
  64. label="Multiple Remote"
  65. ></vx-autocomplete>
  66. <h2>Multiple</h2>
  67. <vx-autocomplete
  68. :multiple="true"
  69. :items='[{"Login":"sam","Name":"Sam"},{"Login":"john","Name":"John"},{"Login":"charles","Name":"Charles"}]'
  70. :selected-items='[{"Login":"sam","Name":"Sam"},{"Login":"charles","Name":"Charles"}]'
  71. field-name='Name3'
  72. item-text='Name'
  73. item-value='Login'
  74. label="Multiple"
  75. ></vx-autocomplete>
  76. <h2>Single Remote</h2>
  77. <vx-autocomplete
  78. field-name="Name2"
  79. item-value="symbol"
  80. item-text="name"
  81. :items-event-func-id='{"id": "getCoins"}'
  82. :items='[{"symbol": "BTC", "name": "Bitcoin"}]'
  83. :selected-items='[{"symbol": "BTC", "name": "Bitcoin"}]'
  84. label="Single Remote"
  85. ></vx-autocomplete>
  86. <h2>Single</h2>
  87. <vx-autocomplete
  88. field-name="Name2"
  89. :items='[{"text":"Vue","value":"vue"},{"text":"React","value":"react"},{"text":"Angular","value":"angular"},{"text":"Amber","value":"amber"},{"text":"jQuery","value":"jquery"}]'
  90. :selected-items='[{"text":"Angular","value":"angular"}]'
  91. label="Single"
  92. ></vx-autocomplete>
  93. <button @click='$plaid().event($event).eventFunc("a").go()'>SEND</button>
  94. </v-container>
  95. </v-content>
  96. </v-app>
  97. </div>
  98. <script src="http://localhost:3080/js/chunk-vendors.js"></script>
  99. <script src="http://localhost:3080/js/app.js"></script>
  100. <script src="http://localhost:3100/js/chunk-vendors.js"></script>
  101. <script src="http://localhost:3100/js/app.js"></script>
  102. </body>
  103. </html>