rayyy-vue-table-components 1.2.37 → 1.2.38
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 +8 -18
- package/dist/index.umd.js +2 -2
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/items/SearchBar.vue.d.ts +0 -3
- package/dist/src/components/layout/MainPanel.vue.d.ts +0 -2
- package/dist/src/components/layout/SearchableListPanel.vue.d.ts +1 -7
- package/dist/src/types/components.d.ts +0 -16
- package/package.json +1 -1
- package/src/components/items/SearchBar.vue +0 -3
- package/src/components/layout/MainPanel.vue +0 -2
- package/src/components/layout/SearchableListPanel.vue +10 -21
- package/src/types/components.d.ts +0 -16
|
@@ -2,7 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
showBack?: boolean | string | object;
|
|
4
4
|
depth?: number;
|
|
5
|
-
maxHeight?: string;
|
|
6
5
|
};
|
|
7
6
|
declare function __VLS_template(): {
|
|
8
7
|
attrs: Partial<{}>;
|
|
@@ -16,7 +15,6 @@ declare function __VLS_template(): {
|
|
|
16
15
|
};
|
|
17
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
-
maxHeight: string;
|
|
20
18
|
title: string;
|
|
21
19
|
showBack: boolean | string | object;
|
|
22
20
|
depth: number;
|
|
@@ -7,9 +7,6 @@ type __VLS_Props = {
|
|
|
7
7
|
showEdit?: boolean;
|
|
8
8
|
showFilter?: boolean;
|
|
9
9
|
showDefaultSearch?: boolean;
|
|
10
|
-
badgeValue?: number;
|
|
11
|
-
filterDrawerSize?: string;
|
|
12
|
-
pageDefaultHeight?: string;
|
|
13
10
|
};
|
|
14
11
|
declare function __VLS_template(): {
|
|
15
12
|
attrs: Partial<{}>;
|
|
@@ -32,10 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
32
29
|
onSearch?: ((data: string | null) => any) | undefined;
|
|
33
30
|
onUpdatePage?: ((page: number) => any) | undefined;
|
|
34
31
|
onUpdatePageSize?: ((limit: number) => any) | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
filterDrawerSize: string;
|
|
37
|
-
pageDefaultHeight: string;
|
|
38
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
34
|
export default _default;
|
|
41
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -120,8 +120,6 @@ export interface BaseBtnProps {
|
|
|
120
120
|
isFill?: boolean
|
|
121
121
|
/** 是否顯示加載狀態 */
|
|
122
122
|
loading?: boolean
|
|
123
|
-
/** 測試屬性 */
|
|
124
|
-
dataCy?: string
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
/** BaseBtn 組件 Emits 類型 */
|
|
@@ -321,14 +319,8 @@ export interface BaseMultipleInputInstance {
|
|
|
321
319
|
|
|
322
320
|
/** SearchBar 組件 Props 類型 */
|
|
323
321
|
export interface SearchBarProps {
|
|
324
|
-
/** 是否顯示篩選功能 */
|
|
325
|
-
showFilter?: boolean
|
|
326
322
|
/** 是否顯示搜尋功能 */
|
|
327
323
|
showSearch?: boolean
|
|
328
|
-
/** 徽章數值 */
|
|
329
|
-
badgeValue?: number
|
|
330
|
-
/** 篩選抽屜大小 */
|
|
331
|
-
filterDrawerSize?: string
|
|
332
324
|
}
|
|
333
325
|
|
|
334
326
|
/** SearchBar 組件 Emits 類型 */
|
|
@@ -375,12 +367,6 @@ export interface SearchableListPanelProps {
|
|
|
375
367
|
showFilter?: boolean
|
|
376
368
|
/** 是否顯示預設搜尋 */
|
|
377
369
|
showDefaultSearch?: boolean
|
|
378
|
-
/** 測試屬性 */
|
|
379
|
-
dataCy?: string
|
|
380
|
-
/** 徽章數值 */
|
|
381
|
-
badgeValue?: number
|
|
382
|
-
/** 篩選抽屜大小 */
|
|
383
|
-
filterDrawerSize?: string
|
|
384
370
|
}
|
|
385
371
|
|
|
386
372
|
/** SearchableListPanel 組件 Emits 類型 */
|
|
@@ -453,8 +439,6 @@ export interface MainPanelProps {
|
|
|
453
439
|
showBack?: boolean | string | object
|
|
454
440
|
/** 返回深度 */
|
|
455
441
|
depth?: number
|
|
456
|
-
/** 最大高度 */
|
|
457
|
-
maxHeight?: string
|
|
458
442
|
}
|
|
459
443
|
|
|
460
444
|
/** MainPanel 組件 Emits 類型 */
|
package/package.json
CHANGED
|
@@ -3,24 +3,15 @@ import { toRefs, computed } from 'vue'
|
|
|
3
3
|
import type { Pager } from '@/types'
|
|
4
4
|
import { MainPanel, SearchBar } from '@/components'
|
|
5
5
|
|
|
6
|
-
const props =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
badgeValue?: number
|
|
16
|
-
filterDrawerSize?: string
|
|
17
|
-
pageDefaultHeight?: string
|
|
18
|
-
}>(),
|
|
19
|
-
{
|
|
20
|
-
pageDefaultHeight: '800px',
|
|
21
|
-
filterDrawerSize: '50%',
|
|
22
|
-
},
|
|
23
|
-
)
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
title: string
|
|
8
|
+
pagination: Pager
|
|
9
|
+
showBack?: boolean | string | object
|
|
10
|
+
showSearch?: boolean
|
|
11
|
+
showEdit?: boolean
|
|
12
|
+
showFilter?: boolean
|
|
13
|
+
showDefaultSearch?: boolean
|
|
14
|
+
}>()
|
|
24
15
|
|
|
25
16
|
const { pagination } = toRefs(props)
|
|
26
17
|
|
|
@@ -51,13 +42,11 @@ const changePageSize = (limit: number) => {
|
|
|
51
42
|
</script>
|
|
52
43
|
|
|
53
44
|
<template>
|
|
54
|
-
<main-panel :title="props.title" :show-back="showBack"
|
|
45
|
+
<main-panel :title="props.title" :show-back="showBack">
|
|
55
46
|
<template #searchBar>
|
|
56
47
|
<search-bar
|
|
57
48
|
:show-filter="showAllFeatures || showFilter"
|
|
58
49
|
:show-search="showAllFeatures || showSearch"
|
|
59
|
-
:badge-value="badgeValue"
|
|
60
|
-
:filter-drawer-size="filterDrawerSize"
|
|
61
50
|
@keydown:enter="search"
|
|
62
51
|
@update:clear="clearable"
|
|
63
52
|
>
|
|
@@ -121,8 +121,6 @@ export interface BaseBtnProps {
|
|
|
121
121
|
isFill?: boolean
|
|
122
122
|
/** 是否顯示加載狀態 */
|
|
123
123
|
loading?: boolean
|
|
124
|
-
/** 測試屬性 */
|
|
125
|
-
dataCy?: string
|
|
126
124
|
}
|
|
127
125
|
|
|
128
126
|
/** BaseBtn 組件 Emits 類型 */
|
|
@@ -322,14 +320,8 @@ export interface BaseMultipleInputInstance {
|
|
|
322
320
|
|
|
323
321
|
/** SearchBar 組件 Props 類型 */
|
|
324
322
|
export interface SearchBarProps {
|
|
325
|
-
/** 是否顯示篩選功能 */
|
|
326
|
-
showFilter?: boolean
|
|
327
323
|
/** 是否顯示搜尋功能 */
|
|
328
324
|
showSearch?: boolean
|
|
329
|
-
/** 徽章數值 */
|
|
330
|
-
badgeValue?: number
|
|
331
|
-
/** 篩選抽屜大小 */
|
|
332
|
-
filterDrawerSize?: string
|
|
333
325
|
}
|
|
334
326
|
|
|
335
327
|
/** SearchBar 組件 Emits 類型 */
|
|
@@ -376,12 +368,6 @@ export interface SearchableListPanelProps {
|
|
|
376
368
|
showFilter?: boolean
|
|
377
369
|
/** 是否顯示預設搜尋 */
|
|
378
370
|
showDefaultSearch?: boolean
|
|
379
|
-
/** 測試屬性 */
|
|
380
|
-
dataCy?: string
|
|
381
|
-
/** 徽章數值 */
|
|
382
|
-
badgeValue?: number
|
|
383
|
-
/** 篩選抽屜大小 */
|
|
384
|
-
filterDrawerSize?: string
|
|
385
371
|
}
|
|
386
372
|
|
|
387
373
|
/** SearchableListPanel 組件 Emits 類型 */
|
|
@@ -454,8 +440,6 @@ export interface MainPanelProps {
|
|
|
454
440
|
showBack?: boolean | string | object
|
|
455
441
|
/** 返回深度 */
|
|
456
442
|
depth?: number
|
|
457
|
-
/** 最大高度 */
|
|
458
|
-
maxHeight?: string
|
|
459
443
|
}
|
|
460
444
|
|
|
461
445
|
/** MainPanel 組件 Emits 類型 */
|