@newview/ui 0.0.1

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.
@@ -0,0 +1,30 @@
1
+ import { BaseInstance } from "@newview/base-vue";
2
+
3
+ export class IconSelectInstance extends BaseInstance {
4
+
5
+ }
6
+
7
+ import type { DefineComponent } from 'vue';
8
+
9
+ export declare const IconSelect: DefineComponent<{
10
+ /**
11
+ * 占位文本
12
+ */
13
+ placeholder?: string;
14
+ /**
15
+ * 组件宽度,为0时表示100%
16
+ */
17
+ width?: number;
18
+ /**
19
+ * Icon 面板宽度,默认270
20
+ */
21
+ poptipWidth?: number;
22
+ /**
23
+ * 选中的值,支持v-model双向绑定
24
+ */
25
+ modelValue?: string;
26
+ /**
27
+ * 是否只读
28
+ */
29
+ readonly?: boolean;
30
+ }>
@@ -0,0 +1,82 @@
1
+ import { BaseInstance } from "@newview/base-vue";
2
+ import { BaseApi, QueryWrapper } from "@newview/infrastructure";
3
+ import { VNode } from "vue";
4
+ import { LoadDataOptions } from "./Grid";
5
+
6
+ /**
7
+ * List Option
8
+ */
9
+ export declare interface ListOption {
10
+ /**
11
+ * api接口对应类
12
+ */
13
+ api?: BaseApi;
14
+ /**
15
+ * Key 字段
16
+ */
17
+ keyField: string;
18
+ /**
19
+ * 左侧标题 字段
20
+ */
21
+ titleField?: string;
22
+ /**
23
+ * 左侧标题 渲染函数
24
+ */
25
+ titleFormat?: (h: any, row: any) => VNode;
26
+ /**
27
+ * 标题下方的描述信息 字段
28
+ */
29
+ labelField?: string;
30
+ /**
31
+ * 标题下方的描述信息 渲染函数
32
+ */
33
+ labelFormat?: (h: any, row: any) => VNode;
34
+ /**
35
+ * 右侧额外内容 字段
36
+ */
37
+ extraField?: string;
38
+ /**
39
+ * 右侧额外内容 渲染函数
40
+ */
41
+ extraFormat?: (h: any, row: any) => VNode;
42
+ /**
43
+ * 是否禁用
44
+ */
45
+ isDisabled?: (row: any) => boolean;
46
+ }
47
+
48
+ export declare class ListInstance extends BaseInstance {
49
+ /**
50
+ * 设置数据
51
+ * @param data
52
+ */
53
+ setDatas(data: any): void;
54
+
55
+ /**
56
+ * 加载数据
57
+ * @param _readFunction
58
+ */
59
+ loadData(_readFunction: (options: LoadDataOptions) => Promise<void>): void;
60
+
61
+ /**
62
+ * 加载数据
63
+ * @param _queryWrapper
64
+ */
65
+ loadDataByQuery(_queryWrapper: QueryWrapper): void;
66
+
67
+ /**
68
+ * 刷新数据
69
+ */
70
+ refresh(): void;
71
+ }
72
+
73
+ import type { DefineComponent } from 'vue';
74
+
75
+ export declare const List: DefineComponent<{
76
+ /**
77
+ * List 配置项
78
+ */
79
+ option?: ListOption;
80
+
81
+ onSelect?: (data: any) => void;
82
+ }>