UNPKG

@fe6/water-pro

Version:

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

20 lines (15 loc) 437 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFormContext = createFormContext; exports.useFormContext = useFormContext; var _useContext = require("../../../_util/hooks/use-context"); /** @format */ var key = Symbol(); function createFormContext(context) { return (0, _useContext.createContext)(context, key); } function useFormContext() { return (0, _useContext.useContext)(key); }