element-plus
Version:
A Component Library for Vue 3
25 lines (20 loc) • 562 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
require('../../select/index.js');
var token = require('../../select/src/token.js');
var CacheOptions = vue.defineComponent({
props: {
data: {
type: Array,
default: () => []
}
},
setup(props) {
const select = vue.inject(token.selectKey);
props.data.forEach((item) => select.cachedOptions.set(item.value, item));
return () => void 0;
}
});
exports["default"] = CacheOptions;
//# sourceMappingURL=cache-options.js.map