From 9bd8bf72537ec755f4506baec17973ed8683f220 Mon Sep 17 00:00:00 2001 From: hejl Date: Wed, 28 May 2025 19:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E6=A8=A1=E6=9D=BF=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/config/uft_macro_list.yaml | 31 +++++++++++++++++++ .../widgets/memory_table_right_side.dart | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/win_text_editor/assets/config/uft_macro_list.yaml b/win_text_editor/assets/config/uft_macro_list.yaml index cfa3788..9f5219e 100644 --- a/win_text_editor/assets/config/uft_macro_list.yaml +++ b/win_text_editor/assets/config/uft_macro_list.yaml @@ -13,4 +13,35 @@ templates: [记录为空][{{tableName}}] { [报错返回][ERR_???][{{#keyFields}}{{value}} = @{{value}}{{^isLast}}, {{/isLast}}{{/keyFields}}] + } + + 获取记录数: + header: "[获取记录数][{{tableName}}][@count]" + body: "" + footer: "" + + 插入记录: + header: "[插入记录][{{tableName}}][" + body: | + ][ + {{#fields}} + {{value}} = @{{value}} {{^isLast}}, {{/isLast}} + {{/fields}} + ] + footer: | + [索引冲突] + { + [继续执行] + + [获取记录][{{tableName}}({{keyName}})][ + {{#keyFields}} + {{value}} = @{{value}} {{^isLast}}, {{/isLast}} + {{/keyFields}} + ] + + [修改记录][{{tableName}}][ + {{#fields}} + {{value}} = @{{value}} {{^isLast}}, {{/isLast}} + {{/fields}} + ] } \ No newline at end of file diff --git a/win_text_editor/lib/modules/memory_table/widgets/memory_table_right_side.dart b/win_text_editor/lib/modules/memory_table/widgets/memory_table_right_side.dart index f7af7cc..60c8c96 100644 --- a/win_text_editor/lib/modules/memory_table/widgets/memory_table_right_side.dart +++ b/win_text_editor/lib/modules/memory_table/widgets/memory_table_right_side.dart @@ -126,7 +126,7 @@ class _MemoryTableRightSideState extends State { border: InputBorder.none, contentPadding: EdgeInsets.all(8), ), - style: const TextStyle(fontFamily: 'monospace', color: Colors.blue), + style: const TextStyle(fontFamily: 'monospace', color: Colors.blueAccent), ), ), ),