amotify 0.2.128 → 0.2.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import ReactDOMClient from 'react-dom/client'
2
2
  import * as ReactRouterDOM from 'react-router-dom'
3
3
  import React,{ StrictMode,useEffect,useState } from 'react'
4
4
 
5
- import $$ from 'jmini'
5
+ import $$,{ UUID } from 'jmini'
6
6
 
7
7
  import {
8
8
  Config,
@@ -30,6 +30,22 @@ import {
30
30
 
31
31
  let Test = () => {
32
32
  let [ val_open,set_open ] = useState( false )
33
+
34
+ let [ val_uuid,set_uuid ] = useState( UUID() )
35
+ useEffect( () => {
36
+ if ( !val_open ) return
37
+ $$.interval.once( () => {
38
+ set_uuid( UUID() )
39
+ },1000 )
40
+ },[ val_open ] )
41
+ Sheet.open( {
42
+ type: 'normal.middleCenter',
43
+ size: 'S',
44
+ content: <Sheet.Body>
45
+ AAA
46
+ </Sheet.Body>
47
+ } )
48
+
33
49
  return <Box>
34
50
  <Text.Paragraph>
35
51
  sheet: { String( val_open ) }
@@ -42,8 +58,17 @@ let Test = () => {
42
58
  Submit
43
59
  </Button.Prime>
44
60
  <Sheet.Element
61
+ type='custom'
62
+ isOpen={ val_open }
63
+ size='S'
64
+ >
65
+ Hello
66
+ </Sheet.Element>
67
+ <Sheet.Element
68
+ key={ val_uuid }
45
69
  sheetID='testSheet'
46
70
  type='normal.middleCenter'
71
+ size='S'
47
72
  isOpen={ val_open }
48
73
  openAfter={ () => {
49
74
  set_open( true )
@@ -68,7 +93,7 @@ let Test = () => {
68
93
  <FAI.Times />
69
94
  </Button.Sub>
70
95
  </Row.Separate>
71
- Helllo
96
+ { val_uuid }
72
97
  </Column>
73
98
  </Sheet.Body>
74
99
  </Sheet.Element>