@cainiaofe/cn-ui-m
Version:
15 lines (14 loc) • 852 B
JavaScript
import { __assign } from "tslib";
import './styles/index.scss';
import React from 'react';
import { CnEmployeeSelect as UICnEmployeeSelect } from './employee-select';
import { HocBaseComponents, useCreatePluginInstance } from "../../utils/plugin";
export var CnEmployeeSelect = React.forwardRef(function (props, ref) {
var _a;
var pluginIns = useCreatePluginInstance('CnEmployeeSelect', props === null || props === void 0 ? void 0 : props.usePlugin);
var plugins = ((_a = pluginIns === null || pluginIns === void 0 ? void 0 : pluginIns.getPlugin) === null || _a === void 0 ? void 0 : _a.call(pluginIns)) || [];
if (plugins.length === 0) {
return React.createElement(UICnEmployeeSelect, __assign({}, props, { ref: ref }));
}
return HocBaseComponents(UICnEmployeeSelect, { props: props, plugins: plugins, ref: ref });
});