-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathvModelComboBox.js
More file actions
21 lines (21 loc) · 735 Bytes
/
vModelComboBox.js
File metadata and controls
21 lines (21 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.vModelComboBox = void 0;
exports.vModelComboBox = {
beforeMount: (el, { value }, vnode) => {
el.setCurrentIndex(value);
// eslint-disable-next-line no-param-reassign, no-underscore-dangle
el._assign = vnode.props['onUpdate:modelValue'];
el.addEventListener('currentIndexChanged', (indexValue) => {
// eslint-disable-next-line no-underscore-dangle
el._assign(indexValue);
});
},
beforeUpdate: (el, { value, oldValue }) => {
if (value === oldValue) {
return;
}
el.setCurrentIndex(value);
},
};
//# sourceMappingURL=vModelComboBox.js.map