vxe-pc-ui 4.9.26 → 4.9.28
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/form/src/form-config-item.js +7 -6
- package/es/form/src/form-item.js +8 -7
- package/es/form/src/form.js +7 -1
- package/es/form/src/itemInfo.js +1 -0
- package/es/form/src/render.js +55 -10
- package/es/form/style.css +83 -7
- package/es/form/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/notice-bar/src/notice-bar.js +21 -6
- package/es/notice-bar/style.css +9 -2
- package/es/notice-bar/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/style.css +1 -0
- package/es/tree/style.min.css +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-form/style.css +83 -7
- package/es/vxe-form/style.min.css +1 -1
- package/es/vxe-notice-bar/style.css +9 -2
- package/es/vxe-notice-bar/style.min.css +1 -1
- package/es/vxe-tree/style.css +1 -0
- package/es/vxe-tree/style.min.css +1 -1
- package/lib/form/src/form-config-item.js +3 -3
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +6 -6
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +9 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/itemInfo.js +1 -0
- package/lib/form/src/itemInfo.min.js +1 -1
- package/lib/form/src/render.js +68 -13
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/style/style.css +83 -7
- package/lib/form/style/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 +111 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/notice-bar/src/notice-bar.js +24 -6
- package/lib/notice-bar/src/notice-bar.min.js +1 -1
- package/lib/notice-bar/style/style.css +9 -2
- package/lib/notice-bar/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/style/style.css +1 -0
- package/lib/tree/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -2
- 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-form/style/style.css +83 -7
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-notice-bar/style/style.css +9 -2
- package/lib/vxe-notice-bar/style/style.min.css +1 -1
- package/lib/vxe-tree/style/style.css +1 -0
- package/lib/vxe-tree/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form-config-item.ts +7 -6
- package/packages/form/src/form-item.ts +8 -7
- package/packages/form/src/form.ts +7 -1
- package/packages/form/src/itemInfo.ts +1 -0
- package/packages/form/src/render.ts +53 -7
- package/packages/notice-bar/src/notice-bar.ts +21 -5
- package/packages/ui/index.ts +2 -1
- package/styles/components/form.scss +103 -15
- package/styles/components/notice-bar.scss +14 -2
- package/styles/components/tree.scss +1 -0
- package/styles/theme/base.scss +4 -0
- package/types/components/form.d.ts +22 -1
- package/types/components/notice-bar.d.ts +20 -3
- package/types/ui/global-icon.d.ts +1 -0
- /package/es/icon/{iconfont.1757663302345.ttf → iconfont.1757756204543.ttf} +0 -0
- /package/es/icon/{iconfont.1757663302345.woff → iconfont.1757756204543.woff} +0 -0
- /package/es/icon/{iconfont.1757663302345.woff2 → iconfont.1757756204543.woff2} +0 -0
- /package/es/{iconfont.1757663302345.ttf → iconfont.1757756204543.ttf} +0 -0
- /package/es/{iconfont.1757663302345.woff → iconfont.1757756204543.woff} +0 -0
- /package/es/{iconfont.1757663302345.woff2 → iconfont.1757756204543.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1757663302345.ttf → iconfont.1757756204543.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1757663302345.woff → iconfont.1757756204543.woff} +0 -0
- /package/lib/icon/style/{iconfont.1757663302345.woff2 → iconfont.1757756204543.woff2} +0 -0
- /package/lib/{iconfont.1757663302345.ttf → iconfont.1757756204543.ttf} +0 -0
- /package/lib/{iconfont.1757663302345.woff → iconfont.1757756204543.woff} +0 -0
- /package/lib/{iconfont.1757663302345.woff2 → iconfont.1757756204543.woff2} +0 -0
|
@@ -32,7 +32,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
32
32
|
default: () => (0, _ui.getConfig)().noticeBar.size || (0, _ui.getConfig)().size
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
emits: [],
|
|
35
|
+
emits: ['start', 'end'],
|
|
36
36
|
setup(props, context) {
|
|
37
37
|
const {
|
|
38
38
|
slots,
|
|
@@ -46,6 +46,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
46
46
|
const refElem = (0, _vue.ref)();
|
|
47
47
|
const refContentElem = (0, _vue.ref)();
|
|
48
48
|
const reactData = (0, _vue.reactive)({
|
|
49
|
+
animationStatus: false,
|
|
49
50
|
animationDuration: 0
|
|
50
51
|
});
|
|
51
52
|
const refMaps = {
|
|
@@ -93,15 +94,29 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
93
94
|
reactData.animationDuration = Math.ceil(contEl.scrollWidth / sRate);
|
|
94
95
|
}
|
|
95
96
|
};
|
|
97
|
+
const animationStartEvent = evnt => {
|
|
98
|
+
reactData.animationStatus = true;
|
|
99
|
+
dispatchEvent('start', {
|
|
100
|
+
status: true
|
|
101
|
+
}, evnt);
|
|
102
|
+
};
|
|
103
|
+
const animationEndEvent = evnt => {
|
|
104
|
+
reactData.animationStatus = false;
|
|
105
|
+
dispatchEvent('end', {
|
|
106
|
+
status: false
|
|
107
|
+
}, evnt);
|
|
108
|
+
};
|
|
96
109
|
Object.assign($xeNoticeBar, noticeBarMethods, noticeBarPrivateMethods);
|
|
97
110
|
const renderVN = () => {
|
|
98
111
|
const {
|
|
99
112
|
vertical,
|
|
100
113
|
duration,
|
|
101
|
-
direction
|
|
114
|
+
direction,
|
|
115
|
+
loop
|
|
102
116
|
} = props;
|
|
103
117
|
const {
|
|
104
|
-
animationDuration
|
|
118
|
+
animationDuration,
|
|
119
|
+
animationStatus
|
|
105
120
|
} = reactData;
|
|
106
121
|
const vSize = computeSize.value;
|
|
107
122
|
const noticeText = computeNoticeText.value;
|
|
@@ -111,7 +126,8 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
111
126
|
return (0, _vue.h)('div', {
|
|
112
127
|
ref: refElem,
|
|
113
128
|
class: ['vxe-notice-bar', `is--${vertical ? 'vertical' : 'horizontal'}`, `dir--${direction || 'left'}`, {
|
|
114
|
-
[`size--${vSize}`]: vSize
|
|
129
|
+
[`size--${vSize}`]: vSize,
|
|
130
|
+
'is--loop': loop
|
|
115
131
|
}]
|
|
116
132
|
}, [prefixSlot ? (0, _vue.h)('div', {
|
|
117
133
|
class: 'vxe-notice-bar--prefix'
|
|
@@ -121,10 +137,12 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
121
137
|
ref: refContentElem,
|
|
122
138
|
class: 'vxe-notice-bar--inner'
|
|
123
139
|
}, [(0, _vue.h)('div', {
|
|
124
|
-
class: 'vxe-notice-bar--wrapper',
|
|
140
|
+
class: ['vxe-notice-bar--wrapper', `is--${animationStatus ? 'progress' : 'end'}`],
|
|
125
141
|
style: {
|
|
126
142
|
animationDuration: duration ? (0, _dom.toCssUnit)(duration, 's') : `${animationDuration}s`
|
|
127
|
-
}
|
|
143
|
+
},
|
|
144
|
+
onAnimationstart: animationStartEvent,
|
|
145
|
+
onAnimationend: animationEndEvent
|
|
128
146
|
}, defaultSlot ? defaultSlot({}) : noticeText)])]), suffixSlot ? (0, _vue.h)('div', {
|
|
129
147
|
class: 'vxe-notice-bar--suffix'
|
|
130
148
|
}, suffixSlot({})) : (0, _ui.renderEmptyElement)($xeNoticeBar)]);
|
|
@@ -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(
|
|
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:["start","end"],setup(v,e){const{slots:d,emit:n}=e,t=(0,_vue.inject)("$xeTabs",null);var i=_xeUtils.default.uniqueId();const _=(0,_ui.useSize)(v)["computeSize"],p=(0,_vue.ref)(),f=(0,_vue.ref)(),m=(0,_vue.reactive)({animationStatus:!1,animationDuration:0}),r={refElem:p},x=(0,_vue.computed)(()=>{var e=v["content"];return""+(e||"")});var a=(0,_vue.computed)(()=>t?t.reactData.resizeFlag:null);const o={},g={xID:i,props:v,context:e,reactData:m,getRefMaps:()=>r,getComputeMaps:()=>o},u=(e,t,i)=>{n(e,(0,_ui.createEvent)(i,{$noticeBar:g},t))};i={dispatchEvent:u};const s=()=>{var t=v["speed"],i=f.value;if(i){let e=46;"fast"===t?e=118:"slow"===t&&(e=18),m.animationDuration=Math.ceil(i.scrollWidth/e)}},b=e=>{m.animationStatus=!0,u("start",{status:!0},e)},h=e=>{m.animationStatus=!1,u("end",{status:!1},e)};Object.assign(g,i,{});return(0,_vue.watch)(a,()=>{s()}),(0,_vue.onMounted)(()=>{_ui.globalEvents.on(g,"resize",s),s()}),(0,_vue.onBeforeUnmount)(()=>{_ui.globalEvents.off(g,"resize")}),g.renderVN=()=>{var{vertical:e,duration:t,direction:i,loop:n}=v,{animationDuration:r,animationStatus:a}=m,o=_.value,u=x.value,s=d.default,l=d.prefix,c=d.suffix;return(0,_vue.h)("div",{ref:p,class:["vxe-notice-bar","is--"+(e?"vertical":"horizontal"),"dir--"+(i||"left"),{["size--"+o]:o,"is--loop":n}]},[l?(0,_vue.h)("div",{class:"vxe-notice-bar--prefix"},l({})):(0,_ui.renderEmptyElement)(g),(0,_vue.h)("div",{class:"vxe-notice-bar--content"},[(0,_vue.h)("div",{ref:f,class:"vxe-notice-bar--inner"},[(0,_vue.h)("div",{class:["vxe-notice-bar--wrapper","is--"+(a?"progress":"end")],style:{animationDuration:t?(0,_dom.toCssUnit)(t,"s"):r+"s"},onAnimationstart:b,onAnimationend:h},s?s({}):u)])]),c?(0,_vue.h)("div",{class:"vxe-notice-bar--suffix"},c({})):(0,_ui.renderEmptyElement)(g)])},g},render(){return this.renderVN()}});
|
|
@@ -32,14 +32,21 @@
|
|
|
32
32
|
animation-play-state: running;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.vxe-notice-bar.is--loop .vxe-notice-bar--wrapper {
|
|
36
|
+
animation-iteration-count: infinite;
|
|
37
|
+
}
|
|
35
38
|
.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper {
|
|
36
|
-
padding-left: 100%;
|
|
37
39
|
animation-name: scrollLeftText;
|
|
38
40
|
}
|
|
39
41
|
.vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper {
|
|
40
|
-
padding-left: 100%;
|
|
41
42
|
animation-name: scrollRightText;
|
|
42
43
|
}
|
|
44
|
+
.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper, .vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper {
|
|
45
|
+
padding-left: 100%;
|
|
46
|
+
}
|
|
47
|
+
.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper.is--end, .vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper.is--end {
|
|
48
|
+
padding-left: 0;
|
|
49
|
+
}
|
|
43
50
|
.vxe-notice-bar.is--horizontal .vxe-notice-bar--wrapper:hover {
|
|
44
51
|
animation-play-state: paused;
|
|
45
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-notice-bar{display:flex;flex-direction:row;font-size:var(--vxe-ui-font-size-default);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family)}.vxe-notice-bar--prefix,.vxe-notice-bar--suffix{flex-shrink:0}.vxe-notice-bar--content{flex-grow:1;overflow:hidden;padding:0 .2em}.vxe-notice-bar--inner{overflow:hidden}.vxe-notice-bar--wrapper{display:inline-block;white-space:nowrap;animation-duration:15s;animation-timing-function:linear;animation-delay:0s;animation-direction:normal;animation-fill-mode:none;animation-play-state:running}.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper{
|
|
1
|
+
.vxe-notice-bar{display:flex;flex-direction:row;font-size:var(--vxe-ui-font-size-default);color:var(--vxe-ui-font-color);font-family:var(--vxe-ui-font-family)}.vxe-notice-bar--prefix,.vxe-notice-bar--suffix{flex-shrink:0}.vxe-notice-bar--content{flex-grow:1;overflow:hidden;padding:0 .2em}.vxe-notice-bar--inner{overflow:hidden}.vxe-notice-bar--wrapper{display:inline-block;white-space:nowrap;animation-duration:15s;animation-timing-function:linear;animation-delay:0s;animation-direction:normal;animation-fill-mode:none;animation-play-state:running}.vxe-notice-bar.is--loop .vxe-notice-bar--wrapper{animation-iteration-count:infinite}.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper{animation-name:scrollLeftText}.vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper{animation-name:scrollRightText}.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper,.vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper{padding-left:100%}.vxe-notice-bar.is--horizontal.dir--left .vxe-notice-bar--wrapper.is--end,.vxe-notice-bar.is--horizontal.dir--right .vxe-notice-bar--wrapper.is--end{padding-left:0}.vxe-notice-bar.is--horizontal .vxe-notice-bar--wrapper:hover{animation-play-state:paused}@keyframes scrollRightText{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes scrollLeftText{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}.vxe-notice-bar.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-notice-bar.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-notice-bar.size--mini{font-size:var(--vxe-ui-font-size-mini)}
|