mortise-tenon-design 0.0.17 → 0.0.18

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mortise-tenon-design",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "description": "榫卯组件库",
6
6
  "author": "nixwai",
7
7
  "license": "ISC",
@@ -12,7 +12,7 @@
12
12
  "main": "lib/index.js",
13
13
  "module": "es/index.mjs",
14
14
  "types": "types/index.d.ts",
15
- "files": ["es", "lib"],
15
+ "files": ["es", "lib", "types"],
16
16
  "peerDependencies": {
17
17
  "vue": "^3.4.0"
18
18
  },
@@ -0,0 +1,32 @@
1
+ export declare const MtExpandBox: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/expand-box').ExpandBoxProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ open: boolean;
4
+ targetRange: number;
5
+ transitionTime: number;
6
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<import('./src/expand-box').ExpandBoxProps> & Readonly<{}>, {}, {}, {}, {}, {
14
+ open: boolean;
15
+ targetRange: number;
16
+ transitionTime: number;
17
+ }>;
18
+ __isFragment?: never;
19
+ __isTeleport?: never;
20
+ __isSuspense?: never;
21
+ } & import('vue').ComponentOptionsBase<Readonly<import('./src/expand-box').ExpandBoxProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
22
+ open: boolean;
23
+ targetRange: number;
24
+ transitionTime: number;
25
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
+ $slots: {
27
+ default?(_: {
28
+ open: boolean;
29
+ isOutRange: boolean;
30
+ }): any;
31
+ };
32
+ });
@@ -0,0 +1,8 @@
1
+ export interface ExpandBoxProps {
2
+ /** 控制是否展开 */
3
+ open?: boolean;
4
+ /** 达到可调整的目标范围(px) */
5
+ targetRange?: number;
6
+ /** 过渡时间(ms) */
7
+ transitionTime?: number;
8
+ }
@@ -0,0 +1,26 @@
1
+ import { ExpandBoxProps } from './expand-box';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {
5
+ open: boolean;
6
+ isOutRange: boolean;
7
+ }): any;
8
+ };
9
+ refs: {
10
+ contentRef: HTMLDivElement;
11
+ };
12
+ attrs: Partial<{}>;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<ExpandBoxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExpandBoxProps> & Readonly<{}>, {
16
+ open: boolean;
17
+ targetRange: number;
18
+ transitionTime: number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1 @@
1
+ export * from './expand-box';