Blame view

天文台pc/tianwentai-ui/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs 550 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  import { isControllingVariants, isVariantLabel } from 'motion-dom';
  
  function getCurrentTreeVariants(props, context) {
      if (isControllingVariants(props)) {
          const { initial, animate } = props;
          return {
              initial: initial === false || isVariantLabel(initial)
                  ? initial
                  : undefined,
              animate: isVariantLabel(animate) ? animate : undefined,
          };
      }
      return props.inherit !== false ? context : {};
  }
  
  export { getCurrentTreeVariants };
  //# sourceMappingURL=utils.mjs.map