@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
20 lines (18 loc) • 547 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useBaseProps;
exports.useProvideBaseSelectProps = useProvideBaseSelectProps;
var _vue = require("vue");
/**
* BaseSelect provide some parsed data into context.
* You can use this hooks to get them.
*/
const BaseSelectContextKey = Symbol('BaseSelectContextKey');
function useProvideBaseSelectProps(props) {
return (0, _vue.provide)(BaseSelectContextKey, props);
}
function useBaseProps() {
return (0, _vue.inject)(BaseSelectContextKey, {});
}
;