# -*- coding: utf-8 -*- """CHG-068:需求文档 tab 内容视觉重设计(分节+文件行+计数徽章)""" import io, sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') path = 'src/views/product/storyinfo/components/product.vue' lines = open(path, encoding='utf-8').readlines() start = next(i for i, l in enumerate(lines) if '需求文档' in l and 'el-tab-pane' in l) tabs_end = next(i for i, l in enumerate(lines) if '' in l) pane_end = next(i for i in range(tabs_end - 1, start, -1) if '' in lines[i]) print(f'pane: {start+1}..{pane_end+1}') ROW = '''