@farris/ui-vue 1.0.0-beta.3 → 1.0.0-beta.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 (196) hide show
  1. package/accordion/package.json +3 -2
  2. package/avatar/package.json +3 -2
  3. package/button/package.json +3 -2
  4. package/button-edit/package.json +3 -2
  5. package/checkbox/package.json +3 -2
  6. package/combo-list/package.json +3 -2
  7. package/data-grid/index.esm.js +1 -2
  8. package/data-grid/index.umd.js +1 -1
  9. package/data-grid/package.json +3 -2
  10. package/date-picker/package.json +3 -2
  11. package/farris.all.esm.js +1 -2
  12. package/farris.all.umd.js +1 -1
  13. package/list-view/package.json +3 -2
  14. package/message-box/package.json +3 -2
  15. package/modal/package.json +3 -2
  16. package/notify/package.json +3 -2
  17. package/package.json +3 -2
  18. package/pagination/package.json +3 -2
  19. package/popover/package.json +3 -2
  20. package/radio-group/package.json +3 -2
  21. package/section/package.json +3 -2
  22. package/switch/package.json +3 -2
  23. package/tabs/package.json +3 -2
  24. package/text/package.json +3 -2
  25. package/tooltip/package.json +3 -2
  26. package/types/accordion/index.d.ts +25 -0
  27. package/types/accordion/src/accordion.component.d.ts +70 -0
  28. package/types/accordion/src/accordion.props.d.ts +50 -0
  29. package/types/accordion/src/components/accordion-item.component.d.ts +38 -0
  30. package/types/accordion/src/components/accordion-item.props.d.ts +34 -0
  31. package/types/avatar/index.d.ts +23 -0
  32. package/types/avatar/src/avatar.component.d.ts +109 -0
  33. package/types/avatar/src/avatar.props.d.ts +96 -0
  34. package/types/avatar/src/composition/types.d.ts +31 -0
  35. package/types/avatar/src/composition/use-image.d.ts +19 -0
  36. package/types/button/index.d.ts +24 -0
  37. package/types/button/src/button-group.component.d.ts +106 -0
  38. package/types/button/src/button-group.props.d.ts +106 -0
  39. package/types/button/src/button.component.d.ts +34 -0
  40. package/types/button/src/button.props.d.ts +47 -0
  41. package/types/button/src/composition/types-group.d.ts +24 -0
  42. package/types/button/src/composition/types.d.ts +24 -0
  43. package/types/button/src/composition/use-button-group.d.ts +19 -0
  44. package/types/button/src/composition/use-button.d.ts +19 -0
  45. package/types/button-edit/index.d.ts +23 -0
  46. package/types/button-edit/src/button-edit.props.d.ts +135 -0
  47. package/types/button-edit/src/composition/types.d.ts +118 -0
  48. package/types/button-edit/src/composition/use-button.d.ts +19 -0
  49. package/types/button-edit/src/composition/use-clear.d.ts +19 -0
  50. package/types/button-edit/src/composition/use-text-box.d.ts +19 -0
  51. package/types/checkbox/index.d.ts +23 -0
  52. package/types/checkbox/src/checkbox-group.component.d.ts +148 -0
  53. package/types/checkbox/src/checkbox-group.props.d.ts +123 -0
  54. package/types/checkbox/src/composition/types.d.ts +46 -0
  55. package/types/checkbox/src/composition/use-checkbox-group.d.ts +19 -0
  56. package/types/combo-list/index.d.ts +25 -0
  57. package/types/combo-list/src/combo-list.props.d.ts +290 -0
  58. package/types/combo-list/src/components/option.component.d.ts +39 -0
  59. package/types/combo-list/src/components/options.component.d.ts +10 -0
  60. package/types/combo-list/src/composition/index.d.ts +18 -0
  61. package/types/combo-list/src/composition/use-combo-list.d.ts +30 -0
  62. package/types/combo-list/src/composition/use-option.d.ts +19 -0
  63. package/types/combo-list/src/composition/use-options.d.ts +2 -0
  64. package/types/combo-list/src/composition/use-panel.d.ts +8 -0
  65. package/types/combo-list/src/const.d.ts +40 -0
  66. package/types/combo-list/src/types.d.ts +186 -0
  67. package/types/data-grid/index.d.ts +23 -0
  68. package/types/data-grid/src/components/data/data-area.component.d.ts +21 -0
  69. package/types/data-grid/src/components/editors/date-picker.component.d.ts +2 -0
  70. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +2 -0
  71. package/types/data-grid/src/components/editors/text-editor.component.d.ts +17 -0
  72. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +22 -0
  73. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +5 -0
  74. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +21 -0
  75. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +21 -0
  76. package/types/data-grid/src/components/sidebar/data-grid-sidebar.component.d.ts +21 -0
  77. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +5 -0
  78. package/types/data-grid/src/composition/types.d.ts +175 -0
  79. package/types/data-grid/src/composition/use-column.d.ts +17 -0
  80. package/types/data-grid/src/composition/use-data-view.d.ts +19 -0
  81. package/types/data-grid/src/composition/use-edit.d.ts +18 -0
  82. package/types/data-grid/src/composition/use-fit-column.d.ts +20 -0
  83. package/types/data-grid/src/composition/use-group-column.d.ts +22 -0
  84. package/types/data-grid/src/composition/use-group-data.d.ts +3 -0
  85. package/types/data-grid/src/composition/use-positon-style.d.ts +20 -0
  86. package/types/data-grid/src/composition/use-resize.d.ts +20 -0
  87. package/types/data-grid/src/composition/use-row.d.ts +3 -0
  88. package/types/data-grid/src/composition/use-sidebar.d.ts +3 -0
  89. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +20 -0
  90. package/types/data-grid/src/composition/use-visual-data.d.ts +19 -0
  91. package/types/data-grid/src/data-grid.component.d.ts +278 -0
  92. package/types/data-grid/src/data-grid.props.d.ts +650 -0
  93. package/types/date-picker/index.d.ts +28 -0
  94. package/types/date-picker/src/components/calendar/calendar.component.d.ts +166 -0
  95. package/types/date-picker/src/components/calendar/calendar.props.d.ts +94 -0
  96. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +138 -0
  97. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +81 -0
  98. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +626 -0
  99. package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +306 -0
  100. package/types/date-picker/src/components/month/month.component.d.ts +86 -0
  101. package/types/date-picker/src/components/month/month.props.d.ts +57 -0
  102. package/types/date-picker/src/components/year/year.component.d.ts +86 -0
  103. package/types/date-picker/src/components/year/year.props.d.ts +57 -0
  104. package/types/date-picker/src/composition/types.d.ts +102 -0
  105. package/types/date-picker/src/composition/use-calendar.d.ts +2 -0
  106. package/types/date-picker/src/composition/use-compare.d.ts +2 -0
  107. package/types/date-picker/src/composition/use-date.d.ts +2 -0
  108. package/types/date-picker/src/composition/use-disable-date.d.ts +18 -0
  109. package/types/date-picker/src/composition/use-disable-month.d.ts +2 -0
  110. package/types/date-picker/src/composition/use-event.d.ts +45 -0
  111. package/types/date-picker/src/composition/use-mark.d.ts +2 -0
  112. package/types/date-picker/src/composition/use-month.d.ts +2 -0
  113. package/types/date-picker/src/composition/use-number.d.ts +2 -0
  114. package/types/date-picker/src/composition/use-year.d.ts +2 -0
  115. package/types/date-picker/src/date-picker.props.d.ts +168 -0
  116. package/types/date-picker/src/types/calendar.d.ts +30 -0
  117. package/types/date-picker/src/types/common.d.ts +42 -0
  118. package/types/date-picker/src/types/date-model.d.ts +38 -0
  119. package/types/date-picker/src/types/month.d.ts +48 -0
  120. package/types/date-picker/src/types/year.d.ts +24 -0
  121. package/types/index.d.ts +20 -0
  122. package/types/list-view/index.d.ts +23 -0
  123. package/types/list-view/src/components/list-view-checkbox.component.d.ts +32 -0
  124. package/types/list-view/src/components/list-view-checkbox.props.d.ts +31 -0
  125. package/types/list-view/src/list-view.props.d.ts +44 -0
  126. package/types/message-box/index.d.ts +24 -0
  127. package/types/message-box/src/composition/types.d.ts +18 -0
  128. package/types/message-box/src/composition/use-copy.d.ts +18 -0
  129. package/types/message-box/src/message-box.component.d.ts +72 -0
  130. package/types/message-box/src/message-box.props.d.ts +52 -0
  131. package/types/modal/index.d.ts +23 -0
  132. package/types/modal/src/modal.component.d.ts +104 -0
  133. package/types/modal/src/modal.props.d.ts +72 -0
  134. package/types/notify/index.d.ts +26 -0
  135. package/types/notify/src/components/toast.component.d.ts +21 -0
  136. package/types/notify/src/components/toast.props.d.ts +27 -0
  137. package/types/notify/src/notify.props.d.ts +99 -0
  138. package/types/number-range/index.d.ts +23 -0
  139. package/types/number-range/src/composition/types.d.ts +52 -0
  140. package/types/number-range/src/composition/use-data.d.ts +19 -0
  141. package/types/number-range/src/composition/use-util.d.ts +19 -0
  142. package/types/number-range/src/number-range.component.d.ts +247 -0
  143. package/types/number-range/src/number-range.props.d.ts +216 -0
  144. package/types/number-spinner/index.d.ts +23 -0
  145. package/types/number-spinner/src/composition/types.d.ts +52 -0
  146. package/types/number-spinner/src/composition/use-data.d.ts +19 -0
  147. package/types/number-spinner/src/composition/use-util.d.ts +19 -0
  148. package/types/number-spinner/src/number-spinner.component.d.ts +202 -0
  149. package/types/number-spinner/src/number-spinner.props.d.ts +181 -0
  150. package/types/overlay/src/overlay.component.d.ts +20 -0
  151. package/types/overlay/src/overlay.props.d.ts +26 -0
  152. package/types/pagination/index.d.ts +23 -0
  153. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +19 -0
  154. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +20 -0
  155. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +20 -0
  156. package/types/pagination/src/components/pages/page-info.component.d.ts +19 -0
  157. package/types/pagination/src/components/pages/page-list.component.d.ts +19 -0
  158. package/types/pagination/src/components/pages/page-number.component.d.ts +20 -0
  159. package/types/pagination/src/composition/types.d.ts +24 -0
  160. package/types/pagination/src/composition/use-pages.d.ts +18 -0
  161. package/types/pagination/src/pagination.components.d.ts +41 -0
  162. package/types/pagination/src/pagination.props.d.ts +36 -0
  163. package/types/popover/index.d.ts +24 -0
  164. package/types/popover/src/popover.component.d.ts +26 -0
  165. package/types/popover/src/popover.directive.d.ts +5 -0
  166. package/types/popover/src/popover.props.d.ts +30 -0
  167. package/types/radio-group/index.d.ts +23 -0
  168. package/types/radio-group/src/composition/change-radio.d.ts +19 -0
  169. package/types/radio-group/src/composition/types.d.ts +42 -0
  170. package/types/radio-group/src/radio-group.component.d.ts +91 -0
  171. package/types/radio-group/src/radio-group.props.d.ts +87 -0
  172. package/types/section/index.d.ts +23 -0
  173. package/types/section/src/section.component.d.ts +187 -0
  174. package/types/section/src/section.props.d.ts +117 -0
  175. package/types/switch/index.d.ts +23 -0
  176. package/types/switch/src/switch.component.d.ts +66 -0
  177. package/types/switch/src/switch.props.d.ts +52 -0
  178. package/types/tabs/index.d.ts +25 -0
  179. package/types/tabs/src/components/tab-page.component.d.ts +101 -0
  180. package/types/tabs/src/components/tab-page.props.d.ts +63 -0
  181. package/types/tabs/src/composition/types.d.ts +35 -0
  182. package/types/tabs/src/composition/use-tabs.d.ts +18 -0
  183. package/types/tabs/src/tabs.component.d.ts +149 -0
  184. package/types/tabs/src/tabs.props.d.ts +86 -0
  185. package/types/text/index.d.ts +23 -0
  186. package/types/text/src/text.component.d.ts +14 -0
  187. package/types/text/src/text.props.d.ts +26 -0
  188. package/types/tooltip/index.d.ts +24 -0
  189. package/types/tooltip/src/composition/types.d.ts +45 -0
  190. package/types/tooltip/src/composition/use-adjust-placement.d.ts +20 -0
  191. package/types/tooltip/src/composition/use-adjust-position.d.ts +6 -0
  192. package/types/tooltip/src/composition/use-calculate-position.d.ts +21 -0
  193. package/types/tooltip/src/composition/use-relative.d.ts +19 -0
  194. package/types/tooltip/src/composition/use-tooltip-position.d.ts +22 -0
  195. package/types/tooltip/src/tooltip.component.d.ts +56 -0
  196. package/types/tooltip/src/tooltip.props.d.ts +45 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { App } from 'vue';
