@zjlab-fe/data-hub-ui 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,14 @@
1
1
  import { IFilePreviewProps } from '../interface';
2
+ /**
3
+ * 将字符串按换行符分割成数组,智能忽略引号内的换行符
4
+ * @param str {string} 要分割的字符串
5
+ * @param options {object} 可选,配置项
6
+ * @param options.trim {boolean} 可选,是否对每行进行trim操作,默认为true
7
+ * @param options.skipEmpty {boolean} 可选,是否跳过空行,默认为true
8
+ * @returns {string[]} 分割后的字符串数组
9
+ */
10
+ export declare function splitByLine(str: string, options?: {
11
+ trim?: boolean;
12
+ skipEmpty?: boolean;
13
+ }): string[];
2
14
  export default function JsonPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element | null;