zartui 0.1.49 → 0.1.50
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/changelog.generated.md +3 -19
- package/es/fold-dialog/index.js +23 -14
- package/es/index.js +1 -1
- package/lib/fold-dialog/index.js +24 -15
- package/lib/index.js +1 -1
- package/lib/zart.js +24 -15
- package/lib/zart.min.js +2 -2
- package/package.json +1 -1
package/changelog.generated.md
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
### [v0.1.
|
|
1
|
+
### [v0.1.50](http://192.168.177.251:8000/compare/v0.1.49...v0.1.50)
|
|
2
2
|
|
|
3
|
-
`2022-03-
|
|
3
|
+
`2022-03-08`
|
|
4
4
|
|
|
5
|
-
- [M]
|
|
6
|
-
- [A][184979]新增折叠段落组件 [92d7e3](http://192.168.177.251:8000/commits/92d7e330cb37dc5e5af6aafcb04b23e28229b41c)
|
|
7
|
-
- [M][184979]field组件开发 [9aa42b](http://192.168.177.251:8000/commits/9aa42b8e94c08cfdb7cc23fe61364796f3e4a416)
|
|
8
|
-
- [M][175340]: Show Icons [1f74f0](http://192.168.177.251:8000/commits/1f74f02d2c9ccbb69023761091fd97acf6fbce0c)
|
|
9
|
-
- [M][175340]: Update icons [94520e](http://192.168.177.251:8000/commits/94520eaaf85c4a68710b2d745b3d082e34ca1136)
|
|
10
|
-
- [M]目录及样式调整 [a2c8a1](http://192.168.177.251:8000/commits/a2c8a1724be468ed377243ff5aaa4164e8cd7bc7)
|
|
11
|
-
- [M][175339]: 展示出弹出层 [f97e75](http://192.168.177.251:8000/commits/f97e759eb6dcedaca7640c087b910d8397294ed1)
|
|
12
|
-
- [A][180391]新增表格组件 [ab7e66](http://192.168.177.251:8000/commits/ab7e66f190ddc997a045c15b023e1a8509eb6fea)
|
|
13
|
-
- [M]fix 样式污染 [5fcc1e](http://192.168.177.251:8000/commits/5fcc1ec022f15a760098ae2fadce39c0e396f3d3)
|
|
14
|
-
- [M][189170]隐藏sticky组件 [7117f0](http://192.168.177.251:8000/commits/7117f056aec3bedd68bbff01adce344c2620c29f)
|
|
15
|
-
- [M][187581]修改与智信环境重复的div id [91c4a0](http://192.168.177.251:8000/commits/91c4a0705171d2a059cd8c23417ce609ad1128ce)
|
|
16
|
-
- [M][187581]文档修正 [aca5c0](http://192.168.177.251:8000/commits/aca5c051e47e3eee099fc1aa2b69fdac5e1e08c3)
|
|
17
|
-
- [M][187581]返回顶部在智信中不显示按钮fix [bafd93](http://192.168.177.251:8000/commits/bafd93cde23b6982615453bb47ed30b56d2a0efd)
|
|
18
|
-
- [A][187577]新增气泡弹出框组件 [ac231f](http://192.168.177.251:8000/commits/ac231f845d4a1c7e7f742de76aaf33da8ff257d5)
|
|
19
|
-
- [M][187580]布局组件 [5e01dd](http://192.168.177.251:8000/commits/5e01dd83b5fa9159413b7909d8521065d7276293)
|
|
20
|
-
- [M]md format [88eec6](http://192.168.177.251:8000/commits/88eec64b95295ca62aee6f08340b913f2b79b3ea)
|
|
21
|
-
- [A][187581]新增返回顶部组件 [98709a](http://192.168.177.251:8000/commits/98709ae3c2b9399adcaf9b2397dfc0e35f627989)
|
|
5
|
+
- [M]折叠段落组件无法获取段落初始行数修复 [d14fa2](http://192.168.177.251:8000/commits/d14fa22cde9383f3adff97f6153f1c99a98f3f1c)
|
package/es/fold-dialog/index.js
CHANGED
|
@@ -50,22 +50,31 @@ export default createComponent({
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
mounted: function mounted() {
|
|
53
|
-
|
|
53
|
+
this.init();
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
init: function init() {
|
|
57
|
+
var _this = this;
|
|
54
58
|
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
var _this$getLines = this.getLines(),
|
|
60
|
+
len = _this$getLines.len;
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
if (len === 0) {
|
|
63
|
+
setTimeout(function () {
|
|
64
|
+
_this.init();
|
|
65
|
+
}, 100);
|
|
66
|
+
} else {
|
|
67
|
+
if (len > this.maxLines) {
|
|
68
|
+
this.showSlotNode = true;
|
|
69
|
+
this.$nextTick(function () {
|
|
70
|
+
_this.buttonBoxWidth = _this.$refs.buttonRef.clientWidth;
|
|
71
|
+
_this.textBoxWidth = _this.$refs.textOverflow.clientWidth;
|
|
63
72
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
_this.calculateOffset(0, _this.content.length);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
69
78
|
calculateOffset: function calculateOffset(from, to) {
|
|
70
79
|
var _this2 = this;
|
|
71
80
|
|
|
@@ -107,7 +116,7 @@ export default createComponent({
|
|
|
107
116
|
var clientRects = this.$refs.overEllipsis.getClientRects();
|
|
108
117
|
return {
|
|
109
118
|
len: clientRects.length,
|
|
110
|
-
lastWidth: clientRects[clientRects.length - 1].width
|
|
119
|
+
lastWidth: clientRects.length ? clientRects[clientRects.length - 1].width : this.$refs.textOverflow.clientWidth
|
|
111
120
|
};
|
|
112
121
|
},
|
|
113
122
|
toggle: function toggle() {
|
package/es/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import Tabs from './tabs';
|
|
|
65
65
|
import Tag from './tag';
|
|
66
66
|
import Toast from './toast';
|
|
67
67
|
import Uploader from './uploader';
|
|
68
|
-
var version = '0.1.
|
|
68
|
+
var version = '0.1.50';
|
|
69
69
|
|
|
70
70
|
function install(Vue) {
|
|
71
71
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Icon, Image, ImagePreview, Info, Lazyload, List, Loading, Locale, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, 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, Toast, Uploader];
|
package/lib/fold-dialog/index.js
CHANGED
|
@@ -55,22 +55,31 @@ var _default = createComponent({
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
mounted: function mounted() {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var _this$getLines = this.getLines(),
|
|
61
|
-
len = _this$getLines.len;
|
|
62
|
-
|
|
63
|
-
if (len > this.maxLines) {
|
|
64
|
-
this.showSlotNode = true;
|
|
65
|
-
this.$nextTick(function () {
|
|
66
|
-
_this.buttonBoxWidth = _this.$refs.buttonRef.clientWidth;
|
|
67
|
-
_this.textBoxWidth = _this.$refs.textOverflow.clientWidth;
|
|
68
|
-
|
|
69
|
-
_this.calculateOffset(0, _this.content.length);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
58
|
+
this.init();
|
|
72
59
|
},
|
|
73
60
|
methods: {
|
|
61
|
+
init: function init() {
|
|
62
|
+
var _this = this;
|
|
63
|
+
|
|
64
|
+
var _this$getLines = this.getLines(),
|
|
65
|
+
len = _this$getLines.len;
|
|
66
|
+
|
|
67
|
+
if (len === 0) {
|
|
68
|
+
setTimeout(function () {
|
|
69
|
+
_this.init();
|
|
70
|
+
}, 100);
|
|
71
|
+
} else {
|
|
72
|
+
if (len > this.maxLines) {
|
|
73
|
+
this.showSlotNode = true;
|
|
74
|
+
this.$nextTick(function () {
|
|
75
|
+
_this.buttonBoxWidth = _this.$refs.buttonRef.clientWidth;
|
|
76
|
+
_this.textBoxWidth = _this.$refs.textOverflow.clientWidth;
|
|
77
|
+
|
|
78
|
+
_this.calculateOffset(0, _this.content.length);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
74
83
|
calculateOffset: function calculateOffset(from, to) {
|
|
75
84
|
var _this2 = this;
|
|
76
85
|
|
|
@@ -112,7 +121,7 @@ var _default = createComponent({
|
|
|
112
121
|
var clientRects = this.$refs.overEllipsis.getClientRects();
|
|
113
122
|
return {
|
|
114
123
|
len: clientRects.length,
|
|
115
|
-
lastWidth: clientRects[clientRects.length - 1].width
|
|
124
|
+
lastWidth: clientRects.length ? clientRects[clientRects.length - 1].width : this.$refs.textOverflow.clientWidth
|
|
116
125
|
};
|
|
117
126
|
},
|
|
118
127
|
toggle: function toggle() {
|
package/lib/index.js
CHANGED
|
@@ -273,7 +273,7 @@ exports.Toast = _toast.default;
|
|
|
273
273
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
274
274
|
|
|
275
275
|
exports.Uploader = _uploader.default;
|
|
276
|
-
var version = '0.1.
|
|
276
|
+
var version = '0.1.50';
|
|
277
277
|
exports.version = version;
|
|
278
278
|
|
|
279
279
|
function install(Vue) {
|
package/lib/zart.js
CHANGED
|
@@ -34492,22 +34492,31 @@ var fold_dialog_createNamespace = Object(utils["b" /* createNamespace */])('fold
|
|
|
34492
34492
|
}
|
|
34493
34493
|
},
|
|
34494
34494
|
mounted: function mounted() {
|
|
34495
|
-
|
|
34495
|
+
this.init();
|
|
34496
|
+
},
|
|
34497
|
+
methods: {
|
|
34498
|
+
init: function init() {
|
|
34499
|
+
var _this = this;
|
|
34496
34500
|
|
|
34497
|
-
|
|
34498
|
-
|
|
34501
|
+
var _this$getLines = this.getLines(),
|
|
34502
|
+
len = _this$getLines.len;
|
|
34499
34503
|
|
|
34500
|
-
|
|
34501
|
-
|
|
34502
|
-
|
|
34503
|
-
|
|
34504
|
-
|
|
34504
|
+
if (len === 0) {
|
|
34505
|
+
setTimeout(function () {
|
|
34506
|
+
_this.init();
|
|
34507
|
+
}, 100);
|
|
34508
|
+
} else {
|
|
34509
|
+
if (len > this.maxLines) {
|
|
34510
|
+
this.showSlotNode = true;
|
|
34511
|
+
this.$nextTick(function () {
|
|
34512
|
+
_this.buttonBoxWidth = _this.$refs.buttonRef.clientWidth;
|
|
34513
|
+
_this.textBoxWidth = _this.$refs.textOverflow.clientWidth;
|
|
34505
34514
|
|
|
34506
|
-
|
|
34507
|
-
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
|
|
34515
|
+
_this.calculateOffset(0, _this.content.length);
|
|
34516
|
+
});
|
|
34517
|
+
}
|
|
34518
|
+
}
|
|
34519
|
+
},
|
|
34511
34520
|
calculateOffset: function calculateOffset(from, to) {
|
|
34512
34521
|
var _this2 = this;
|
|
34513
34522
|
|
|
@@ -34549,7 +34558,7 @@ var fold_dialog_createNamespace = Object(utils["b" /* createNamespace */])('fold
|
|
|
34549
34558
|
var clientRects = this.$refs.overEllipsis.getClientRects();
|
|
34550
34559
|
return {
|
|
34551
34560
|
len: clientRects.length,
|
|
34552
|
-
lastWidth: clientRects[clientRects.length - 1].width
|
|
34561
|
+
lastWidth: clientRects.length ? clientRects[clientRects.length - 1].width : this.$refs.textOverflow.clientWidth
|
|
34553
34562
|
};
|
|
34554
34563
|
},
|
|
34555
34564
|
toggle: function toggle() {
|
|
@@ -45775,7 +45784,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
45775
45784
|
|
|
45776
45785
|
|
|
45777
45786
|
|
|
45778
|
-
var version = '0.1.
|
|
45787
|
+
var version = '0.1.50';
|
|
45779
45788
|
|
|
45780
45789
|
function install(Vue) {
|
|
45781
45790
|
var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, 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, es_icon, es_image, image_preview, es_info, lazyload, list, es_loading, locale["a" /* default */], nav_bar, notice_bar, number_keyboard, es_overlay, password_input, pdf_viewer, picker, popover, popup, pull_refresh, es_radio, radio_group, rate, row, search, signature, skeleton, slider, es_step, stepper, steps, sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, es_toast, uploader];
|