Univer
Univer Sheet
功能
查找 & 替换

查找 & 替换

📊 Univer Sheet

安装

pnpm add @univerjs/find-replace @univerjs/sheets-find-replace

引入

import '@univerjs/find-replace/lib/index.css';
 
import { UniverFindReplacePlugin } from '@univerjs/find-replace';
import { UniverSheetsFindReplacePlugin } from '@univerjs/sheets-find-replace';

国际化

import { LocaleType, Tools } from '@univerjs/core';
import FindReplaceZhCN from '@univerjs/find-replace/locale/zh-CN';
import SheetsFindReplaceZhCN from '@univerjs/sheets-find-replace/locale/zh-CN';
 
const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.ZH_CN,
  locales: {
    [LocaleType.ZH_CN]: Tools.deepMerge(
      FindReplaceZhCN,
      SheetsFindReplaceZhCN
    ),
  },
});

注册

univer.registerPlugin(UniverFindReplacePlugin);
univer.registerPlugin(UniverSheetsFindReplacePlugin);

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.