zyjj-web-sdk 1.0.14 → 1.0.16

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.
@@ -2,9 +2,18 @@ import { ColumnProps } from '@arco-design/web-react/es/Table/interface';
2
2
  import { GetPageInfo } from "../api/entity.ts";
3
3
  export interface PageTableProps<T> {
4
4
  columns: ColumnProps<T>[];
5
- data: (num: number, size: number) => Promise<GetPageInfo<T>>;
5
+ data: (num: number, size: number, find?: any) => Promise<GetPageInfo<T>>;
6
6
  refresh?: (refresh: () => void) => void;
7
7
  id?: string;
8
8
  pageSize?: number;
9
+ search?: {
10
+ field: string;
11
+ label: string;
12
+ tp: 'input' | 'custom';
13
+ data: {
14
+ placeholder?: string;
15
+ };
16
+ ele?: any;
17
+ }[];
9
18
  }
10
19
  export default function PageTable<T>(props: PageTableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import { JSX } from "react";
2
+ import 'aplayer/dist/APlayer.min.css';
3
+ import './output.css';
4
+ export interface ElementTypeAudioData {
5
+ url: string;
6
+ name: string;
7
+ artist?: string;
8
+ cover?: string;
9
+ lrc?: string;
10
+ }
11
+ export interface ElementTypeVideoData {
12
+ url: string;
13
+ pic?: string;
14
+ thumbnails?: string;
15
+ subtitle?: {
16
+ url: string;
17
+ };
18
+ }
19
+ export interface ElementTypeProps<T> {
20
+ value?: T;
21
+ onChange?: (value: T) => void;
22
+ }
23
+ export declare const SmallIcon: (props: {
24
+ icon: JSX.Element;
25
+ tip: string;
26
+ noSuccess?: boolean;
27
+ onClick?: () => Promise<void>;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const CopyButton: (props: {
30
+ value?: string;
31
+ }) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const LaunchButton: (props: {
33
+ value?: string;
34
+ }) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const DownloadButton: (props: {
36
+ value?: string;
37
+ }) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const SourceButton: (props: {
39
+ link?: string;
40
+ width: number;
41
+ }) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const ElementTypeText: (props: ElementTypeProps<string>) => import("react/jsx-runtime").JSX.Element;
43
+ export declare const ElementTypeAudio: (props: ElementTypeProps<string | ElementTypeAudioData>) => import("react/jsx-runtime").JSX.Element;
44
+ export declare const ElementTypeVideo: (props: ElementTypeProps<ElementTypeVideoData>) => import("react/jsx-runtime").JSX.Element;
45
+ export declare const ElementTypeImage: (props: ElementTypeProps<string>) => import("react/jsx-runtime").JSX.Element;
46
+ export declare const ElementTypeImageList: (props: ElementTypeProps<string[]>) => import("react/jsx-runtime").JSX.Element;
package/lib/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { default as PageTable } from './components/PageTable.tsx';
9
9
  export type { PageTableProps } from './components/PageTable.tsx';
10
10
  export { default as ConcatButton } from './components/ConcatButton.tsx';
11
11
  export type { ConcatButtonProps } from './components/ConcatButton.tsx';
12
+ export type { ElementTypeProps } from './components/lab/output.tsx';
12
13
  export { default as ToolList } from './pages/ToolList.tsx';
13
14
  export type { ToolListProps } from './pages/ToolList.tsx';
14
15
  export { default as MaterialList } from './pages/MaterialList.tsx';
@@ -19,6 +20,12 @@ export { default as TaskList } from './pages/TaskList.tsx';
19
20
  export type { TaskListProps } from './pages/TaskList.tsx';
20
21
  export { default as SearchBar } from './pages/SearchBar.tsx';
21
22
  export type { SearchBarProps } from './pages/SearchBar.tsx';
23
+ export declare const ToolElement: {
24
+ Text: (props: import("./components/lab/output.tsx").ElementTypeProps<string>) => import("react/jsx-runtime").JSX.Element;
25
+ Audio: (props: import("./components/lab/output.tsx").ElementTypeProps<string | import("./components/lab/output.tsx").ElementTypeAudioData>) => import("react/jsx-runtime").JSX.Element;
26
+ Image: (props: import("./components/lab/output.tsx").ElementTypeProps<string>) => import("react/jsx-runtime").JSX.Element;
27
+ ImageList: (props: import("./components/lab/output.tsx").ElementTypeProps<string[]>) => import("react/jsx-runtime").JSX.Element;
28
+ };
22
29
  export declare const Api: {
23
30
  GetAllTool: () => Promise<import("./api/entity.ts").GetPageInfo<import("./types/cloud.ts").ToolInfo>>;
24
31
  UpdateUserInfo: (data: {