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), ), ), ),