kui-vue 5.2.0 → 5.2.2

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 (206) hide show
  1. package/dist/index.js +2 -2
  2. package/es/affix/index.d.ts +49 -0
  3. package/es/alert/index.d.ts +61 -0
  4. package/es/anchor/anchor-link.d.ts +23 -0
  5. package/es/anchor/anchor.d.ts +67 -0
  6. package/es/anchor/index.d.ts +5 -0
  7. package/es/avatar/avatar-group.d.ts +39 -0
  8. package/es/avatar/avatar.d.ts +43 -0
  9. package/es/avatar/index.d.ts +5 -0
  10. package/es/back-top/index.d.ts +46 -0
  11. package/es/badge/index.d.ts +49 -0
  12. package/es/base/transition.d.ts +3 -0
  13. package/es/breadcrumb/breadcrumb-item.d.ts +15 -0
  14. package/es/breadcrumb/breadcrumb.d.ts +22 -0
  15. package/es/breadcrumb/index.d.ts +5 -0
  16. package/es/button/button-group.d.ts +21 -0
  17. package/es/button/button.d.ts +39 -0
  18. package/es/button/index.d.ts +5 -0
  19. package/es/card/index.d.ts +30 -0
  20. package/es/carousel/carousel-item.d.ts +2 -0
  21. package/es/carousel/carousel.d.ts +84 -0
  22. package/es/carousel/index.d.ts +4 -0
  23. package/es/checkbox/checkbox-group.d.ts +79 -0
  24. package/es/checkbox/checkbox.d.ts +105 -0
  25. package/es/checkbox/index.d.ts +6 -0
  26. package/es/collapse/collapse-panel.d.ts +15 -0
  27. package/es/collapse/collapse.d.ts +32 -0
  28. package/es/collapse/index.d.ts +6 -0
  29. package/es/color-picker/alpha.d.ts +15 -0
  30. package/es/color-picker/hue.d.ts +17 -0
  31. package/es/color-picker/index.d.ts +110 -0
  32. package/es/color-picker/mode.d.ts +25 -0
  33. package/es/color-picker/paint.d.ts +26 -0
  34. package/es/color-picker/presets.d.ts +20 -0
  35. package/es/components.d.ts +113 -0
  36. package/es/config/context.d.ts +10 -0
  37. package/es/config/index.d.ts +16 -0
  38. package/es/const/types.d.ts +19 -0
  39. package/es/const/var.d.ts +1 -0
  40. package/es/date-picker/index.d.ts +277 -0
  41. package/es/descriptions/descriptions-item.d.ts +35 -0
  42. package/es/descriptions/descriptions.d.ts +54 -0
  43. package/es/descriptions/index.d.ts +4 -0
  44. package/es/directives/outsiteclick.d.ts +2 -0
  45. package/es/directives/resize.d.ts +3 -0
  46. package/es/directives/scroll.d.ts +2 -0
  47. package/es/directives/transfer.d.ts +2 -0
  48. package/es/divider/index.d.ts +42 -0
  49. package/es/drawer/index.d.ts +177 -0
  50. package/es/dropdown/dropdown-button.d.ts +45 -0
  51. package/es/dropdown/dropdown.d.ts +72 -0
  52. package/es/dropdown/index.d.ts +4 -0
  53. package/es/dropdown/trigger.d.ts +11 -0
  54. package/es/empty/index.d.ts +9 -0
  55. package/es/flex/index.d.ts +45 -0
  56. package/es/form/form-item.d.ts +24 -0
  57. package/es/form/form.d.ts +92 -0
  58. package/es/form/index.d.ts +6 -0
  59. package/es/form/types.d.ts +14 -0
  60. package/es/grid/grid-item.d.ts +22 -0
  61. package/es/grid/grid.d.ts +39 -0
  62. package/es/grid/index.d.ts +5 -0
  63. package/es/grid/useBreakpoint.d.ts +3 -0
  64. package/es/icon/demo/search.d.ts +2 -0
  65. package/es/icon/demo/tags.d.ts +4 -0
  66. package/es/icon/index.d.ts +45 -0
  67. package/es/image/group.d.ts +11 -0
  68. package/es/image/image.d.ts +45 -0
  69. package/es/image/index.d.ts +5 -0
  70. package/es/image/instance.d.ts +2 -0
  71. package/es/image/preview.d.ts +36 -0
  72. package/es/image/utils.d.ts +6 -0
  73. package/es/index.d.ts +10 -0
  74. package/es/index.js +26 -22
  75. package/es/input/index.d.ts +8 -0
  76. package/es/input/input-box.d.ts +39 -0
  77. package/es/input/input-group.d.ts +58 -0
  78. package/es/input/input.d.ts +56 -0
  79. package/es/input/textarea.d.ts +25 -0
  80. package/es/input-number/index.d.ts +127 -0
  81. package/es/layout/index.d.ts +136 -0
  82. package/es/loading/index.d.ts +16 -0
  83. package/es/locale/de.d.ts +59 -0
  84. package/es/locale/de.js +1 -1
  85. package/es/locale/el.d.ts +59 -0
  86. package/es/locale/el.js +1 -1
  87. package/es/locale/en.d.ts +59 -0
  88. package/es/locale/en.js +1 -1
  89. package/es/locale/fr.d.ts +59 -0
  90. package/es/locale/fr.js +1 -1
  91. package/es/locale/it.d.ts +59 -0
  92. package/es/locale/it.js +1 -1
  93. package/es/locale/ja.d.ts +59 -0
  94. package/es/locale/ja.js +1 -1
  95. package/es/locale/ko.d.ts +59 -0
  96. package/es/locale/ko.js +1 -1
  97. package/es/locale/ru.d.ts +59 -0
  98. package/es/locale/ru.js +1 -1
  99. package/es/locale/th.d.ts +59 -0
  100. package/es/locale/th.js +1 -1
  101. package/es/locale/uk.d.ts +59 -0
  102. package/es/locale/uk.js +1 -1
  103. package/es/locale/vi.d.ts +59 -0
  104. package/es/locale/vi.js +1 -1
  105. package/es/locale/zh-CN.d.ts +59 -0
  106. package/es/locale/zh-CN.js +1 -1
  107. package/es/locale/zh-TW.d.ts +59 -0
  108. package/es/locale/zh-TW.js +1 -1
  109. package/es/menu/index.d.ts +7 -0
  110. package/es/menu/menu-divider.d.ts +2 -0
  111. package/es/menu/menu-group.d.ts +20 -0
  112. package/es/menu/menu-item.d.ts +22 -0
  113. package/es/menu/menu.d.ts +92 -0
  114. package/es/menu/recursive-menu.d.ts +17 -0
  115. package/es/menu/sub-menu.d.ts +24 -0
  116. package/es/message/index.d.ts +23 -0
  117. package/es/modal/index.d.ts +26 -0
  118. package/es/modal/modal.d.ts +176 -0
  119. package/es/modal/toast.d.ts +32 -0
  120. package/es/notice/container.d.ts +6 -0
  121. package/es/notice/content.d.ts +54 -0
  122. package/es/notice/index.d.ts +23 -0
  123. package/es/notice/instance.d.ts +8 -0
  124. package/es/page/index.d.ts +115 -0
  125. package/es/popconfirm/index.d.ts +75 -0
  126. package/es/poptip/index.d.ts +66 -0
  127. package/es/progress/index.d.ts +125 -0
  128. package/es/radio/index.d.ts +7 -0
  129. package/es/radio/radio-button.d.ts +76 -0
  130. package/es/radio/radio-group.d.ts +77 -0
  131. package/es/radio/radio.d.ts +73 -0
  132. package/es/radio/types.d.ts +5 -0
  133. package/es/rate/index.d.ts +99 -0
  134. package/es/rate/star.d.ts +65 -0
  135. package/es/row-col/col.d.ts +17 -0
  136. package/es/row-col/index.d.ts +5 -0
  137. package/es/row-col/row.d.ts +43 -0
  138. package/es/select/index.d.ts +5 -0
  139. package/es/select/option.d.ts +23 -0
  140. package/es/select/select.d.ts +150 -0
  141. package/es/skeleton/index.d.ts +7 -0
  142. package/es/skeleton/skeleton-avatar.d.ts +58 -0
  143. package/es/skeleton/skeleton-button.d.ts +58 -0
  144. package/es/skeleton/skeleton-image.d.ts +58 -0
  145. package/es/skeleton/skeleton-text.d.ts +58 -0
  146. package/es/skeleton/skeleton.d.ts +61 -0
  147. package/es/skeleton/types.d.ts +29 -0
  148. package/es/slider/index.d.ts +112 -0
  149. package/es/slider/thumb.d.ts +58 -0
  150. package/es/space/index.d.ts +50 -0
  151. package/es/spin/index.d.ts +58 -0
  152. package/es/splitter/index.d.ts +4 -0
  153. package/es/splitter/splitter-panel.d.ts +35 -0
  154. package/es/splitter/splitter.d.ts +32 -0
  155. package/es/stat-card/countup.d.ts +56 -0
  156. package/es/stat-card/index.d.ts +5 -0
  157. package/es/stat-card/rollup.d.ts +32 -0
  158. package/es/stat-card/stat-card.d.ts +72 -0
  159. package/es/stat-card/stat-number.d.ts +100 -0
  160. package/es/stat-card/utils/countup.d.ts +127 -0
  161. package/es/stat-card/utils/odometer.d.ts +13 -0
  162. package/es/switch/index.d.ts +72 -0
  163. package/es/table/index.d.ts +185 -0
  164. package/es/tabs/index.d.ts +5 -0
  165. package/es/tabs/tab-panel.d.ts +22 -0
  166. package/es/tabs/tabs.d.ts +44 -0
  167. package/es/tabs/types.d.ts +16 -0
  168. package/es/tag/index.d.ts +57 -0
  169. package/es/time-line/index.d.ts +5 -0
  170. package/es/time-line/timeline-item.d.ts +20 -0
  171. package/es/time-line/timeline.d.ts +26 -0
  172. package/es/tooltip/index.d.ts +42 -0
  173. package/es/tree/index.d.ts +179 -0
  174. package/es/tree/utils.d.ts +32 -0
  175. package/es/tree-select/index.d.ts +224 -0
  176. package/es/upload/file-list.d.ts +59 -0
  177. package/es/upload/index.d.ts +190 -0
  178. package/es/upload/selector.d.ts +73 -0
  179. package/es/utils/checked.d.ts +2 -0
  180. package/es/utils/color.d.ts +1 -0
  181. package/es/utils/element.d.ts +4 -0
  182. package/es/utils/mouse.d.ts +1 -0
  183. package/es/utils/number.d.ts +6 -0
  184. package/es/utils/placement.d.ts +16 -0
  185. package/es/utils/theme.d.ts +5 -0
  186. package/es/utils/vnode.d.ts +5 -0
  187. package/es/utils/vue.d.ts +5 -0
  188. package/lib/index.js +2 -2
  189. package/lib/locale/de.js +1 -1
  190. package/lib/locale/el.js +1 -1
  191. package/lib/locale/en.js +1 -1
  192. package/lib/locale/fr.js +1 -1
  193. package/lib/locale/it.js +1 -1
  194. package/lib/locale/ja.js +1 -1
  195. package/lib/locale/ko.js +1 -1
  196. package/lib/locale/ru.js +1 -1
  197. package/lib/locale/th.js +1 -1
  198. package/lib/locale/uk.js +1 -1
  199. package/lib/locale/vi.js +1 -1
  200. package/lib/locale/zh-CN.js +1 -1
  201. package/lib/locale/zh-TW.js +1 -1
  202. package/package.json +3 -2
  203. package/style/index.css +1 -1
  204. package/vetur/attributes.json +17 -33
  205. package/vetur/tags.json +5 -7
  206. package/vetur/web-types.json +34 -50
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v5.2.0
2
+ * kui-vue v5.2.2
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -4630,7 +4630,6 @@ var Input = /* @__PURE__ */ defineComponent({
4630
4630
  Element,
4631
4631
  Object
4632
4632
  ] },
