Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Fieldtype = {
- mixins: [window.Storyblok.plugin],
- data() {
- return {
- ich_bin_eine_state_variable_die_nicht_im_model_beinhaltet_ist: true,
- ich_darf_nicht_model_heissen: true
- }
- },
- template: `<div>
- <input class="uk-width-1-1" v-model="model.example" />
- {{ich_bin_eine_state_variable_die_nicht_im_model_beinhaltet_ist}}
- {{ich_darf_nicht_model_heissen}}
- </div>`,
- methods: {
- initWith() {
- return {
- plugin: 'example_plugin',
- example: 'Hello world!'
- }
- },
- pluginCreated() {
- console.log('plugin:created')
- }
- },
- watch: {
- 'model': {
- handler: function (value) {
- this.$emit('changed-model', value);
- },
- deep: true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement