feat(react): js to ts (#733)

This commit is contained in:
Kagol 2023-11-04 20:04:25 -07:00 committed by GitHub
parent bceb187ba1
commit 8558864f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
import { useRef, useEffect, useState } from 'react'
import { compWhiteList } from './virtual-comp.jsx'
import { compWhiteList } from './virtual-comp'
function getFiberByDom(dom) {
const key = Object.keys(dom).find((key) => {

View File

@ -1,8 +1,8 @@
import { useEffect } from 'react'
import { Svg } from './svg-render.jsx'
import { Svg } from './svg-render'
import { generateVueHooks } from './vue-hooks.js'
import { emit, on, off, once, emitEvent } from './event.js'
import { If, Component, Slot, For, Transition } from './virtual-comp.jsx'
import { If, Component, Slot, For, Transition } from './virtual-comp'
import { filterAttrs, vc, getElementCssClass, eventBus } from './utils.js'
import { useFiber } from './fiber.js'
import { useVm } from './vm.js'

View File

@ -1,5 +1,5 @@
import classNames from 'classnames'
import { If } from './virtual-comp.jsx'
import { If } from './virtual-comp'
export const Svg = ({ name = 'Icon', component: Icon }) => {
const funcObj = ({

View File

@ -1,6 +1,6 @@
import pc from './pc.jsx'
import mobile from './mobile.jsx'
import mobileFirst from './mobile-first.jsx'
import pc from './pc'
import mobile from './mobile'
import mobileFirst from './mobile-first'
export default function (props) {
const {

View File

@ -1,5 +1,5 @@
import pc from './pc.jsx'
import mobile from './mobile.jsx'
import pc from './pc'
import mobile from './mobile'
export default function (props) {
const {

View File

@ -1,6 +1,6 @@
import pc from './pc.jsx'
import mobile from './mobile.jsx'
import mobileFirst from './mobile-first.jsx'
import pc from './pc'
import mobile from './mobile'
import mobileFirst from './mobile-first'
export default function (props) {
const {

View File

@ -2,7 +2,7 @@
"name": "@opentiny/react-switch",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

View File

@ -1,4 +1,4 @@
import pc from './pc.jsx'
import pc from './pc'
const $constants = {
PC_PREFIXCLS: 'tiny-switch',