Merge pull request #1549 from dataease/pr@dev@fix_动态时间失效

fix: 动态时间组件无效
This commit is contained in:
fit2cloud-chenyw 2021-12-29 11:53:31 +08:00 committed by GitHub
commit a58363b166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ export default {
created() {
this.refId = uuid.v1
if (this.element && this.element.propValue && this.element.propValue.viewId) {
const hasFilter = this.componentData.filter(item => item.type === 'custom').some(item => item.options.value)
const hasFilter = this.componentData.filter(item => item.type === 'custom').some(item => item.options.value || (item.options.attrs && item.options.attrs.default && item.options.attrs.default.isDynamic))
hasFilter || this.getData(this.element.propValue.viewId, false)
}
},