vxe-pc-ui 4.6.36 → 4.6.38

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.
Files changed (47) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/notice-bar/src/notice-bar.js +9 -2
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/tabs/src/tabs.js +65 -34
  6. package/es/tabs/style.css +26 -18
  7. package/es/tabs/style.min.css +1 -1
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/es/vxe-tabs/style.css +26 -18
  11. package/es/vxe-tabs/style.min.css +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +76 -35
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/notice-bar/src/notice-bar.js +8 -1
  17. package/lib/notice-bar/src/notice-bar.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/tabs/src/tabs.js +66 -32
  21. package/lib/tabs/src/tabs.min.js +1 -1
  22. package/lib/tabs/style/style.css +26 -18
  23. package/lib/tabs/style/style.min.css +1 -1
  24. package/lib/ui/index.js +1 -1
  25. package/lib/ui/index.min.js +1 -1
  26. package/lib/ui/src/log.js +1 -1
  27. package/lib/ui/src/log.min.js +1 -1
  28. package/lib/vxe-tabs/style/style.css +26 -18
  29. package/lib/vxe-tabs/style/style.min.css +1 -1
  30. package/package.json +1 -1
  31. package/packages/notice-bar/src/notice-bar.ts +13 -3
  32. package/packages/tabs/src/tabs.ts +67 -34
  33. package/styles/components/tabs.scss +23 -12
  34. package/types/components/grid.d.ts +1 -0
  35. package/types/components/tabs.d.ts +11 -3
  36. /package/es/icon/{iconfont.1751108492990.ttf → iconfont.1751126433330.ttf} +0 -0
  37. /package/es/icon/{iconfont.1751108492990.woff → iconfont.1751126433330.woff} +0 -0
  38. /package/es/icon/{iconfont.1751108492990.woff2 → iconfont.1751126433330.woff2} +0 -0
  39. /package/es/{iconfont.1751108492990.ttf → iconfont.1751126433330.ttf} +0 -0
  40. /package/es/{iconfont.1751108492990.woff → iconfont.1751126433330.woff} +0 -0
  41. /package/es/{iconfont.1751108492990.woff2 → iconfont.1751126433330.woff2} +0 -0
  42. /package/lib/icon/style/{iconfont.1751108492990.ttf → iconfont.1751126433330.ttf} +0 -0
  43. /package/lib/icon/style/{iconfont.1751108492990.woff → iconfont.1751126433330.woff} +0 -0
  44. /package/lib/icon/style/{iconfont.1751108492990.woff2 → iconfont.1751126433330.woff2} +0 -0
  45. /package/lib/{iconfont.1751108492990.ttf → iconfont.1751126433330.ttf} +0 -0
  46. /package/lib/{iconfont.1751108492990.woff → iconfont.1751126433330.woff} +0 -0
  47. /package/lib/{iconfont.1751108492990.woff2 → iconfont.1751126433330.woff2} +0 -0
@@ -38,6 +38,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
38
38
  slots,
39
39
  emit
40
40
  } = context;
41
+ const $xeTabs = (0, _vue.inject)('$xeTabs', null);
41
42
  const xID = _xeUtils.default.uniqueId();
42
43
  const {
43
44
  computeSize
@@ -56,6 +57,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
56
57
  } = props;
57
58
  return `${content || ''}`;
58
59
  });
60
+ const computeTabsResizeFlag = (0, _vue.computed)(() => {
61
+ return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
62
+ });
59
63
  const computeMaps = {};
60
64
  const $xeNoticeBar = {
61
65
  xID,
@@ -125,7 +129,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
125
129
  class: 'vxe-notice-bar--suffix'
126
130
  }, suffixSlot({})) : (0, _ui.renderEmptyElement)($xeNoticeBar)]);
127
131
  };
