ant-design-x-vue 0.1.1 → 0.1.3

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.
@@ -67,6 +67,7 @@ export interface AttachmentsProps extends Omit<UploadProps, 'fileList'> {
67
67
  getDropContainer?: null | (() => HTMLElement | null | undefined);
68
68
  items?: Attachment[];
69
69
  overflow?: FileListProps['overflow'];
70
+ beforeUpload?: UploadProps['beforeUpload'];
70
71
  onChange?: (info: UploadChangeParam<UploadFile>) => void;
71
72
  }
72
73
  export interface AttachmentsRef {
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ prefixCls: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -1,9 +1,9 @@
1
1
  declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: {
3
+ htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
3
4
  loading?: boolean | {
4
5
  delay?: number;
5
6
  };
6
- htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
7
7
  size?: import("ant-design-vue/es/config-provider/context.js").SizeType;
8
8
  prefixCls?: string;
9
9
  type?: import("ant-design-vue/es/button/buttonTypes.js").ButtonType;
@@ -1,9 +1,9 @@
1
1
  declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: {
3
+ htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
3
4
  loading?: boolean | {
4
5
  delay?: number;
5
6
  };
6
- htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
7
7
  size?: import("ant-design-vue/es/config-provider/context.js").SizeType;
8
8
  prefixCls?: string;
9
9
  type?: import("ant-design-vue/es/button/buttonTypes.js").ButtonType;
@@ -1,9 +1,9 @@
1
1
  declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: {
3
+ htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
3
4
  loading?: boolean | {
4
5
  delay?: number;
5
6
  };
6
- htmlType?: import("ant-design-vue/es/button/buttonTypes.js").ButtonHTMLType;
7
7
  size?: import("ant-design-vue/es/config-provider/context.js").SizeType;
8
8
  prefixCls?: string;
9
9
  type?: import("ant-design-vue/es/button/buttonTypes.js").ButtonType;
@@ -19,12 +19,13 @@ export type ActionsRender = (ori: VNode, info: {
19
19
  LoadingButton: typeof LoadingButton;
20
20
  };
21
21
  }) => VNode;
22
- export interface SenderProps extends Pick<TextAreaProps, 'placeholder'> {
22
+ export interface SenderProps {
23
23
  onKeyPress?: KeyboardEventHandler;
24
24
  prefixCls?: string;
25
25
  defaultValue?: string;
26
26
  value?: string;
27
27
  loading?: boolean;
28
+ placeholder?: TextAreaProps['placeholder'];
28
29
  readOnly?: boolean;
29
30
  submitType?: SubmitType;
30
31
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import type { GenerateStyle } from '../../theme/cssinjs-utils';
2
1
  import type { SenderToken } from '.';
2
+ import type { GenerateStyle } from '../../theme/cssinjs-utils';
3
3
  declare const genSenderHeaderStyle: GenerateStyle<SenderToken>;
4
4
  export default genSenderHeaderStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant-design-x-vue",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A vue library developed with dumi",
5
5
  "scripts": {
6
6
  "build": "vite build && vue-tsc --project ./tsconfig.build.json",
@@ -8,11 +8,12 @@
8
8
  "dev": "dumi dev",
9
9
  "docs:build": "vitepress build docs",
10
10
  "docs:preview": "vitepress preview docs",
11
- "lint": "npm run lint:es && npm run lint:css",
11
+ "lint": "npm run lint:es",
12
12
  "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
13
13
  "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx,vue}\"",
14
14
  "prepare": "husky install && dumi setup",
15
15
  "prepublishOnly": "npm run test && npm run build",
16
+ "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
16
17
  "start": "npm run dev",
17
18
  "test": "vitest",
18
19
  "test:cov": "vitest --coverage",
@@ -91,6 +92,7 @@
91
92
  "@vue/shared": "^3.5.13",
92
93
  "@vue/test-utils": "^2.4.6",
93
94
  "@vueuse/core": "^12.2.0",
95
+ "changelogen": "^0.5.7",
94
96
  "dumi": "^2.4.13",
95
97
  "eslint": "^8.57.1",
96
98
  "eslint-plugin-vue": "^9.17.0",