3h1-ui 3.0.0-next.215 → 3.0.0-next.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/style.css CHANGED
@@ -949,13 +949,13 @@ input:focus.ant-input {
949
949
  }
950
950
  .ant-btn.ant-btn-link:not(:disabled) {
951
951
  color: var(--primary-5);
952
- }.shy-svg-icon[data-v-905fa4a6] {
952
+ }.shy-svg-icon[data-v-fa64fe87] {
953
953
  display: inline-block;
954
954
  overflow: hidden;
955
955
  vertical-align: -0.15em;
956
956
  fill: currentcolor;
957
957
  }
958
- .svg-icon-spin[data-v-905fa4a6] {
958
+ .svg-icon-spin[data-v-fa64fe87] {
959
959
  animation: loadingCircle 1s infinite linear;
960
960
  }.app-iconify {
961
961
  display: inline-block;
@@ -980,29 +980,29 @@ span.iconify {
980
980
  }
981
981
  .shy-icon-picker-popover .scrollbar {
982
982
  height: 220px;
983
- }.shy-basic-arrow[data-v-fea26917] {
983
+ }.shy-basic-arrow[data-v-03d87956] {
984
984
  display: inline-block;
985
985
  cursor: pointer;
986
986
  transform: rotate(0deg);
987
987
  transition: all 0.3s ease 0.1s;
988
988
  transform-origin: center center;
989
989
  }
990
- .shy-basic-arrow--active[data-v-fea26917] {
990
+ .shy-basic-arrow--active[data-v-03d87956] {
991
991
  transform: rotate(90deg);
992
992
  }
993
- .shy-basic-arrow.inset[data-v-fea26917] {
993
+ .shy-basic-arrow.inset[data-v-03d87956] {
994
994
  line-height: 0px;
995
995
  }
996
- .shy-basic-arrow.up[data-v-fea26917] {
996
+ .shy-basic-arrow.up[data-v-03d87956] {
997
997
  transform: rotate(-90deg);
998
998
  }
999
- .shy-basic-arrow.down[data-v-fea26917] {
999
+ .shy-basic-arrow.down[data-v-03d87956] {
1000
1000
  transform: rotate(90deg);
1001
1001
  }
1002
- .shy-basic-arrow.up.shy-basic-arrow--active[data-v-fea26917] {
1002
+ .shy-basic-arrow.up.shy-basic-arrow--active[data-v-03d87956] {
1003
1003
  transform: rotate(90deg);
1004
1004
  }
1005
- .shy-basic-arrow.down.shy-basic-arrow--active[data-v-fea26917] {
1005
+ .shy-basic-arrow.down.shy-basic-arrow--active[data-v-03d87956] {
1006
1006
  transform: rotate(-90deg);
1007
1007
  }.shy-basic-help {
1008
1008
  display: inline-block;
@@ -1016,7 +1016,7 @@ span.iconify {
1016
1016
  }
1017
1017
  .shy-basic-help__wrap p {
1018
1018
  margin-bottom: 0;
1019
- }.shy-basic-title[data-v-97cf8edc] {
1019
+ }.shy-basic-title[data-v-3d04f680] {
1020
1020
  position: relative;
1021
1021
  display: flex;
1022
1022
  font-family: PingFangSC, PingFang SC;
@@ -1029,7 +1029,7 @@ span.iconify {
1029
1029
  align-items: center;
1030
1030
  gap: 8px;
1031
1031
  }
1032
- .shy-basic-title-show-span[data-v-97cf8edc]::before {
1032
+ .shy-basic-title-show-span[data-v-3d04f680]::before {
1033
1033
  content: '';
1034
1034
  position: absolute;
1035
1035
  width: 2px;
@@ -1040,7 +1040,7 @@ span.iconify {
1040
1040
  top: 50%;
1041
1041
  transform: translateY(-50%);
1042
1042
  }
1043
- .shy-basic-title-help[data-v-97cf8edc] {
1043
+ .shy-basic-title-help[data-v-3d04f680] {
1044
1044
  margin-left: 10px;
1045
1045
  }.shy-collapse-container-arrow {
1046
1046
  font-size: 14px !important;
@@ -1283,7 +1283,7 @@ html[data-theme='light'] {
1283
1283
  }
1284
1284
  .shy-basic-modal-close span:last-child:hover {
1285
1285
  color: #ED6F6F;
1286
- }[data-v-5cd7267e]:root {
1286
+ }[data-v-c837219c]:root {
1287
1287
  --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),
1288
1288
  0px 1px 1px 0px rgba(0, 0, 0, 0.02);
1289
1289
  --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
@@ -1295,17 +1295,17 @@ html[data-theme='light'] {
1295
1295
  --light: #fff;
1296
1296
  --dark: #141414;
1297
1297
  }
1298
- html[data-theme='dark'][data-v-5cd7267e] {
1298
+ html[data-theme='dark'][data-v-c837219c] {
1299
1299
  --theme: var(--dark);
1300
1300
  --text-color: var(--light);
1301
1301
  color-scheme: dark;
1302
1302
  }
1303
- html[data-theme='light'][data-v-5cd7267e] {
1303
+ html[data-theme='light'][data-v-c837219c] {
1304
1304
  --theme: var(--light);
1305
1305
  --text-color: var(--dark);
1306
1306
  color-scheme: light;
1307
1307
  }
1308
- .shy-basic-title[data-v-5cd7267e] {
1308
+ .shy-basic-title[data-v-c837219c] {
1309
1309
  position: relative;
1310
1310
  display: flex;
1311
1311
  font-size: 16px;
@@ -1315,11 +1315,11 @@ html[data-theme='light'][data-v-5cd7267e] {
1315
1315
  cursor: pointer;
1316
1316
  user-select: none;
1317
1317
  }
1318
- .shy-basic-title-normal[data-v-5cd7267e] {
1318
+ .shy-basic-title-normal[data-v-c837219c] {
1319
1319
  font-size: 14px;
1320
1320
  font-weight: 500;
1321
1321
  }
1322
- .shy-basic-title-show-span[data-v-5cd7267e]::before {
1322
+ .shy-basic-title-show-span[data-v-c837219c]::before {
1323
1323
  position: absolute;
1324
1324
  top: 4px;
1325
1325
  left: 0;
@@ -1329,7 +1329,7 @@ html[data-theme='light'][data-v-5cd7267e] {
1329
1329
  background-color: #006eff;
1330
1330
  content: '';
1331
1331
  }
1332
- .shy-basic-title-help[data-v-5cd7267e] {
1332
+ .shy-basic-title-help[data-v-c837219c] {
1333
1333
  margin-left: 10px;
1334
1334
  }.shy-basic-modal :is(.ant-modal-content) {
1335
1335
  padding: 0;
@@ -1578,14 +1578,14 @@ html[data-theme='light'][data-v-5cd7267e] {
1578
1578
  height: 14px;
1579
1579
  content: '';
1580
1580
  background: #2991ff;
1581
- }.shy-strength-meter-bar[data-v-678d40fd] {
1581
+ }.shy-strength-meter-bar[data-v-c8d77eaa] {
1582
1582
  position: relative;
1583
1583
  margin: 10px auto 6px;
1584
1584
  height: 6px;
1585
1585
  background-color: rgba(0, 0, 0, 0.25);
1586
1586
  border-radius: 6px;
1587
1587
  }
1588
- .shy-strength-meter-bar[data-v-678d40fd]::before, .shy-strength-meter-bar[data-v-678d40fd]::after {
1588
+ .shy-strength-meter-bar[data-v-c8d77eaa]::before, .shy-strength-meter-bar[data-v-c8d77eaa]::after {
1589
1589
  position: absolute;
1590
1590
  z-index: 10;
1591
1591
  display: block;
@@ -1597,13 +1597,13 @@ html[data-theme='light'][data-v-5cd7267e] {
1597
1597
  border-color: #fff;
1598
1598
  content: '';
1599
1599
  }
1600
- .shy-strength-meter-bar[data-v-678d40fd]::before {
1600
+ .shy-strength-meter-bar[data-v-c8d77eaa]::before {
1601
1601
  left: 20%;
1602
1602
  }
1603
- .shy-strength-meter-bar[data-v-678d40fd]::after {
1603
+ .shy-strength-meter-bar[data-v-c8d77eaa]::after {
1604
1604
  right: 20%;
1605
1605
  }
1606
- .shy-strength-meter-bar--fill[data-v-678d40fd] {
1606
+ .shy-strength-meter-bar--fill[data-v-c8d77eaa] {
1607
1607
  position: absolute;
1608
1608
  width: 0;
1609
1609
  height: inherit;
@@ -1611,23 +1611,23 @@ html[data-theme='light'][data-v-5cd7267e] {
1611
1611
  border-radius: inherit;
1612
1612
  transition: width 0.5s ease-in-out, background 0.25s;
1613
1613
  }
1614
- .shy-strength-meter-bar--fill[data-score='0'][data-v-678d40fd] {
1614
+ .shy-strength-meter-bar--fill[data-score='0'][data-v-c8d77eaa] {
1615
1615
  width: 20%;
1616
1616
  background-color: #e74242;
1617
1617
  }
1618
- .shy-strength-meter-bar--fill[data-score='1'][data-v-678d40fd] {
1618
+ .shy-strength-meter-bar--fill[data-score='1'][data-v-c8d77eaa] {
1619
1619
  width: 40%;
1620
1620
  background-color: #ED6F6F;
1621
1621
  }
1622
- .shy-strength-meter-bar--fill[data-score='2'][data-v-678d40fd] {
1622
+ .shy-strength-meter-bar--fill[data-score='2'][data-v-c8d77eaa] {
1623
1623
  width: 60%;
1624
1624
  background-color: #EFBD47;
1625
1625
  }
1626
- .shy-strength-meter-bar--fill[data-score='3'][data-v-678d40fd] {
1626
+ .shy-strength-meter-bar--fill[data-score='3'][data-v-c8d77eaa] {
1627
1627
  width: 80%;
1628
1628
  background-color: rgba(85, 209, 135, 0.5);
1629
1629
  }
1630
- .shy-strength-meter-bar--fill[data-score='4'][data-v-678d40fd] {
1630
+ .shy-strength-meter-bar--fill[data-score='4'][data-v-c8d77eaa] {
1631
1631
  width: 100%;
1632
1632
  background-color: #55D187;
1633
1633
  }.shy-countdown-input .ant-input-group-addon {
@@ -2020,19 +2020,19 @@ html[data-theme='light'][data-v-5cd7267e] {
2020
2020
  }
2021
2021
  .shy-ant-tree-header {
2022
2022
  margin-bottom: 8px !important;
2023
- }.wrapper[data-v-0ca4fd85] {
2023
+ }.wrapper[data-v-15e2dcbb] {
2024
2024
  display: flex;
2025
2025
  }
2026
- .tree[data-v-0ca4fd85] {
2026
+ .tree[data-v-15e2dcbb] {
2027
2027
  flex: none;
2028
2028
  }
2029
- .table-wrapper[data-v-0ca4fd85] {
2029
+ .table-wrapper[data-v-15e2dcbb] {
2030
2030
  flex: 1 1 0%;
2031
2031
  overflow: hidden;
2032
- }[data-v-45845a8d] .ant-input-group-addon {
2032
+ }[data-v-5019fbdf] .ant-input-group-addon {
2033
2033
  padding: 0;
2034
2034
  }
2035
- .btn-wrapper[data-v-45845a8d] {
2035
+ .btn-wrapper[data-v-5019fbdf] {
2036
2036
  padding: 0 5px;
2037
2037
  display: flex;
2038
2038
  align-items: center;
@@ -3036,7 +3036,7 @@ html[data-theme='light'][data-v-5cd7267e] {
3036
3036
  }
3037
3037
  .shy-cropper-avatar-upload-btn[data-v-a9902106] {
3038
3038
  margin: 10px auto;
3039
- }.full-loading[data-v-ee545744] {
3039
+ }.full-loading[data-v-33b23b82] {
3040
3040
  position: fixed;
3041
3041
  top: 0;
3042
3042
  left: 0;
@@ -3048,16 +3048,16 @@ html[data-theme='light'][data-v-5cd7267e] {
3048
3048
  align-items: center;
3049
3049
  background-color: rgba(240, 242, 245, 0.4);
3050
3050
  }
3051
- .full-loading.absolute[data-v-ee545744] {
3051
+ .full-loading.absolute[data-v-33b23b82] {
3052
3052
  position: absolute;
3053
3053
  top: 0;
3054
3054
  left: 0;
3055
3055
  z-index: 300;
3056
3056
  }
3057
- html[data-theme='dark'] .full-loading[data-v-ee545744]:not(.light) {
3057
+ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
3058
3058
  background-color: rgba(0, 0, 0, 0.45);
3059
3059
  }
3060
- .full-loading.dark[data-v-ee545744] {
3060
+ .full-loading.dark[data-v-33b23b82] {
3061
3061
  background-color: rgba(0, 0, 0, 0.45);
3062
3062
  }.shy-basic-table-plus-wrapper {
3063
3063
  display: flex;
@@ -9736,19 +9736,19 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
9736
9736
  }
9737
9737
  .shy-basic-container-footer-cancel-right {
9738
9738
  flex-direction: row-reverse;
9739
- }[data-v-2d2eda80] .ant-descriptions-item-content {
9739
+ }[data-v-b1ced086] .ant-descriptions-item-content {
9740
9740
  padding: 0 !important;
9741
9741
  flex: 1;
9742
9742
  height: 100%;
9743
9743
  }
9744
- [data-v-2d2eda80] .ant-form-item {
9744
+ [data-v-b1ced086] .ant-form-item {
9745
9745
  margin: 0;
9746
9746
  }
9747
- [data-v-2d2eda80] .ant-form-item-explain {
9747
+ [data-v-b1ced086] .ant-form-item-explain {
9748
9748
  display: none;
9749
9749
  }
9750
- [data-v-2d2eda80] .ant-descriptions-item-label {
9751
- --label-width: var(--989efb00);
9750
+ [data-v-b1ced086] .ant-descriptions-item-label {
9751
+ --label-width: var(--7210fae1);
9752
9752
  justify-content: right;
9753
9753
  align-items: center;
9754
9754
  width: var(--label-width) !important;
@@ -9757,55 +9757,55 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
9757
9757
  text-overflow: ellipsis;
9758
9758
  color: #b1b1b1;
9759
9759
  }
9760
- [data-v-2d2eda80] .ant-descriptions-item-label span {
9760
+ [data-v-b1ced086] .ant-descriptions-item-label span {
9761
9761
  white-space: nowrap;
9762
9762
  overflow: hidden;
9763
9763
  text-overflow: ellipsis;
9764
9764
  }
9765
- [data-v-2d2eda80] .ant-descriptions-view tbody {
9765
+ [data-v-b1ced086] .ant-descriptions-view tbody {
9766
9766
  display: block;
9767
9767
  }
9768
- [data-v-2d2eda80] .ant-descriptions-view .ant-descriptions-row {
9768
+ [data-v-b1ced086] .ant-descriptions-view .ant-descriptions-row {
9769
9769
  display: flex;
9770
9770
  width: 100%;
9771
9771
  align-items: center;
9772
9772
  gap: 0 10px;
9773
9773
  }
9774
- [data-v-2d2eda80] .ant-descriptions-item-label.description-active::before {
9774
+ [data-v-b1ced086] .ant-descriptions-item-label.description-active::before {
9775
9775
  content: '*';
9776
9776
  color: red;
9777
9777
  }
9778
- [data-v-2d2eda80] .ant-descriptions-item.description-active .ant-descriptions-item-label::before {
9778
+ [data-v-b1ced086] .ant-descriptions-item.description-active .ant-descriptions-item-label::before {
9779
9779
  content: '*';
9780
9780
  color: red;
9781
9781
  }
9782
- [data-v-2d2eda80] .ant-descriptions-item-label::after {
9782
+ [data-v-b1ced086] .ant-descriptions-item-label::after {
9783
9783
  content: '';
9784
9784
  }
9785
- [data-v-2d2eda80] .ant-descriptions-item.description-placeholder .ant-descriptions-item-label::after {
9785
+ [data-v-b1ced086] .ant-descriptions-item.description-placeholder .ant-descriptions-item-label::after {
9786
9786
  content: '';
9787
9787
  }
9788
- [data-v-2d2eda80] .ant-form-item-has-error .ant-select-selection-placeholder {
9788
+ [data-v-b1ced086] .ant-form-item-has-error .ant-select-selection-placeholder {
9789
9789
  color: #ff4d4f !important;
9790
9790
  }
9791
- [data-v-2d2eda80] .ant-descriptions.ant-descriptions-bordered .ant-descriptions-view .ant-descriptions-row {
9791
+ [data-v-b1ced086] .ant-descriptions.ant-descriptions-bordered .ant-descriptions-view .ant-descriptions-row {
9792
9792
  gap: 0;
9793
9793
  }
9794
- [data-v-2d2eda80] .ant-descriptions.ant-descriptions-bordered .ant-form-item div {
9794
+ [data-v-b1ced086] .ant-descriptions.ant-descriptions-bordered .ant-form-item div {
9795
9795
  border: unset !important;
9796
9796
  }
9797
- [data-v-2d2eda80] .ant-descriptions-item-label.description-placeholder {
9797
+ [data-v-b1ced086] .ant-descriptions-item-label.description-placeholder {
9798
9798
  background-color: unset;
9799
9799
  border-right: unset;
9800
9800
  }
9801
- [data-v-2d2eda80] .ant-descriptions-item {
9801
+ [data-v-b1ced086] .ant-descriptions-item {
9802
9802
  flex: 1;
9803
9803
  }
9804
- [data-v-2d2eda80] .ant-row.ant-form-item {
9804
+ [data-v-b1ced086] .ant-row.ant-form-item {
9805
9805
  width: 100%;
9806
9806
  height: 100%;
9807
9807
  }
9808
- .descriptions-item-content[data-v-2d2eda80] {
9808
+ .descriptions-item-content[data-v-b1ced086] {
9809
9809
  padding: 0 8px;
9810
9810
  }.shy-basic-resize-wrapper {
9811
9811
  --design-width: var(--6a5207ba);
@@ -1,2 +1,2 @@
1
- declare const cssString: string;
2
- export default cssString;
1
+ declare const cssString: string;
2
+ export default cssString;
@@ -50,6 +50,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
50
50
  default: any;
51
51
  };
52
52
  loading: {
53
+ /**
54
+ * Whether to trigger window.resize when expanding and contracting,
55
+ * Can adapt to tables and forms, when the form shrinks, the form triggers resize to adapt to the height
56
+ */
53
57
  type: BooleanConstructor;
54
58
  default: any;
55
59
  };
@@ -414,9 +418,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
414
418
  active: {
415
419
  type: BooleanConstructor;
416
420
  default: any;
417
- }; /**
418
- * @description: Handling development events
419
- */
421
+ };
420
422
  }, "size" | "active" | "shape">, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Omit<{
421
423
  prefixCls: StringConstructor;
422
424
  size: PropType<number | "small" | "default" | "large">;
@@ -1,18 +1,18 @@
1
- export interface BarMapItem {
2
- offset: string
3
- scroll: string
4
- scrollSize: string
5
- size: string
6
- key: string
7
- axis: string
8
- client: string
9
- direction: string
10
- }
11
- export interface BarMap {
12
- vertical: BarMapItem
13
- horizontal: BarMapItem
14
- }
15
-
16
- export interface ScrollbarType {
17
- wrap: ElRef
18
- }
1
+ export interface BarMapItem {
2
+ offset: string
3
+ scroll: string
4
+ scrollSize: string
5
+ size: string
6
+ key: string
7
+ axis: string
8
+ client: string
9
+ direction: string
10
+ }
11
+ export interface BarMap {
12
+ vertical: BarMapItem
13
+ horizontal: BarMapItem
14
+ }
15
+
16
+ export interface ScrollbarType {
17
+ wrap: ElRef
18
+ }
@@ -1,102 +1,102 @@
1
- import type {
2
- ComponentRenderProxy,
3
- VNode,
4
- VNodeChild,
5
- ComponentPublicInstance,
6
- FunctionalComponent,
7
- PropType as VuePropType
8
- } from 'vue'
9
-
10
- declare global {
11
- const __APP_INFO__: {
12
- pkg: {
13
- name: string
14
- version: string
15
- dependencies: Recordable<string>
16
- devDependencies: Recordable<string>
17
- }
18
- lastBuildTime: string
19
- }
20
- // declare interface Window {
21
- // // Global vue app instance
22
- // __APP__: App<Element>;
23
- // }
24
-
25
- // vue
26
- declare type PropType<T> = VuePropType<T>
27
- declare type VueNode = VNodeChild | JSX.Element
28
-
29
- export type Writable<T> = {
30
- -readonly [P in keyof T]: T[P]
31
- }
32
-
33
- declare type Nullable<T> = T | null
34
- declare type NonNullable<T> = T extends null | undefined ? never : T
35
- declare type Recordable<T = any> = Record<string, T>
36
- declare type ReadonlyRecordable<T = any> = {
37
- readonly [key: string]: T
38
- }
39
- declare type Indexable<T = any> = {
40
- [key: string]: T
41
- }
42
- declare type DeepPartial<T> = {
43
- [P in keyof T]?: DeepPartial<T[P]>
44
- }
45
- declare type TimeoutHandle = ReturnType<typeof setTimeout>
46
- declare type IntervalHandle = ReturnType<typeof setInterval>
47
-
48
- declare interface ChangeEvent extends Event {
49
- target: HTMLInputElement
50
- }
51
-
52
- declare interface WheelEvent {
53
- path?: EventTarget[]
54
- }
55
- interface ImportMetaEnv extends ViteEnv {
56
- __: unknown
57
- }
58
-
59
- declare interface ViteEnv {
60
- VITE_PORT: number
61
- VITE_USE_MOCK: boolean
62
- VITE_USE_PWA: boolean
63
- VITE_PUBLIC_PATH: string
64
- VITE_PROXY: [string, string][]
65
- VITE_GLOB_APP_TITLE: string
66
- VITE_GLOB_APP_SHORT_NAME: string
67
- VITE_GLOB_COPY_RIGHT: string
68
- VITE_USE_CDN: boolean
69
- VITE_DROP_CONSOLE: boolean
70
- VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
71
- VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
72
- VITE_LEGACY: boolean
73
- VITE_USE_IMAGEMIN: boolean
74
- VITE_GENERATE_UI: string
75
- }
76
-
77
- declare function parseInt(s: string | number, radix?: number): number
78
-
79
- declare function parseFloat(string: string | number): number
80
-
81
- namespace JSX {
82
- // tslint:disable no-empty-interface
83
- type Element = VNode
84
- // tslint:disable no-empty-interface
85
- type ElementClass = ComponentRenderProxy
86
- interface ElementAttributesProperty {
87
- $props: any
88
- }
89
- interface IntrinsicElements {
90
- [elem: string]: any
91
- }
92
- interface IntrinsicAttributes {
93
- [elem: string]: any
94
- }
95
- }
96
- }
97
-
98
- declare module 'vue' {
99
- export type JSXComponent<Props = any> =
100
- | { new (): ComponentPublicInstance<Props> }
101
- | FunctionalComponent<Props>
102
- }
1
+ import type {
2
+ ComponentRenderProxy,
3
+ VNode,
4
+ VNodeChild,
5
+ ComponentPublicInstance,
6
+ FunctionalComponent,
7
+ PropType as VuePropType
8
+ } from 'vue'
9
+
10
+ declare global {
11
+ const __APP_INFO__: {
12
+ pkg: {
13
+ name: string
14
+ version: string
15
+ dependencies: Recordable<string>
16
+ devDependencies: Recordable<string>
17
+ }
18
+ lastBuildTime: string
19
+ }
20
+ // declare interface Window {
21
+ // // Global vue app instance
22
+ // __APP__: App<Element>;
23
+ // }
24
+
25
+ // vue
26
+ declare type PropType<T> = VuePropType<T>
27
+ declare type VueNode = VNodeChild | JSX.Element
28
+
29
+ export type Writable<T> = {
30
+ -readonly [P in keyof T]: T[P]
31
+ }
32
+
33
+ declare type Nullable<T> = T | null
34
+ declare type NonNullable<T> = T extends null | undefined ? never : T
35
+ declare type Recordable<T = any> = Record<string, T>
36
+ declare type ReadonlyRecordable<T = any> = {
37
+ readonly [key: string]: T
38
+ }
39
+ declare type Indexable<T = any> = {
40
+ [key: string]: T
41
+ }
42
+ declare type DeepPartial<T> = {
43
+ [P in keyof T]?: DeepPartial<T[P]>
44
+ }
45
+ declare type TimeoutHandle = ReturnType<typeof setTimeout>
46
+ declare type IntervalHandle = ReturnType<typeof setInterval>
47
+
48
+ declare interface ChangeEvent extends Event {
49
+ target: HTMLInputElement
50
+ }
51
+
52
+ declare interface WheelEvent {
53
+ path?: EventTarget[]
54
+ }
55
+ interface ImportMetaEnv extends ViteEnv {
56
+ __: unknown
57
+ }
58
+
59
+ declare interface ViteEnv {
60
+ VITE_PORT: number
61
+ VITE_USE_MOCK: boolean
62
+ VITE_USE_PWA: boolean
63
+ VITE_PUBLIC_PATH: string
64
+ VITE_PROXY: [string, string][]
65
+ VITE_GLOB_APP_TITLE: string
66
+ VITE_GLOB_APP_SHORT_NAME: string
67
+ VITE_GLOB_COPY_RIGHT: string
68
+ VITE_USE_CDN: boolean
69
+ VITE_DROP_CONSOLE: boolean
70
+ VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
71
+ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
72
+ VITE_LEGACY: boolean
73
+ VITE_USE_IMAGEMIN: boolean
74
+ VITE_GENERATE_UI: string
75
+ }
76
+
77
+ declare function parseInt(s: string | number, radix?: number): number
78
+
79
+ declare function parseFloat(string: string | number): number
80
+
81
+ namespace JSX {
82
+ // tslint:disable no-empty-interface
83
+ type Element = VNode
84
+ // tslint:disable no-empty-interface
85
+ type ElementClass = ComponentRenderProxy
86
+ interface ElementAttributesProperty {
87
+ $props: any
88
+ }
89
+ interface IntrinsicElements {
90
+ [elem: string]: any
91
+ }
92
+ interface IntrinsicAttributes {
93
+ [elem: string]: any
94
+ }
95
+ }
96
+ }
97
+
98
+ declare module 'vue' {
99
+ export type JSXComponent<Props = any> =
100
+ | { new (): ComponentPublicInstance<Props> }
101
+ | FunctionalComponent<Props>
102
+ }
@@ -1,36 +1,36 @@
1
- type Nullable<T> = T | null
2
-
3
- declare interface Fn<T = any, R = T> {
4
- (...arg: T[]): R
5
- }
6
-
7
- declare interface PromiseFn<T = any, R = T> {
8
- (...arg: T[]): Promise<R>
9
- }
10
-
11
- declare type RefType<T> = T | null
12
-
13
- declare type LabelValueOptions = {
14
- label: string
15
- value: any
16
- [key: string]: string | number | boolean
17
- }[]
18
-
19
- declare type EmitType = (event: any, ...args: any[]) => void
20
-
21
- declare type TargetContext = '_self' | '_blank'
22
-
23
- declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
24
- $el: T
25
- }
26
-
27
- declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
28
- ComponentElRef<T> | null
29
-
30
- declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
31
-
32
- declare type Recordable<T = any> = { [key: string]: T }
33
-
34
- // declare module 'vue-types' {
35
- // // 这里添加 vue-types 模块的类型声明
36
- // }
1
+ type Nullable<T> = T | null
2
+
3
+ declare interface Fn<T = any, R = T> {
4
+ (...arg: T[]): R
5
+ }
6
+
7
+ declare interface PromiseFn<T = any, R = T> {
8
+ (...arg: T[]): Promise<R>
9
+ }
10
+
11
+ declare type RefType<T> = T | null
12
+
13
+ declare type LabelValueOptions = {
14
+ label: string
15
+ value: any
16
+ [key: string]: string | number | boolean
17
+ }[]
18
+
19
+ declare type EmitType = (event: any, ...args: any[]) => void
20
+
21
+ declare type TargetContext = '_self' | '_blank'
22
+
23
+ declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
24
+ $el: T
25
+ }
26
+
27
+ declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
28
+ ComponentElRef<T> | null
29
+
30
+ declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
31
+
32
+ declare type Recordable<T = any> = { [key: string]: T }
33
+
34
+ // declare module 'vue-types' {
35
+ // // 这里添加 vue-types 模块的类型声明
36
+ // }