128
- $xeNoticeBar.renderVN = renderVN;
132
+ (0, _vue.watch)(computeTabsResizeFlag, () => {
133
+ updateAnimationStyle();
134
+ });
129
135
  (0, _vue.onMounted)(() => {
130
136
  _ui.globalEvents.on($xeNoticeBar, 'resize', updateAnimationStyle);
131
137
  updateAnimationStyle();
@@ -133,6 +139,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
133
139
  (0, _vue.onBeforeUnmount)(() => {
134
140
  _ui.globalEvents.off($xeNoticeBar, 'resize');
135
141
  });
142
+ $xeNoticeBar.renderVN = renderVN;
136
143
  return $xeNoticeBar;
137
144
  },
138
145
  render() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_dom=require("../../ui/src/dom");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeNoticeBar",props:{duration:[String,Number],direction:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.direction},speed:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.speed},content:String,vertical:Boolean,loop:{type:Boolean},size:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.size||(0,_ui.getConfig)().size}},emits:[],setup(l,e){const{slots:c,emit:r}=e;var t=_xeUtils.default.uniqueId();const v=(0,_ui.useSize)(l)["computeSize"],d=(0,_vue.ref)(),_=(0,_vue.ref)(),f=(0,_vue.reactive)({animationDuration:0}),i={refElem:d},p=(0,_vue.computed)(()=>{var e=l["content"];return""+(e||"")}),n={},m={xID:t,props:l,context:e,reactData:f,getRefMaps:()=>i,getComputeMaps:()=>n};const o=()=>{var t=l["speed"],i=_.value;if(i){let e=46;"fast"===t?e=118:"slow"===t&&(e=18),f.animationDuration=Math.ceil(i.scrollWidth/e)}};Object.assign(m,{dispatchEvent:(e,t,i)=>{r(e,(0,_ui.createEvent)(i,{$noticeBar:m},t))}},{});return m.renderVN=()=>{var{vertical:e,duration:t,direction:i}=l,r=f["animationDuration"],n=v.value,o=p.value,u=c.default,a=c.prefix,s=c.suffix;return(0,_vue.h)("div",{ref:d,class:["vxe-notice-bar","is--"+(e?"vertical":"horizontal"),"dir--"+(i||"left"),{["size--"+n]:n}]},[a?(0,_vue.h)("div",{class:"vxe-notice-bar--prefix"},a({})):(0,_ui.renderEmptyElement)(m),(0,_vue.h)("div",{class:"vxe-notice-bar--content"},[(0,_vue.h)("div",{ref:_,class:"vxe-notice-bar--inner"},[(0,_vue.h)("div",{class:"vxe-notice-bar--wrapper",style:{animationDuration:`${t?(0,_dom.toCssUnit)(t,"s"):r}s`}},u?u({}):o)])]),s?(0,_vue.h)("div",{class:"vxe-notice-bar--suffix"},s({})):(0,_ui.renderEmptyElement)(m)])},(0,_vue.onMounted)(()=>{_ui.globalEvents.on(m,"resize",o),o()}),(0,_vue.onBeforeUnmount)(()=>{_ui.globalEvents.off(m,"resize")}),m},render(){return this.renderVN()}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_dom=require("../../ui/src/dom");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeNoticeBar",props:{duration:[String,Number],direction:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.direction},speed:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.speed},content:String,vertical:Boolean,loop:{type:Boolean},size:{type:String,default:()=>(0,_ui.getConfig)().noticeBar.size||(0,_ui.getConfig)().size}},emits:[],setup(l,e){const{slots:c,emit:r}=e,t=(0,_vue.inject)("$xeTabs",null);var i=_xeUtils.default.uniqueId();const v=(0,_ui.useSize)(l)["computeSize"],d=(0,_vue.ref)(),_=(0,_vue.ref)(),f=(0,_vue.reactive)({animationDuration:0}),n={refElem:d},p=(0,_vue.computed)(()=>{var e=l["content"];return""+(e||"")});var u=(0,_vue.computed)(()=>t?t.reactData.resizeFlag:null);const o={},m={xID:i,props:l,context:e,reactData:f,getRefMaps:()=>n,getComputeMaps:()=>o};const a=()=>{var t=l["speed"],i=_.value;if(i){let e=46;"fast"===t?e=118:"slow"===t&&(e=18),f.animationDuration=Math.ceil(i.scrollWidth/e)}};Object.assign(m,{dispatchEvent:(e,t,i)=>{r(e,(0,_ui.createEvent)(i,{$noticeBar:m},t))}},{});return(0,_vue.watch)(u,()=>{a()}),(0,_vue.onMounted)(()=>{_ui.globalEvents.on(m,"resize",a),a()}),(0,_vue.onBeforeUnmount)(()=>{_ui.globalEvents.off(m,"resize")}),m.renderVN=()=>{var{vertical:e,duration:t,direction:i}=l,r=f["animationDuration"],n=v.value,u=p.value,o=c.default,a=c.prefix,s=c.suffix;return(0,_vue.h)("div",{ref:d,class:["vxe-notice-bar","is--"+(e?"vertical":"horizontal"),"dir--"+(i||"left"),{["size--"+n]:n}]},[a?(0,_vue.h)("div",{class:"vxe-notice-bar--prefix"},a({})):(0,_ui.renderEmptyElement)(m),(0,_vue.h)("div",{class:"vxe-notice-bar--content"},[(0,_vue.h)("div",{ref:_,class:"vxe-notice-bar--inner"},[(0,_vue.h)("div",{class:"vxe-notice-bar--wrapper",style:{animationDuration:`${t?(0,_dom.toCssUnit)(t,"s"):r}s`}},o?o({}):u)])]),s?(0,_vue.h)("div",{class:"vxe-notice-bar--suffix"},s({})):(0,_ui.renderEmptyElement)(m)])},m},render(){return this.renderVN()}});