17
+ import FButton from './src/button.component';
18
+ export * from './src/button.props';
19
+ export * from './src/button-group.props';
20
+ export { FButton };
21
+ declare const _default: {
22
+ install(app: App): void;
23
+ };
24
+ export default _default;
@@ -0,0 +1,106 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ id: StringConstructor;
3
+ rectifyReferenceH: {
4
+ type: ObjectConstructor;
5
+ };
6
+ rectifyReferenceV: {
7
+ type: ObjectConstructor;
8
+ };
9
+ autoRectify: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ realPlacement: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ rectifyPlacement: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ data: {
22
+ type: ArrayConstructor;
23
+ };
24
+ count: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ size: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ type: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ placement: {
37
+ type: import("vue").PropType<"top" | "top-left" | "top-right" | "left" | "left-top" | "left-bottom" | "bottom" | "bottom-left" | "bottom-right" | "right" | "right-top" | "right-bottom">;
38
+ default: string;
39
+ };
40
+ showPanel: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ dpFlag: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "click" | "changeState" | "clickMenuOut", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
+ id: StringConstructor;
50
+ rectifyReferenceH: {
51
+ type: ObjectConstructor;
52
+ };
53
+ rectifyReferenceV: {
54
+ type: ObjectConstructor;
55
+ };
56
+ autoRectify: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ realPlacement: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ rectifyPlacement: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ data: {
69
+ type: ArrayConstructor;
70
+ };
71
+ count: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ size: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ type: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ placement: {
84
+ type: import("vue").PropType<"top" | "top-left" | "top-right" | "left" | "left-top" | "left-bottom" | "bottom" | "bottom-left" | "bottom-right" | "right" | "right-top" | "right-bottom">;
85
+ default: string;
86
+ };
87
+ showPanel: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ dpFlag: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ }>>, {
96
+ type: string;
97
+ size: string;
98
+ autoRectify: boolean;
99
+ realPlacement: string;
100
+ rectifyPlacement: string;
101
+ count: number;
102
+ placement: "top" | "top-left" | "top-right" | "left" | "left-top" | "left-bottom" | "bottom" | "bottom-left" | "bottom-right" | "right" | "right-top" | "right-bottom";
103
+ showPanel: boolean;
104
+ dpFlag: boolean;
105
+ }>;
106
+ export default _default;
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes, PropType } from 'vue';
17
+ type PlacementDirection = 'top' | 'top-left' | 'top-right' | 'left' | 'left-top' | 'left-bottom' | 'bottom' | 'bottom-left' | 'bottom-right' | 'right' | 'right-top' | 'right-bottom';
18
+ export declare const buttonGroupProps: {
19
+ /**
20
+ * 组件标识
21
+ */
22
+ id: StringConstructor;
23
+ /**
24
+ * 横向纠正的参照
25
+ */
26
+ rectifyReferenceH: {
27
+ type: ObjectConstructor;
28
+ };
29
+ /**
30
+ * 纵向纠正的参照
31
+ */
32
+ rectifyReferenceV: {
33
+ type: ObjectConstructor;
34
+ };
35
+ /**
36
+ * 是否自动纠正位置
37
+ */
38
+ autoRectify: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ /**
43
+ * 计算方向的真正placement
44
+ */
45
+ realPlacement: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ /**
50
+ * 重新计算后的placement
51
+ */
52
+ rectifyPlacement: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ /**
57
+ * 按钮信息
58
+ */
59
+ data: {
60
+ type: ArrayConstructor;
61
+ };
62
+ /**
63
+ * 显示的按钮数量 默认为2
64
+ */
65
+ count: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ /**
70
+ * 按钮大小
71
+ */
72
+ size: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ /**
77
+ * 按钮样式
78
+ */
79
+ type: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ /**
84
+ * 按钮展示位置
85
+ */
86
+ placement: {
87
+ type: PropType<PlacementDirection>;
88
+ default: string;
89
+ };
90
+ /**
91
+ * 下拉面板显示
92
+ */
93
+ showPanel: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ /**
98
+ * 下拉面板显示标志
99
+ */
100
+ dpFlag: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ };
105
+ export default buttonGroupProps;
106
+ export type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>;
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ id: StringConstructor;
3
+ type: {
4
+ type: import("vue").PropType<"link" | "primary" | "warning" | "danger" | "success" | "secondary">;
5
+ default: string;
6
+ };
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ size: {
12
+ type: import("vue").PropType<"small" | "large">;
13
+ default: string;
14
+ };
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ id: StringConstructor;
17
+ type: {
18
+ type: import("vue").PropType<"link" | "primary" | "warning" | "danger" | "success" | "secondary">;
19
+ default: string;
20
+ };
21
+ disabled: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ size: {
26
+ type: import("vue").PropType<"small" | "large">;
27
+ default: string;
28
+ };
29
+ }>>, {
30
+ type: "link" | "primary" | "warning" | "danger" | "success" | "secondary";
31
+ disabled: boolean;
32
+ size: "small" | "large";
33
+ }>;
34
+ export default _default;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes, PropType } from 'vue';
17
+ type ButtonType = 'primary' | 'warning' | 'danger' | 'success' | 'link' | 'secondary';
18
+ type SizeType = 'small' | 'large';
19
+ export declare const buttonProps: {
20
+ /**
21
+ * 组件标识
22
+ */
23
+ id: StringConstructor;
24
+ /**
25
+ * 设置按钮类型
26
+ */
27
+ type: {
28
+ type: PropType<ButtonType>;
29
+ default: string;
30
+ };
31
+ /**
32
+ * 是否禁用
33
+ */
34
+ disabled: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ /**
39
+ * 按钮尺寸
40
+ */
41
+ size: {
42
+ type: PropType<SizeType>;
43
+ default: string;
44
+ };
45
+ };
46
+ export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
47
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface UseButtonGroup {
17
+ showPanel: any;
18
+ clickEvent: ($event: Event) => void;
19
+ toggle: ($event: Event, btn: any) => void;
20
+ getRealPlacement: (pment: any) => void;
21
+ bindMenuMouseenter: (this: any) => void;
22
+ unbindMenuMouseleave: (this: any) => void;
23
+ bindMenuMouseleave: (this: any) => void;
24
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface UseButton {
17
+ /**
18
+ * 附加按钮的Class
19
+ */
20
+ /**
21
+ * 点击附加按钮事件响应函数
22
+ */
23
+ onClickButton: ($event: Event) => void;
24
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseButtonGroup } from './types-group';
17
+ import { ButtonGroupProps } from '../button-group.props';
18
+ import { SetupContext } from 'vue';
19
+ export declare function useButtonGroup(props: ButtonGroupProps, context: SetupContext, dpMenu: any, dpBtn: any): UseButtonGroup;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseButton } from './types';
17
+ import { ButtonProps } from '../button.props';
18
+ import { SetupContext } from 'vue';
19
+ export declare function useButton(props: ButtonProps, context: SetupContext): UseButton;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { App } from 'vue';
17
+ import ButtonEdit from './src/button-edit.component';
18
+ export * from './src/button-edit.props';
19
+ export { ButtonEdit };
20
+ declare const _default: {
21
+ install(app: App): void;
22
+ };
23
+ export default _default;
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes, PropType } from 'vue';
17
+ type TextAlignment = 'left' | 'center' | 'right';
18
+ export declare const buttonEditProps: {
19
+ /**
20
+ * 组件标识
21
+ */
22
+ id: StringConstructor;
23
+ /**
24
+ * 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
25
+ */
26
+ buttonContent: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ /**
31
+ * 启用输入框自动完成功能
32
+ */
33
+ autoComplete: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ /**
38
+ * 组件自定义样式
39
+ */
40
+ customClass: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ /**
45
+ * 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
46
+ */
47
+ disable: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ /**
52
+ * 允许在输入框中录入文本。
53
+ */
54
+ editable: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ /**
59
+ * 显示清空文本按钮
60
+ */
61
+ enableClear: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * 组件值
67
+ */
68
+ modelValue: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ /**
73
+ * 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
74
+ */
75
+ readonly: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /**
80
+ * 文本对齐方式
81
+ */
82
+ textAlign: {
83
+ type: PropType<TextAlignment>;
84
+ default: string;
85
+ };
86
+ /**
87
+ * 禁用组件时,是否显示扩展按钮
88
+ */
89
+ showButtonWhenDisabled: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ /**
94
+ * 显示输入框的标签
95
+ */
96
+ enableTitle: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ /**
101
+ * 输入框类型
102
+ */
103
+ inputType: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ /**
108
+ * 显示输入框提示信息
109
+ */
110
+ forcePlaceholder: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ /**
115
+ * 输入框提示文本
116
+ */
117
+ placeholder: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ /**
122
+ * 输入框最小长度
123
+ */
124
+ minLength: NumberConstructor;
125
+ /**
126
+ * 输入框最大长度
127
+ */
128
+ maxLength: NumberConstructor;
129
+ /**
130
+ * 输入框Tab键索引
131
+ */
132
+ tabIndex: NumberConstructor;
133
+ };
134
+ export type ButtonEditProps = ExtractPropTypes<typeof buttonEditProps>;
135
+ export {};
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ComputedRef, Ref } from 'vue';
17
+ export interface UseButton {
18
+ /**
19
+ * 附加按钮的Class
20
+ */
21
+ buttonClass: ComputedRef<Record<string, boolean | undefined>>;
22
+ /**
23
+ * 点击附加按钮事件响应函数
24
+ */
25
+ onClickButton: ($event: Event) => void;
26
+ /**
27
+ * 鼠标移入附加按钮事件响应函数
28
+ */
29
+ onMouseEnterButton: ($event: MouseEvent) => void;
30
+ /**
31
+ * 鼠标移出附加按钮事件响应函数
32
+ */
33
+ onMouseLeaveButton: ($event: MouseEvent) => void;
34
+ /**
35
+ * 鼠标滑过附加按钮事件响应函数
36
+ */
37
+ onMouseOverButton: () => void;
38
+ }
39
+ export interface UseClear {
40
+ /**
41
+ * 启用清空按钮
42
+ */
43
+ enableClearButton: ComputedRef<boolean>;
44
+ /**
45
+ * 显示清空按钮
46
+ */
47
+ showClearButton: Ref<boolean>;
48
+ /**
49
+ * 清空输入框值事件响应函数
50
+ */
51
+ onClearValue: ($event: Event) => void;
52
+ /**
53
+ * 鼠标进入输入框事件响应函数
54
+ */
55
+ onMouseEnterTextBox: ($event: MouseEvent) => void;
56
+ /**
57
+ * 鼠标移出输入框事件响应函数
58
+ */
59
+ onMouseLeaveTextBox: ($event: MouseEvent) => void;
60
+ }
61
+ export interface UseTextBox {
62
+ /**
63
+ * 输入框是否获得焦点
64
+ */
65
+ hasFocusedTextBox: ComputedRef<boolean>;
66
+ /**
67
+ * 输入框是否处于只读状态
68
+ */
69
+ isTextBoxReadonly: ComputedRef<boolean>;
70
+ /**
71
+ * 输入框Class
72
+ */
73
+ textBoxClass: ComputedRef<Record<string, boolean | undefined>>;
74
+ /**
75
+ * 输入框提示语
76
+ */
77
+ textBoxPlaceholder: ComputedRef<string>;
78
+ /**
79
+ * 输入框提示标签
80
+ */
81
+ textBoxTitle: ComputedRef<string>;
82
+ /**
83
+ * 更新输入框的值并触发change事件
84
+ */
85
+ changeTextBoxValue: (newValue: string, showEmitChangeEmit: boolean) => void;
86
+ /**
87
+ * 输入框失去焦点事件响应函数
88
+ */
89
+ onBlurTextBox: ($event: Event) => void;
90
+ /**
91
+ * 鼠标点击输入框事件响应函数
92
+ */
93
+ onClickTextBox: ($event: Event) => void;
94
+ /**
95
+ * 输入框获得焦点事件响应函数
96
+ */
97
+ onFocusTextBox: ($event: Event) => void;
98
+ /**
99
+ * 输入框值变化事件
100
+ */
101
+ onInput: ($event: Event) => void;
102
+ /**
103
+ * 鼠标点击输入框事件响应函数
104
+ */
105
+ onMouseDownTextBox: ($event: MouseEvent) => void;
106
+ /**
107
+ * 键盘在输入框按下事件
108
+ */
109
+ onKeyDownTextBox: ($event: Event) => void;
110
+ /**
111
+ * 键盘在输入框抬起事件
112
+ */
113
+ onKeyUpTextBox: ($event: Event) => void;
114
+ /**
115
+ * 输入框值变化事件响应函数
116
+ */
117
+ onTextBoxValueChange: ($event: Event) => void;
118
+ }