ywana-core8 0.0.66 → 0.0.70
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/dist/index.cjs +37 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +14 -2
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +37 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +37 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.css +2 -1
- package/src/domain/TablePage.js +5 -3
- package/src/html/list.css +1 -2
- package/src/html/tab.js +1 -1
- package/src/widgets/avatar/Avatar.css +11 -0
- package/src/widgets/avatar/Avatar.js +24 -0
- package/src/widgets/index.js +2 -1
package/package.json
CHANGED
package/src/domain/TablePage.css
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -252,10 +252,13 @@ const TableEditor = (props) => {
|
|
252
252
|
}
|
253
253
|
|
254
254
|
table.columns.push({ id: "actions" })
|
255
|
-
|
255
|
+
const groupSize = groups[groupName].length
|
256
|
+
|
256
257
|
return (
|
257
258
|
<Fragment key={groupName}>
|
258
|
-
<Header title={groupName}
|
259
|
+
<Header title={groupName} >
|
260
|
+
<span className="size">{groupSize}</span>
|
261
|
+
</Header>
|
259
262
|
<DataTable {...table} onRowSelection={select} editable={editable} />
|
260
263
|
</Fragment>
|
261
264
|
)
|
@@ -373,7 +376,6 @@ const TableAPI = (url) => {
|
|
373
376
|
param = param.concat(`${key}=${item}&`)
|
374
377
|
return param
|
375
378
|
}, "")
|
376
|
-
console.log(param)
|
377
379
|
return query.concat(param)
|
378
380
|
} else {
|
379
381
|
return query.concat(`${key}=%${filters[key]}%&`)
|
package/src/html/list.css
CHANGED
package/src/html/tab.js
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import './Avatar.css'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Avatar
|
6
|
+
*/
|
7
|
+
export const Avatar = (props) => {
|
8
|
+
|
9
|
+
const { id, name, className, src, size="small", clickable=false, action} = props
|
10
|
+
|
11
|
+
function click() {
|
12
|
+
if (clickable) {
|
13
|
+
action(id)
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
const clickableStyle = clickable ? 'clickable' : ''
|
18
|
+
const style = `avatar ${size} ${clickableStyle} ${className}`
|
19
|
+
return (
|
20
|
+
<div className={style} onClick={click}>
|
21
|
+
{ src ? <img src={src} /> : <span>{name}</span>}
|
22
|
+
</div>
|
23
|
+
)
|
24
|
+
}
|
package/src/widgets/index.js
CHANGED