4633
- readonly: Boolean,
4634
4633
  prefix: { type: [
4635
4634
  String,
4636
4635
  Element,
@@ -4647,7 +4646,6 @@ var Input = /* @__PURE__ */ defineComponent({
4647
4646
  },
4648
4647
  onSearch: { type: Function },
4649
4648
  maxlength: Number,
4650
- "onUpdate:modelValue": Function,
4651
4649
  onIconClick: { type: Function },
4652
4650
  onClear: { type: Function },
4653
4651
  onChange: { type: Function }
@@ -4812,7 +4810,6 @@ var TextArea = /* @__PURE__ */ defineComponent({
4812
4810
  default: 2
4813
4811
  },
4814
4812
  disabled: Boolean,
4815
- readonly: Boolean,
4816
4813
  onChange: { type: Function }
4817
4814
  },
4818
4815
  setup(props, { attrs, emit }) {
@@ -10203,8 +10200,14 @@ var Modal = /* @__PURE__ */ defineComponent({
10203
10200
  title: String,
10204
10201
  okText: String,
10205
10202
  cancelText: String,
10206
- top: Number,
10207
- width: Number,
10203
+ width: {
10204
+ type: [Number, String],
10205
+ default: 520
10206
+ },
10207
+ top: {
10208
+ type: Number,
10209
+ default: 100
10210
+ },
10208
10211
  transfer: {
10209
10212
  type: Boolean,
10210
10213
  default: true
@@ -10266,7 +10269,6 @@ var Modal = /* @__PURE__ */ defineComponent({
10266
10269
  onMounted(() => {
10267
10270
  document.addEventListener("mousedown", mousedown);
10268
10271
  props.escKey && document.addEventListener("keydown", escToClose);
10269
- if (props.draggable) left.value = (document.body.offsetWidth - (props.width || 480)) / 2;
10270
10272
  if (props.modelValue) toggle(true);
10271
10273
  });
10272
10274
  watch(() => props.modelValue, (nv) => {
@@ -10291,6 +10293,7 @@ var Modal = /* @__PURE__ */ defineComponent({
10291
10293
  emit("update:modelValue", true);
10292
10294
  emit("openChange", true);
10293
10295
  nextTick(() => {
10296
+ if (props.draggable) left.value = (document.body.offsetWidth - refModal.value.offsetWidth) / 2;
10294
10297
  updateOrigin();
10295
10298
  });
10296
10299
  });
@@ -10306,8 +10309,8 @@ var Modal = /* @__PURE__ */ defineComponent({
10306
10309
  const updateOrigin = () => {
10307
10310
  if (refModal.value) {
10308
10311
  let { x, y } = getMousePoint();
10309
- let { left, top } = getOffset(refModal.value);
10310
- refModal.value.style["transform-origin"] = `${x - left}px ${y - top}px`;
10312
+ let p = getOffset(refModal.value);
10313
+ refModal.value.style["transform-origin"] = `${x - p.left}px ${y - p.top}px`;
10311
10314
  }
10312
10315
  };
10313
10316
  const ok = () => {
@@ -10328,7 +10331,7 @@ var Modal = /* @__PURE__ */ defineComponent({
10328
10331
  if (isMousePressed.value && props.draggable) {
10329
10332
  let { x, y } = startPos.value;
10330
10333
  left.value += e.clientX - x;
10331
- currentTop.value = currentTop.value || 100;
10334
+ currentTop.value = currentTop.value ?? 100;
10332
10335
  currentTop.value += e.clientY - y;
10333
10336
  startPos.value = {
10334
10337
  x: e.clientX,
@@ -10393,7 +10396,7 @@ var Modal = /* @__PURE__ */ defineComponent({
10393
10396
  }, [contents]);
10394
10397
  }
10395
10398
  const style = {
10396
- width: `${width}px`,
10399
+ width: typeof width === "number" ? `${width}px` : width,
10397
10400
  top: `${currentTop.value}px`,
10398
10401
  left: `${left.value}px`
10399
10402
  };
@@ -13059,8 +13062,10 @@ var Table = /* @__PURE__ */ defineComponent({
13059
13062
  }), [slots[col.key]?.({
13060
13063
  record,
13061
13064
  col,
13065
+ colIndex,
13066
+ rowIndex,
13062
13067
  value: record[col.key]
13063
- }) || col.render?.(h, record, colIndex) || record[col.key]]);
13068
+ }) || col.render?.(h, record, colIndex, rowIndex, col) || record[col.key]]);
13064
13069
  })]);
13065
13070
  })]);
13066
13071
  const renderTable = (isHeader, isBody) => {
@@ -13132,7 +13137,6 @@ var Tabs = /* @__PURE__ */ defineComponent({
13132
13137
  name: "Tabs",
13133
13138
  props: {
13134
13139
  modelValue: [String, Number],
13135
- value: [String, Number],
13136
13140
  card: Boolean,
13137
13141
  sample: Boolean,
13138
13142
  centered: Boolean,
@@ -13144,8 +13148,8 @@ var Tabs = /* @__PURE__ */ defineComponent({
13144
13148
  onChange: Function,
13145
13149
  onRemove: Function
13146
13150
  },
13147
- setup(ps, { slots, emit }) {
13148
- const defaultActiveKey = ref(ps.modelValue);
13151
+ setup(props, { slots, emit }) {
13152
+ const defaultActiveKey = ref(props.modelValue);
13149
13153
  const currentIndex = ref(-1);
13150
13154
  const scrollable = ref(false);
13151
13155
  const navOffsetLeft = ref(0);
@@ -13156,7 +13160,7 @@ var Tabs = /* @__PURE__ */ defineComponent({
13156
13160
  const navBoxRef = ref();
13157
13161
  const inkBarRef = ref();
13158
13162
  provide("tabActiveKey", defaultActiveKey);
13159
- watch(() => ps.modelValue, (nv) => {
13163
+ watch(() => props.modelValue, (nv) => {
13160
13164
  defaultActiveKey.value = nv;
13161
13165
  updateIndex();
13162
13166
  });
@@ -13240,12 +13244,12 @@ var Tabs = /* @__PURE__ */ defineComponent({
13240
13244
  });
13241
13245
  };
13242
13246
  const updateInkBarPosition = () => {
13243
- if (!ps.card && !ps.sample) {
13247
+ if (!props.card && !props.sample) {
13244
13248
  const nav = navRef.value.children[currentIndex.value];
13245
13249
  if (nav) {
13246
13250
  const inkBar = inkBarRef.value;
13247
13251
  let offsetLeft = nav.offsetLeft;
13248
- if (ps.centered) {}
13252
+ if (props.centered) {}
13249
13253
  inkBar.style.width = `${nav.offsetWidth}px`;
13250
13254
  inkBar.style.transform = `translate3d(${offsetLeft}px, 0px, 0px)`;
13251
13255
  }
@@ -13276,7 +13280,7 @@ var Tabs = /* @__PURE__ */ defineComponent({
13276
13280
  }, [
13277
13281
  icon ? createVNode(Icon, { "type": icon }, null) : null,
13278
13282
  title,
13279
- closable && ps.card ? createVNode(Icon, {
13283
+ closable && props.card ? createVNode(Icon, {
13280
13284
  "type": X,
13281
13285
  "class": "k-tabs-close",
13282
13286
  "onClick": (e) => closeTab(key, e)
@@ -13285,7 +13289,7 @@ var Tabs = /* @__PURE__ */ defineComponent({
13285
13289
  });
13286
13290
  });
13287
13291
  return () => {
13288
- const { card, animated, centered, sample } = ps;
13292
+ const { card, animated, centered, sample } = props;
13289
13293
  const classes = ["k-tabs", {
13290
13294
  ["k-tabs-animated"]: animated && !card && !sample,
13291
13295
  ["k-tabs-card"]: card && !sample,
@@ -14408,9 +14412,9 @@ var Tag = /* @__PURE__ */ defineComponent({
14408
14412
  "onClick": closeHandler
14409
14413
  }, null));
14410
14414
  const tagProps = {
14415
+ ...attrs,
14411
14416
  class: tagClasses,
14412
- style: tagStyle,
14413
- ...attrs
14417
+ style: tagStyle
14414
14418
  };
14415
14419
  return createVNode(Transition, { "name": "k-tag" }, { default: () => [withDirectives(createVNode("div", tagProps, [content]), [[vShow, visible.value]])] });
14416
14420
  };
@@ -0,0 +1,8 @@
1
+ import { default as Input } from './input';
2
+ import { default as InputGroup } from './input-group';
3
+ import { default as TextArea } from './textarea';
4
+ export type { InputProps } from './input';
5
+ export type { InputGroupProps } from './input-group';
6
+ export type { TextAreaProps } from './textarea';
7
+ export { Input, InputGroup, TextArea };
8
+ export default Input;
@@ -0,0 +1,39 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export declare const inputBoxProps: {
4
+ multiple: BooleanType;
5
+ disabled: BooleanType;
6
+ size: StringConstructor;
7
+ type: StringConstructor;
8
+ theme: StringConstructor;
9
+ shape: StringConstructor;
10
+ inputType: StringConstructor;
11
+ value: PropType<string | number | any>;
12
+ showPassword: BooleanType;
13
+ inputRef: PropType<any>;
14
+ };
15
+ export type InputBoxProps = ExtractPropTypes<typeof inputBoxProps>;
16
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
17
+ multiple: BooleanType;
18
+ disabled: BooleanType;
19
+ size: StringConstructor;
20
+ type: StringConstructor;
21
+ theme: StringConstructor;
22
+ shape: StringConstructor;
23
+ inputType: StringConstructor;
24
+ value: PropType<string | number | any>;
25
+ showPassword: BooleanType;
26
+ inputRef: PropType<any>;
27
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
28
+ multiple: BooleanType;
29
+ disabled: BooleanType;
30
+ size: StringConstructor;
31
+ type: StringConstructor;
32
+ theme: StringConstructor;
33
+ shape: StringConstructor;
34
+ inputType: StringConstructor;
35
+ value: PropType<string | number | any>;
36
+ showPassword: BooleanType;
37
+ inputRef: PropType<any>;
38
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ export default _default;
@@ -0,0 +1,58 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, SizeType, ThemeType } from '../const/types';
3
+ export declare const inputGroupProps: {
4
+ block: {
5
+ type: PropType<boolean | undefined>;
6
+ default: boolean;
7
+ };
8
+ compact: {
9
+ type: BooleanType;
10
+ default: boolean;
11
+ };
12
+ theme: {
13
+ type: PropType<ThemeType>;
14
+ default: string;
15
+ };
16
+ size: {
17
+ type: PropType<SizeType | number | number[]>;
18
+ };
19
+ };
20
+ export type InputGroupProps = ExtractPropTypes<typeof inputGroupProps>;
21
+ declare const InputGroup: import('vue').DefineComponent<ExtractPropTypes<{
22
+ block: {
23
+ type: PropType<boolean | undefined>;
24
+ default: boolean;
25
+ };
26
+ compact: {
27
+ type: BooleanType;
28
+ default: boolean;
29
+ };
30
+ theme: {
31
+ type: PropType<ThemeType>;
32
+ default: string;
33
+ };
34
+ size: {
35
+ type: PropType<SizeType | number | number[]>;
36
+ };
37
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
38
+ block: {
39
+ type: PropType<boolean | undefined>;
40
+ default: boolean;
41
+ };
42
+ compact: {
43
+ type: BooleanType;
44
+ default: boolean;
45
+ };
46
+ theme: {
47
+ type: PropType<ThemeType>;
48
+ default: string;
49
+ };
50
+ size: {
51
+ type: PropType<SizeType | number | number[]>;
52
+ };
53
+ }>> & Readonly<{}>, {
54
+ block: boolean | undefined;
55
+ compact: boolean | undefined;
56
+ theme: ThemeType;
57
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
+ export default InputGroup;
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ExtractPropTypes, InputHTMLAttributes, PropType, VNodeChild } from 'vue';
2
+ import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
3
+ import { IconType } from '../icon';
4
+ declare const inputProps: {
5
+ clearable: {
6
+ type: BooleanType;
7
+ default: boolean;
8
+ };
9
+ visiblePasswordIcon: {
10
+ type: BooleanType;
11
+ default: boolean;
12
+ };
13
+ size: {
14
+ type: PropType<SizeType>;
15
+ };
16
+ modelValue: {
17
+ type: PropType<any>;
18
+ };
19
+ disabled: BooleanType;
20
+ type: {
21
+ type: PropType<"text" | "password" | "hidden">;
22
+ default: string;
23
+ };
24
+ icon: PropType<IconType[]>;
25
+ suffix: {
26
+ type: PropType<VNodeChild>;
27
+ };
28
+ prefix: {
29
+ type: PropType<VNodeChild>;
30
+ };
31
+ theme: {
32
+ type: PropType<ThemeType>;
33
+ default: string;
34
+ };
35
+ shape: PropType<ShapeType>;
36
+ inputType: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ onSearch: {
41
+ type: PropType<(value: string) => void>;
42
+ };
43
+ maxlength: NumberConstructor;
44
+ onIconClick: {
45
+ type: PropType<(e: PointerEvent) => void>;
46
+ };
47
+ onClear: {
48
+ type: PropType<() => void>;
49
+ };
50
+ onChange: {
51
+ type: PropType<(value: string) => void>;
52
+ };
53
+ };
54
+ export type InputProps = Partial<ExtractPropTypes<typeof inputProps>> & Omit<InputHTMLAttributes, "onChange">;
55
+ declare const _default: DefineComponent<InputProps>;
56
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, TextareaHTMLAttributes } from 'vue';
2
+ import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
3
+ export declare const textAreaProps: {
4
+ modelValue: PropType<any>;
5
+ theme: {
6
+ type: PropType<ThemeType>;
7
+ default: string;
8
+ };
9
+ shape: {
10
+ type: PropType<ShapeType>;
11
+ };
12
+ size: PropType<SizeType>;
13
+ placeholder: StringConstructor;
14
+ rows: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ disabled: BooleanType;
19
+ onChange: {
20
+ type: PropType<(value: string) => void>;
21
+ };
22
+ };
23
+ export type TextAreaProps = Partial<ExtractPropTypes<typeof textAreaProps>> & Omit<TextareaHTMLAttributes, "onChange">;
24
+ declare const _default: DefineComponent<TextAreaProps>;
25
+ export default _default;
@@ -0,0 +1,127 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
3
+ import { IconType } from '../icon';
4
+ export declare const inputNumberProps: {
5
+ modelValue: PropType<number | string>;
6
+ min: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ max: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ step: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ precision: NumberConstructor;
19
+ formatter: PropType<(value: string | number) => string>;
20
+ parser: PropType<(value: string) => string | number>;
21
+ disabled: BooleanType;
22
+ readonly: BooleanType;
23
+ controls: {
24
+ type: BooleanType;
25
+ default: boolean;
26
+ };
27
+ suffix: StringConstructor;
28
+ prefix: StringConstructor;
29
+ theme: {
30
+ type: PropType<ThemeType>;
31
+ default: string;
32
+ };
33
+ shape: {
34
+ type: PropType<ShapeType>;
35
+ };
36
+ icon: PropType<IconType[]>;
37
+ size: {
38
+ type: PropType<SizeType>;
39
+ };
40
+ placeholder: StringConstructor;
41
+ onChange: PropType<(value: number) => void>;
42
+ };
43
+ export type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>;
44
+ declare const InputNumber: import('vue').DefineComponent<ExtractPropTypes<{
45
+ modelValue: PropType<number | string>;
46
+ min: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ max: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ step: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ precision: NumberConstructor;
59
+ formatter: PropType<(value: string | number) => string>;
60
+ parser: PropType<(value: string) => string | number>;
61
+ disabled: BooleanType;
62
+ readonly: BooleanType;
63
+ controls: {
64
+ type: BooleanType;
65
+ default: boolean;
66
+ };
67
+ suffix: StringConstructor;
68
+ prefix: StringConstructor;
69
+ theme: {
70
+ type: PropType<ThemeType>;
71
+ default: string;
72
+ };
73
+ shape: {
74
+ type: PropType<ShapeType>;
75
+ };
76
+ icon: PropType<IconType[]>;
77
+ size: {
78
+ type: PropType<SizeType>;
79
+ };
80
+ placeholder: StringConstructor;
81
+ onChange: PropType<(value: number) => void>;
82
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
83
+ modelValue: PropType<number | string>;
84
+ min: {
85
+ type: NumberConstructor;
86
+ default: number;
87
+ };
88
+ max: {
89
+ type: NumberConstructor;
90
+ default: number;
91
+ };
92
+ step: {
93
+ type: NumberConstructor;
94
+ default: number;
95
+ };
96
+ precision: NumberConstructor;
97
+ formatter: PropType<(value: string | number) => string>;
98
+ parser: PropType<(value: string) => string | number>;
99
+ disabled: BooleanType;
100
+ readonly: BooleanType;
101
+ controls: {
102
+ type: BooleanType;
103
+ default: boolean;
104
+ };
105
+ suffix: StringConstructor;
106
+ prefix: StringConstructor;
107
+ theme: {
108
+ type: PropType<ThemeType>;
109
+ default: string;
110
+ };
111
+ shape: {
112
+ type: PropType<ShapeType>;
113
+ };
114
+ icon: PropType<IconType[]>;
115
+ size: {
116
+ type: PropType<SizeType>;
117
+ };
118
+ placeholder: StringConstructor;
119
+ onChange: PropType<(value: number) => void>;
120
+ }>> & Readonly<{}>, {
121
+ theme: ThemeType;
122
+ step: number;
123
+ min: number;
124
+ max: number;
125
+ controls: boolean | undefined;
126
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
127
+ export default InputNumber;
@@ -0,0 +1,136 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export declare const layoutProps: {
4
+ suffixCls: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ hasSider: {
9
+ type: BooleanType;
10
+ default: undefined;
11
+ };
12
+ };
13
+ export declare const siderProps: {
14
+ suffixCls: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ width: {
19
+ type: (NumberConstructor | StringConstructor)[];
20
+ default: number;
21
+ };
22
+ collapsedWidth: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ collapsible: BooleanType;
27
+ collapsed: BooleanType;
28
+ };
29
+ export type LayoutProps = ExtractPropTypes<typeof layoutProps>;
30
+ export type SiderProps = ExtractPropTypes<typeof siderProps>;
31
+ declare const LayoutMain: import('vue').DefineComponent<ExtractPropTypes<{
32
+ suffixCls: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ hasSider: {
37
+ type: BooleanType;
38
+ default: undefined;
39
+ };
40
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
41
+ suffixCls: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ hasSider: {
46
+ type: BooleanType;
47
+ default: undefined;
48
+ };
49
+ }>> & Readonly<{}>, {
50
+ suffixCls: string;
51
+ hasSider: boolean | undefined;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
+ declare const Sider: import('vue').DefineComponent<ExtractPropTypes<{
54
+ suffixCls: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ width: {
59
+ type: (NumberConstructor | StringConstructor)[];
60
+ default: number;
61
+ };
62
+ collapsedWidth: {
63
+ type: (NumberConstructor | StringConstructor)[];
64
+ default: number;
65
+ };
66
+ collapsible: BooleanType;
67
+ collapsed: BooleanType;
68
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
69
+ suffixCls: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ width: {
74
+ type: (NumberConstructor | StringConstructor)[];
75
+ default: number;
76
+ };
77
+ collapsedWidth: {
78
+ type: (NumberConstructor | StringConstructor)[];
79
+ default: number;
80
+ };
81
+ collapsible: BooleanType;
82
+ collapsed: BooleanType;
83
+ }>> & Readonly<{}>, {
84
+ width: string | number;
85
+ suffixCls: string;
86
+ collapsedWidth: string | number;
87
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
88
+ declare const Content: import('vue').DefineComponent<ExtractPropTypes<{
89
+ suffixCls: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
94
+ suffixCls: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ }>> & Readonly<{}>, {
99
+ suffixCls: string;
100
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
+ declare const Header: import('vue').DefineComponent<ExtractPropTypes<{
102
+ suffixCls: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
107
+ suffixCls: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ }>> & Readonly<{}>, {
112
+ suffixCls: string;
113
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
114
+ declare const Footer: import('vue').DefineComponent<ExtractPropTypes<{
115
+ suffixCls: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
120
+ suffixCls: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ }>> & Readonly<{}>, {
125
+ suffixCls: string;
126
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
127
+ type InternalLayoutType = typeof LayoutMain;
128
+ type LayoutType = InternalLayoutType & {
129
+ Header: typeof Header;
130
+ Footer: typeof Footer;
131
+ Content: typeof Content;
132
+ Sider: typeof Sider;
133
+ };
134
+ declare const Layout: LayoutType;
135
+ export default Layout;
136
+ export { Content, Footer, Header, Layout, Sider };
@@ -0,0 +1,16 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const loadingProps: {
3
+ height: {
4
+ type: (NumberConstructor | StringConstructor)[];
5
+ default: number;
6
+ };
7
+ };
8
+ export type LoadingProps = ExtractPropTypes<typeof loadingProps>;
9
+ declare const loading: {
10
+ start(): void;
11
+ finish(): void;
12
+ error(): void;
13
+ update(pt: number): void;
14
+ destroy(): void;
15
+ };
16
+ export default loading;