|  |  |  | 
|---|
|  |  |  | import * as PIXI from 'pixi.js'; | 
|---|
|  |  |  | import moment from 'moment'; | 
|---|
|  |  |  | import Http from '@/utils/http'; | 
|---|
|  |  |  | import SubSpriteSettings from './subSettings'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const useStyles = createStyles(({ token, css }) => { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | const { styles } = useStyles(); | 
|---|
|  |  |  | const { curSprite } = props; | 
|---|
|  |  |  | const [form] = Form.useForm(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const [childrenDrawer, setChildrenDrawer] = useState(false); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | useEffect(() => { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Form.Item> | 
|---|
|  |  |  | <Form.Item> | 
|---|
|  |  |  | <Button> | 
|---|
|  |  |  | <Button | 
|---|
|  |  |  | onClick={() => { | 
|---|
|  |  |  | console.log(form.getFieldValue('x')); | 
|---|
|  |  |  | setChildrenDrawer(true); | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <FormattedMessage id='common.execute' defaultMessage='执行' /> | 
|---|
|  |  |  | </Button> | 
|---|
|  |  |  | <SubSpriteSettings | 
|---|
|  |  |  | open={childrenDrawer} | 
|---|
|  |  |  | onClose={() => { | 
|---|
|  |  |  | setChildrenDrawer(false) | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | refCurr={props.refCurr} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Form.Item> | 
|---|
|  |  |  | </Space.Compact> | 
|---|
|  |  |  | </Form.Item> | 
|---|