vxe-pc-ui 3.4.0 → 3.4.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/color-picker/src/color-picker.js +6 -4
- package/es/date-picker/src/date-picker.js +1 -1
- package/es/form/src/form.js +1 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +1 -1
- package/es/input/src/input.js +4 -4
- package/es/number-input/src/number-input.js +3 -3
- package/es/pulldown/src/pulldown.js +1 -1
- package/es/select/src/select.js +53 -10
- package/es/select/style.css +17 -0
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +1 -1
- package/es/tree-select/src/tree-select.js +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-select/style.css +17 -0
- package/es/vxe-select/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +6 -4
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +1 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +1 -1
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +70 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +4 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +3 -3
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +1 -1
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +48 -10
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +17 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +1 -1
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +1 -1
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +2 -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/lib/vxe-select/style/style.css +17 -0
- package/lib/vxe-select/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +6 -4
- package/packages/date-picker/src/date-picker.ts +1 -1
- package/packages/form/src/form.ts +1 -1
- package/packages/icon-picker/src/icon-picker.ts +1 -1
- package/packages/input/src/input.ts +4 -4
- package/packages/number-input/src/number-input.ts +3 -3
- package/packages/pulldown/src/pulldown.ts +1 -1
- package/packages/select/src/select.ts +53 -10
- package/packages/table-select/src/table-select.ts +1 -1
- package/packages/tree-select/src/tree-select.ts +1 -1
- package/packages/ui/index.ts +1 -0
- package/styles/components/select.scss +19 -0
- package/types/components/select.d.ts +3 -0
- package/types/components/table.d.ts +10 -2
- package/types/ui/global-icon.d.ts +1 -0
- /package/es/icon/{iconfont.1741051466512.ttf → iconfont.1741176247715.ttf} +0 -0
- /package/es/icon/{iconfont.1741051466512.woff → iconfont.1741176247715.woff} +0 -0
- /package/es/icon/{iconfont.1741051466512.woff2 → iconfont.1741176247715.woff2} +0 -0
- /package/es/{iconfont.1741051466512.ttf → iconfont.1741176247715.ttf} +0 -0
- /package/es/{iconfont.1741051466512.woff → iconfont.1741176247715.woff} +0 -0
- /package/es/{iconfont.1741051466512.woff2 → iconfont.1741176247715.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741051466512.ttf → iconfont.1741176247715.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741051466512.woff → iconfont.1741176247715.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741051466512.woff2 → iconfont.1741176247715.woff2} +0 -0
- /package/lib/{iconfont.1741051466512.ttf → iconfont.1741176247715.ttf} +0 -0
- /package/lib/{iconfont.1741051466512.woff → iconfont.1741176247715.woff} +0 -0
- /package/lib/{iconfont.1741051466512.woff2 → iconfont.1741176247715.woff2} +0 -0
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.vxe-select-option {
|
|
132
|
+
position: relative;
|
|
132
133
|
padding: 0 0.6em;
|
|
133
134
|
max-width: 600px;
|
|
134
135
|
white-space: nowrap;
|
|
@@ -137,6 +138,17 @@
|
|
|
137
138
|
white-space: nowrap;
|
|
138
139
|
user-select: none;
|
|
139
140
|
cursor: pointer;
|
|
141
|
+
&.is--add {
|
|
142
|
+
padding-right: 2em;
|
|
143
|
+
&:hover {
|
|
144
|
+
.vxe-select-option--add-icon {
|
|
145
|
+
color: var(--vxe-ui-font-primary-color);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.vxe-select-option--add-icon {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
140
152
|
&.is--selected {
|
|
141
153
|
color: var(--vxe-ui-font-primary-color);
|
|
142
154
|
}
|
|
@@ -156,6 +168,13 @@
|
|
|
156
168
|
cursor: default;
|
|
157
169
|
}
|
|
158
170
|
|
|
171
|
+
.vxe-select-option--add-icon {
|
|
172
|
+
display: none;
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
right: 0.6em;
|
|
176
|
+
}
|
|
177
|
+
|
|
159
178
|
.vxe-select--search-icon {
|
|
160
179
|
margin-right: 0.5em;
|
|
161
180
|
}
|
|
@@ -36,6 +36,7 @@ export namespace VxeSelectPropTypes {
|
|
|
36
36
|
export type Multiple = boolean
|
|
37
37
|
export type MultiCharOverflow = number | string
|
|
38
38
|
export type PrefixIcon = string
|
|
39
|
+
export type AllowCreate = boolean
|
|
39
40
|
export type Placement = 'top' | 'bottom' | ''
|
|
40
41
|
export type Options = VxeSelectDefines.SelectOptions[]
|
|
41
42
|
export type OptionProps = {
|
|
@@ -100,6 +101,7 @@ export interface VxeSelectProps {
|
|
|
100
101
|
multiple?: VxeSelectPropTypes.Multiple
|
|
101
102
|
multiCharOverflow?: VxeSelectPropTypes.MultiCharOverflow
|
|
102
103
|
prefixIcon?: VxeSelectPropTypes.PrefixIcon
|
|
104
|
+
allowCreate?: VxeSelectPropTypes.AllowCreate
|
|
103
105
|
placement?: VxeSelectPropTypes.Placement
|
|
104
106
|
options?: VxeSelectPropTypes.Options
|
|
105
107
|
optionProps?: VxeSelectPropTypes.OptionProps
|
|
@@ -157,6 +159,7 @@ export interface SelectInternalData {
|
|
|
157
159
|
isLoaded?: boolean
|
|
158
160
|
synchData: any[]
|
|
159
161
|
fullData: any[]
|
|
162
|
+
optAddMaps: Record<string, any>
|
|
160
163
|
optGroupKeyMaps: Record<string, any>
|
|
161
164
|
optFullValMaps: Record<string, VxeSelectDefines.OptCacheItem>
|
|
162
165
|
remoteValMaps: Record<string, VxeSelectDefines.OptCacheItem>
|
|
@@ -3268,10 +3268,13 @@ export interface TableInternalData<D = any> {
|
|
|
3268
3268
|
tableFullColumn: VxeTableDefines.ColumnInfo<D>[]
|
|
3269
3269
|
// 渲染所有列
|
|
3270
3270
|
visibleColumn: VxeTableDefines.ColumnInfo<D>[]
|
|
3271
|
-
|
|
3271
|
+
|
|
3272
|
+
// 全量数据集(包括当前和已删除)
|
|
3272
3273
|
fullAllDataRowIdData: Record<string, VxeTableDefines.RowCacheItem<D>>
|
|
3273
|
-
|
|
3274
|
+
// 数据集(仅当前)
|
|
3274
3275
|
fullDataRowIdData: Record<string, VxeTableDefines.RowCacheItem<D>>
|
|
3276
|
+
|
|
3277
|
+
sourceDataRowIdData: Record<string, D>
|
|
3275
3278
|
fullColumnIdData: Record<string, VxeTableDefines.ColumnCacheItem<D>>
|
|
3276
3279
|
fullColumnFieldData: Record<string, VxeTableDefines.ColumnCacheItem<D>>
|
|
3277
3280
|
|
|
@@ -3492,6 +3495,11 @@ export interface TableMethods<DT = any> {
|
|
|
3492
3495
|
* @param row 指定行
|
|
3493
3496
|
*/
|
|
3494
3497
|
isInsertByRow(row: any | null): boolean
|
|
3498
|
+
/**
|
|
3499
|
+
* 判断行是否被删除
|
|
3500
|
+
* @param row 指定行
|
|
3501
|
+
*/
|
|
3502
|
+
isRemoveByRow(row: any | null): boolean
|
|
3495
3503
|
/**
|
|
3496
3504
|
* 删除所有新增的临时数据
|
|
3497
3505
|
*/
|
|
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
|