@nova-kits/components 1.0.3-alpha.0 → 1.0.3-alpha.1

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,4 +1,4 @@
1
- import type { Tab, LayoutTabsProps } from './typing';
1
+ import type { LayoutTabsProps } from './typing';
2
2
  declare var __VLS_1: {}, __VLS_27: {}, __VLS_30: string, __VLS_31: {}, __VLS_33: {};
3
3
  type __VLS_Slots = {} & {
4
4
  [K in NonNullable<typeof __VLS_30>]?: (props: typeof __VLS_31) => any;
@@ -25,7 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<LayoutTabsProps, {}, {},
25
25
  style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
26
26
  class: string | false | Record<string, any> | import("vue").ClassValue[] | null;
27
27
  activeKey: string;
28
- tabs: Tab[];
28
+ tabs: import("./typing").Tab[];
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
31
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,47 @@
1
+ import type { StyleValue, ClassValue } from 'vue';
2
+ interface SectionProps {
3
+ /** 标题 */
4
+ title?: string;
5
+ /** 容器样式 */
6
+ style?: StyleValue;
7
+ /** 容器类名 */
8
+ class?: ClassValue;
9
+ /** 标签页配置 */
10
+ tabs?: {
11
+ title?: string;
12
+ key: string;
13
+ forceRender?: boolean;
14
+ }[];
15
+ /** 是否隐藏标签栏 */
16
+ hideTabBar?: boolean;
17
+ /** 内容区域样式 */
18
+ bodyStyle?: StyleValue;
19
+ /** 弹性布局 */
20
+ flex?: boolean | number;
21
+ /** 是否启用标题背景色 */
22
+ titleBar?: boolean;
23
+ }
24
+ declare var __VLS_1: {}, __VLS_18: `tab-${string}`, __VLS_19: {}, __VLS_21: {};
25
+ type __VLS_Slots = {} & {
26
+ [K in NonNullable<typeof __VLS_18>]?: (props: typeof __VLS_19) => any;
27
+ } & {
28
+ actions?: (props: typeof __VLS_1) => any;
29
+ } & {
30
+ default?: (props: typeof __VLS_21) => any;
31
+ };
32
+ declare const __VLS_base: import("vue").DefineComponent<SectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ "tab-change": (activeKey: string, activeIndex: number) => any;
34
+ }, string, import("vue").PublicProps, Readonly<SectionProps> & Readonly<{
35
+ "onTab-change"?: ((activeKey: string, activeIndex: number) => any) | undefined;
36
+ }>, {
37
+ hideTabBar: boolean;
38
+ titleBar: boolean;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,3 @@
1
+ import Section from './Section.vue';
2
+ export { Section, Section as NSection };
3
+ export default Section;
@@ -1 +1 @@
1
- export declare const PREFIX_CLS = "nova";
1
+ export declare const PREFIX_CLS = "nv";
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import 'element-plus/dist/index.css';
4
4
  import './styles/scrollbar.scss';
5
5
  import './styles/_variables.scss';
6
6
  export { NLayoutWithSub as NLayout, NLayoutTabs, NLayoutPortal, useTabFocus } from './Layout/index';
7
+ export { NSection } from './Section/index';
7
8
  export declare function install(app: App): void;
8
9
  declare const _default: {
9
10
  install: typeof install;