rayyy-vue-table-components 1.2.19 → 1.2.20
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/dist/index.es.js +2400 -2431
- package/dist/index.umd.js +11 -15
- package/dist/src/components/index.d.ts +4 -1
- package/dist/src/components/layout/FunctionHeader.vue.d.ts +12 -2
- package/dist/src/types/components.d.ts +506 -29
- package/package.json +1 -1
- package/src/components/index.ts +30 -0
- package/src/components/layout/FunctionHeader.vue +11 -8
- package/src/types/components.d.ts +506 -29
package/src/components/index.ts
CHANGED
|
@@ -25,6 +25,33 @@ export type {
|
|
|
25
25
|
BaseDialogProps,
|
|
26
26
|
BaseDialogEmits,
|
|
27
27
|
BaseDialogInstance,
|
|
28
|
+
BaseInputProps,
|
|
29
|
+
BaseInputEmits,
|
|
30
|
+
BaseInputInstance,
|
|
31
|
+
FilterBtnProps,
|
|
32
|
+
FilterBtnEmits,
|
|
33
|
+
FilterBtnInstance,
|
|
34
|
+
BaseFormProps,
|
|
35
|
+
BaseFormEmits,
|
|
36
|
+
BaseFormInstance,
|
|
37
|
+
SortTableProps,
|
|
38
|
+
SortTableEmits,
|
|
39
|
+
SortTableInstance,
|
|
40
|
+
SearchBarProps,
|
|
41
|
+
SearchBarEmits,
|
|
42
|
+
SearchBarInstance,
|
|
43
|
+
TransferDialogProps,
|
|
44
|
+
TransferDialogEmits,
|
|
45
|
+
TransferDialogInstance,
|
|
46
|
+
TransferItemProps,
|
|
47
|
+
TransferItemEmits,
|
|
48
|
+
TransferItemInstance,
|
|
49
|
+
MainPanelProps,
|
|
50
|
+
MainPanelEmits,
|
|
51
|
+
MainPanelInstance,
|
|
52
|
+
FunctionHeaderProps,
|
|
53
|
+
FunctionHeaderEmits,
|
|
54
|
+
FunctionHeaderInstance,
|
|
28
55
|
PluginOptions,
|
|
29
56
|
VueTableComponentsPlugin,
|
|
30
57
|
} from '../types/components'
|
|
@@ -35,9 +62,12 @@ export type { default as BaseBtnType } from './items/BaseBtn.vue'
|
|
|
35
62
|
export type { default as BaseInputType } from './form/BaseInput.vue'
|
|
36
63
|
export type { default as FilterBtnType } from './items/FilterBtn.vue'
|
|
37
64
|
export type { default as BaseDialogType } from './items/BaseDialog.vue'
|
|
65
|
+
export type { default as BaseFormType } from './form/BaseForm.vue'
|
|
38
66
|
export type { default as SortTableType } from './tables/SortTable.vue'
|
|
39
67
|
export type { default as SearchBarType } from './items/SearchBar.vue'
|
|
40
68
|
export type { default as TransferDialogType } from './transfer/TransferDialog.vue'
|
|
41
69
|
export type { default as TransferItemType } from './transfer/transferItem.vue'
|
|
42
70
|
export type { default as SearchableListPanelType } from './layout/SearchableListPanel.vue'
|
|
43
71
|
export type { default as BaseMultipleInputType } from './form/BaseMultipleInput.vue'
|
|
72
|
+
export type { default as FunctionHeaderType } from './layout/FunctionHeader.vue'
|
|
73
|
+
export type { default as MainPanelType } from './layout/MainPanel.vue'
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { useRouter, useRoute } from 'vue-router'
|
|
3
2
|
import { ArrowLeftBold } from '@element-plus/icons-vue'
|
|
4
|
-
import { extractSubRoutes } from '@/utils/routeFormatters.ts'
|
|
5
3
|
|
|
6
4
|
const props = defineProps({
|
|
7
5
|
title: { type: String, required: false, default: '' },
|
|
@@ -13,21 +11,26 @@ const props = defineProps({
|
|
|
13
11
|
depth: { type: Number, required: false, default: 1 },
|
|
14
12
|
})
|
|
15
13
|
|
|
16
|
-
const
|
|
17
|
-
|
|
14
|
+
const emit = defineEmits<{
|
|
15
|
+
back: [payload: { path?: string; [key: string]: unknown }]
|
|
16
|
+
}>()
|
|
18
17
|
|
|
19
18
|
const handleClick = () => {
|
|
20
|
-
const
|
|
19
|
+
const backPayload: { path?: string; [key: string]: unknown } = {}
|
|
20
|
+
|
|
21
21
|
switch (typeof props.showBack) {
|
|
22
22
|
case 'string':
|
|
23
|
-
|
|
23
|
+
backPayload.path = props.showBack
|
|
24
24
|
break
|
|
25
25
|
case 'object':
|
|
26
|
-
|
|
26
|
+
Object.assign(backPayload, props.showBack)
|
|
27
27
|
break
|
|
28
28
|
default:
|
|
29
|
-
|
|
29
|
+
// 當 showBack 為 true 時,發出預設的返回事件
|
|
30
|
+
backPayload.path = ''
|
|
30
31
|
}
|
|
32
|
+
|
|
33
|
+
emit('back', backPayload)
|
|
31
34
|
}
|
|
32
35
|
</script>
|
|
33
36
|
|