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.
- package/README.md +9 -10
- package/dist/index.es.js +2040 -2222
- package/dist/index.umd.js +14 -14
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/items/FilterBtn.vue.d.ts +3 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/types/components.d.ts +1 -3
- package/package.json +1 -1
- package/src/components/items/FilterBtn.vue +9 -4
- package/src/components/layout/MainPanel.vue +1 -1
- package/src/types/components.d.ts +1 -3
|
@@ -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
|
-
}>, {
|
|
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 & {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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
|
@@ -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 =
|
|
7
|
-
|
|
8
|
-
|
|
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="
|
|
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
|
/** 插件實例類型 */
|