mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-18 20:34:19 +08:00
(feature)(webapp) use nativeQuery field to determine whether it is a selection (#222)
This commit is contained in:
@@ -150,7 +150,6 @@ const FilterItem: React.FC<Props> = ({
|
||||
onChange={onChange}
|
||||
mode={isArray(filter.value) ? 'multiple' : undefined}
|
||||
showSearch
|
||||
// allowClear
|
||||
/>
|
||||
) : entityAlias &&
|
||||
['歌曲', '艺人'].includes(entityAlias) &&
|
||||
|
||||
@@ -78,7 +78,6 @@ const ParseTip: React.FC<Props> = ({
|
||||
queryMode,
|
||||
properties,
|
||||
entity,
|
||||
// entityInfo,
|
||||
elementMatches,
|
||||
nativeQuery,
|
||||
} = currentParseInfo || {};
|
||||
@@ -198,7 +197,7 @@ const ParseTip: React.FC<Props> = ({
|
||||
<div className={`${prefixCls}-tip-item-filter-content`}>
|
||||
<div className={`${prefixCls}-tip-item-option`}>
|
||||
<span className={`${prefixCls}-tip-item-filter-name`}>数据时间:</span>
|
||||
{dimensions?.some(item => item.bizName?.includes('_id')) ? (
|
||||
{nativeQuery ? (
|
||||
<span className={itemValueClass}>
|
||||
{startDate === endDate ? startDate : `${startDate} ~ ${endDate}`}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user