优化:修改撤回
This commit is contained in:
@@ -35,17 +35,17 @@ export const DataRangeFields: React.FC<DataRangeFieldsProps> = ({
|
||||
{!isMobile && <div className="ps-section-title">数据范围</div>}
|
||||
<div>
|
||||
{isMobile && <label className="mobile-field-label">范围</label>}
|
||||
{!isMobile && <label className="ps-field-label">范围</label>}
|
||||
{/* {!isMobile && <label className="ps-field-label">范围</label>} */}
|
||||
<select
|
||||
value={exportRange.mode}
|
||||
disabled={disabled}
|
||||
onChange={(e) => patchRange({ mode: e.target.value as ExportRangeConfig['mode'] })}
|
||||
className={isMobile ? 'mobile-field' : 'ps-field text-[11px]'}
|
||||
>
|
||||
<option value="all">全部标签</option>
|
||||
<option value="odd">仅限奇数序号的标签</option>
|
||||
<option value="even">仅限偶数序号的标签</option>
|
||||
<option value="custom">自定义序号</option>
|
||||
<option value="all">全部数据</option>
|
||||
<option value="odd">仅限奇数序号的行</option>
|
||||
<option value="even">仅限偶数序号的行</option>
|
||||
<option value="custom">自定义行序号</option>
|
||||
</select>
|
||||
</div>
|
||||
{exportRange.mode === 'custom' && (
|
||||
|
||||
@@ -130,7 +130,6 @@ export const ExportSidebar: React.FC<ExportSidebarProps> = ({
|
||||
</div>
|
||||
{hasData && (
|
||||
<>
|
||||
{dataRangeSection}
|
||||
<div>
|
||||
<VariableMappingPanel
|
||||
variant="ps"
|
||||
@@ -141,6 +140,7 @@ export const ExportSidebar: React.FC<ExportSidebarProps> = ({
|
||||
variableDefaults={template.variableDefaults}
|
||||
/>
|
||||
</div>
|
||||
{dataRangeSection}
|
||||
{applyDataSection}
|
||||
</>
|
||||
)}
|
||||
@@ -169,7 +169,6 @@ export const ExportSidebar: React.FC<ExportSidebarProps> = ({
|
||||
/>
|
||||
{hasData && (
|
||||
<>
|
||||
{dataRangeSection}
|
||||
<VariableMappingPanel
|
||||
variant="ps"
|
||||
variables={templateVariables}
|
||||
@@ -178,6 +177,7 @@ export const ExportSidebar: React.FC<ExportSidebarProps> = ({
|
||||
onChangeMapping={onChangeMapping}
|
||||
variableDefaults={template.variableDefaults}
|
||||
/>
|
||||
{dataRangeSection}
|
||||
{applyDataSection}
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user