feat: dynamic switching components

This commit is contained in:
Qiuxia Fan
2022-01-04 22:29:35 +08:00
parent 731aded68b
commit b9a6e648ae
6 changed files with 116 additions and 88 deletions

View File

@@ -14,11 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ElLoading, ILoadingInstance } from "element-plus";
import { ElLoading } from "element-plus";
type Props = { text?: string; fullscreen?: boolean };
export default function (): {
loading: (props: Props) => ILoadingInstance;
loading: (props: Props) => any;
} {
const loading = (props: Props) => {
const loadingInstance = ElLoading.service(props);