Every line of '@click vue' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
106 createVue(id, componentName, component, data) { 107 this.registerComponent({ 108 ids: [id], 109 name: componentName, 110 instance: new Vue({ 111 el: id, 112 data: { initData: data, isReady: true }, 113 components: { [componentName]: window[component] }, 114 mixins: [this.vueMixins], 115 }), 116 isLoaded: true, 117 }); 118 }
10 function install(Vue, options) { 11 Vue.component("uib-pagination", { 12 data, 13 props, 14 watch, 15 methods, 16 template, 17 computed, 18 directives 19 }); 20 }
3 export function install(Vue, options) { 4 options = options || {} 5 6 Vue.component('medium', { 7 template: '<div></div>', 8 9 props: ['value'], 10 11 data: () => ({ 12 localValue: '', 13 }), 14 15 mounted: function() { 16 this.localValue = this.value 17 18 new MediumEditor(this.$el, Object.assign({ 19 placeholder: { 20 text: this.value ? '' : 'Type your text', 21 }, 22 }, options)) 23 }, 24 25 methods: { 26 updateValue: function(event) { 27 this.$emit('input', event.target.innerHTML) 28 }, 29 }, 30 }) 31 }
8 function Vue (options) { 9 if (process.env.NODE_ENV !== 'production' && 10 !(this instanceof Vue) 11 ) { 12 warn('Vue is a constructor and should be called with the `new` keyword') 13 } 14 this._init(options) 15 }
45 return function install(Vue, data) { 46 var store = new Vue(Store); 47 48 store.data = data; 49 50 Object.defineProperties(Vue.prototype, { 51 $store: { 52 get () { 53 store.__ctx = this; 54 55 return store; 56 } 57 } 58 }); 59 }
4 function createVue(el, vueComponent, vueProps) { 5 const nodeEl = document.createElement('div'); 6 el.appendChild(nodeEl); 7 const app = Object.assign(new Vue(vueComponent), vueProps); 8 app.$mount(nodeEl); 9 return app; 10 }
7 export function install(Vue) { 8 if (install.installed) return; 9 install.installed = true; 10 11 Vue.component("VueEditor", VueEditor); 12 }
5 function install(Vue, opts = {}) { 6 Vue.component(opts.portalName || 'portal', Portal) 7 Vue.component(opts.portalTargetName || 'portalTarget', PortalTarget) 8 }
91 function install(Vue) { 92 Vue.component('resize-observer', ResizeObserver); 93 Vue.component('ResizeObserver', ResizeObserver); 94 }
4 export function install (Vue) { 5 Vue.component('test', Test) 6 /* -- Add more components here -- */ 7 }