SHARE
TWEET

Untitled

a guest Mar 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Fieldtype = {
  2.   mixins: [window.Storyblok.plugin],
  3.   data() {
  4.     return {
  5.       ich_bin_eine_state_variable_die_nicht_im_model_beinhaltet_ist: true,
  6.       ich_darf_nicht_model_heissen: true
  7.     }
  8.   },
  9.   template: `<div>
  10.      <input class="uk-width-1-1" v-model="model.example" />
  11.      {{ich_bin_eine_state_variable_die_nicht_im_model_beinhaltet_ist}}
  12.      {{ich_darf_nicht_model_heissen}}
  13.   </div>`,
  14.   methods: {
  15.     initWith() {
  16.       return {
  17.         plugin: 'example_plugin',
  18.         example: 'Hello world!'
  19.       }
  20.     },
  21.     pluginCreated() {
  22.       console.log('plugin:created')
  23.     }
  24.   },
  25.   watch: {
  26.     'model': {
  27.       handler: function (value) {
  28.         this.$emit('changed-model', value);
  29.       },
  30.       deep: true
  31.     }
  32.   }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top