Sha256: 8c1a671a749168b129d4cb24eb38453ab97edf3dfb152c9a6382472d293b904c

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

<script>
import { ref, defineComponent } from 'vue'

export default defineComponent({
  name: 'HelloWorld',
  props: {
    msg: { type: String, required: true }
  },
  setup: () => {
    const count = ref(0)
    return { count }
  }
})
</script>

<style scoped>
a {
  color: #42b983;
}
</style>

<template>
  <h1 v-bind="$attrs">{{ msg }}</h1>
  <p>
    <a href="https://vitejs.dev/guide/features.html" target="_blank">Vite Documentation</a> |
    <a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
  </p>

  <p>
    Recommended setup:
    <a href="https://code.visualstudio.com/" target="_blank">VSCode</a>
    +
    <a
      href="https://marketplace.visualstudio.com/items?itemName=octref.vetur"
      target="_blank"
    >Vetur</a>
    +
    <a
      href="https://marketplace.visualstudio.com/items?itemName=znck.vue-language-features"
      target="_blank"
    >Vue DX</a>
  </p>
  <p>
    Make sure to use workspace version of TypeScript to get improved support via
    <a
      href="https://github.com/znck/vue-developer-experience"
      target="_blank"
    >@vuedx</a>.
    <br />Note @vuedx is still experimental and this setup is provided for early feedback.
  </p>
  <button name="Counter" @click="count++">count is: {{ count }}</button>
  <p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
</template>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vite_rails-1.0.2 lib/install/javascript/components/HelloWorld.vue