morghulis 1.0.26 → 1.0.28
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.
- package/README.md +166 -15
- package/dist/components/cell/MCell.vue.d.ts +11 -0
- package/dist/components/cell/char/CharCell.vue.d.ts +15 -0
- package/dist/components/cell/date/DateCell.vue.d.ts +15 -0
- package/dist/components/cell/refer/SelectCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/BooleanCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/DefaultCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/NumberCell.vue.d.ts +18 -0
- package/dist/components/cell/useCellComponents.d.ts +2 -0
- package/dist/components/common/MCtrlBtn.vue.d.ts +30 -0
- package/dist/components/common/MOption.vue.d.ts +10 -0
- package/dist/components/dialog/MDialog.vue.d.ts +57 -0
- package/dist/components/dialog/MDialogHeader.vue.d.ts +9 -0
- package/dist/components/form/MForm.vue.d.ts +13 -0
- package/dist/components/table/MTable.vue.d.ts +65 -0
- package/dist/components/table/MTableButtons.vue.d.ts +17 -0
- package/dist/components/table/MTableHeader.vue.d.ts +17 -0
- package/dist/components/table/data/DCell.vue.d.ts +18 -0
- package/dist/components/table/data/DForm.vue.d.ts +16 -0
- package/dist/components/table/data/DTable.vue.d.ts +78 -0
- package/dist/components/table/data/DTableController.vue.d.ts +19 -0
- package/dist/components/table/data/DTablePopController.vue.d.ts +13 -0
- package/dist/components/table/data/useDTable.d.ts +77 -0
- package/dist/components/table/data/useDTableCell.d.ts +6 -0
- package/dist/components/table/useMTable.d.ts +25 -0
- package/dist/hooks/authorize.d.ts +13 -0
- package/dist/hooks/channel.d.ts +13 -0
- package/dist/hooks/cookies.d.ts +6 -0
- package/dist/hooks/request.d.ts +5 -0
- package/dist/hooks/socket.d.ts +7 -0
- package/dist/index.d.ts +401 -0
- package/dist/index.js +1252 -1250
- package/dist/index.umd.cjs +19 -19
- package/dist/tools/dao.d.ts +27 -0
- package/dist/tools/feedback.d.ts +4 -0
- package/dist/tools/query.d.ts +20 -0
- package/dist/types/dialog/dialog.types.d.ts +41 -0
- package/dist/types/table/m.table.types.d.ts +55 -0
- package/package.json +7 -4
- package/dist/types.d.ts +0 -731
package/README.md
CHANGED
@@ -15,6 +15,7 @@ npm install morghulis
|
|
15
15
|
```typescript
|
16
16
|
import { createApp } from 'vue'
|
17
17
|
import { createMorghulis } from 'morghulis'
|
18
|
+
import 'morghulis/dist/index.css'
|
18
19
|
import App from './App.vue'
|
19
20
|
|
20
21
|
const app = createApp(App)
|
@@ -31,18 +32,37 @@ app.use(createMorghulis({
|
|
31
32
|
app.mount('#app')
|
32
33
|
```
|
33
34
|
|
35
|
+
### 样式导入
|
36
|
+
|
37
|
+
你可以通过以下任意方式导入样式:
|
38
|
+
|
39
|
+
```typescript
|
40
|
+
// 推荐方式
|
41
|
+
import 'morghulis/dist/index.css'
|
42
|
+
|
43
|
+
// 或使用以下方式之一
|
44
|
+
import 'morghulis/style'
|
45
|
+
import 'morghulis/dist/style'
|
46
|
+
import 'morghulis/dist/style.css'
|
47
|
+
```
|
48
|
+
|
34
49
|
### 单独使用组件
|
35
50
|
|
36
51
|
```typescript
|
37
|
-
import {
|
52
|
+
import { MDialog, MTable, MForm, DTable, DCell, DForm, DController, MCell } from 'morghulis'
|
53
|
+
import 'morghulis/dist/index.css'
|
38
54
|
|
39
55
|
// 在组件中使用
|
40
56
|
export default {
|
41
57
|
components: {
|
42
|
-
MTable,
|
43
58
|
MDialog,
|
59
|
+
MTable,
|
44
60
|
MForm,
|
45
|
-
DTable
|
61
|
+
DTable,
|
62
|
+
DCell,
|
63
|
+
DForm,
|
64
|
+
DController,
|
65
|
+
MCell
|
46
66
|
}
|
47
67
|
}
|
48
68
|
```
|
@@ -50,12 +70,13 @@ export default {
|
|
50
70
|
### 使用工具函数
|
51
71
|
|
52
72
|
```typescript
|
53
|
-
import { useMorghulisRequest, useMorghulisCookies } from 'morghulis'
|
73
|
+
import { useMorghulisAuthorize, useMorghulisRequest, useMorghulisCookies } from 'morghulis'
|
54
74
|
|
55
75
|
// 在组件中使用
|
56
76
|
setup() {
|
57
77
|
const { get, post } = useMorghulisRequest()
|
58
78
|
const { get: getCookie, set: setCookie } = useMorghulisCookies()
|
79
|
+
const { login, logout, check, bearer } = useMorghulisAuthorize()
|
59
80
|
|
60
81
|
// 使用这些函数...
|
61
82
|
}
|
@@ -63,23 +84,153 @@ setup() {
|
|
63
84
|
|
64
85
|
## 组件
|
65
86
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
87
|
+
### 对话框
|
88
|
+
|
89
|
+
```typescript
|
90
|
+
import { MDialog } from 'morghulis'
|
91
|
+
import type { MorDialogProps, MorDialogConfig } from 'morghulis'
|
92
|
+
|
93
|
+
// 在模板中使用
|
94
|
+
<MDialog
|
95
|
+
v-model="dialogVisible"
|
96
|
+
title="标题"
|
97
|
+
subTitle="副标题"
|
98
|
+
:width="600"
|
99
|
+
:fullscreen="false"
|
100
|
+
:modal="true"
|
101
|
+
@close="handleClose"
|
102
|
+
/>
|
103
|
+
|
104
|
+
// 使用组件的方法
|
105
|
+
const dialog = ref()
|
106
|
+
// 打开对话框
|
107
|
+
dialog.value.open(data, { title: '自定义标题', subTitle: '自定义副标题' })
|
108
|
+
// 关闭对话框
|
109
|
+
dialog.value.close()
|
110
|
+
```
|
111
|
+
|
112
|
+
### 表格组件
|
113
|
+
|
114
|
+
```typescript
|
115
|
+
import { MTable, DTable, DCell, DForm, DController } from 'morghulis'
|
116
|
+
|
117
|
+
// 数据表格
|
118
|
+
<DTable
|
119
|
+
:data="tableData"
|
120
|
+
:columns="columns"
|
121
|
+
/>
|
122
|
+
|
123
|
+
// 普通表格
|
124
|
+
<MTable
|
125
|
+
:data="tableData"
|
126
|
+
:columns="columns"
|
127
|
+
/>
|
128
|
+
```
|
70
129
|
|
71
130
|
## 工具函数
|
72
131
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
132
|
+
### 授权功能
|
133
|
+
|
134
|
+
```typescript
|
135
|
+
import { useMorghulisAuthorize } from 'morghulis'
|
136
|
+
import type { MorghulisAuthorize } from 'morghulis'
|
137
|
+
|
138
|
+
const auth = useMorghulisAuthorize()
|
139
|
+
|
140
|
+
// 登录
|
141
|
+
auth.login(userId)
|
142
|
+
|
143
|
+
// 检查用户是否登录
|
144
|
+
if (auth.check()) {
|
145
|
+
// 已登录
|
146
|
+
}
|
147
|
+
|
148
|
+
// 获取认证令牌
|
149
|
+
const token = auth.bearer()
|
150
|
+
|
151
|
+
// 登出
|
152
|
+
auth.logout()
|
153
|
+
```
|
154
|
+
|
155
|
+
### 请求功能
|
156
|
+
|
157
|
+
```typescript
|
158
|
+
import { useMorghulisRequest } from 'morghulis'
|
159
|
+
|
160
|
+
const { get, post, put, delete: del } = useMorghulisRequest()
|
161
|
+
|
162
|
+
// 发送请求
|
163
|
+
const response = await get('/api/users')
|
164
|
+
```
|
78
165
|
|
79
166
|
## 类型
|
80
167
|
|
81
168
|
所有类型都已导出,可以直接导入使用:
|
82
169
|
|
83
170
|
```typescript
|
84
|
-
|
85
|
-
|
171
|
+
// 导入组件属性类型
|
172
|
+
import type {
|
173
|
+
MorDialogProps,
|
174
|
+
MorDialogConfig,
|
175
|
+
MorOption,
|
176
|
+
MorghulisAuthorize
|
177
|
+
} from 'morghulis'
|
178
|
+
|
179
|
+
// 使用类型
|
180
|
+
const dialogProps: MorDialogProps = {
|
181
|
+
title: '标题',
|
182
|
+
width: 600,
|
183
|
+
modal: true,
|
184
|
+
confirmButtonText: '确认',
|
185
|
+
cancelButtonText: '取消',
|
186
|
+
confirm: (data, done) => {
|
187
|
+
// 处理确认逻辑
|
188
|
+
done()
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
// 使用配置类型
|
193
|
+
const options: MorOption = {
|
194
|
+
baseURL: '/api/',
|
195
|
+
minioURL: '/dfs/',
|
196
|
+
// 其他自定义配置...
|
197
|
+
}
|
198
|
+
```
|
199
|
+
|
200
|
+
## 全局类型支持
|
201
|
+
|
202
|
+
组件库提供全局类型支持,导入后可以在模板中直接使用组件名称,TypeScript 会自动提供类型检查和属性提示:
|
203
|
+
|
204
|
+
```vue
|
205
|
+
<template>
|
206
|
+
<MDialog
|
207
|
+
v-model="dialogVisible"
|
208
|
+
title="标题"
|
209
|
+
@close="handleClose"
|
210
|
+
/>
|
211
|
+
|
212
|
+
<!-- Element Plus 组件也有类型提示 -->
|
213
|
+
<ElButton type="primary">按钮</ElButton>
|
214
|
+
</template>
|
215
|
+
|
216
|
+
<script setup lang="ts">
|
217
|
+
import { ref } from 'vue'
|
218
|
+
// 无需导入组件,但需要导入库
|
219
|
+
import 'morghulis'
|
220
|
+
|
221
|
+
const dialogVisible = ref(false)
|
222
|
+
const handleClose = () => {
|
223
|
+
dialogVisible.value = false
|
224
|
+
}
|
225
|
+
</script>
|
226
|
+
```
|
227
|
+
|
228
|
+
## 版本说明
|
229
|
+
|
230
|
+
当前版本: 1.0.28
|
231
|
+
|
232
|
+
- 解决了类型声明冲突问题
|
233
|
+
- 提供了完整的组件类型定义
|
234
|
+
- 添加了全局类型支持
|
235
|
+
- 修复了CSS样式文件导入问题
|
236
|
+
- 增强了组件属性和方法的TypeScript智能提示
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { MetaField } from '../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
field: MetaField;
|
6
|
+
bean: DataItem;
|
7
|
+
db: DaoTypes;
|
8
|
+
disabled: boolean;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
11
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
field: MetaField;
|
8
|
+
db: DaoTypes;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
/**
|
5
|
+
* 通用
|
6
|
+
*/
|
7
|
+
type __VLS_Props = {
|
8
|
+
modelValue: any;
|
9
|
+
disabled: boolean;
|
10
|
+
db: DaoTypes;
|
11
|
+
field: MetaField;
|
12
|
+
};
|
13
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
15
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
16
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { UISizeTypes, UITextTypes } from '../../types/morghulis.types';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
disabled?: boolean;
|
5
|
+
type?: UITextTypes;
|
6
|
+
size?: UISizeTypes;
|
7
|
+
title?: string;
|
8
|
+
icon?: string;
|
9
|
+
};
|
10
|
+
declare function __VLS_template(): {
|
11
|
+
attrs: Partial<{}>;
|
12
|
+
slots: {
|
13
|
+
default?(_: {}): any;
|
14
|
+
};
|
15
|
+
refs: {};
|
16
|
+
rootEl: any;
|
17
|
+
};
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
19
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
20
|
+
click: (...args: any[]) => void;
|
21
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
22
|
+
onClick?: (...args: any[]) => any;
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
25
|
+
export default _default;
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
27
|
+
new (): {
|
28
|
+
$slots: S;
|
29
|
+
};
|
30
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
type __VLS_Props = {
|
3
|
+
option: {
|
4
|
+
label: any;
|
5
|
+
value: any;
|
6
|
+
display: any;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { MorghulisDialogProps, MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
declare function open(data?: any, config?: MorghulisDialogConfig): void;
|
4
|
+
declare function close(): void;
|
5
|
+
declare function __VLS_template(): any;
|
6
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
7
|
+
declare const __VLS_component: DefineComponent<MorghulisDialogProps, {
|
8
|
+
open: typeof open;
|
9
|
+
close: typeof close;
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
close: (...args: any[]) => void;
|
12
|
+
"update:title": (...args: any[]) => void;
|
13
|
+
"update:subtitle": (...args: any[]) => void;
|
14
|
+
}, string, PublicProps, Readonly<MorghulisDialogProps> & Readonly<{
|
15
|
+
onClose?: (...args: any[]) => any;
|
16
|
+
"onUpdate:title"?: (...args: any[]) => any;
|
17
|
+
"onUpdate:subtitle"?: (...args: any[]) => any;
|
18
|
+
}>, {
|
19
|
+
title: string;
|
20
|
+
subtitle: string;
|
21
|
+
confirmButtonText: string;
|
22
|
+
cancelButtonText: string;
|
23
|
+
cancel: (data: any, done: () => void) => void;
|
24
|
+
width: string | number;
|
25
|
+
fullscreen: boolean;
|
26
|
+
top: string;
|
27
|
+
modal: boolean;
|
28
|
+
modalClass: string;
|
29
|
+
headerClass: string;
|
30
|
+
bodyClass: string;
|
31
|
+
footerClass: string;
|
32
|
+
appendToBody: boolean;
|
33
|
+
appendTo: string;
|
34
|
+
lockScroll: boolean;
|
35
|
+
openDelay: number;
|
36
|
+
closeDelay: number;
|
37
|
+
closeOnClickModal: boolean;
|
38
|
+
closeOnPressEscape: boolean;
|
39
|
+
showClose: boolean;
|
40
|
+
beforeClose: (done: () => void) => void;
|
41
|
+
draggable: boolean;
|
42
|
+
overFlow: boolean;
|
43
|
+
center: boolean;
|
44
|
+
alignCenter: boolean;
|
45
|
+
destroyOnClose: boolean;
|
46
|
+
closeIcon: string;
|
47
|
+
zIndex: number;
|
48
|
+
headerAriaLevel: string;
|
49
|
+
confirm: (data: any, done: () => void) => void;
|
50
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
52
|
+
export default _default;
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
54
|
+
new (): {
|
55
|
+
$slots: S;
|
56
|
+
};
|
57
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
title: string;
|
5
|
+
subtitle: string;
|
6
|
+
config: MorghulisDialogConfig;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
|
2
|
+
import { MetaView } from '../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
item: DataItem;
|
6
|
+
view: MetaView;
|
7
|
+
db: DaoTypes;
|
8
|
+
};
|
9
|
+
declare function getData(): any;
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
11
|
+
getData: typeof getData;
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
13
|
+
export default _default;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { MorghulisTableProps } from '../../types/table/m.table.types.ts';
|
2
|
+
import { MetaField, MetaView } from '../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
declare function getSelection(): any;
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
header?(_: {}): any;
|
9
|
+
'header-tool'?(_: {}): any;
|
10
|
+
cell?(_: {
|
11
|
+
field: MetaField;
|
12
|
+
row: any;
|
13
|
+
prop: string | number;
|
14
|
+
}): any;
|
15
|
+
footer?(_: {}): any;
|
16
|
+
'footer-tool'?(_: {}): any;
|
17
|
+
'pop-meta'?(_: {
|
18
|
+
view: MetaView;
|
19
|
+
}): any;
|
20
|
+
'pop-search'?(_: {
|
21
|
+
field: any;
|
22
|
+
}): any;
|
23
|
+
'pop-field'?(_: {
|
24
|
+
field: any;
|
25
|
+
}): any;
|
26
|
+
'pop-cell'?(_: {
|
27
|
+
data: any;
|
28
|
+
prop: any;
|
29
|
+
}): any;
|
30
|
+
'pop-index'?(_: {
|
31
|
+
row: any;
|
32
|
+
}): any;
|
33
|
+
};
|
34
|
+
refs: {
|
35
|
+
table: unknown;
|
36
|
+
};
|
37
|
+
rootEl: any;
|
38
|
+
};
|
39
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
40
|
+
declare const __VLS_component: DefineComponent<MorghulisTableProps, {
|
41
|
+
getSelection: typeof getSelection;
|
42
|
+
setSelection: (keys: any[]) => void;
|
43
|
+
closePopover: () => boolean;
|
44
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MorghulisTableProps> & Readonly<{}>, {
|
45
|
+
border: boolean;
|
46
|
+
fit: boolean;
|
47
|
+
showHeader: boolean;
|
48
|
+
highlightCurrentRow: boolean;
|
49
|
+
headerCellClassName: ((data: {
|
50
|
+
row: any;
|
51
|
+
column: any;
|
52
|
+
rowIndex: number;
|
53
|
+
columnIndex: number;
|
54
|
+
}) => string) | string;
|
55
|
+
showOverflowTooltip: boolean;
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
57
|
+
table: unknown;
|
58
|
+
}, any>;
|
59
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
60
|
+
export default _default;
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
62
|
+
new (): {
|
63
|
+
$slots: S;
|
64
|
+
};
|
65
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MTableButton } from '../../types/table/m.table.types.ts';
|
2
|
+
import { DataItem } from '../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
buttons: MTableButton[];
|
6
|
+
item: DataItem;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
click: (...args: any[]) => void;
|
10
|
+
width: (...args: any[]) => void;
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
12
|
+
onClick?: (...args: any[]) => any;
|
13
|
+
onWidth?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
15
|
+
wrapper: HTMLDivElement;
|
16
|
+
}, HTMLDivElement>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MetaField, MetaView } from '../../types/tool/meta.types';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
field: MetaField;
|
6
|
+
order?: object;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
search: (...args: any[]) => void;
|
10
|
+
meta: (...args: any[]) => void;
|
11
|
+
order: (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
onSearch?: (...args: any[]) => any;
|
14
|
+
onMeta?: (...args: any[]) => any;
|
15
|
+
onOrder?: (...args: any[]) => any;
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DaoTypes, DataItem } from '../../../types/tool/dao.types';
|
2
|
+
import { MetaView } from '../../../types/tool/meta.types';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
view: MetaView;
|
6
|
+
prop: string;
|
7
|
+
bean: DataItem;
|
8
|
+
db: DaoTypes;
|
9
|
+
disabled?: boolean;
|
10
|
+
};
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
12
|
+
cancel: (...args: any[]) => void;
|
13
|
+
save: (...args: any[]) => void;
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
15
|
+
onCancel?: (...args: any[]) => any;
|
16
|
+
onSave?: (...args: any[]) => any;
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { MetaView } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes, DataItem } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
selection: any[];
|
6
|
+
view: MetaView;
|
7
|
+
db: DaoTypes;
|
8
|
+
bean: DataItem;
|
9
|
+
};
|
10
|
+
declare function getData(): any[];
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
12
|
+
getData: typeof getData;
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
14
|
+
form: unknown;
|
15
|
+
}, any>;
|
16
|
+
export default _default;
|