vxe-pc-ui 3.15.1 → 3.15.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.
- package/es/date-panel/src/util.js +12 -0
- package/es/date-picker/src/date-picker.js +81 -10
- package/es/date-range-picker/src/date-range-picker.js +20 -8
- package/es/number-input/src/number-input.js +2 -3
- package/es/splitter/src/splitter.js +6 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/date-panel/src/util.js +13 -0
- package/lib/date-panel/src/util.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +79 -9
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +18 -8
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/index.umd.js +119 -23
- package/lib/index.umd.min.js +1 -1
- package/lib/number-input/src/number-input.js +2 -3
- package/lib/splitter/src/splitter.js +6 -1
- package/lib/splitter/src/splitter.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/date-panel/src/util.ts +13 -0
- package/packages/date-picker/src/date-picker.ts +82 -10
- package/packages/date-range-picker/src/date-range-picker.ts +18 -8
- package/packages/number-input/src/number-input.ts +2 -6
- package/packages/splitter/src/splitter.ts +6 -1
- package/types/components/date-picker.d.ts +18 -0
- package/types/components/date-range-picker.d.ts +4 -0
- package/types/components/splitter.d.ts +1 -0
- package/types/components/table.d.ts +33 -4
- /package/es/icon/{iconfont.1781675403709.ttf → iconfont.1781753586592.ttf} +0 -0
- /package/es/icon/{iconfont.1781675403709.woff → iconfont.1781753586592.woff} +0 -0
- /package/es/icon/{iconfont.1781675403709.woff2 → iconfont.1781753586592.woff2} +0 -0
- /package/es/{iconfont.1781675403709.ttf → iconfont.1781753586592.ttf} +0 -0
- /package/es/{iconfont.1781675403709.woff → iconfont.1781753586592.woff} +0 -0
- /package/es/{iconfont.1781675403709.woff2 → iconfont.1781753586592.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1781675403709.ttf → iconfont.1781753586592.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1781675403709.woff → iconfont.1781753586592.woff} +0 -0
- /package/lib/icon/style/{iconfont.1781675403709.woff2 → iconfont.1781753586592.woff2} +0 -0
- /package/lib/{iconfont.1781675403709.ttf → iconfont.1781753586592.ttf} +0 -0
- /package/lib/{iconfont.1781675403709.woff → iconfont.1781753586592.woff} +0 -0
- /package/lib/{iconfont.1781675403709.woff2 → iconfont.1781753586592.woff2} +0 -0
|
@@ -49,12 +49,23 @@ export namespace VxeDatePickerPropTypes {
|
|
|
49
49
|
export type LabelFormat = string
|
|
50
50
|
export type ValueFormat = string
|
|
51
51
|
export type TimeFormat = string
|
|
52
|
+
export type InputFormat = string
|
|
52
53
|
export type Editable = boolean
|
|
53
54
|
export type FestivalMethod = VxeDatePanelPropTypes.FestivalMethod
|
|
54
55
|
export type DisabledMethod = VxeDatePanelPropTypes.DisabledMethod
|
|
55
56
|
export type AutoClose = boolean
|
|
56
57
|
export type PrefixIcon = string
|
|
57
58
|
export type SuffixIcon = string
|
|
59
|
+
export interface ControlConfig {
|
|
60
|
+
/**
|
|
61
|
+
* 是否启用,支持局部/全局启用
|
|
62
|
+
*/
|
|
63
|
+
enabled?: boolean
|
|
64
|
+
/**
|
|
65
|
+
* 只对 enabled 启用后有效,是否启用方向键操作
|
|
66
|
+
*/
|
|
67
|
+
isArrow?: boolean
|
|
68
|
+
}
|
|
58
69
|
/**
|
|
59
70
|
* 已废弃,请使用 PopupConfig.placement
|
|
60
71
|
* @deprecated
|
|
@@ -71,6 +82,10 @@ export namespace VxeDatePickerPropTypes {
|
|
|
71
82
|
export interface TimeConfig extends VxeDatePanelPropTypes.TimeConfig {}
|
|
72
83
|
|
|
73
84
|
export interface PopupConfig {
|
|
85
|
+
/**
|
|
86
|
+
* 是否启用,支持局部/全局启用
|
|
87
|
+
*/
|
|
88
|
+
enabled?: boolean
|
|
74
89
|
/**
|
|
75
90
|
* 设置弹出面板方向
|
|
76
91
|
*/
|
|
@@ -134,6 +149,7 @@ export interface VxeDatePickerProps {
|
|
|
134
149
|
labelFormat?: VxeDatePickerPropTypes.LabelFormat
|
|
135
150
|
valueFormat?: VxeDatePickerPropTypes.ValueFormat
|
|
136
151
|
timeFormat?: VxeDatePickerPropTypes.TimeFormat
|
|
152
|
+
inputFormat?: VxeDatePickerPropTypes.InputFormat
|
|
137
153
|
editable?: VxeDatePickerPropTypes.Editable
|
|
138
154
|
festivalMethod?: VxeDatePickerPropTypes.FestivalMethod
|
|
139
155
|
disabledMethod?: VxeDatePickerPropTypes.DisabledMethod
|
|
@@ -146,6 +162,7 @@ export interface VxeDatePickerProps {
|
|
|
146
162
|
* 只对 type=date,week,month,quarter,year 有效,选择完日期后自动关闭
|
|
147
163
|
*/
|
|
148
164
|
autoClose?: VxeDatePickerPropTypes.AutoClose
|
|
165
|
+
controlConfig?: VxeDatePickerPropTypes.ControlConfig
|
|
149
166
|
|
|
150
167
|
/**
|
|
151
168
|
* 只对 type=week 有效,选中日期后指定为一周的哪一天
|
|
@@ -187,6 +204,7 @@ export interface DatePickerReactData {
|
|
|
187
204
|
|
|
188
205
|
export interface DatePickerInternalData {
|
|
189
206
|
hpTimeout?: undefined | number
|
|
207
|
+
parseInputKayMaps: Record<string, (evnt: KeyboardEvent, targetElem: HTMLInputElement, isUpArrow: boolean) => void>
|
|
190
208
|
}
|
|
191
209
|
|
|
192
210
|
export interface DatePickerMethods {
|
|
@@ -5,10 +5,11 @@ import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column
|
|
|
5
5
|
import { VxeTableExtendCellAreaDefines, VxeTableExtendCellAreaEmits } from './table-plugins'
|
|
6
6
|
import { VxeGridConstructor } from './grid'
|
|
7
7
|
import { VxeTooltipPropTypes } from './tooltip'
|
|
8
|
-
import { VxeModalPropTypes } from './modal'
|
|
8
|
+
import { VxeModalConstructor, VxeModalPrivateMethods, VxeModalPropTypes } from './modal'
|
|
9
9
|
import { VxeDrawerPropTypes } from './drawer'
|
|
10
10
|
import { VxeToolbarConstructor, VxeToolbarInstance } from './toolbar'
|
|
11
11
|
import { VxeTabsConstructor, VxeTabsPrivateMethods } from './tabs'
|
|
12
|
+
import { VxeSplitterConstructor, VxeSplitterMethods } from './splitter'
|
|
12
13
|
import { VxeGanttConstructor, VxeGanttPrivateMethods } from './gantt'
|
|
13
14
|
import { VxeGanttViewConstructor, VxeGanttViewInstance, VxeGanttViewPrivateMethods } from './gantt-module/gantt-view'
|
|
14
15
|
|
|
@@ -32,6 +33,8 @@ export type VxeTableInstance<D = any> = DefineVxeComponentInstance<{
|
|
|
32
33
|
$xeGrid: VxeGridConstructor<D> | null | undefined
|
|
33
34
|
$xeGantt: VxeTableDefines.InjectGanttType | null | undefined
|
|
34
35
|
$xeTabs: (VxeTabsConstructor & VxeTabsPrivateMethods) | null
|
|
36
|
+
$xeModal: (VxeModalConstructor & VxeModalPrivateMethods) | null
|
|
37
|
+
$xeSplitter: (VxeSplitterConstructor & VxeSplitterMethods) | null
|
|
35
38
|
|
|
36
39
|
/**
|
|
37
40
|
* @deprecated
|
|
@@ -1352,6 +1355,8 @@ export namespace VxeTablePropTypes {
|
|
|
1352
1355
|
* 是否启用浮动筛选
|
|
1353
1356
|
*/
|
|
1354
1357
|
floatingFilters?: VxeColumnPropTypes.FloatingFilters
|
|
1358
|
+
rowClassName?: string
|
|
1359
|
+
cellClassName?: string
|
|
1355
1360
|
}
|
|
1356
1361
|
|
|
1357
1362
|
/**
|
|
@@ -1476,8 +1481,14 @@ export namespace VxeTablePropTypes {
|
|
|
1476
1481
|
* 提示信息配置项
|
|
1477
1482
|
*/
|
|
1478
1483
|
export interface TooltipConfig<D = VxeTablePropTypes.Row> {
|
|
1484
|
+
/**
|
|
1485
|
+
* 所有单元格开启工具提示
|
|
1486
|
+
*/
|
|
1479
1487
|
showAll?: boolean
|
|
1480
1488
|
theme?: VxeTooltipPropTypes.Theme
|
|
1489
|
+
/**
|
|
1490
|
+
* 鼠标是否可进入到工具提示中
|
|
1491
|
+
*/
|
|
1481
1492
|
enterable?: VxeTooltipPropTypes.Enterable
|
|
1482
1493
|
enterDelay?: VxeTooltipPropTypes.EnterDelay
|
|
1483
1494
|
leaveDelay?: VxeTooltipPropTypes.LeaveDelay
|
|
@@ -1487,10 +1498,22 @@ export namespace VxeTablePropTypes {
|
|
|
1487
1498
|
minHeight?: VxeTooltipPropTypes.MinHeight
|
|
1488
1499
|
maxWidth?: VxeTooltipPropTypes.MaxWidth
|
|
1489
1500
|
maxHeight?: VxeTooltipPropTypes.MaxHeight
|
|
1501
|
+
/**
|
|
1502
|
+
* 显示为 HTML 标签
|
|
1503
|
+
*/
|
|
1490
1504
|
useHtml?: VxeTooltipPropTypes.UseHtml
|
|
1505
|
+
/**
|
|
1506
|
+
* 固定方向
|
|
1507
|
+
*/
|
|
1491
1508
|
placement?: VxeTooltipPropTypes.Placement
|
|
1509
|
+
/**
|
|
1510
|
+
* 默认方向
|
|
1511
|
+
*/
|
|
1492
1512
|
defaultPlacement?: VxeTooltipPropTypes.DefaultPlacement
|
|
1493
1513
|
popupClassName?: VxeTooltipPropTypes.PopupClassName
|
|
1514
|
+
/**
|
|
1515
|
+
* 该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容
|
|
1516
|
+
*/
|
|
1494
1517
|
contentMethod?(params: {
|
|
1495
1518
|
$table: VxeTableConstructor<D>
|
|
1496
1519
|
items: any[]
|
|
@@ -1505,7 +1528,7 @@ export namespace VxeTablePropTypes {
|
|
|
1505
1528
|
type: 'body'
|
|
1506
1529
|
cell: HTMLElement
|
|
1507
1530
|
$event: any
|
|
1508
|
-
}): string | null | void
|
|
1531
|
+
}): string | boolean | null | void
|
|
1509
1532
|
/**
|
|
1510
1533
|
* 请使用 useHtml
|
|
1511
1534
|
* @deprecated
|
|
@@ -1513,6 +1536,9 @@ export namespace VxeTablePropTypes {
|
|
|
1513
1536
|
useHTML?: VxeTooltipPropTypes.UseHTML
|
|
1514
1537
|
}
|
|
1515
1538
|
export interface HeaderTooltipConfig<D = VxeTablePropTypes.Row> extends Omit<TooltipConfig<D>, 'contentMethod'> {
|
|
1539
|
+
/**
|
|
1540
|
+
* 该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容
|
|
1541
|
+
*/
|
|
1516
1542
|
contentMethod?(params: {
|
|
1517
1543
|
$table: VxeTableConstructor<D>
|
|
1518
1544
|
$rowIndex: number
|
|
@@ -1523,9 +1549,12 @@ export namespace VxeTablePropTypes {
|
|
|
1523
1549
|
type: 'header'
|
|
1524
1550
|
cell: HTMLElement
|
|
1525
1551
|
$event: any
|
|
1526
|
-
}): string | null | void
|
|
1552
|
+
}): string | boolean | null | void
|
|
1527
1553
|
}
|
|
1528
1554
|
export interface FooterTooltipConfig<D = VxeTablePropTypes.Row> extends Omit<TooltipConfig<D>, 'contentMethod'> {
|
|
1555
|
+
/**
|
|
1556
|
+
* 该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容
|
|
1557
|
+
*/
|
|
1529
1558
|
contentMethod?(params: {
|
|
1530
1559
|
$table: VxeTableConstructor<D>
|
|
1531
1560
|
items: any[]
|
|
@@ -1539,7 +1568,7 @@ export namespace VxeTablePropTypes {
|
|
|
1539
1568
|
type: 'footer'
|
|
1540
1569
|
cell: HTMLElement
|
|
1541
1570
|
$event: any
|
|
1542
|
-
}): string | null | void
|
|
1571
|
+
}): string | boolean | null | void
|
|
1543
1572
|
}
|
|
1544
1573
|
|
|
1545
1574
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|