diff --git a/src/packages/skeleton/demos/h5/demo5.tsx b/src/packages/skeleton/demos/h5/demo5.tsx index d007ed1bfd..a0930586c3 100644 --- a/src/packages/skeleton/demos/h5/demo5.tsx +++ b/src/packages/skeleton/demos/h5/demo5.tsx @@ -14,7 +14,7 @@ const Demo5 = () => {
changeStatus(value, event)} - style={{ display: 'flex', marginBottom: '8px' }} + style={{ marginBottom: '8px' }} />
diff --git a/src/packages/skeleton/demos/taro/demo5.tsx b/src/packages/skeleton/demos/taro/demo5.tsx index 1bd665c329..7cf397d389 100644 --- a/src/packages/skeleton/demos/taro/demo5.tsx +++ b/src/packages/skeleton/demos/taro/demo5.tsx @@ -1,7 +1,6 @@ import { Avatar, Skeleton, Switch } from '@nutui/nutui-react-taro' import React, { useState } from 'react' import { View, Text } from '@tarojs/components' -import pxTransform from '@/utils/px-transform' const Demo5 = () => { const [checked, setChecked] = useState(false) @@ -14,10 +13,17 @@ const Demo5 = () => { } return ( - changeStatus(value, event)} - style={{ display: 'flex', marginBottom: pxTransform(8) }} - /> + + changeStatus(value, event)} + style={{ marginBottom: 8 }} + /> +