fix(ai-pick): 不足3条时表格高度自适应,去掉固定height约束

This commit is contained in:
clz
2026-07-28 12:19:26 +08:00
parent d25d18d029
commit 59999031eb
2 changed files with 6 additions and 15 deletions
+6 -13
View File
@@ -40,32 +40,29 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [
}, },
}, },
// ── Tab 2系统周期策略(type = 'system_period'────────────────── // ── Tab 2只有1条数据的系统策略 ──────────────────
{ {
type: 'system_period', type: 'system_period',
system_strategy: { system_strategy: {
system_strategy: { system_strategy: {
id: 'strat_002', id: 'strat_002',
strategy_name: '黑色系超跌反弹', strategy_name: '黑色系超跌反弹',
content: '铁矿石、螺纹钢跌幅已达技术支撑位,RSI 超卖信号显现', content: '铁矿石跌幅已达技术支撑位,RSI 超卖信号显现',
strategy_type: 'system_period', strategy_type: 'system_period',
tag_list: ['反弹', '黑色系', '超卖'], tag_list: ['反弹', '黑色系', '超卖'],
white_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828556_3492.png', white_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828556_3492.png',
black_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828547_6904.png', black_img: 'https://s.thsi.cn/js/m/upload/yyzt/1721828547_6904.png',
}, },
detail_count: 3, detail_count: 1,
detail_list: [ detail_list: [
{ contract: 'RB2510', market: '70', contract_name: '螺纹钢2510', main_contract_type: '1' }, { contract: 'RB2510', market: '70', contract_name: '螺纹钢2510', main_contract_type: '1' },
{ contract: 'I2509', market: '70', contract_name: '铁矿石2509', main_contract_type: '1' },
{ contract: 'HC2510', market: '70', contract_name: '热卷2510', main_contract_type: '0' },
], ],
// 系统策略无自定义 DOUBLE 字段
field_list: [], field_list: [],
origin_result_list: [], origin_result_list: [],
}, },
}, },
// ── Tab 3自定义策略(type = 'custom_strategy'────────────────── // ── Tab 3只有2条数据的自定义策略 ──────────────────
{ {
type: 'custom_strategy', type: 'custom_strategy',
custom_strategy: { custom_strategy: {
@@ -76,12 +73,10 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [
strategy_type: 'custom_strategy', strategy_type: 'custom_strategy',
tag_list: ['季节性', '农产品'], tag_list: ['季节性', '农产品'],
}, },
detail_count: 4, detail_count: 2,
detail_list: [ detail_list: [
{ contract: 'M2509', market: '70', contract_name: '豆粕2509', main_contract_type: '1' }, { contract: 'M2509', market: '70', contract_name: '豆粕2509', main_contract_type: '1' },
{ contract: 'RM2509', market: '70', contract_name: '菜粕2509', main_contract_type: '1' }, { contract: 'RM2509', market: '70', contract_name: '菜粕2509', main_contract_type: '0' },
{ contract: 'Y2509', market: '70', contract_name: '豆油2509', main_contract_type: '1' },
{ contract: 'OI2509', market: '70', contract_name: '菜油2509', main_contract_type: '1' },
], ],
field_list: [ field_list: [
{ key: '成交量', type: 'DOUBLE', unit: '手' }, { key: '成交量', type: 'DOUBLE', unit: '手' },
@@ -90,8 +85,6 @@ export const MOCK_RAW_TABS: RawPickTabItem[] = [
origin_result_list: [ origin_result_list: [
{ '成交量': 986000, '持仓量': 3102000 }, { '成交量': 986000, '持仓量': 3102000 },
{ '成交量': 324000, '持仓量': 1258000 }, { '成交量': 324000, '持仓量': 1258000 },
{ '成交量': 189000, '持仓量': 683000 },
{ '成交量': 142000, '持仓量': 521000 },
], ],
}, },
}, },
@@ -598,7 +598,6 @@ export struct AiPickNodeComponent {
) )
} }
.width('100%') .width('100%')
.height(175)
} }
// ── 一句话定制策略 ────────────────────────────────────── // ── 一句话定制策略 ──────────────────────────────────────
@@ -621,7 +620,6 @@ export struct AiPickNodeComponent {
}) })
} }
.width('100%') .width('100%')
.height(369)
} }
@Builder @Builder