zartui 2.0.52 → 2.0.53

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 CHANGED
@@ -74,7 +74,7 @@ import Tag from './tag';
74
74
  import Timeline from './timeline';
75
75
  import Toast from './toast';
76
76
  import Uploader from './uploader';
77
- var version = '2.0.52';
77
+ var version = '2.0.53';
78
78
 
79
79
  function install(Vue) {
80
80
  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, Timeline, Toast, Uploader];
package/lib/index.js CHANGED
@@ -309,7 +309,7 @@ exports.Toast = _toast.default;
309
309
  var _uploader = _interopRequireDefault(require("./uploader"));
310
310
 
311
311
  exports.Uploader = _uploader.default;
312
- var version = '2.0.52';
312
+ var version = '2.0.53';
313
313
  exports.version = version;
314
314
 
315
315
  function install(Vue) {
package/lib/zart.js CHANGED
@@ -19275,7 +19275,11 @@ var WatermarkOptions = /** @class */ (function () {
19275
19275
  function getHeitiFontFamily(fontFamily) {
19276
19276
  if (fontFamily === void 0) { fontFamily = ""; }
19277
19277
  var defaultFontFamily;
19278
- if (checkIsAndroid()) {
19278
+ if (checkIsWindows()) {
19279
+ // ios对黑体的行高绘制有问题
19280
+ if (fontFamily.includes("黑体")) {
19281
+ fontFamily = "";
19282
+ }
19279
19283
  defaultFontFamily = "'Roboto Black', 'Droid Sans'";
19280
19284
  }
19281
19285
  else if (checkIsIOS()) {
@@ -19285,6 +19289,9 @@ function getHeitiFontFamily(fontFamily) {
19285
19289
  }
19286
19290
  defaultFontFamily = "'PingFang SC Medium'";
19287
19291
  }
19292
+ else if (checkIsAndroid()) {
19293
+ defaultFontFamily = "'Roboto Black', 'Droid Sans'";
19294
+ }
19288
19295
  else {
19289
19296
  defaultFontFamily =
19290
19297
  '"PingFang SC Medium", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif';
@@ -19843,7 +19850,11 @@ function drawBackground(canvas, tile) {
19843
19850
  }
19844
19851
  // padding top
19845
19852
  if (j === 0) {
19846
- ctx.fillRect(axisPoint.x, axisPoint.y - paddingTop > 0 ? axisPoint.y - paddingTop : 0, paddingLeft + lineWidth + paddingRight, paddingTop);
19853
+ // windows兼容问题,行高绘制不是标准高度
19854
+ var top_1 = checkIsWindows()
19855
+ ? paddingTop + 6 * style.scale
19856
+ : paddingTop;
19857
+ ctx.fillRect(axisPoint.x, axisPoint.y - paddingTop > 0 ? axisPoint.y - top_1 : 0, paddingLeft + lineWidth + paddingRight, top_1);
19847
19858
  }
19848
19859
  ctx.fillRect(axisPoint.x, axisPoint.y + j * lineHeight, paddingLeft + lineWidth + paddingRight, lineHeight);
19849
19860
  // padding bottom
@@ -29732,7 +29743,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
29732
29743
 
29733
29744
 
29734
29745
 
29735
- var version = '2.0.52';
29746
+ var version = '2.0.53';
29736
29747
 
29737
29748
  function install(Vue) {
29738
29749
  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, timeline, es_toast, uploader];