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.
@@ -1,8 +1,5 @@
1
1
  type __VLS_Props = {
2
- showFilter?: boolean;
3
2
  showSearch?: boolean;
4
- badgeValue?: number;
5
- filterDrawerSize?: string;
6
3
  };
7
4
  declare function __VLS_template(): {
8
5
  attrs: Partial<{}>;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "1.2.37",
3
+ "version": "1.2.38",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -3,10 +3,7 @@ import { ref, useAttrs } from 'vue'
3
3
  import BaseInput from '../form/BaseInput.vue'
4
4
 
5
5
  defineProps<{
6
- showFilter?: boolean
7
6
  showSearch?: boolean
8
- badgeValue?: number
9
- filterDrawerSize?: string
10
7
  }>()
11
8
 
12
9
  const emits = defineEmits<{
@@ -6,13 +6,11 @@ const props = withDefaults(
6
6
  title?: string
7
7
  showBack?: boolean | string | object
8
8
  depth?: number
9
- maxHeight?: string
10
9
  }>(),
11
10
  {
12
11
  title: '',
13
12
  showBack: false,
14
13
  depth: 1,
15
- maxHeight: '800px',
16
14
  },
17
15
  )
18
16
  </script>
@@ -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 = withDefaults(
7
- defineProps<{
8
- title: string
9
- pagination: Pager
10
- showBack?: boolean | string | object
11
- showSearch?: boolean
12
- showEdit?: boolean
13
- showFilter?: boolean
14
- showDefaultSearch?: boolean
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" :max-height="pageDefaultHeight">
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 類型 */