修复表格Filter激活状态显示bug,补充本地发布命令及编译依赖
This commit is contained in:
parent
e83920f8bb
commit
298991253c
|
@ -10,6 +10,7 @@
|
||||||
"stop": "fis3 server stop",
|
"stop": "fis3 server stop",
|
||||||
"dev": "fis3 release -cwd ./public",
|
"dev": "fis3 release -cwd ./public",
|
||||||
"publish2npm": "sh publish.sh && npm publish",
|
"publish2npm": "sh publish.sh && npm publish",
|
||||||
|
"publish": "sh publish.sh",
|
||||||
"prettier": "prettier --write '{src,examples,scss}/**/*.{tsx,ts,jsx,scss}'"
|
"prettier": "prettier --write '{src,examples,scss}/**/*.{tsx,ts,jsx,scss}'"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -119,6 +120,7 @@
|
||||||
"fis3-deploy-skip-packed": "0.0.5",
|
"fis3-deploy-skip-packed": "0.0.5",
|
||||||
"fis3-hook-commonjs": "^0.1.31",
|
"fis3-hook-commonjs": "^0.1.31",
|
||||||
"fis3-hook-node_modules": "^2.3.1",
|
"fis3-hook-node_modules": "^2.3.1",
|
||||||
|
"fis3-hook-relative": "^2.0.3",
|
||||||
"fis3-packager-deps-pack": "^0.1.2",
|
"fis3-packager-deps-pack": "^0.1.2",
|
||||||
"fis3-parser-typescript": "^1.3.0",
|
"fis3-parser-typescript": "^1.3.0",
|
||||||
"fis3-postpackager-loader": "^2.1.11",
|
"fis3-postpackager-loader": "^2.1.11",
|
||||||
|
|
|
@ -2510,7 +2510,8 @@ export class HeadCellFilterDropDown extends React.Component<
|
||||||
|
|
||||||
alterOptions(options: Array<any>) {
|
alterOptions(options: Array<any>) {
|
||||||
const {data, filterable, name} = this.props;
|
const {data, filterable, name} = this.props;
|
||||||
const filterValue = (data && data[name]) || '';
|
const filterValue =
|
||||||
|
data && typeof data[name] !== 'undefined' ? data[name] : '';
|
||||||
|
|
||||||
if (filterable.multiple) {
|
if (filterable.multiple) {
|
||||||
options = options.map(option => ({
|
options = options.map(option => ({
|
||||||
|
@ -2591,7 +2592,7 @@ export class HeadCellFilterDropDown extends React.Component<
|
||||||
<span
|
<span
|
||||||
className={cx(
|
className={cx(
|
||||||
`${ns}TableCell-filterBtn`,
|
`${ns}TableCell-filterBtn`,
|
||||||
data[name] ? 'is-active' : ''
|
typeof data[name] !== 'undefined' ? 'is-active' : ''
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span onClick={this.open}>
|
<span onClick={this.open}>
|
||||||
|
|
Loading…
Reference in New Issue