MCPcopy Index your code
hub / github.com/TruthHun/BookStack / transformModel

Function transformModel

static/vuejs/vue.runtime.esm.js:3247–3256  ·  view source on GitHub ↗
(options, data)

Source from the content-addressed store, hash-verified

3245// transform component v-model info (value and callback) into
3246// prop and event handler respectively.
3247function transformModel (options, data) {
3248 var prop = (options.model && options.model.prop) || 'value';
3249 var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;
3250 var on = data.on || (data.on = {});
3251 if (on[event]) {
3252 on[event] = [data.model.callback].concat(on[event]);
3253 } else {
3254 on[event] = data.model.callback;
3255 }
3256}
3257
3258/* */
3259

Callers 1

createComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected