lew-ui 2.7.1 → 2.7.4

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.
Files changed (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -3
  3. package/dist/components/action-box/src/LewActionBox.vue.d.ts +2 -2
  4. package/dist/components/action-box/src/props.d.ts +1 -2
  5. package/dist/components/alert/src/LewAlert.vue.d.ts +11 -5
  6. package/dist/components/alert/src/props.d.ts +1 -2
  7. package/dist/components/avatar/src/LewAvatar.vue.d.ts +1 -1
  8. package/dist/components/avatar/src/props.d.ts +1 -2
  9. package/dist/components/back-top/src/LewBackTop.vue.d.ts +9 -3
  10. package/dist/components/back-top/src/props.d.ts +0 -1
  11. package/dist/components/badge/src/LewBadge.vue.d.ts +10 -4
  12. package/dist/components/badge/src/props.d.ts +0 -1
  13. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +1 -1
  14. package/dist/components/breadcrumb/src/props.d.ts +0 -1
  15. package/dist/components/button/src/LewButton.vue.d.ts +17 -6
  16. package/dist/components/button/src/props.d.ts +1 -2
  17. package/dist/components/cascader/src/LewCascader.vue.d.ts +440 -12
  18. package/dist/components/cascader/src/props.d.ts +13 -4
  19. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +11 -5
  20. package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +13 -12
  21. package/dist/components/checkbox/src/props.d.ts +3 -4
  22. package/dist/components/collapse/src/LewCollapse.vue.d.ts +21 -7
  23. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +28 -14
  24. package/dist/components/collapse/src/props.d.ts +0 -1
  25. package/dist/components/color-picker/src/LewColorPicker.vue.d.ts +13 -5
  26. package/dist/components/color-picker/src/props.d.ts +0 -1
  27. package/dist/components/date-picker/src/LewDate.vue.d.ts +11 -4
  28. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +254 -7
  29. package/dist/components/date-picker/src/date.d.ts +3 -3
  30. package/dist/components/date-picker/src/props.d.ts +3 -4
  31. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +19 -8
  32. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +296 -8
  33. package/dist/components/date-range-picker/src/props.d.ts +1 -2
  34. package/dist/components/desc/src/LewDesc.vue.d.ts +48 -3
  35. package/dist/components/desc/src/LewDescItem.vue.d.ts +5 -4
  36. package/dist/components/desc/src/props.d.ts +3 -4
  37. package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -9
  38. package/dist/components/drawer/src/props.d.ts +0 -1
  39. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +407 -7
  40. package/dist/components/dropdown/src/props.d.ts +1 -2
  41. package/dist/components/empty/src/LewEmpty.vue.d.ts +8 -8
  42. package/dist/components/empty/src/props.d.ts +0 -1
  43. package/dist/components/expand/src/LewExpand.vue.d.ts +13 -3
  44. package/dist/components/expand/src/props.d.ts +0 -1
  45. package/dist/components/flex/src/LewFlex.vue.d.ts +10 -4
  46. package/dist/components/flex/src/props.d.ts +0 -1
  47. package/dist/components/form/src/LewForm.vue.d.ts +60 -11
  48. package/dist/components/form/src/LewFormItem.vue.d.ts +20 -9
  49. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  50. package/dist/components/form/src/RequiredIcon.vue.d.ts +1 -1
  51. package/dist/components/form/src/props.d.ts +2 -3
  52. package/dist/components/image/src/LewImage.vue.d.ts +10 -4
  53. package/dist/components/image/src/props.d.ts +0 -1
  54. package/dist/components/index.d.ts +35 -35
  55. package/dist/components/input/src/LewInput.vue.d.ts +33 -16
  56. package/dist/components/input/src/props.d.ts +1 -2
  57. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +18 -12
  58. package/dist/components/input-number/src/props.d.ts +1 -2
  59. package/dist/components/input-table/src/FormModal.vue.d.ts +220 -5
  60. package/dist/components/input-table/src/LewInputTable.vue.d.ts +563 -12
  61. package/dist/components/input-table/src/props.d.ts +3 -4
  62. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +359 -5
  63. package/dist/components/input-tag/src/props.d.ts +0 -1
  64. package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
  65. package/dist/components/mark/src/LewMark.vue.d.ts +19 -13
  66. package/dist/components/mark/src/props.d.ts +0 -1
  67. package/dist/components/menu/src/LewMenu.vue.d.ts +9 -4
  68. package/dist/components/menu/src/props.d.ts +3 -4
  69. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +26 -9
  70. package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +28 -22
  71. package/dist/components/menu-tree/src/props.d.ts +3 -4
  72. package/dist/components/modal/src/LewModal.vue.d.ts +27 -11
  73. package/dist/components/modal/src/props.d.ts +0 -1
  74. package/dist/components/pagination/src/LewPagination.vue.d.ts +30 -10
  75. package/dist/components/pagination/src/props.d.ts +1 -2
  76. package/dist/components/popok/src/LewPopok.vue.d.ts +853 -6
  77. package/dist/components/popok/src/props.d.ts +0 -1
  78. package/dist/components/popover/src/LewPopover.vue.d.ts +29 -14
  79. package/dist/components/popover/src/props.d.ts +0 -1
  80. package/dist/components/radio/src/LewRadio.vue.d.ts +3 -3
  81. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +11 -6
  82. package/dist/components/radio/src/props.d.ts +1 -2
  83. package/dist/components/rate/src/LewRate.vue.d.ts +12 -4
  84. package/dist/components/rate/src/props.d.ts +1 -2
  85. package/dist/components/select/src/LewSelect.vue.d.ts +1038 -17
  86. package/dist/components/select/src/props.d.ts +21 -6
  87. package/dist/components/select/src/util.d.ts +3 -4
  88. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +1428 -19
  89. package/dist/components/select-multiple/src/props.d.ts +22 -8
  90. package/dist/components/slider/src/LewSlider.vue.d.ts +15 -6
  91. package/dist/components/slider/src/props.d.ts +3 -4
  92. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +20 -6
  93. package/dist/components/slider-range/src/props.d.ts +3 -4
  94. package/dist/components/steps/src/LewSteps.vue.d.ts +14 -6
  95. package/dist/components/steps/src/props.d.ts +2 -3
  96. package/dist/components/switch/src/LewSwitch.vue.d.ts +9 -3
  97. package/dist/components/switch/src/props.d.ts +1 -2
  98. package/dist/components/table/src/LewTable.vue.d.ts +53 -25
  99. package/dist/components/table/src/props.d.ts +1 -2
  100. package/dist/components/tabs/src/LewTabs.vue.d.ts +15 -12
  101. package/dist/components/tabs/src/props.d.ts +2 -3
  102. package/dist/components/tag/src/LewTag.vue.d.ts +11 -5
  103. package/dist/components/tag/src/props.d.ts +1 -2
  104. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +18 -5
  105. package/dist/components/text-trim/src/props.d.ts +0 -1
  106. package/dist/components/text-trim/src/text-trim.d.ts +3 -3
  107. package/dist/components/textarea/src/LewTextarea.vue.d.ts +19 -9
  108. package/dist/components/textarea/src/props.d.ts +1 -2
  109. package/dist/components/title/src/LewTitle.vue.d.ts +9 -3
  110. package/dist/components/title/src/props.d.ts +0 -1
  111. package/dist/components/tree/src/LewTree.vue.d.ts +36 -17
  112. package/dist/components/tree/src/LewTreeItem.vue.d.ts +21 -15
  113. package/dist/components/tree/src/props.d.ts +3 -4
  114. package/dist/components/tree/src/transformTree.d.ts +7 -18
  115. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +1055 -26
  116. package/dist/components/tree-select/src/props.d.ts +18 -8
  117. package/dist/components/upload/src/LewUpload.vue.d.ts +169 -8
  118. package/dist/components/upload/src/LewUploadByCard.vue.d.ts +9 -4
  119. package/dist/components/upload/src/LewUploadByList.vue.d.ts +9 -4
  120. package/dist/components/upload/src/props.d.ts +4 -5
  121. package/dist/constants/index.d.ts +0 -1
  122. package/dist/directives/backtop/src/index.d.ts +0 -1
  123. package/dist/directives/context-menu/index.d.ts +1 -1
  124. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -3
  125. package/dist/directives/context-menu/src/index.d.ts +28 -29
  126. package/dist/directives/hover-menu/src/index.d.ts +15 -2
  127. package/dist/directives/index.d.ts +2 -2
  128. package/dist/directives/loading/src/index.d.ts +0 -1
  129. package/dist/directives/tooltip/src/index.d.ts +0 -1
  130. package/dist/index.css +1 -0
  131. package/dist/index.d.ts +3 -3
  132. package/dist/{index.mjs → index.js} +23901 -23191
  133. package/dist/index.umd.cjs +40 -0
  134. package/dist/locals/de.d.ts +3 -0
  135. package/dist/locals/en.d.ts +3 -0
  136. package/dist/locals/es.d.ts +3 -0
  137. package/dist/locals/fr.d.ts +3 -0
  138. package/dist/locals/index.d.ts +9 -10
  139. package/dist/locals/it.d.ts +3 -0
  140. package/dist/locals/ja.d.ts +3 -0
  141. package/dist/locals/ko.d.ts +3 -0
  142. package/dist/locals/pt.d.ts +3 -0
  143. package/dist/locals/zh.d.ts +3 -0
  144. package/dist/methods/dialog/src/LewDialog.vue.d.ts +464 -6
  145. package/dist/methods/dialog/src/index.d.ts +4 -4
  146. package/dist/methods/dialog/src/props.d.ts +0 -1
  147. package/dist/methods/index.d.ts +1 -1
  148. package/dist/methods/message/src/index.d.ts +0 -1
  149. package/dist/methods/notification/src/components/NotificationContainer.vue.d.ts +5 -3
  150. package/dist/methods/notification/src/components/NotificationItem.vue.d.ts +6 -21
  151. package/dist/methods/notification/src/index.d.ts +9 -9
  152. package/dist/utils/index.d.ts +27 -115
  153. package/package.json +47 -69
  154. package/README.zh-CN.md +0 -48
  155. package/dist/index.umd.js +0 -46
  156. package/dist/style.css +0 -1
@@ -1,29 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
1
+ type __VLS_Props = {
2
2
  type: string;
3
3
  title: string;
4
4
  content: string;
5
5
  duration: number;
6
6
  showProgress: boolean;
7
7
  width: number | string;
8
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- close: () => void;
10
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
- type: string;
12
- title: string;
13
- content: string;
14
- duration: number;
15
- showProgress: boolean;
16
- width: number | string;
17
- }>>> & Readonly<{
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ close: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
12
  onClose?: (() => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
14
  export default _default;
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToRuntimeProps<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
@@ -1,10 +1,10 @@
1
- export type NotificationParamsTyped = {
1
+ export interface NotificationParamsTyped {
2
2
  title: string;
3
3
  content: string;
4
4
  duration?: number;
5
5
  showProgress?: boolean;
6
6
  width?: number | string;
7
- };
7
+ }
8
8
  export type NotificationFn = (options: NotificationParamsTyped) => {
9
9
  close: () => void;
10
10
  };
@@ -18,27 +18,27 @@ export interface NotificationInstance {
18
18
  }
19
19
  export declare const LewNotification: {
20
20
  name: string;
21
- warning: ({ title, content, duration, showProgress, width }: NotificationParamsTyped) => {
21
+ warning: ({ title, content, duration, showProgress, width, }: NotificationParamsTyped) => {
22
22
  close: () => void;
23
23
  };
24
- info: ({ title, content, duration, showProgress, width }: NotificationParamsTyped) => {
24
+ info: ({ title, content, duration, showProgress, width, }: NotificationParamsTyped) => {
25
25
  close: () => void;
26
26
  };
27
- normal: ({ title, content, duration, showProgress, width }: NotificationParamsTyped) => {
27
+ normal: ({ title, content, duration, showProgress, width, }: NotificationParamsTyped) => {
28
28
  close: () => void;
29
29
  };
30
- success: ({ title, content, duration, showProgress, width }: NotificationParamsTyped) => {
30
+ success: ({ title, content, duration, showProgress, width, }: NotificationParamsTyped) => {
31
31
  close: () => void;
32
32
  };
33
- error: ({ title, content, duration, showProgress, width }: NotificationParamsTyped) => {
33
+ error: ({ title, content, duration, showProgress, width, }: NotificationParamsTyped) => {
34
34
  close: () => void;
35
35
  };
36
36
  };
37
- export type LewNotification = {
37
+ export interface LewNotificationInterface {
38
38
  name: string;
39
39
  warning: NotificationFn;
40
40
  info: NotificationFn;
41
41
  normal: NotificationFn;
42
42
  success: NotificationFn;
43
43
  error: NotificationFn;
44
- };
44
+ }
@@ -1,94 +1,29 @@
1
- /**
2
- * 获取颜色类型。
3
- * @param {string | undefined} type - 消息类型。
4
- * @returns {string} 对应的颜色类型。
5
- */
6
1
  export declare const iconColorType: Record<string, string>;
7
- export declare const getColorType: (type: string) => string;
8
- /**
9
- * 将对象转换为类名字符串。
10
- * @param {string} prefix - 类名前缀。
11
- * @param {Object} props - 要转换的属性对象。
12
- * @returns {string} 生成的类名字符串。
13
- */
14
- export declare const object2class: (prefix: string, props: Object) => string;
15
- /**
16
- * 格式化数字,添加千位分隔符。
17
- * @param {number} num - 要格式化的数字。
18
- * @returns {string} 格式化后的字符串。
19
- */
20
- export declare const numFormat: (num: number) => string;
21
- /**
22
- * 将任意值转换为像素值。
23
- * @param {number | string | undefined} value - 要转换的值。
24
- * @returns {string} 转换后的像素值字符串。
25
- */
26
- export declare const any2px: (value: number | string | undefined) => string;
27
- /**
28
- * 针对上面的 any2px 写一个类型校验方法,确保输入的值是有效的 CSS 值,可以是百分比或者 calc 计算。
29
- * @param {number | string | undefined} value - 要校验的值。
30
- * @returns {boolean} 如果输入的值是有效的 CSS 值,则返回 true,否则返回 false。
31
- */
32
- export declare const isValidCssValue: ({ name, field, value }: {
2
+ export declare function getColorType(type: string): string;
3
+ export declare function object2class(prefix: string, props: object): string;
4
+ export declare function numFormat(num: number): string;
5
+ export declare function any2px(value: number | string | undefined): string;
6
+ export declare function isValidCssValue({ name, field, value, }: {
33
7
  name: string;
34
8
  field: string;
35
9
  value: number | string | undefined;
36
- }) => boolean;
37
- /**
38
- * 生成6位不重复的唯一ID。
39
- * 使用 UUID v4 的前6位,确保唯一性。
40
- * @returns {string} 生成的6位唯一ID。
41
- */
42
- export declare const getUniqueId: () => string;
43
- /**
44
- * 根据映射格式化表单数据。
45
- * @param {any} formMap - 表单映射。
46
- * @returns {Object} 格式化后的表单数据。
47
- */
48
- export declare const formatFormByMap: (formMap: any) => {};
49
- /**
50
- * 将嵌套对象转换为以 a.b.c.d 形式表示的扁平对象。
51
- * @param {Object} form - 嵌套的表单数据。
52
- * @returns {any} 转换后的扁平对象映射。
53
- */
54
- export declare const flattenNestedObject: (form: any) => Record<string, any>;
55
- /**
56
- * 获取嵌套对象中指定字段的值。
57
- * @param {Object} obj - 要查询的对象。
58
- * @param {string} field - 嵌套字段的字符串表示,使用 '.' 分隔。
59
- * @returns {any} 返回目标字段的值,如果字段不存在则返回 undefined。
60
- */
61
- export declare const retrieveNestedFieldValue: (obj: any, field: string) => any;
62
- /**
63
- * 格式化字节数。
64
- * @param {number} bytes - 字节数。
65
- * @param {number} [decimals=2] - 小数位数。
66
- * @returns {string} 格式化后的字符串。
67
- */
68
- export declare const formatBytes: (bytes: number, decimals?: number) => string;
69
- /**
70
- * 获取静态资源文件。
71
- * @param {Object} options - 配置选项。
72
- * @param {string} options.name - 文件名。
73
- * @param {string} options.type - 资源类型。
74
- * @returns {string} 静态资源文件的URL。
75
- */
76
- export declare const getAssetsFile: ({ name, type }: {
10
+ }): boolean;
11
+ export declare function getUniqueId(): string;
12
+ export declare function formatFormByMap(formMap: any): {};
13
+ export declare function flattenNestedObject(form: any): Record<string, any>;
14
+ export declare function retrieveNestedFieldValue(obj: any, field: string): any;
15
+ export declare function formatBytes(bytes: number, decimals?: number): string;
16
+ export declare function getAssetsFile({ name, type, }: {
77
17
  name: string;
78
18
  type: string;
79
- }) => string;
80
- /**
81
- * 根据文件名获取对应的文件图标。
82
- * @param {string} [fileName=''] - 文件名。
83
- * @returns {string} 文件图标的URL。
84
- */
85
- export declare const getFileIcon: (fileName?: string) => string;
86
- export declare const getIconInnerHTML: (e?: any) => string;
87
- export declare const checkUrlIsImage: (url?: string) => boolean;
88
- export declare const dragmove: ({ el, parentEl, direction, callback, max, min, step, trackMax, trackMin }: {
19
+ }): string;
20
+ export declare function getFileIcon(fileName?: string): string;
21
+ export declare function getIconInnerHTML(e?: any): string;
22
+ export declare function checkUrlIsImage(url?: string): boolean;
23
+ export declare function dragmove({ el, parentEl, direction, callback, max, min, step, trackMax, trackMin, }: {
89
24
  el: HTMLElement;
90
25
  parentEl: HTMLElement;
91
- direction?: "horizontal" | "vertical" | "both";
26
+ direction?: 'horizontal' | 'vertical' | 'both';
92
27
  callback?: (position: {
93
28
  x: number;
94
29
  y: number;
@@ -100,39 +35,16 @@ export declare const dragmove: ({ el, parentEl, direction, callback, max, min, s
100
35
  step?: () => number;
101
36
  trackMax: () => number;
102
37
  trackMin: () => number;
103
- }) => () => void;
104
- /**
105
- * 将字符串转换为标准的 JSON 格式。
106
- * 兼容单引号、双引号以及无引号的字段名。
107
- * @param {string} str - 要转换的字符串。
108
- * @returns {any} 解析后的 JSON 对象。
109
- */
110
- export declare const parseToStandardJSON: (str: string) => any;
111
- /**
112
- * 轮询方法
113
- * @param {number} interval - 轮询间隔时间(ms)
114
- * @param {number} timeout - 轮询总时长(ms)
115
- * @param {Function} callback - 轮询回调函数
116
- * @param {Function} vail - 判断依据 如果 true 停止轮询
117
- */
118
- export declare const poll: ({ interval, timeout, callback, vail }: {
38
+ }): () => void;
39
+ export declare function parseToStandardJSON(str: string): any;
40
+ export declare function poll({ interval, timeout, callback, vail, }: {
119
41
  interval?: number;
120
42
  timeout?: number;
121
43
  callback: () => void;
122
44
  vail: () => boolean;
123
- }) => void;
124
- export declare const insertChildByKey: (tree: any, key: string | number, newChild: any) => boolean;
125
- export declare const findAllChildrenKeys: (node: any) => (string | number)[];
126
- export declare const findNodeByKey: (key: string | number, tree: any) => any;
127
- /**
128
- * 判断是否为 Vue 组件
129
- * @param {any} value - 要判断的值
130
- * @returns {boolean} 如果值是 Vue 组件则返回 true,否则返回 false
131
- */
132
- export declare const isVueComponent: (value: any) => boolean;
133
- /**
134
- * 格式化组件
135
- * @param {any} value - 要格式化的值
136
- * @returns {any} 格式化后的值
137
- */
138
- export declare const formatComponent: (value: any) => any;
45
+ }): void;
46
+ export declare function insertChildByKey(tree: any, key: string | number, newChild: any): boolean;
47
+ export declare function findAllChildrenKeys(node: any): (string | number)[];
48
+ export declare function findNodeByKey(key: string | number, tree: any): any;
49
+ export declare function isVueComponent(value: any): boolean;
50
+ export declare function formatComponent(value: any): any;
package/package.json CHANGED
@@ -1,109 +1,87 @@
1
1
  {
2
2
  "name": "lew-ui",
3
- "version": "2.7.1",
3
+ "type": "module",
4
+ "version": "2.7.4",
4
5
  "description": "A Component Library for Vue3.js.",
6
+ "author": "lewkamtao",
7
+ "license": "MIT",
5
8
  "keywords": [
6
9
  "vue3",
7
10
  "components",
8
11
  "ui library",
9
12
  "frontend"
10
13
  ],
11
- "author": "lewkamtao",
12
- "license": "MIT",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.mjs",
18
+ "require": "./dist/index.umd.js"
19
+ },
20
+ "./style": "./dist/style.css"
21
+ },
22
+ "main": "./dist/index.umd.js",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts",
25
+ "files": [
26
+ "LICENSE",
27
+ "README.md",
28
+ "dist",
29
+ "package.json"
30
+ ],
13
31
  "scripts": {
14
32
  "dev": "vite",
33
+ "build:tsdown": "tsdown",
15
34
  "build:docs": "vue-tsc --noEmit && vite build --mode docs",
16
35
  "build:lib": "vue-tsc --noEmit && vite build --mode lib",
17
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
18
- "format": "prettier --write lib/",
36
+ "lint": "eslint",
37
+ "lint:fix": "eslint --fix",
19
38
  "test": "vitest",
20
39
  "test:coverage": "vitest --coverage",
21
- "prepare": "husky install"
40
+ "typecheck": "vue-tsc --noEmit"
22
41
  },
23
- "files": [
24
- "dist",
25
- "package.json",
26
- "README.md",
27
- "LICENSE"
28
- ],
29
- "main": "./dist/index.umd.js",
30
- "module": "./dist/index.mjs",
31
- "types": "./dist/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "import": "./dist/index.mjs",
35
- "require": "./dist/index.umd.js",
36
- "types": "./dist/index.d.ts"
37
- },
38
- "./style": "./dist/style.css"
42
+ "peerDependencies": {
43
+ "vue": "^3.5.3"
39
44
  },
40
45
  "dependencies": {
41
46
  "@highlightjs/vue-plugin": "^2.1.0",
42
- "@vueuse/core": "^10.11.0",
47
+ "@types/lodash-es": "^4.17.12",
48
+ "@vueuse/core": "^13.5.0",
43
49
  "axios": "^1.6.7",
44
50
  "dayjs": "^1.11.7",
45
51
  "highlight.js": "^11.9.0",
46
52
  "lodash-es": "^4.17.21",
47
53
  "lucide-vue-next": "^0.471.0",
54
+ "rollup-plugin-scss": "^4.0.1",
48
55
  "tippy.js": "^6.3.7",
49
56
  "vue-i18n": "^11.1.0",
50
57
  "vue-router": "^4.0.13",
51
- "vue-virt-list": "^1.5.9",
58
+ "vue-virt-list": "^1.5.11",
52
59
  "vuedraggable": "^4.1.0",
53
60
  "yup": "^1.2.0"
54
61
  },
55
62
  "devDependencies": {
56
- "@rushstack/eslint-patch": "^1.8.0",
57
- "@tsconfig/node20": "^20.1.4",
58
- "@types/lodash-es": "^4.17.12",
59
- "@types/node": "^20.12.5",
60
- "@typescript-eslint/eslint-plugin": "^5.40.1",
61
- "@typescript-eslint/parser": "^5.40.1",
62
- "@vitejs/plugin-vue": "^5.0.4",
63
+ "@antfu/eslint-config": "^4.17.0",
64
+ "@types/node": "^22.16.0",
65
+ "@vitejs/plugin-vue": "^6.0.0",
63
66
  "@vitejs/plugin-vue-jsx": "^1.3.10",
64
- "@vue/eslint-config-prettier": "^9.0.0",
65
- "@vue/eslint-config-typescript": "^13.0.0",
66
- "@vue/test-utils": "^2.0.2",
67
- "@vue/tsconfig": "^0.5.1",
68
- "c8": "^7.12.0",
69
- "eslint": "^8.57.0",
70
- "eslint-config-airbnb-base": "^15.0.0",
71
- "eslint-config-prettier": "^8.3.0",
72
- "eslint-plugin-html": "^7.1.0",
73
- "eslint-plugin-import": "^2.26.0",
74
- "eslint-plugin-vue": "^9.23.0",
75
- "husky": "^8.0.0",
76
- "jsdom": "^20.0.0",
77
- "lint-staged": "^13.2.2",
78
- "prettier": "^3.2.5",
79
- "rollup-plugin-visualizer": "^5.12.0",
80
- "sass": "^1.79.4",
67
+ "@vue/test-utils": "^2.4.6",
68
+ "bumpp": "^10.2.0",
69
+ "eslint": "^9.30.1",
70
+ "happy-dom": "^18.0.1",
71
+ "sass": "^1.89.2",
81
72
  "terser": "^5.31.6",
82
- "typescript": "^5.4.5",
73
+ "tsdown": "^0.12.9",
74
+ "tsx": "^4.20.3",
75
+ "typescript": "^5.8.3",
83
76
  "unplugin-auto-import": "^0.17.5",
84
- "vite": "^5.4.8",
77
+ "vite": "^7.0.2",
85
78
  "vite-plugin-checker": "^0.6.4",
86
79
  "vite-plugin-compression": "^0.5.1",
87
- "vite-plugin-dts": "^3.8.2",
80
+ "vite-plugin-dts": "^4.5.4",
88
81
  "vite-plugin-style-import": "^2.0.0",
89
82
  "vite-plugin-zip-pack": "^1.2.3",
90
- "vitest": "^0.21.1",
91
- "vue": "^3.5.3",
92
- "vue-tsc": "^2.0.11"
93
- },
94
- "peerDependencies": {
95
- "vue": "^3.5.3"
96
- },
97
- "config": {
98
- "commitizen": {
99
- "path": "node_modules/cz-customizable"
100
- },
101
- "cz-customizable": {
102
- "config": ".cz-config.cjs"
103
- }
104
- },
105
- "lint-staged": {
106
- "*.{js,ts,vue}": "eslint --fix",
107
- "*.{css,scss,vue}": "prettier --write"
83
+ "vitest": "^3.2.4",
84
+ "vue": "^3.5.17",
85
+ "vue-tsc": "^3.0.1"
108
86
  }
109
87
  }
package/README.zh-CN.md DELETED
@@ -1,48 +0,0 @@
1
- # Lew UI
2
-
3
- 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
-
5
- [英文](./README.md) | 中文
6
-
7
- ## 安装
8
-
9
- ```bash
10
- npm install lew-ui
11
- ```
12
-
13
- ## 如何使用
14
-
15
- main.ts
16
-
17
- ```js
18
- // main.ts
19
- import 'lew-ui/style'
20
- ```
21
-
22
- ```vue
23
- <script setup lang="ts">
24
- // page.vue
25
- import { LewButton } from 'lew-ui'
26
- </script>
27
-
28
- <template>
29
- <lew-button text="提交" />
30
- </template>
31
- ```
32
-
33
- ## 开源库声明
34
-
35
- Lew UI 使用了以下开源库:
36
-
37
- - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
- - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
- - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
40
- - [Day.js](https://day.js.org/): 轻量级日期处理库
41
- - [Yup](https://github.com/jquense/yup): 对象模式验证库
42
- - [vue-virt-list](https://github.com/kolarorz/vue-virt-list): 虚拟列表
43
-
44
- 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
45
-
46
- ## 许可证
47
-
48
- Lew UI 是根据 MIT 许可证的开源软件。