From 32973f90869ff466401759c23681fc06fa65c71a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 10 六月 2025 23:06:50 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/components/table/normal-table/index.jsx | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/menu/components/table/normal-table/index.jsx b/src/menu/components/table/normal-table/index.jsx index ba1fc03..5cadab2 100644 --- a/src/menu/components/table/normal-table/index.jsx +++ b/src/menu/components/table/normal-table/index.jsx @@ -161,6 +161,10 @@ if (card.errors.length === 0) { card.$tables = getTables(card) } + + delete card.$c_ds + delete card.$c_ac + delete card.$c_cl } this.setState({ @@ -227,7 +231,13 @@ addSearch = () => { const { card } = this.state - MKEmitter.emit('plusSearch', card.uuid, {uuid: Utils.getuuid(), focus: true, label: 'label', type: 'text', match: '='}, 'simple') + let ratio = 6 + + if (card.search.length) { + ratio = card.search[card.search.length - 1].ratio + } + + MKEmitter.emit('plusSearch', card.uuid, {uuid: Utils.getuuid(), focus: true, label: 'label', type: 'text', match: '=', ratio}, 'simple') } addButton = () => { -- Gitblit v1.8.0