zartui 2.1.17 → 2.1.19
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/index.js +1 -1
- package/es/media-picker/index.js +1 -1
- package/es/table/index.css +1 -1
- package/es/table/index.js +20 -4
- package/es/table/index.less +17 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/index.js +1 -1
- package/lib/table/index.css +1 -1
- package/lib/table/index.js +20 -4
- package/lib/table/index.less +17 -1
- package/lib/zart.js +22 -6
- package/lib/zart.min.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -161,7 +161,7 @@ var _toast = _interopRequireDefault(require("./toast"));
|
|
|
161
161
|
exports.Toast = _toast.default;
|
|
162
162
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
163
163
|
exports.Uploader = _uploader.default;
|
|
164
|
-
var version = exports.version = '2.1.
|
|
164
|
+
var version = exports.version = '2.1.19';
|
|
165
165
|
function install(Vue) {
|
|
166
166
|
var components = [_actionSheet.default, _area.default, _avatar.default, _backTop.default, _badge.default, _button.default, _calendar.default, _cascader.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _col.default, _collapse.default, _collapseItem.default, _countDown.default, _datetimePicker.default, _dialog.default, _divider.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _foldDialog.default, _form.default, _grid.default, _gridItem.default, _hierarchySelect.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _lazyload.default, _list.default, _loading.default, _locale.default, _mediaPicker.default, _mediaPlayer.default, _multiplePicker.default, _navBar.default, _noticeBar.default, _numberKeyboard.default, _overlay.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rate.default, _row.default, _search.default, _signature.default, _skeleton.default, _slider.default, _speechRecognizer.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tabs.default, _tag.default, _textEllipsis.default, _timeline.default, _toast.default, _uploader.default];
|
|
167
167
|
components.forEach(function (item) {
|
|
@@ -1155,7 +1155,7 @@ var _default2 = exports.default = createComponent({
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}, [this.renderCertificates()]) : h("div", {
|
|
1157
1157
|
"class": bem('line')
|
|
1158
|
-
}, [this.renderButtons()]), h(_grid.default, {
|
|
1158
|
+
}, [this.renderButtons(), this.slots('extend')]), h(_grid.default, {
|
|
1159
1159
|
"directives": [{
|
|
1160
1160
|
name: "show",
|
|
1161
1161
|
value: this.mediaList.length && this.pickerMode !== "certificate"
|
package/lib/table/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt2-table--fixed{overflow:auto scroll}.zt2-table--fixed::-webkit-scrollbar{width:0;height:0}.zt2-table--fixed table{table-layout:fixed}.zt2-table--thead-fixed{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt2-table--fix-left{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt2-table--bordered{border-left:1px solid #f0f0f0}.zt2-table--bordered>table{border-top:1px solid #f0f0f0}.zt2-table--bordered .zt2-table__thead>tr>th{border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.zt2-table--bordered .zt2-table__tbody>tr>td{border-bottom:1px solid #f0f0f0;border-right:1px solid #f0f0f0}.zt2-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;height:40px;font-weight:600;font-size:14px;color:#0091fa;text-align:center;line-height:40px;background:#e6f5ff}.zt2-table__head{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-table__head-sort{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#c8c9cc}.zt2-table__sort-active{color:#0091fa}.zt2-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;height:40px;font-size:14px;color:#2d4b73;text-align:center;line-height:40px;background:#fff}.zt2-table--striped .zt2-table__tbody>tr:nth-child(even)>td{background:#f5faff}.zt2-table--left-last{border-right:none!important}.zt2-table--left-last::after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:-webkit-linear-gradient(left,#000 0,rgba(0,0,0,0) 100%);background-image:linear-gradient(90deg,#000 0,rgba(0,0,0,0) 100%)}
|
|
1
|
+
.zt2-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt2-table--fixed{overflow:auto scroll}.zt2-table--fixed::-webkit-scrollbar{width:0;height:0}.zt2-table--fixed table{table-layout:fixed}.zt2-table--thead-fixed{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt2-table--fix-left,.zt2-table--fix-right{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt2-table--bordered{border-left:1px solid #f0f0f0}.zt2-table--bordered>table{border-top:1px solid #f0f0f0}.zt2-table--bordered .zt2-table__thead>tr>th{border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.zt2-table--bordered .zt2-table__tbody>tr>td{border-bottom:1px solid #f0f0f0;border-right:1px solid #f0f0f0}.zt2-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;height:40px;font-weight:600;font-size:14px;color:#0091fa;text-align:center;line-height:40px;background:#e6f5ff}.zt2-table__head{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-table__head-sort{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#c8c9cc}.zt2-table__sort-active{color:#0091fa}.zt2-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;height:40px;font-size:14px;color:#2d4b73;text-align:center;line-height:40px;background:#fff}.zt2-table--striped .zt2-table__tbody>tr:nth-child(even)>td{background:#f5faff}.zt2-table--left-last{border-right:none!important}.zt2-table--left-last::after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:-webkit-linear-gradient(left,#000 0,rgba(0,0,0,0) 100%);background-image:linear-gradient(90deg,#000 0,rgba(0,0,0,0) 100%)}.zt2-table--right-last{border-left:none!important}.zt2-table--right-last::after{content:"";position:absolute;top:0;left:-10px;width:10px;height:100%;opacity:.06;background-image:-webkit-linear-gradient(right,#000 0,rgba(0,0,0,0) 100%);background-image:linear-gradient(-90deg,#000 0,rgba(0,0,0,0) 100%)}
|
package/lib/table/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var _default = exports.default = createComponent({
|
|
|
38
38
|
data: function data() {
|
|
39
39
|
return {
|
|
40
40
|
pingedLeft: false,
|
|
41
|
+
pingedRight: false,
|
|
41
42
|
sortOrder: '',
|
|
42
43
|
sortKey: ''
|
|
43
44
|
};
|
|
@@ -45,7 +46,7 @@ var _default = exports.default = createComponent({
|
|
|
45
46
|
computed: {
|
|
46
47
|
fixedColumn: function fixedColumn() {
|
|
47
48
|
return this.headList.filter(function (v) {
|
|
48
|
-
return v.fixed;
|
|
49
|
+
return v.fixed || v.fixedRight;
|
|
49
50
|
});
|
|
50
51
|
},
|
|
51
52
|
fixed: function fixed() {
|
|
@@ -83,6 +84,8 @@ var _default = exports.default = createComponent({
|
|
|
83
84
|
scrollLeft = _ref.scrollLeft;
|
|
84
85
|
var mergedScrollLeft = typeof scrollLeft === 'number' ? scrollLeft : currentTarget.scrollLeft;
|
|
85
86
|
this.pingedLeft = mergedScrollLeft > 0;
|
|
87
|
+
var rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
88
|
+
this.pingedRight = rightRemain > 0;
|
|
86
89
|
},
|
|
87
90
|
getNextSortOrder: function getNextSortOrder(type) {
|
|
88
91
|
if (!type) {
|
|
@@ -111,10 +114,13 @@ var _default = exports.default = createComponent({
|
|
|
111
114
|
return h("th", {
|
|
112
115
|
"class": bem({
|
|
113
116
|
'fix-left': colData.fixed,
|
|
114
|
-
'left-last': colData.lastFixLeft && this.pingedLeft
|
|
117
|
+
'left-last': colData.lastFixLeft && this.pingedLeft,
|
|
118
|
+
'fix-right': colData.fixedRight,
|
|
119
|
+
'right-last': colData.lastRight && this.pingedRight
|
|
115
120
|
}),
|
|
116
121
|
"style": {
|
|
117
|
-
left: colData.fixed ? colData.left : ''
|
|
122
|
+
left: colData.fixed ? colData.left : '',
|
|
123
|
+
right: colData.fixedRight ? colData.right : ''
|
|
118
124
|
},
|
|
119
125
|
"attrs": {
|
|
120
126
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
@@ -190,6 +196,7 @@ var _default = exports.default = createComponent({
|
|
|
190
196
|
}
|
|
191
197
|
var style = (0, _extends2.default)({}, colData.style);
|
|
192
198
|
style.left = colData.fixed ? colData.left : '';
|
|
199
|
+
style.right = colData.fixedRight ? colData.right : '';
|
|
193
200
|
return ((_additionalCellProps = additionalCellProps) == null ? void 0 : _additionalCellProps.rowSpan) !== 0 && ((_additionalCellProps2 = additionalCellProps) == null ? void 0 : _additionalCellProps2.colSpan) !== 0 && h("td", {
|
|
194
201
|
"on": {
|
|
195
202
|
"click": function click() {
|
|
@@ -198,7 +205,9 @@ var _default = exports.default = createComponent({
|
|
|
198
205
|
},
|
|
199
206
|
"class": bem({
|
|
200
207
|
'fix-left': colData.fixed,
|
|
201
|
-
'left-last': colData.lastFixLeft && _this3.pingedLeft
|
|
208
|
+
'left-last': colData.lastFixLeft && _this3.pingedLeft,
|
|
209
|
+
'fix-right': colData.fixedRight,
|
|
210
|
+
'right-last': colData.lastRight && _this3.pingedRight
|
|
202
211
|
}),
|
|
203
212
|
"attrs": {
|
|
204
213
|
"colspan": ((_additionalCellProps3 = additionalCellProps) == null ? void 0 : _additionalCellProps3.colSpan) !== 1 ? (_additionalCellProps4 = additionalCellProps) == null ? void 0 : _additionalCellProps4.colSpan : null,
|
|
@@ -209,9 +218,16 @@ var _default = exports.default = createComponent({
|
|
|
209
218
|
})]);
|
|
210
219
|
}
|
|
211
220
|
},
|
|
221
|
+
mounted: function mounted() {
|
|
222
|
+
var table = this.$refs.table;
|
|
223
|
+
if (table) {
|
|
224
|
+
this.pingedRight = table.scrollWidth > table.clientWidth;
|
|
225
|
+
}
|
|
226
|
+
},
|
|
212
227
|
render: function render(h) {
|
|
213
228
|
var _this4 = this;
|
|
214
229
|
return h("div", {
|
|
230
|
+
"ref": "table",
|
|
215
231
|
"class": bem({
|
|
216
232
|
fixed: this.fixed,
|
|
217
233
|
bordered: this.bordered,
|
package/lib/table/index.less
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
z-index: 2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
&--fix-right,
|
|
31
32
|
&--fix-left {
|
|
32
33
|
position: sticky !important;
|
|
33
34
|
z-index: 2;
|
|
@@ -131,4 +132,19 @@
|
|
|
131
132
|
background-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
+
|
|
136
|
+
&--right-last {
|
|
137
|
+
border-left: none !important;
|
|
138
|
+
|
|
139
|
+
&::after {
|
|
140
|
+
content: "";
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: 0;
|
|
143
|
+
left: -10px;
|
|
144
|
+
width: 10px;
|
|
145
|
+
height: 100%;
|
|
146
|
+
opacity: 0.06;
|
|
147
|
+
background-image: linear-gradient(-90deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
package/lib/zart.js
CHANGED
|
@@ -22318,7 +22318,7 @@ var media_picker_createNamespace = Object(utils["b" /* createNamespace */])('med
|
|
|
22318
22318
|
}
|
|
22319
22319
|
}, [this.renderCertificates()]) : h("div", {
|
|
22320
22320
|
"class": media_picker_bem('line')
|
|
22321
|
-
}, [this.renderButtons()]), h(grid, {
|
|
22321
|
+
}, [this.renderButtons(), this.slots('extend')]), h(grid, {
|
|
22322
22322
|
"directives": [{
|
|
22323
22323
|
name: "show",
|
|
22324
22324
|
value: this.mediaList.length && this.pickerMode !== "certificate"
|
|
@@ -30401,6 +30401,7 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30401
30401
|
data: function data() {
|
|
30402
30402
|
return {
|
|
30403
30403
|
pingedLeft: false,
|
|
30404
|
+
pingedRight: false,
|
|
30404
30405
|
sortOrder: '',
|
|
30405
30406
|
sortKey: ''
|
|
30406
30407
|
};
|
|
@@ -30408,7 +30409,7 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30408
30409
|
computed: {
|
|
30409
30410
|
fixedColumn: function fixedColumn() {
|
|
30410
30411
|
return this.headList.filter(function (v) {
|
|
30411
|
-
return v.fixed;
|
|
30412
|
+
return v.fixed || v.fixedRight;
|
|
30412
30413
|
});
|
|
30413
30414
|
},
|
|
30414
30415
|
fixed: function fixed() {
|
|
@@ -30446,6 +30447,8 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30446
30447
|
scrollLeft = _ref.scrollLeft;
|
|
30447
30448
|
var mergedScrollLeft = typeof scrollLeft === 'number' ? scrollLeft : currentTarget.scrollLeft;
|
|
30448
30449
|
this.pingedLeft = mergedScrollLeft > 0;
|
|
30450
|
+
var rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
30451
|
+
this.pingedRight = rightRemain > 0;
|
|
30449
30452
|
},
|
|
30450
30453
|
getNextSortOrder: function getNextSortOrder(type) {
|
|
30451
30454
|
if (!type) {
|
|
@@ -30474,10 +30477,13 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30474
30477
|
return h("th", {
|
|
30475
30478
|
"class": table_bem({
|
|
30476
30479
|
'fix-left': colData.fixed,
|
|
30477
|
-
'left-last': colData.lastFixLeft && this.pingedLeft
|
|
30480
|
+
'left-last': colData.lastFixLeft && this.pingedLeft,
|
|
30481
|
+
'fix-right': colData.fixedRight,
|
|
30482
|
+
'right-last': colData.lastRight && this.pingedRight
|
|
30478
30483
|
}),
|
|
30479
30484
|
"style": {
|
|
30480
|
-
left: colData.fixed ? colData.left : ''
|
|
30485
|
+
left: colData.fixed ? colData.left : '',
|
|
30486
|
+
right: colData.fixedRight ? colData.right : ''
|
|
30481
30487
|
},
|
|
30482
30488
|
"attrs": {
|
|
30483
30489
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
@@ -30553,6 +30559,7 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30553
30559
|
}
|
|
30554
30560
|
var style = _extends({}, colData.style);
|
|
30555
30561
|
style.left = colData.fixed ? colData.left : '';
|
|
30562
|
+
style.right = colData.fixedRight ? colData.right : '';
|
|
30556
30563
|
return ((_additionalCellProps = additionalCellProps) == null ? void 0 : _additionalCellProps.rowSpan) !== 0 && ((_additionalCellProps2 = additionalCellProps) == null ? void 0 : _additionalCellProps2.colSpan) !== 0 && h("td", {
|
|
30557
30564
|
"on": {
|
|
30558
30565
|
"click": function click() {
|
|
@@ -30561,7 +30568,9 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30561
30568
|
},
|
|
30562
30569
|
"class": table_bem({
|
|
30563
30570
|
'fix-left': colData.fixed,
|
|
30564
|
-
'left-last': colData.lastFixLeft && _this3.pingedLeft
|
|
30571
|
+
'left-last': colData.lastFixLeft && _this3.pingedLeft,
|
|
30572
|
+
'fix-right': colData.fixedRight,
|
|
30573
|
+
'right-last': colData.lastRight && _this3.pingedRight
|
|
30565
30574
|
}),
|
|
30566
30575
|
"attrs": {
|
|
30567
30576
|
"colspan": ((_additionalCellProps3 = additionalCellProps) == null ? void 0 : _additionalCellProps3.colSpan) !== 1 ? (_additionalCellProps4 = additionalCellProps) == null ? void 0 : _additionalCellProps4.colSpan : null,
|
|
@@ -30572,9 +30581,16 @@ var BODY_CELL_SLOTS_NAME = 'bodyCell';
|
|
|
30572
30581
|
})]);
|
|
30573
30582
|
}
|
|
30574
30583
|
},
|
|
30584
|
+
mounted: function mounted() {
|
|
30585
|
+
var table = this.$refs.table;
|
|
30586
|
+
if (table) {
|
|
30587
|
+
this.pingedRight = table.scrollWidth > table.clientWidth;
|
|
30588
|
+
}
|
|
30589
|
+
},
|
|
30575
30590
|
render: function render(h) {
|
|
30576
30591
|
var _this4 = this;
|
|
30577
30592
|
return h("div", {
|
|
30593
|
+
"ref": "table",
|
|
30578
30594
|
"class": table_bem({
|
|
30579
30595
|
fixed: this.fixed,
|
|
30580
30596
|
bordered: this.bordered,
|
|
@@ -31635,7 +31651,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
31635
31651
|
|
|
31636
31652
|
|
|
31637
31653
|
|
|
31638
|
-
var version = '2.1.
|
|
31654
|
+
var version = '2.1.19';
|
|
31639
31655
|
function install(Vue) {
|
|
31640
31656
|
var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, es_picker, popover, popup, pull_refresh, es_radio, radio_group, rate, row, search, signature, skeleton, slider, speech_recognizer, es_step, stepper, steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, text_ellipsis, timeline, es_toast, uploader];
|
|
31641
31657
|
components.forEach(function (item) {
|