forked from opentiny/tiny-vue
feat(react): js to ts (#733)
This commit is contained in:
parent
bceb187ba1
commit
8558864f97
|
@ -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) => {
|
|
@ -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'
|
||||
|
|
|
@ -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 = ({
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import pc from './pc.jsx'
|
||||
import pc from './pc'
|
||||
|
||||
const $constants = {
|
||||
PC_PREFIXCLS: 'tiny-switch',
|
||||
|
|
Loading…
Reference in New Issue