vxe-pc-ui 4.6.36 → 4.6.37
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/icon/style.css +1 -1
- package/es/notice-bar/src/notice-bar.js +9 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +50 -34
- package/es/tabs/style.css +20 -17
- package/es/tabs/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-tabs/style.css +20 -17
- package/es/vxe-tabs/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +63 -37
- package/lib/index.umd.min.js +1 -1
- package/lib/notice-bar/src/notice-bar.js +8 -1
- package/lib/notice-bar/src/notice-bar.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +53 -34
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +20 -17
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-tabs/style/style.css +20 -17
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/notice-bar/src/notice-bar.ts +13 -3
- package/packages/tabs/src/tabs.ts +52 -34
- package/styles/components/tabs.scss +16 -11
- package/types/components/tabs.d.ts +7 -3
- /package/es/icon/{iconfont.1751108492990.ttf → iconfont.1751116737472.ttf} +0 -0
- /package/es/icon/{iconfont.1751108492990.woff → iconfont.1751116737472.woff} +0 -0
- /package/es/icon/{iconfont.1751108492990.woff2 → iconfont.1751116737472.woff2} +0 -0
- /package/es/{iconfont.1751108492990.ttf → iconfont.1751116737472.ttf} +0 -0
- /package/es/{iconfont.1751108492990.woff → iconfont.1751116737472.woff} +0 -0
- /package/es/{iconfont.1751108492990.woff2 → iconfont.1751116737472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1751108492990.ttf → iconfont.1751116737472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1751108492990.woff → iconfont.1751116737472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1751108492990.woff2 → iconfont.1751116737472.woff2} +0 -0
- /package/lib/{iconfont.1751108492990.ttf → iconfont.1751116737472.ttf} +0 -0
- /package/lib/{iconfont.1751108492990.woff → iconfont.1751116737472.woff} +0 -0
- /package/lib/{iconfont.1751108492990.woff2 → iconfont.1751116737472.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
|
-
|
|
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
|
|
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()}});
|