zartui 2.0.82 → 2.0.83
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/table/index.js +30 -7
- package/lib/index.js +1 -1
- package/lib/table/index.js +30 -7
- package/lib/zart.js +33 -10
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -75,7 +75,7 @@ import TextEllipsis from './text-ellipsis';
|
|
|
75
75
|
import Timeline from './timeline';
|
|
76
76
|
import Toast from './toast';
|
|
77
77
|
import Uploader from './uploader';
|
|
78
|
-
var version = '2.0.
|
|
78
|
+
var version = '2.0.83';
|
|
79
79
|
|
|
80
80
|
function install(Vue) {
|
|
81
81
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, TextEllipsis, Timeline, Toast, Uploader];
|
package/es/table/index.js
CHANGED
|
@@ -25,6 +25,10 @@ export default createComponent({
|
|
|
25
25
|
striped: {
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: false
|
|
28
|
+
},
|
|
29
|
+
hideTableHead: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
data: function data() {
|
|
@@ -106,6 +110,9 @@ export default createComponent({
|
|
|
106
110
|
|
|
107
111
|
var h = this.$createElement;
|
|
108
112
|
|
|
113
|
+
var _ref2 = this,
|
|
114
|
+
slots = _ref2.slots;
|
|
115
|
+
|
|
109
116
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
110
117
|
return h("th", {
|
|
111
118
|
"class": bem({
|
|
@@ -118,7 +125,7 @@ export default createComponent({
|
|
|
118
125
|
"attrs": {
|
|
119
126
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
120
127
|
}
|
|
121
|
-
}, [h("div", {
|
|
128
|
+
}, [slots("head" + colData.id) || h("div", {
|
|
122
129
|
"class": bem('head'),
|
|
123
130
|
"on": {
|
|
124
131
|
"click": function click() {
|
|
@@ -154,6 +161,23 @@ export default createComponent({
|
|
|
154
161
|
}
|
|
155
162
|
},
|
|
156
163
|
onClick: function onClick() {},
|
|
164
|
+
getElement: function getElement(rowData, colData) {
|
|
165
|
+
var h = this.$createElement;
|
|
166
|
+
|
|
167
|
+
var _ref3 = this,
|
|
168
|
+
slots = _ref3.slots;
|
|
169
|
+
|
|
170
|
+
if (rowData[colData.key] && rowData[colData.key].id && slots("data" + rowData[colData.key].id)) {
|
|
171
|
+
return slots("data" + rowData[colData.key].id)[0];
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return colData.ellipsis ? h(TextEllipsis, {
|
|
175
|
+
"attrs": {
|
|
176
|
+
"content": rowData[colData.key],
|
|
177
|
+
"expandType": "dialog"
|
|
178
|
+
}
|
|
179
|
+
}) : rowData[colData.key];
|
|
180
|
+
},
|
|
157
181
|
getBody: function getBody(rowData, rowIndex) {
|
|
158
182
|
var _this3 = this;
|
|
159
183
|
|
|
@@ -185,12 +209,7 @@ export default createComponent({
|
|
|
185
209
|
"rowspan": ((_additionalCellProps5 = additionalCellProps) == null ? void 0 : _additionalCellProps5.rowSpan) !== 1 ? (_additionalCellProps6 = additionalCellProps) == null ? void 0 : _additionalCellProps6.rowSpan : null
|
|
186
210
|
},
|
|
187
211
|
"style": style
|
|
188
|
-
}, [
|
|
189
|
-
"attrs": {
|
|
190
|
-
"content": rowData[colData.key],
|
|
191
|
-
"expandType": "dialog"
|
|
192
|
-
}
|
|
193
|
-
}) : rowData[colData.key]]);
|
|
212
|
+
}, [_this3.getElement(rowData, colData)]);
|
|
194
213
|
})]);
|
|
195
214
|
}
|
|
196
215
|
},
|
|
@@ -213,6 +232,10 @@ export default createComponent({
|
|
|
213
232
|
}
|
|
214
233
|
});
|
|
215
234
|
})]), h("thead", {
|
|
235
|
+
"directives": [{
|
|
236
|
+
name: "show",
|
|
237
|
+
value: !this.hideTableHead
|
|
238
|
+
}],
|
|
216
239
|
"class": bem('thead')
|
|
217
240
|
}, [h("tr", [this.formatColumns.map(function (colData) {
|
|
218
241
|
return _this4.getHead(colData);
|
package/lib/index.js
CHANGED
|
@@ -313,7 +313,7 @@ exports.Toast = _toast.default;
|
|
|
313
313
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
314
314
|
|
|
315
315
|
exports.Uploader = _uploader.default;
|
|
316
|
-
var version = '2.0.
|
|
316
|
+
var version = '2.0.83';
|
|
317
317
|
exports.version = version;
|
|
318
318
|
|
|
319
319
|
function install(Vue) {
|
package/lib/table/index.js
CHANGED
|
@@ -36,6 +36,10 @@ var _default = createComponent({
|
|
|
36
36
|
striped: {
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: false
|
|
39
|
+
},
|
|
40
|
+
hideTableHead: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
data: function data() {
|
|
@@ -117,6 +121,9 @@ var _default = createComponent({
|
|
|
117
121
|
|
|
118
122
|
var h = this.$createElement;
|
|
119
123
|
|
|
124
|
+
var _ref2 = this,
|
|
125
|
+
slots = _ref2.slots;
|
|
126
|
+
|
|
120
127
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
121
128
|
return h("th", {
|
|
122
129
|
"class": bem({
|
|
@@ -129,7 +136,7 @@ var _default = createComponent({
|
|
|
129
136
|
"attrs": {
|
|
130
137
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
131
138
|
}
|
|
132
|
-
}, [h("div", {
|
|
139
|
+
}, [slots("head" + colData.id) || h("div", {
|
|
133
140
|
"class": bem('head'),
|
|
134
141
|
"on": {
|
|
135
142
|
"click": function click() {
|
|
@@ -165,6 +172,23 @@ var _default = createComponent({
|
|
|
165
172
|
}
|
|
166
173
|
},
|
|
167
174
|
onClick: function onClick() {},
|
|
175
|
+
getElement: function getElement(rowData, colData) {
|
|
176
|
+
var h = this.$createElement;
|
|
177
|
+
|
|
178
|
+
var _ref3 = this,
|
|
179
|
+
slots = _ref3.slots;
|
|
180
|
+
|
|
181
|
+
if (rowData[colData.key] && rowData[colData.key].id && slots("data" + rowData[colData.key].id)) {
|
|
182
|
+
return slots("data" + rowData[colData.key].id)[0];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return colData.ellipsis ? h(_index2.default, {
|
|
186
|
+
"attrs": {
|
|
187
|
+
"content": rowData[colData.key],
|
|
188
|
+
"expandType": "dialog"
|
|
189
|
+
}
|
|
190
|
+
}) : rowData[colData.key];
|
|
191
|
+
},
|
|
168
192
|
getBody: function getBody(rowData, rowIndex) {
|
|
169
193
|
var _this3 = this;
|
|
170
194
|
|
|
@@ -195,12 +219,7 @@ var _default = createComponent({
|
|
|
195
219
|
"rowspan": ((_additionalCellProps5 = additionalCellProps) == null ? void 0 : _additionalCellProps5.rowSpan) !== 1 ? (_additionalCellProps6 = additionalCellProps) == null ? void 0 : _additionalCellProps6.rowSpan : null
|
|
196
220
|
},
|
|
197
221
|
"style": style
|
|
198
|
-
}, [
|
|
199
|
-
"attrs": {
|
|
200
|
-
"content": rowData[colData.key],
|
|
201
|
-
"expandType": "dialog"
|
|
202
|
-
}
|
|
203
|
-
}) : rowData[colData.key]]);
|
|
222
|
+
}, [_this3.getElement(rowData, colData)]);
|
|
204
223
|
})]);
|
|
205
224
|
}
|
|
206
225
|
},
|
|
@@ -223,6 +242,10 @@ var _default = createComponent({
|
|
|
223
242
|
}
|
|
224
243
|
});
|
|
225
244
|
})]), h("thead", {
|
|
245
|
+
"directives": [{
|
|
246
|
+
name: "show",
|
|
247
|
+
value: !this.hideTableHead
|
|
248
|
+
}],
|
|
226
249
|
"class": bem('thead')
|
|
227
250
|
}, [h("tr", [this.formatColumns.map(function (colData) {
|
|
228
251
|
return _this4.getHead(colData);
|
package/lib/zart.js
CHANGED
|
@@ -1297,7 +1297,7 @@ var TouchMixin = {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
1299
|
// CONCATENATED MODULE: ./es/mixins/portal.js
|
|
1300
|
-
function
|
|
1300
|
+
function portal_getElement(selector) {
|
|
1301
1301
|
if (typeof selector === 'string') {
|
|
1302
1302
|
return document.querySelector(selector);
|
|
1303
1303
|
}
|
|
@@ -1329,7 +1329,7 @@ function PortalMixin(_temp) {
|
|
|
1329
1329
|
var container;
|
|
1330
1330
|
|
|
1331
1331
|
if (getContainer) {
|
|
1332
|
-
container =
|
|
1332
|
+
container = portal_getElement(getContainer);
|
|
1333
1333
|
} else if (this.$parent) {
|
|
1334
1334
|
container = this.$parent.$el;
|
|
1335
1335
|
}
|
|
@@ -28662,6 +28662,10 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28662
28662
|
striped: {
|
|
28663
28663
|
type: Boolean,
|
|
28664
28664
|
default: false
|
|
28665
|
+
},
|
|
28666
|
+
hideTableHead: {
|
|
28667
|
+
type: Boolean,
|
|
28668
|
+
default: false
|
|
28665
28669
|
}
|
|
28666
28670
|
},
|
|
28667
28671
|
data: function data() {
|
|
@@ -28743,6 +28747,9 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28743
28747
|
|
|
28744
28748
|
var h = this.$createElement;
|
|
28745
28749
|
|
|
28750
|
+
var _ref2 = this,
|
|
28751
|
+
slots = _ref2.slots;
|
|
28752
|
+
|
|
28746
28753
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
28747
28754
|
return h("th", {
|
|
28748
28755
|
"class": table_bem({
|
|
@@ -28755,7 +28762,7 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28755
28762
|
"attrs": {
|
|
28756
28763
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
28757
28764
|
}
|
|
28758
|
-
}, [h("div", {
|
|
28765
|
+
}, [slots("head" + colData.id) || h("div", {
|
|
28759
28766
|
"class": table_bem('head'),
|
|
28760
28767
|
"on": {
|
|
28761
28768
|
"click": function click() {
|
|
@@ -28791,6 +28798,23 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28791
28798
|
}
|
|
28792
28799
|
},
|
|
28793
28800
|
onClick: function onClick() {},
|
|
28801
|
+
getElement: function getElement(rowData, colData) {
|
|
28802
|
+
var h = this.$createElement;
|
|
28803
|
+
|
|
28804
|
+
var _ref3 = this,
|
|
28805
|
+
slots = _ref3.slots;
|
|
28806
|
+
|
|
28807
|
+
if (rowData[colData.key] && rowData[colData.key].id && slots("data" + rowData[colData.key].id)) {
|
|
28808
|
+
return slots("data" + rowData[colData.key].id)[0];
|
|
28809
|
+
}
|
|
28810
|
+
|
|
28811
|
+
return colData.ellipsis ? h(text_ellipsis, {
|
|
28812
|
+
"attrs": {
|
|
28813
|
+
"content": rowData[colData.key],
|
|
28814
|
+
"expandType": "dialog"
|
|
28815
|
+
}
|
|
28816
|
+
}) : rowData[colData.key];
|
|
28817
|
+
},
|
|
28794
28818
|
getBody: function getBody(rowData, rowIndex) {
|
|
28795
28819
|
var _this3 = this;
|
|
28796
28820
|
|
|
@@ -28822,12 +28846,7 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28822
28846
|
"rowspan": ((_additionalCellProps5 = additionalCellProps) == null ? void 0 : _additionalCellProps5.rowSpan) !== 1 ? (_additionalCellProps6 = additionalCellProps) == null ? void 0 : _additionalCellProps6.rowSpan : null
|
|
28823
28847
|
},
|
|
28824
28848
|
"style": style
|
|
28825
|
-
}, [
|
|
28826
|
-
"attrs": {
|
|
28827
|
-
"content": rowData[colData.key],
|
|
28828
|
-
"expandType": "dialog"
|
|
28829
|
-
}
|
|
28830
|
-
}) : rowData[colData.key]]);
|
|
28849
|
+
}, [_this3.getElement(rowData, colData)]);
|
|
28831
28850
|
})]);
|
|
28832
28851
|
}
|
|
28833
28852
|
},
|
|
@@ -28850,6 +28869,10 @@ var table_createNamespace = Object(utils["b" /* createNamespace */])('table'),
|
|
|
28850
28869
|
}
|
|
28851
28870
|
});
|
|
28852
28871
|
})]), h("thead", {
|
|
28872
|
+
"directives": [{
|
|
28873
|
+
name: "show",
|
|
28874
|
+
value: !this.hideTableHead
|
|
28875
|
+
}],
|
|
28853
28876
|
"class": table_bem('thead')
|
|
28854
28877
|
}, [h("tr", [this.formatColumns.map(function (colData) {
|
|
28855
28878
|
return _this4.getHead(colData);
|
|
@@ -29978,7 +30001,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
29978
30001
|
|
|
29979
30002
|
|
|
29980
30003
|
|
|
29981
|
-
var version = '2.0.
|
|
30004
|
+
var version = '2.0.83';
|
|
29982
30005
|
|
|
29983
30006
|
function install(Vue) {
|
|
29984
30007
|
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, es_step, stepper, es_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];
|