File tree Expand file tree Collapse file tree
packages/nutui-taro-demo/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Component } from 'react'
2- import { initScaleF } from '@/utils/scale-f.taro '
2+ import { initScaleF } from '@/utils/scale-f'
33import ( '@/sites/assets/styles/reset.scss' )
44import ( '@/packages/nutui.react.scss.taro' )
55import ( '@nutui/touch-emulator' )
@@ -12,7 +12,7 @@ class App extends Component {
1212
1313 componentDidMount ( ) {
1414 // 写入 :root 的 --nut-scale-f / --nut-scale-font / --nut-scale-icon,与组件内 scale-* 一致
15- this . disposeScale = initScaleF ( )
15+ this . disposeScale = initScaleF ( 'elderly' )
1616 }
1717
1818 componentWillUnmount ( ) {
Original file line number Diff line number Diff line change 4949 position : absolute ;
5050 top : $popup-title-padding ;
5151 right : $popup-title-padding ;
52-
52+ display : flex ;
53+ align-items : center ;
54+ justify-content : center ;
5355 z-index : 1 ;
5456 width : $popup-icon-size ;
5557 height : $popup-icon-size ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export * from './taro/px-transform'
2626export * from './raf'
2727export * from './render'
2828export * from './rubberband'
29- export * from './scale-f.taro '
29+ export * from './scale-f'
3030export * from './sleep'
3131export * from './supports-passive'
3232export * from './to-array'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11/**
22 * 响应式缩放系数(--nut-scale-f):结合京东站内原生桥与站外视口规则,
3- * 写入根节点 CSS 变量,供布局/字号/icon 等按比例换算(见 calcByProfile)。
3+ * 写入根节点 CSS 变量(--nut-scale-f / --nut-scale-font / --nut-scale-icon),
4+ * 供布局/字号/icon 等按比例换算(见 calcByProfile)。H5 与 Taro WebView 共用此实现。
45 */
56import { canUseDom } from './can-use-dom'
67
You can’t perform that action at this time.
0 commit comments