vxe-table 3.7.0-beta.3 → 3.7.0-beta.5
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/helper/vetur/attributes.json +26 -6
- package/helper/vetur/tags.json +5 -0
- package/lib/button/src/button.js +9 -3
- package/lib/button/src/button.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +70 -52
- package/lib/index.umd.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +11 -2
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +5 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +44 -49
- package/lib/table/src/methods.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +5 -1
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.js +5 -4
- package/packages/pulldown/src/pulldown.js +6 -3
- package/packages/select/src/select.js +3 -2
- package/packages/table/src/methods.js +21 -23
- package/packages/tooltip/src/tooltip.js +3 -2
- /package/lib/icon/style/{iconfont.1689121415913.ttf → iconfont.1689384538396.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1689121415913.woff → iconfont.1689384538396.woff} +0 -0
- /package/lib/icon/style/{iconfont.1689121415913.woff2 → iconfont.1689384538396.woff2} +0 -0
- /package/lib/{iconfont.1689121415913.ttf → iconfont.1689384538396.ttf} +0 -0
- /package/lib/{iconfont.1689121415913.woff → iconfont.1689384538396.woff} +0 -0
- /package/lib/{iconfont.1689121415913.woff2 → iconfont.1689384538396.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11042,7 +11042,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
11042
11042
|
|
|
11043
11043
|
|
|
11044
11044
|
function getLog(message, params) {
|
|
11045
|
-
return "[vxe-table v".concat("3.7.0-beta.
|
|
11045
|
+
return "[vxe-table v".concat("3.7.0-beta.4", "] ").concat(conf.i18n(message, params));
|
|
11046
11046
|
}
|
|
11047
11047
|
function outLog(type) {
|
|
11048
11048
|
return function (message, params) {
|
|
@@ -12229,7 +12229,7 @@ function _t(key, args) {
|
|
|
12229
12229
|
var v = 'v3';
|
|
12230
12230
|
var VXETable = {
|
|
12231
12231
|
v: v,
|
|
12232
|
-
version: "3.7.0-beta.
|
|
12232
|
+
version: "3.7.0-beta.4",
|
|
12233
12233
|
reg: reg,
|
|
12234
12234
|
use: use,
|
|
12235
12235
|
setup: setup,
|
|
@@ -15890,7 +15890,7 @@ var Methods = {
|
|
|
15890
15890
|
this.tableSynchData = datas;
|
|
15891
15891
|
// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
15892
15892
|
if (keepSource) {
|
|
15893
|
-
this.
|
|
15893
|
+
this.cacheSourceMap(fullData);
|
|
15894
15894
|
}
|
|
15895
15895
|
if (false) {}
|
|
15896
15896
|
if (this.clearCellAreas && this.mouseConfig) {
|
|
@@ -16069,11 +16069,9 @@ var Methods = {
|
|
|
16069
16069
|
tableFullData = this.tableFullData,
|
|
16070
16070
|
fullDataRowMap = this.fullDataRowMap,
|
|
16071
16071
|
fullAllDataRowMap = this.fullAllDataRowMap,
|
|
16072
|
-
tableFullTreeData = this.tableFullTreeData
|
|
16073
|
-
tableSourceData = this.tableSourceData;
|
|
16072
|
+
tableFullTreeData = this.tableFullTreeData;
|
|
16074
16073
|
var fullDataRowIdData = this.fullDataRowIdData,
|
|
16075
|
-
fullAllDataRowIdData = this.fullAllDataRowIdData
|
|
16076
|
-
sourceDataRowIdData = this.sourceDataRowIdData;
|
|
16074
|
+
fullAllDataRowIdData = this.fullAllDataRowIdData;
|
|
16077
16075
|
var rowkey = getRowkey(this);
|
|
16078
16076
|
var isLazy = treeConfig && treeOpts.lazy;
|
|
16079
16077
|
var handleCache = function handleCache(row, index, items, path, parent, nodes) {
|
|
@@ -16110,15 +16108,23 @@ var Methods = {
|
|
|
16110
16108
|
fullDataRowMap.clear();
|
|
16111
16109
|
}
|
|
16112
16110
|
fullAllDataRowIdData = this.fullAllDataRowIdData = {};
|
|
16113
|
-
sourceDataRowIdData = this.sourceDataRowIdData = {};
|
|
16114
16111
|
fullAllDataRowMap.clear();
|
|
16115
16112
|
if (treeConfig) {
|
|
16116
16113
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, handleCache, treeOpts);
|
|
16117
16114
|
} else {
|
|
16118
16115
|
tableFullData.forEach(handleCache);
|
|
16119
16116
|
}
|
|
16117
|
+
},
|
|
16118
|
+
cacheSourceMap: function cacheSourceMap(fullData) {
|
|
16119
|
+
var _this11 = this;
|
|
16120
|
+
var treeConfig = this.treeConfig,
|
|
16121
|
+
treeOpts = this.treeOpts,
|
|
16122
|
+
sourceDataRowIdData = this.sourceDataRowIdData;
|
|
16123
|
+
var sourceData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(fullData, true);
|
|
16124
|
+
var rowkey = getRowkey(this);
|
|
16125
|
+
sourceDataRowIdData = this.sourceDataRowIdData = {};
|
|
16120
16126
|
var handleSourceRow = function handleSourceRow(row) {
|
|
16121
|
-
var rowid = getRowid(
|
|
16127
|
+
var rowid = getRowid(_this11, row);
|
|
16122
16128
|
if (eqEmptyValue(rowid)) {
|
|
16123
16129
|
rowid = getRowUniqueId();
|
|
16124
16130
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, rowkey, rowid);
|
|
@@ -16130,13 +16136,14 @@ var Methods = {
|
|
|
16130
16136
|
};
|
|
16131
16137
|
// 源数据缓存
|
|
16132
16138
|
if (treeConfig && !treeOpts.transform) {
|
|
16133
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(
|
|
16139
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(sourceData, handleSourceRow, treeOpts);
|
|
16134
16140
|
} else {
|
|
16135
|
-
|
|
16141
|
+
sourceData.forEach(handleSourceRow);
|
|
16136
16142
|
}
|
|
16143
|
+
this.tableSourceData = sourceData;
|
|
16137
16144
|
},
|
|
16138
16145
|
loadTreeChildren: function loadTreeChildren(row, childRecords) {
|
|
16139
|
-
var
|
|
16146
|
+
var _this12 = this;
|
|
16140
16147
|
var keepSource = this.keepSource,
|
|
16141
16148
|
tableSourceData = this.tableSourceData,
|
|
16142
16149
|
treeOpts = this.treeOpts,
|
|
@@ -16151,16 +16158,16 @@ var Methods = {
|
|
|
16151
16158
|
var parentLevel = rest ? rest.level : 0;
|
|
16152
16159
|
return this.createData(childRecords).then(function (rows) {
|
|
16153
16160
|
if (keepSource) {
|
|
16154
|
-
var rowid = getRowid(
|
|
16161
|
+
var rowid = getRowid(_this12, row);
|
|
16155
16162
|
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableSourceData, function (item) {
|
|
16156
|
-
return rowid === getRowid(
|
|
16163
|
+
return rowid === getRowid(_this12, item);
|
|
16157
16164
|
}, treeOpts);
|
|
16158
16165
|
if (matchObj) {
|
|
16159
16166
|
matchObj.item[children] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(rows, true);
|
|
16160
16167
|
}
|
|
16161
16168
|
}
|
|
16162
16169
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rows, function (childRow, index, items, path, parent, nodes) {
|
|
16163
|
-
var rowid = getRowid(
|
|
16170
|
+
var rowid = getRowid(_this12, childRow);
|
|
16164
16171
|
var rest = {
|
|
16165
16172
|
row: childRow,
|
|
16166
16173
|
rowid: rowid,
|
|
@@ -16181,7 +16188,7 @@ var Methods = {
|
|
|
16181
16188
|
if (transform) {
|
|
16182
16189
|
row[mapChildren] = rows;
|
|
16183
16190
|
}
|
|
16184
|
-
|
|
16191
|
+
_this12.updateAfterDataIndex();
|
|
16185
16192
|
return rows;
|
|
16186
16193
|
});
|
|
16187
16194
|
},
|
|
@@ -16190,7 +16197,7 @@ var Methods = {
|
|
|
16190
16197
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
16191
16198
|
*/
|
|
16192
16199
|
cacheColumnMap: function cacheColumnMap() {
|
|
16193
|
-
var
|
|
16200
|
+
var _this13 = this;
|
|
16194
16201
|
var tableFullColumn = this.tableFullColumn,
|
|
16195
16202
|
collectColumn = this.collectColumn,
|
|
16196
16203
|
fullColumnMap = this.fullColumnMap,
|
|
@@ -16399,7 +16406,7 @@ var Methods = {
|
|
|
16399
16406
|
* @param {Row} records 行数据
|
|
16400
16407
|
*/
|
|
16401
16408
|
defineField: function defineField(records) {
|
|
16402
|
-
var
|
|
16409
|
+
var _this14 = this;
|
|
16403
16410
|
var radioOpts = this.radioOpts,
|
|
16404
16411
|
checkboxOpts = this.checkboxOpts,
|
|
16405
16412
|
treeConfig = this.treeConfig,
|
|
@@ -16410,7 +16417,7 @@ var Methods = {
|
|
|
16410
16417
|
records = [records || {}];
|
|
16411
16418
|
}
|
|
16412
16419
|
return records.map(function (record) {
|
|
16413
|
-
|
|
16420
|
+
_this14.tableFullColumn.forEach(function (column) {
|
|
16414
16421
|
var field = column.field,
|
|
16415
16422
|
editRender = column.editRender;
|
|
16416
16423
|
if (field && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().has(record, field)) {
|
|
@@ -16450,9 +16457,9 @@ var Methods = {
|
|
|
16450
16457
|
* @param {Array} records 新数据
|
|
16451
16458
|
*/
|
|
16452
16459
|
createData: function createData(records) {
|
|
16453
|
-
var
|
|
16460
|
+
var _this15 = this;
|
|
16454
16461
|
return this.$nextTick().then(function () {
|
|
16455
|
-
return
|
|
16462
|
+
return _this15.defineField(records);
|
|
16456
16463
|
});
|
|
16457
16464
|
},
|
|
16458
16465
|
/**
|
|
@@ -16477,7 +16484,7 @@ var Methods = {
|
|
|
16477
16484
|
* 如果还额外传了 field 则还原指定的单元格数据
|
|
16478
16485
|
*/
|
|
16479
16486
|
revertData: function revertData(rows, field) {
|
|
16480
|
-
var
|
|
16487
|
+
var _this16 = this;
|
|
16481
16488
|
var keepSource = this.keepSource,
|
|
16482
16489
|
tableSourceData = this.tableSourceData,
|
|
16483
16490
|
treeConfig = this.treeConfig;
|
|
@@ -16495,8 +16502,8 @@ var Methods = {
|
|
|
16495
16502
|
}
|
|
16496
16503
|
if (targetRows.length) {
|
|
16497
16504
|
targetRows.forEach(function (row) {
|
|
16498
|
-
if (!
|
|
16499
|
-
var rowIndex =
|
|
16505
|
+
if (!_this16.isInsertByRow(row)) {
|
|
16506
|
+
var rowIndex = _this16.getRowIndex(row);
|
|
16500
16507
|
if (treeConfig && rowIndex === -1) {
|
|
16501
16508
|
errLog('vxe.error.noTree', ['revertData']);
|
|
16502
16509
|
}
|
|
@@ -16570,39 +16577,24 @@ var Methods = {
|
|
|
16570
16577
|
* @param {String} field 字段名
|
|
16571
16578
|
*/
|
|
16572
16579
|
isUpdateByRow: function isUpdateByRow(row, field) {
|
|
16573
|
-
var _this16 = this;
|
|
16574
16580
|
var tableFullColumn = this.tableFullColumn,
|
|
16575
16581
|
keepSource = this.keepSource,
|
|
16576
|
-
|
|
16577
|
-
treeOpts = this.treeOpts,
|
|
16578
|
-
tableSourceData = this.tableSourceData,
|
|
16582
|
+
sourceDataRowIdData = this.sourceDataRowIdData,
|
|
16579
16583
|
fullDataRowIdData = this.fullDataRowIdData;
|
|
16580
16584
|
if (keepSource) {
|
|
16581
|
-
var oRow, property;
|
|
16582
16585
|
var rowid = getRowid(this, row);
|
|
16583
16586
|
// 新增的数据不需要检测
|
|
16584
16587
|
if (!fullDataRowIdData[rowid]) {
|
|
16585
16588
|
return false;
|
|
16586
16589
|
}
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
var
|
|
16590
|
-
return rowid === getRowid(_this16, item);
|
|
16591
|
-
}, treeOpts);
|
|
16592
|
-
row = Object.assign({}, row, _defineProperty({}, children, null));
|
|
16593
|
-
if (matchObj) {
|
|
16594
|
-
oRow = Object.assign({}, matchObj.item, _defineProperty({}, children, null));
|
|
16595
|
-
}
|
|
16596
|
-
} else {
|
|
16597
|
-
var oRowIndex = fullDataRowIdData[rowid].index;
|
|
16598
|
-
oRow = tableSourceData[oRowIndex];
|
|
16599
|
-
}
|
|
16600
|
-
if (oRow) {
|
|
16590
|
+
var oldRest = sourceDataRowIdData[rowid];
|
|
16591
|
+
if (oldRest) {
|
|
16592
|
+
var oRow = oldRest.row;
|
|
16601
16593
|
if (arguments.length > 1) {
|
|
16602
16594
|
return !eqCellValue(oRow, row, field);
|
|
16603
16595
|
}
|
|
16604
16596
|
for (var index = 0, len = tableFullColumn.length; index < len; index++) {
|
|
16605
|
-
property = tableFullColumn[index].field;
|
|
16597
|
+
var property = tableFullColumn[index].field;
|
|
16606
16598
|
if (property && !eqCellValue(oRow, row, property)) {
|
|
16607
16599
|
return true;
|
|
16608
16600
|
}
|
|
@@ -19868,7 +19860,10 @@ var Methods = {
|
|
|
19868
19860
|
if (!remote || firstSortColumn && firstSortColumn.remoteSort) {
|
|
19869
19861
|
this.handleTableData(true);
|
|
19870
19862
|
}
|
|
19871
|
-
return this.$nextTick().then(
|
|
19863
|
+
return this.$nextTick().then(function () {
|
|
19864
|
+
_this41.updateCellAreas();
|
|
19865
|
+
return _this41.updateStyle();
|
|
19866
|
+
});
|
|
19872
19867
|
}
|
|
19873
19868
|
return this.$nextTick();
|
|
19874
19869
|
},
|
|
@@ -28434,6 +28429,7 @@ function renderOpts(h, _vm) {
|
|
|
28434
28429
|
optionGroupProps: Object,
|
|
28435
28430
|
optionConfig: Object,
|
|
28436
28431
|
className: [String, Function],
|
|
28432
|
+
popupClassName: [String, Function],
|
|
28437
28433
|
max: [String, Number],
|
|
28438
28434
|
size: {
|
|
28439
28435
|
type: String,
|
|
@@ -28621,6 +28617,7 @@ function renderOpts(h, _vm) {
|
|
|
28621
28617
|
$scopedSlots = this.$scopedSlots,
|
|
28622
28618
|
vSize = this.vSize,
|
|
28623
28619
|
className = this.className,
|
|
28620
|
+
popupClassName = this.popupClassName,
|
|
28624
28621
|
inited = this.inited,
|
|
28625
28622
|
isActivated = this.isActivated,
|
|
28626
28623
|
loading = this.loading,
|
|
@@ -28661,7 +28658,9 @@ function renderOpts(h, _vm) {
|
|
|
28661
28658
|
} : {}
|
|
28662
28659
|
}), h('div', {
|
|
28663
28660
|
ref: 'panel',
|
|
28664
|
-
"class": ['vxe-table--ignore-clear vxe-select--panel',
|
|
28661
|
+
"class": ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
|
|
28662
|
+
$select: this
|
|
28663
|
+
}) : popupClassName : '', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', this.transfer), _defineProperty(_ref2, 'animat--leave', !loading && this.animatVisible), _defineProperty(_ref2, 'animat--enter', !loading && visiblePanel), _ref2)],
|
|
28665
28664
|
attrs: {
|
|
28666
28665
|
placement: this.panelPlacement
|
|
28667
28666
|
},
|
|
@@ -36260,7 +36259,8 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36260
36259
|
disabled: Boolean,
|
|
36261
36260
|
loading: Boolean,
|
|
36262
36261
|
destroyOnClose: Boolean,
|
|
36263
|
-
className: String,
|
|
36262
|
+
className: [String, Function],
|
|
36263
|
+
popupClassName: [String, Function],
|
|
36264
36264
|
transfer: {
|
|
36265
36265
|
type: Boolean,
|
|
36266
36266
|
"default": function _default() {
|
|
@@ -36310,6 +36310,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36310
36310
|
var $scopedSlots = this.$scopedSlots,
|
|
36311
36311
|
$listeners = this.$listeners,
|
|
36312
36312
|
className = this.className,
|
|
36313
|
+
popupClassName = this.popupClassName,
|
|
36313
36314
|
inited = this.inited,
|
|
36314
36315
|
type = this.type,
|
|
36315
36316
|
destroyOnClose = this.destroyOnClose,
|
|
@@ -36325,7 +36326,9 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36325
36326
|
panelPlacement = this.panelPlacement;
|
|
36326
36327
|
var downsSlot = $scopedSlots.dropdowns;
|
|
36327
36328
|
return downsSlot ? h('div', {
|
|
36328
|
-
"class": ['vxe-button--dropdown', className
|
|
36329
|
+
"class": ['vxe-button--dropdown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
36330
|
+
$button: this
|
|
36331
|
+
}) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--active', showPanel), _ref)]
|
|
36329
36332
|
}, [h('button', {
|
|
36330
36333
|
ref: 'xBtn',
|
|
36331
36334
|
"class": ['vxe-button', "type--".concat(btnType), (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, "theme--".concat(status), status), _defineProperty(_ref2, 'is--round', this.round), _defineProperty(_ref2, 'is--circle', this.circle), _defineProperty(_ref2, 'is--disabled', disabled || loading), _defineProperty(_ref2, 'is--loading', loading), _ref2)],
|
|
@@ -36348,7 +36351,9 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36348
36351
|
"class": "vxe-button--dropdown-arrow ".concat(conf.icon.BUTTON_DROPDOWN)
|
|
36349
36352
|
})])), h('div', {
|
|
36350
36353
|
ref: 'panel',
|
|
36351
|
-
"class": ['vxe-button--dropdown-panel',
|
|
36354
|
+
"class": ['vxe-button--dropdown-panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
|
|
36355
|
+
$button: this
|
|
36356
|
+
}) : popupClassName : '', (_ref3 = {}, _defineProperty(_ref3, "size--".concat(vSize), vSize), _defineProperty(_ref3, 'animat--leave', animatVisible), _defineProperty(_ref3, 'animat--enter', showPanel), _ref3)],
|
|
36352
36357
|
attrs: {
|
|
36353
36358
|
placement: panelPlacement
|
|
36354
36359
|
},
|
|
@@ -36850,6 +36855,7 @@ function renderContent(h, _vm) {
|
|
|
36850
36855
|
},
|
|
36851
36856
|
useHTML: Boolean,
|
|
36852
36857
|
zIndex: [String, Number],
|
|
36858
|
+
popupClassName: [String, Function],
|
|
36853
36859
|
isArrow: {
|
|
36854
36860
|
type: Boolean,
|
|
36855
36861
|
"default": true
|
|
@@ -36959,6 +36965,7 @@ function renderContent(h, _vm) {
|
|
|
36959
36965
|
var _ref;
|
|
36960
36966
|
var $scopedSlots = this.$scopedSlots,
|
|
36961
36967
|
vSize = this.vSize,
|
|
36968
|
+
popupClassName = this.popupClassName,
|
|
36962
36969
|
theme = this.theme,
|
|
36963
36970
|
tipActive = this.tipActive,
|
|
36964
36971
|
isArrow = this.isArrow,
|
|
@@ -36973,7 +36980,9 @@ function renderContent(h, _vm) {
|
|
|
36973
36980
|
};
|
|
36974
36981
|
}
|
|
36975
36982
|
return h('div', {
|
|
36976
|
-
"class": ['vxe-table--tooltip-wrapper', "theme--".concat(theme),
|
|
36983
|
+
"class": ['vxe-table--tooltip-wrapper', "theme--".concat(theme), popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
|
|
36984
|
+
$tooltip: this
|
|
36985
|
+
}) : popupClassName : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
|
|
36977
36986
|
style: tipStore.style,
|
|
36978
36987
|
ref: 'tipWrapper',
|
|
36979
36988
|
on: on
|
|
@@ -39096,6 +39105,7 @@ var List = Object.assign(list, {
|
|
|
39096
39105
|
|
|
39097
39106
|
|
|
39098
39107
|
|
|
39108
|
+
|
|
39099
39109
|
/* harmony default export */ const pulldown = ({
|
|
39100
39110
|
name: 'VxePulldown',
|
|
39101
39111
|
mixins: [size],
|
|
@@ -39109,6 +39119,8 @@ var List = Object.assign(list, {
|
|
|
39109
39119
|
return conf.size;
|
|
39110
39120
|
}
|
|
39111
39121
|
},
|
|
39122
|
+
className: [String, Function],
|
|
39123
|
+
popupClassName: [String, Function],
|
|
39112
39124
|
destroyOnClose: Boolean,
|
|
39113
39125
|
transfer: Boolean
|
|
39114
39126
|
},
|
|
@@ -39153,6 +39165,8 @@ var List = Object.assign(list, {
|
|
|
39153
39165
|
var _ref, _ref2;
|
|
39154
39166
|
var $scopedSlots = this.$scopedSlots,
|
|
39155
39167
|
inited = this.inited,
|
|
39168
|
+
className = this.className,
|
|
39169
|
+
popupClassName = this.popupClassName,
|
|
39156
39170
|
vSize = this.vSize,
|
|
39157
39171
|
destroyOnClose = this.destroyOnClose,
|
|
39158
39172
|
transfer = this.transfer,
|
|
@@ -39165,7 +39179,9 @@ var List = Object.assign(list, {
|
|
|
39165
39179
|
var defaultSlot = $scopedSlots["default"];
|
|
39166
39180
|
var downSlot = $scopedSlots.dropdown;
|
|
39167
39181
|
return h('div', {
|
|
39168
|
-
"class": ['vxe-pulldown',
|
|
39182
|
+
"class": ['vxe-pulldown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
39183
|
+
$pulldown: this
|
|
39184
|
+
}) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--visivle', visiblePanel), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'is--active', isActivated), _ref)]
|
|
39169
39185
|
}, [h('div', {
|
|
39170
39186
|
ref: 'content',
|
|
39171
39187
|
"class": 'vxe-pulldown--content'
|
|
@@ -39173,7 +39189,9 @@ var List = Object.assign(list, {
|
|
|
39173
39189
|
$pulldown: this
|
|
39174
39190
|
}, h) : []), h('div', {
|
|
39175
39191
|
ref: 'panel',
|
|
39176
|
-
"class": ['vxe-table--ignore-clear vxe-pulldown--panel',
|
|
39192
|
+
"class": ['vxe-table--ignore-clear vxe-pulldown--panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
|
|
39193
|
+
$pulldown: this
|
|
39194
|
+
}) : popupClassName : '', (_ref2 = {}, _defineProperty(_ref2, "size--".concat(vSize), vSize), _defineProperty(_ref2, 'is--transfer', transfer), _defineProperty(_ref2, 'animat--leave', animatVisible), _defineProperty(_ref2, 'animat--enter', visiblePanel), _ref2)],
|
|
39177
39195
|
attrs: {
|
|
39178
39196
|
placement: panelPlacement
|
|
39179
39197
|
},
|