ywana-core8 0.0.141 → 0.0.145
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +1 -1
- package/src/html/textfield.js +2 -1
package/package.json
CHANGED
package/src/html/table.js
CHANGED
@@ -175,7 +175,7 @@ const BooleanCellViewer = ({ id, value = false }) => {
|
|
175
175
|
const StringCellViewer = ({ id, value, options }) => {
|
176
176
|
const option = options ? options.find(o => o.value === value) : null
|
177
177
|
const text = option ? option.label : value
|
178
|
-
return (<div className="field-editor string-
|
178
|
+
return (<div className="field-editor string-viewer">{text}</div>)
|
179
179
|
}
|
180
180
|
|
181
181
|
/**
|
package/src/html/textfield.js
CHANGED
@@ -99,7 +99,8 @@ export const DropDown = (props) => {
|
|
99
99
|
const canShow = open == true && Array.isArray(options)
|
100
100
|
if (canShow) {
|
101
101
|
const filterActive = canFilter && label && label.length > 0
|
102
|
-
const items = filterActive ? options.filter(option =>
|
102
|
+
const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
|
103
|
+
console.log('filterActive: ',filterActive, label, items.length)
|
103
104
|
const lis = items.map(option => <li key={option.value} value={option.value}>{option.label}</li>)
|
104
105
|
return <menu><ul onClick={select}>{lis}</ul></menu>
|
105
106
|
} else {
|