rayyy-vue-table-components 1.2.29 → 1.2.31

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.
@@ -19,7 +19,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
20
  "onUpdate:reset"?: (() => any) | undefined;
21
21
  "onUpdate:submit"?: (() => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ }>, {
23
+ drawerSize: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
26
  export default _default;
25
27
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -13,7 +13,6 @@ export { BaseTable, BaseBtn, BaseInput, FilterBtn, BaseDialog, SortTable, Search
13
13
  export type { BaseTableProps, BaseTableEmits, BaseTableInstance, BaseBtnProps, BaseBtnEmits, BaseBtnInstance, BaseDialogProps, BaseDialogEmits, BaseDialogInstance, PluginOptions, VueTableComponentsPlugin, } from './types/components';
14
14
  export * from './components';
15
15
  export declare function install(app: App, options?: {
16
- locale?: any;
17
16
  autoImportStyles?: boolean;
18
17
  prefix?: string;
19
18
  }): void;
@@ -144,7 +144,7 @@ export interface BaseBtnInstance {
144
144
  export interface FilterBtnProps {
145
145
  /** 徽章數值 */
146
146
  badgeValue?: number
147
- /** 抽屜大小 */
147
+ /** 抽屜大小,預設為 '50%' */
148
148
  drawerSize?: string
149
149
  }
150
150
 
@@ -758,8 +758,6 @@ export interface PluginOptions {
758
758
  autoImportStyles?: boolean
759
759
  /** 自定義前綴 */
760
760
  prefix?: string
761
- /** Element Plus 語系設定 */
762
- locale?: any
763
761
  }
764
762
 
765
763
  /** 插件實例類型 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -3,10 +3,15 @@ import { ref, useAttrs } from 'vue'
3
3
  import { BaseBtn } from '@/components'
4
4
  import { Search, Filter } from '@element-plus/icons-vue'
5
5
 
6
- const props = defineProps<{
7
- badgeValue?: number
8
- drawerSize?: string
9
- }>()
6
+ const props = withDefaults(
7
+ defineProps<{
8
+ badgeValue?: number
9
+ drawerSize?: string
10
+ }>(),
11
+ {
12
+ drawerSize: '50%',
13
+ },
14
+ )
10
15
 
11
16
  // 獲取所有非 props 屬性
12
17
  const attrs = useAttrs()
@@ -20,7 +20,7 @@ const props = withDefaults(
20
20
  <template>
21
21
  <function-header :title="props.title" :showBack="props.showBack" :depth="props.depth" />
22
22
 
23
- <el-scrollbar :max-height="maxHeight" class="max-h-fit max-w-screen-xl overflow-auto">
23
+ <el-scrollbar :max-height="maxHeight" class="w-screen overflow-auto">
24
24
  <div v-if="$slots.searchBar" class="px-4 pt-1.5">
25
25
  <slot name="searchBar" />
26
26
  </div>
@@ -145,7 +145,7 @@ export interface BaseBtnInstance {
145
145
  export interface FilterBtnProps {
146
146
  /** 徽章數值 */
147
147
  badgeValue?: number
148
- /** 抽屜大小 */
148
+ /** 抽屜大小,預設為 '50%' */
149
149
  drawerSize?: string
150
150
  }
151
151
 
@@ -759,8 +759,6 @@ export interface PluginOptions {
759
759
  autoImportStyles?: boolean
760
760
  /** 自定義前綴 */
761
761
  prefix?: string
762
- /** Element Plus 語系設定 */
763
- locale?: any
764
762
  }
765
763
 
766
764
  /** 插件實例類型 */