jrs-react 1.2.47 → 1.2.49
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.
- package/Readme.txt +7 -0
- package/build/index.es.js +3295 -3287
- package/build/index.js +3295 -3287
- package/package.json +61 -61
- package/src/assets/icon/card.svg +14 -14
- package/src/assets/icon/copy.svg +14 -14
- package/src/assets/icon/minus.svg +13 -13
- package/src/assets/icon/square.svg +13 -13
- package/src/assets/icon/x.svg +14 -14
- package/src/components/JRFields/JRFields.jsx +1 -0
- package/src/components/JRFrame/Slider.jsx +8 -0
- package/src/components/JRSubmit.jsx +7 -8
- package/src/components/JRWindow/JRWindow.jsx +121 -107
- package/src/components/JRWindow/TitleBar.jsx +2 -4
- package/src/main.jsx +10 -10
|
@@ -199,8 +199,6 @@ export default class TitleBar extends React.Component{
|
|
|
199
199
|
window.removeEventListener('mousemove',this.preMove)
|
|
200
200
|
}
|
|
201
201
|
start(e){
|
|
202
|
-
po('start',this)
|
|
203
|
-
po('this.props.windowRef',this.props.windowRef)
|
|
204
202
|
e.preventDefault()
|
|
205
203
|
this.moved=false
|
|
206
204
|
this.pos3 = e.clientX
|
|
@@ -228,7 +226,7 @@ export default class TitleBar extends React.Component{
|
|
|
228
226
|
{/* <JRButton icon={<IconMinus />}/>
|
|
229
227
|
<JRButton icon={<IconSquare />}/> */}
|
|
230
228
|
{
|
|
231
|
-
this.props.
|
|
229
|
+
this.props.window.props.setOpen
|
|
232
230
|
?<JRButton icon={<IconX />}
|
|
233
231
|
className={'danger'}
|
|
234
232
|
onClick={(e)=>{
|
|
@@ -236,7 +234,7 @@ export default class TitleBar extends React.Component{
|
|
|
236
234
|
if(this.props.window.orgBodyOverflow!=null){
|
|
237
235
|
document.body.style.overflow=this.props.window.orgBodyOverflow
|
|
238
236
|
}
|
|
239
|
-
this.props.
|
|
237
|
+
this.props.window.props.setOpen(false)
|
|
240
238
|
}}
|
|
241
239
|
onMouseDown={(e)=>{
|
|
242
240
|
e.stopPropagation()
|
package/src/main.jsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StrictMode } from 'react'
|
|
2
|
-
import { createRoot } from 'react-dom/client'
|
|
3
|
-
import './app/index.css'
|
|
4
|
-
import App from './app/App.jsx'
|
|
5
|
-
import JRFields from './components/JRFields/JRFields.jsx'
|
|
6
|
-
import JRText from './components/JRInput/JRText.jsx'
|
|
7
|
-
|
|
8
|
-
const root = createRoot(document.getElementById('root'))
|
|
9
|
-
root.render(<App/>)
|
|
10
|
-
|
|
1
|
+
import { StrictMode } from 'react'
|
|
2
|
+
import { createRoot } from 'react-dom/client'
|
|
3
|
+
import './app/index.css'
|
|
4
|
+
import App from './app/App.jsx'
|
|
5
|
+
import JRFields from './components/JRFields/JRFields.jsx'
|
|
6
|
+
import JRText from './components/JRInput/JRText.jsx'
|
|
7
|
+
|
|
8
|
+
const root = createRoot(document.getElementById('root'))
|
|
9
|
+
root.render(<App/>)
|
|
10
|
+
|