Merge branch 'master' of https://github.com/Tencent/omi
This commit is contained in:
commit
7e2df1e27e
|
@ -1,7 +1,7 @@
|
|||
/** @jsx nativeEvents */
|
||||
import nativeEvents from 'jsx-native-events'
|
||||
import { useState } from 'react'
|
||||
import '@omim/core/icon-button'
|
||||
import 'omim/icon-button'
|
||||
|
||||
export default function SomeComponent(props) {
|
||||
const [result, setSwitch] = useState(false)
|
||||
|
@ -10,4 +10,4 @@ export default function SomeComponent(props) {
|
|||
<p>The switch is {result ? 'on' : 'off'}.</p>
|
||||
<m-icon-button color="red" icons="['favorite', 'favorite_border']" onEventChange={e => setSwitch(e.detail.isOn)}></m-icon-button>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import '@omim/core/icon-button'
|
||||
import 'omim/icon-button'
|
||||
|
||||
export default {
|
||||
name: 'HelloWorld',
|
||||
|
|
Loading…
Reference in New Issue