MCPcopy
hub / github.com/bugy/script-server / wrapVModel

Function wrapVModel

web-src/tests/unit/test_utils.js:26–31  ·  view source on GitHub ↗
(inputComponent)

Source from the content-addressed store, hash-verified

24}
25
26export function wrapVModel(inputComponent) {
27 inputComponent.vm.$on('input', function (value) {
28 inputComponent.setProps({value});
29 });
30 inputComponent.vm.$on('error', error => inputComponent.currentError = error);
31}
32
33export function setDeepProp(wrapper, key, value) {
34 const keys = key.split('.');

Callers 5

textfield_test.jsFile · 0.90
combobox_test.jsFile · 0.90
TextArea_test.jsFile · 0.90
ChipList_test.jsFile · 0.90
TimePicker_test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected