UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

15 lines (14 loc) 381 B
import { defineComponent, provide } from 'vue'; export var SizeContextProvider = defineComponent({ props: { size: String }, setup: function setup(props, _ref) { var slots = _ref.slots; provide('sizeProvider', props.size); return function () { var _a; return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots); }; } });