{"action":"created","issue":{"url":"https://api.github.com/repos/cipchk/delon/issues/136","repository_url":"https://api.github.com/repos/cipchk/delon","labels_url":"https://api.github.com/repos/cipchk/delon/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/cipchk/delon/issues/136/comments","events_url":"https://api.github.com/repos/cipchk/delon/issues/136/events","html_url":"https://github.com/cipchk/delon/issues/136","id":351030759,"node_id":"MDU6SXNzdWUzNTEwMzA3NTk=","number":136,"title":"\b建议simple-tabl 在自动去除 extraParams 的 null 值","user":{"login":"renfan","id":3666795,"node_id":"MDQ6VXNlcjM2NjY3OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/3666795?v=4","gravatar_id":"","url":"https://api.github.com/users/renfan","html_url":"https://github.com/renfan","followers_url":"https://api.github.com/users/renfan/followers","following_url":"https://api.github.com/users/renfan/following{/other_user}","gists_url":"https://api.github.com/users/renfan/gists{/gist_id}","starred_url":"https://api.github.com/users/renfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renfan/subscriptions","organizations_url":"https://api.github.com/users/renfan/orgs","repos_url":"https://api.github.com/users/renfan/repos","events_url":"https://api.github.com/users/renfan/events{/privacy}","received_events_url":"https://api.github.com/users/renfan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-16T02:16:09Z","updated_at":"2018-08-18T01:29:16Z","closed_at":"2018-08-18T01:29:16Z","author_association":"NONE","body":"- ng-alain version:1.3.1\r\n- Angular version: 6.1.0\r\n\r\n<img width=\"980\" alt=\"qq20180816-082918 2x\" src=\"https://user-images.githubusercontent.com/3666795/44180357-819e4180-a12e-11e8-9cbe-4308c6bad6b2.png\">\r\n这里我用的是nz-form如果重置后传参会包含null\r\n\r\n```\r\nlist?pi=1&ps=10&name=null&display_name=null\r\n```\r\n\r\n之前用的simple-form\r\n\r\n```\r\n <sf mode=\"search\" [schema]=\"searchSchema\" [formData]=\"params\" (formSubmit)=\"st.reset($event)\"\r\n      (formReset)=\"st.reset(params)\"></sf>\r\n```\r\n不会有这个问题。\r\n]\r\n目前我是这样处理的\r\n```\r\n//html的simple-table中把params改成getParams()\r\n[extraParams]=\"getParams()\"\r\n\r\n//这是getParams()函数\r\ngetParams() {\r\n    return pickBy(this.params, (v => !isNull(v)));\r\n  }\r\n```\r\n不知道能不能做个自动去除，或者已经有其他办法。"},"comment":{"url":"https://api.github.com/repos/cipchk/delon/issues/comments/414022927","html_url":"https://github.com/cipchk/delon/issues/136#issuecomment-414022927","issue_url":"https://api.github.com/repos/cipchk/delon/issues/136","id":414022927,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDAyMjkyNw==","user":{"login":"cipchk","id":2987467,"node_id":"MDQ6VXNlcjI5ODc0Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/2987467?v=4","gravatar_id":"","url":"https://api.github.com/users/cipchk","html_url":"https://github.com/cipchk","followers_url":"https://api.github.com/users/cipchk/followers","following_url":"https://api.github.com/users/cipchk/following{/other_user}","gists_url":"https://api.github.com/users/cipchk/gists{/gist_id}","starred_url":"https://api.github.com/users/cipchk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cipchk/subscriptions","organizations_url":"https://api.github.com/users/cipchk/orgs","repos_url":"https://api.github.com/users/cipchk/repos","events_url":"https://api.github.com/users/cipchk/events{/privacy}","received_events_url":"https://api.github.com/users/cipchk/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T01:29:16Z","updated_at":"2018-08-18T01:29:16Z","author_association":"OWNER","body":"其实 `_HttpClient` 支持对空值过滤的功能，但是 `simple-table` 并不会包含这种支持，建议从 HTTP 拦截器入手。"}}
{"actor":{"display_login":"cipchk"}}