Sha256: b2d70445aefed0a3df91dfa9443e82e02aa5b3badd76789febed8b66c075c76f
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
run "yarn add vue-js-modal" say "Inserted vue-js-modal example into component" insert_into_file "#{PACKS_PATH}/#{name}.js" , "import VModal from 'vue-js-modal'\n", after: "import Vue from 'vue'\n" insert_into_file "#{PACKS_PATH}/#{name}.js", "Vue.use(VModal)\n", before: "document.addEventListener" modal = <<-eos <button @click="onClick">click this</button> <modal name="hello-world"> <div style="padding: 30px;"> {{ message }} </div> <v-dialog/> </modal> eos insert_into_file "#{PARTS_PATH}/#{name}.vue", modal, after: "<p>{{ message }}</p>\n" insert_into_file "#{PARTS_PATH}/#{name}.vue", " this.$modal.show('hello-world');\n", after: "console.log(\"clicked\")\n"
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vueonrails-0.1.0 | lib/generators/options/modal.rb |
vuejs-1.1.0.beta9 | lib/generators/options/modal.rb |