70 changed files with 24 additions and 341 deletions
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(0,_baseComponent.default)({relations:{"../accordion/index":{type:"child",observer:function(){this.callDebounceFn(this.updated)}}},properties:{prefixCls:{type:String,value:"wux-accordion-group"},cellGroupPrefixCls:{type:String,value:"wux-cell-group"},defaultCurrent:{type:Array,value:[]},current:{type:Array,value:[],observer:function(t){this.data.controlled&&this.updated(t)}},controlled:{type:Boolean,value:!1},accordion:{type:Boolean,value:!1},title:{type:String,value:""},label:{type:String,value:""},mode:{type:String,value:"default"},bodyStyle:{type:[String,Object],value:""}},data:{activeKey:"",keys:[]},methods:{updated:function(t){var e=0<arguments.length&&void 0!==t?t:this.data.activeKey;this.data.activeKey!==e&&this.setData({activeKey:e}),this.changeCurrent(e)},changeCurrent:function(n){var i=this,t=this.getRelationNodes("../accordion/index");0<t.length&&t.forEach(function(t,e){var a=t.data.key||String(e),r=i.data.accordion?n[0]===a:-1!==n.indexOf(a);t.changeCurrent(r,a)}),this.data.keys.length!==t.length&&this.setData({keys:t.map(function(t){return t.data})})},emitEvent:function(t){this.triggerEvent("change",{key:t,keys:this.data.keys})},setActiveKey:function(t){this.data.controlled||this.updated(t),this.emitEvent(this.data.accordion?t[0]:t)},onClickItem:function(e){var t=_toConsumableArray(this.data.activeKey);t=this.data.accordion?t[0]===e?[]:[e]:-1!==t.indexOf(e)?t.filter(function(t){return t!==e}):[].concat(_toConsumableArray(t),[e]),this.setActiveKey(t)}},ready:function(){var t=this.data,e=t.defaultCurrent,a=t.current,r=t.controlled?a:e;this.updated(r)}}); |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"wux-cell-group": "../cell-group/index" |
|||
} |
|||
} |
@ -1,10 +0,0 @@ |
|||
<wux-cell-group |
|||
wux-class="{{ prefixCls }}" |
|||
prefixCls="{{ cellGroupPrefixCls }}" |
|||
title="{{ title }}" |
|||
label="{{ label }}" |
|||
mode="{{ mode }}" |
|||
bodyStyle="{{ bodyStyle }}" |
|||
> |
|||
<slot></slot> |
|||
</wux-cell-group> |
@ -1 +0,0 @@ |
|||
.wux-accordion-group{position:relative;border:none} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,_baseComponent.default)({relations:{"../accordion-group/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-accordion"},key:{type:String,value:""},thumb:{type:String,value:""},title:{type:String,value:""},content:{type:String,value:""},disabled:{type:Boolean,value:!1},showArrow:{type:Boolean,value:!0}},data:{current:!1,index:"0"},computed:{classes:["prefixCls, current, disabled",function(e,t,n){var r;return{wrap:(0,_classNames2.default)(e,(_defineProperty(r={},"".concat(e,"--current"),t),_defineProperty(r,"".concat(e,"--disabled"),n),r)),hd:"".concat(e,"__hd"),thumb:"".concat(e,"__thumb"),title:"".concat(e,"__title"),arrow:"".concat(e,"__arrow"),bd:"".concat(e,"__bd"),content:"".concat(e,"__content")}}]},methods:{changeCurrent:function(e,t){this.setData({current:e,index:t})},onTap:function(){var e=this.data,t=e.index,n=e.disabled,r=this.getRelationNodes("../accordion-group/index")[0];!n&&r&&r.onClickItem(t)}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,18 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}"> |
|||
<view class="{{ classes.hd }}" bindtap="onTap"> |
|||
<block wx:if="{{ thumb }}"> |
|||
<image class="{{ classes.thumb }}" src="{{ thumb }}" /> |
|||
</block> |
|||
<block wx:if="{{ title }}"> |
|||
<view class="{{ classes.title }}">{{ title }}</view> |
|||
</block> |
|||
<block wx:else> |
|||
<slot name="header"></slot> |
|||
</block> |
|||
<view class="{{ classes.arrow }}" wx:if="{{ showArrow }}"></view> |
|||
</view> |
|||
<view class="{{ classes.bd }}"> |
|||
<view class="{{ classes.content }}" wx:if="{{ content }}">{{ content }}</view> |
|||
<slot></slot> |
|||
</view> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-accordion__hd{position:relative;padding:20rpx 30rpx;color:#000;background-color:#fff;box-sizing:border-box;padding-right:60rpx;width:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.wux-accordion__hd::after{content:" ";position:absolute;bottom:0;right:0;height:1PX;border-bottom:1PX solid #d9d9d9;color:#d9d9d9;transform-origin:0 100%;transform:scaleY(.5);left:0}.wux-accordion__thumb{width:40rpx;height:40rpx;display:block;margin-right:10rpx}.wux-accordion__arrow{display:inline-block;width:30rpx;height:30rpx;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2226%22%20viewBox%3D%220%200%2016%2026%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2%200L0%202l11.5%2011L0%2024l2%202%2014-13z%22%20fill%3D%22%23c7c7cc%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");background-size:contain;background-repeat:no-repeat;background-position:50% 50%;transform:rotate(90deg);transition:transform .2s ease;position:absolute;display:block;top:30rpx;right:30rpx}.wux-accordion--current>.wux-accordion__hd>.wux-accordion__arrow{transform:rotate(270deg)}.wux-accordion__bd{display:none;overflow:hidden;background:#fff;font-size:30rpx;color:rgba(0,0,0,.85);position:relative;padding:30rpx}.wux-accordion__bd::after{content:" ";position:absolute;bottom:0;right:0;height:1PX;border-bottom:1PX solid #d9d9d9;color:#d9d9d9;transform-origin:0 100%;transform:scaleY(.5);left:0}.wux-accordion--current>.wux-accordion__bd{display:block} |
@ -1 +0,0 @@ |
|||
"use strict";var EAN13,pluginName;pluginName=null,EAN13=function(){function t(t,i,e,s){var n;if(this.id=t,this.number=i,this.ctx=s,this.settings={width:200,height:100,number:!0,prefix:!0,color:"black",debug:!1,onValid:function(){},onInvalid:function(){},onSuccess:function(){},onError:function(){}},e)for(n in e)this.settings[n]=e[n];this._name=pluginName,this.init()}return t.prototype.settings={},t.prototype.init=function(){var t,i;return 12===this.number.length&&(t=this.generateCheckDigit(this.number),this.number+=t),13===this.number.length?(this.validate()?this.settings.onValid.call():this.settings.onInvalid.call(),i=this.getCode(),this.draw(i)):this.settings.onError.call()},t.prototype.getCode=function(){var t,i,e,s,n,r,h;for(n=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],r=["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],h=["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],i="",t=["xxxxxx","xxyxyy","xxyyxy","xxyyyx","xyxxyy","xyyxxy","xyyyxx","xyxyxy","xyxyyx","xyyxyx"][parseInt(this.number.substr(0,1),10)].split(""),s=this.number.substr(1).split(""),e=0;e<6;)"x"===t[e]?i+=n[s[e]]:i+=r[s[e]],e++;for(e=6;e<12;)i+=h[s[e]],e++;return i},t.prototype.clear=function(t){return t.clearRect(0,0,this.settings.width,this.settings.height)},t.prototype.draw=function(t){var e,s,i,n,r,h,o,f,l,u,x,c,g,a;if(h={prefix_offset:.06,font_stretch:.073,border_line_height_number:.9,border_line_height:1,line_height:.9,font_size:.15,font_y:1.03,text_offset:4.5},x=this.settings.prefix?this.settings.width-this.settings.width*h.prefix_offset:this.settings.width,i=this.settings.number?(e=h.border_line_height_number*this.settings.height,h.line_height*e):e=h.border_line_height*this.settings.height,r=x/95,this.id){for(s=wx.createCanvasContext(this.id,this.ctx),this.clear(s),s.setFillStyle(this.settings.color),o=this.settings.number&&this.settings.prefix?this.settings.width*h.prefix_offset:0,f=t.split(""),s.fillRect(o,0,r,e),o+=2*r,s.fillRect(o,0,r,e),o+=r,n=0;n<42;)"1"===f[n]&&s.fillRect(o,0,Math.floor(r)+1,i),o+=r,n++;for(o+=r,s.fillRect(o,0,r,e),o+=2*r,s.fillRect(o,0,r,e),o+=2*r,n=42;n<84;)"1"===f[n]&&s.fillRect(o,0,Math.floor(r)+1,i),o+=r,n++;if(s.fillRect(o,0,r,e),o+=2*r,s.fillRect(o,0,r,e),this.settings.number&&(s.setFontSize(h.font_size*i+"px monospace"),u=this.number.substr(0,1),this.settings.prefix&&s.fillText(u,0,e*h.font_y),l=r*h.text_offset+(this.settings.prefix?h.prefix_offset*this.settings.width:0),this.number.substr(1,6).split("").forEach(function(t,i){return s.fillText(t,l,e*h.font_y),l+=h.font_stretch*x}),l=49*r+(this.settings.prefix?h.prefix_offset*this.settings.width:0)+h.text_offset,this.number.substr(7).split("").forEach(function(t,i){return s.fillText(t,l,e*h.font_y),l+=h.font_stretch*x})),this.settings.debug)for(c=g=0,a=2*r;0<a?g<=x:x<=g;c=g+=a)s.beginPath(),s.rect(c,.4*i,r,.1*i),s.setFillStyle("red"),s.fill();return s.draw(),this.settings.onSuccess.call()}return this.settings.onError.call()},t.prototype.generateCheckDigit=function(t){var e;return e=0,t.split("").forEach(function(t,i){return e+=i%2==0?parseInt(t,10):3*parseInt(t,10)}),10-e%10%10},t.prototype.validate=function(){return parseInt(this.number.slice(-1),10)===this.generateCheckDigit(this.number.slice(0,-1))},t}(),"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=EAN13); |
@ -1 +0,0 @@ |
|||
"use strict";var _barcode=_interopRequireDefault(require("./barcode"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var defalutOptions={number:!0,prefix:!0,color:"black",debug:!1,onValid:function(){},onInvalid:function(){},onSuccess:function(){},onError:function(){}};Component({properties:{width:{type:Number,value:200},height:{type:Number,value:100},number:{type:String,value:"",observer:function(e){this.draw({number:e})}},options:{type:Object,value:defalutOptions},canvasId:{type:String,value:"wux-barcode"}},methods:{draw:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=Object.assign({},this.data,t),i=n.canvasId,r=n.number,o=n.width,u=n.height,a=n.options;new _barcode.default(i,r,Object.assign({width:o,height:u},a),this)}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1 +0,0 @@ |
|||
<canvas class="wux-class" canvas-id="{{ canvasId }}" style="width: {{ width + 'px' }}; height: {{ height + 'px' }};"></canvas> |
File diff suppressed because one or more lines are too long
@ -1,9 +0,0 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"wux-tabs": "../tabs/index", |
|||
"wux-tab": "../tab/index", |
|||
"wux-radio-group": "../radio-group/index", |
|||
"wux-radio": "../radio/index" |
|||
} |
|||
} |
@ -1,41 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}"> |
|||
<view class="{{ classes.hd }}"> |
|||
<wux-tabs |
|||
controlled |
|||
current="{{ activeIndex + '' }}" |
|||
theme="assertive" |
|||
justify="flex-start" |
|||
bind:change="onTabsChange" |
|||
data-active-index="{{ activeIndex + '' }}" |
|||
wx:if="{{ activeOptions.length }}" |
|||
> |
|||
<block wx:for="{{ activeOptions }}" wx:key="index"> |
|||
<wux-tab key="{{ index + '' }}" title="{{ item[fieldNames['label']] + '' }}"></wux-tab> |
|||
</block> |
|||
</wux-tabs> |
|||
</view> |
|||
<view class="{{ classes.bd }}" style="{{ bodyStyle }}"> |
|||
<block wx:for="{{ showOptions }}" wx:for-item="option" wx:for-index="optionIndex" wx:key="optionIndex" wx:if="{{ showOptions.length }}"> |
|||
<view class="{{ classes.innerScroll }}"> |
|||
<scroll-view scroll-y class="wux-scroll-view-class {{ classes.scrollView }}" style="{{ scrollViewStyle }}"> |
|||
<wux-radio-group |
|||
data-option-index="{{ optionIndex }}" |
|||
value="{{ activeValue[optionIndex] || '' }}" |
|||
bodyStyle="{{ { backgroundColor: 'unset' } }}" |
|||
bind:change="onItemSelect" |
|||
wx:if="{{ option.length }}" |
|||
> |
|||
<block wx:for="{{ option }}" wx:key="index"> |
|||
<wux-radio |
|||
color="assertive" |
|||
title="{{ item[fieldNames['label']] + '' }}" |
|||
value="{{ item[fieldNames['value']] }}" |
|||
disabled="{{ item[fieldNames['disabled']] }}" |
|||
/> |
|||
</block> |
|||
</wux-radio-group> |
|||
</scroll-view> |
|||
</view> |
|||
</block> |
|||
</view> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-cascader-view{position:relative;font-size:28rpx;line-height:1.5;color:rgba(0,0,0,.85);background-color:#fff;overflow:hidden}.wux-cascader-view__hd{position:relative;width:100%}.wux-cascader-view__hd::after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1PX;border-bottom:1PX solid #d9d9d9;color:#d9d9d9;transform-origin:0 100%;transform:scaleY(.5)}.wux-cascader-view__bd{width:100%;display:-ms-flexbox;display:flex;background-color:#f5f5f5}.wux-cascader-view__inner-scroll{display:block;height:inherit;width:50%;-ms-flex:0 0 50%;flex:0 0 50%;background-color:#fff}.wux-cascader-view__inner-scroll--full{width:100%;-ms-flex:0 0 100%;flex:0 0 100%;background-color:#fff!important}.wux-cascader-view__inner-scroll:nth-child(2n){background-color:#f5f5f5}.wux-cascader-view__scroll-view{max-height:540rpx} |
@ -1,7 +1,6 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"wux-popup": "../popup/index", |
|||
"wux-cascader-view": "../cascader-view/index" |
|||
"wux-popup": "../popup/index" |
|||
} |
|||
} |
File diff suppressed because one or more lines are too long
@ -1,6 +0,0 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"wux-multi-picker-view": "../multi-picker-view/index" |
|||
} |
|||
} |
@ -1,16 +0,0 @@ |
|||
<wux-multi-picker-view |
|||
id="wux-picker" |
|||
wx:if="{{ cols.length > 0 }}" |
|||
prefixCls="{{ multiPickerPrefixCls }}" |
|||
pickerPrefixCls="{{ pickerPrefixCls }}" |
|||
value="{{ inputValue }}" |
|||
itemHeight="{{ itemHeight }}" |
|||
itemStyle="{{ itemStyle }}" |
|||
indicatorStyle="{{ indicatorStyle }}" |
|||
indicatorClass="{{ indicatorClass }}" |
|||
maskStyle="{{ maskStyle }}" |
|||
maskClass="{{ maskClass }}" |
|||
labelAlign="{{ labelAlign }}" |
|||
options="{{ cols }}" |
|||
bind:valueChange="onValueChange" |
|||
/> |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default={year:"",month:"",day:"",hour:"",minute:"",am:"AM",pm:"PM"};exports.default=_default; |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _en=_interopRequireDefault(require("./en")),_zh_CN=_interopRequireDefault(require("./zh_CN")),_zh_TW=_interopRequireDefault(require("./zh_TW"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default={en:_en.default,zh_CN:_zh_CN.default,zh_TW:_zh_TW.default};exports.default=_default; |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default={year:"年",month:"月",day:"日",hour:"时",minute:"分",am:"上午",pm:"下午"};exports.default=_default; |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default={year:"年",month:"月",day:"日",hour:"時",minute:"分",am:"上午",pm:"下午"};exports.default=_default; |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.props=void 0;var props={prefixCls:{type:String,value:"wux-date-picker"},multiPickerPrefixCls:{type:String,value:"wux-picker"},pickerPrefixCls:{type:String,value:"wux-picker-col"},value:{type:null,value:null},itemHeight:{type:Number,value:34},itemStyle:{type:[String,Object,Array],value:""},indicatorStyle:{type:[String,Object,Array],value:""},indicatorClass:{type:String,value:""},maskStyle:{type:[String,Object,Array],value:""},maskClass:{type:String,value:""},labelAlign:{type:String,value:"center"},mode:{type:String,value:"datetime"},minuteStep:{type:Number,value:1},use12Hours:{type:Boolean,value:!1},minDate:{type:null,value:null},maxDate:{type:null,value:null},minHour:{type:Number,value:0},maxHour:{type:Number,value:23},minMinute:{type:Number,value:0},maxMinute:{type:Number,value:59},lang:{type:String,value:"zh_CN"}};exports.props=props; |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_popupMixin=_interopRequireDefault(require("../helpers/popupMixin")),_props=require("../date-picker-view/props"),_utils=require("./utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var platformProps={labelPropName:"label",format:function(e,r){return(0,_utils.formatDate)(e.date,{datetime:"yyyy-MM-dd hh:mm",date:"yyyy-MM-dd",year:"yyyy",month:"yyyy-MM",time:"hh:mm"}[r.mode])}};(0,_baseComponent.default)({behaviors:[(0,_popupMixin.default)("#wux-picker",platformProps)],properties:_props.props}); |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"wux-popup": "../popup/index", |
|||
"wux-date-picker-view": "../date-picker-view/index" |
|||
} |
|||
} |
@ -1,45 +0,0 @@ |
|||
<wux-popup |
|||
position="bottom" |
|||
visible="{{ popupVisible }}" |
|||
hasHeader="{{ false }}" |
|||
hasFooter="{{ false }}" |
|||
mountOnEnter="{{ false }}" |
|||
safeArea="bottom" |
|||
bind:close="close" |
|||
bind:closed="onClosed" |
|||
> |
|||
<view class="{{ classes.wrap }}" wx:if="{{ mounted }}"> |
|||
<view class="{{ classes.toolbar }}" wx:if="{{ toolbar }}" catchtouchmove="noop"> |
|||
<view class="{{ classes.inner }}"> |
|||
<view class="{{ classes.cancel }}" hover-class="{{ classes.hover }}" bindtap="onCancel" wx:if="{{ toolbar.cancelText }}">{{ toolbar.cancelText }}</view> |
|||
<view class="{{ classes.title }}">{{ toolbar.title }}</view> |
|||
<view class="{{ classes.confirm }}" hover-class="{{ classes.hover }}" bindtap="onConfirm" wx:if="{{ toolbar.confirmText }}">{{ toolbar.confirmText }}</view> |
|||
</view> |
|||
</view> |
|||
<wux-date-picker-view |
|||
id="wux-picker" |
|||
multiPickerPrefixCls="{{ multiPickerPrefixCls }}" |
|||
pickerPrefixCls="{{ pickerPrefixCls }}" |
|||
value="{{ inputValue }}" |
|||
itemHeight="{{ itemHeight }}" |
|||
itemStyle="{{ itemStyle }}" |
|||
indicatorStyle="{{ indicatorStyle }}" |
|||
indicatorClass="{{ indicatorClass }}" |
|||
maskStyle="{{ maskStyle }}" |
|||
maskClass="{{ maskClass }}" |
|||
labelAlign="{{ labelAlign }}" |
|||
mode="{{ mode }}" |
|||
minuteStep="{{ minuteStep }}" |
|||
use12Hours="{{ use12Hours }}" |
|||
minDate="{{ minDate }}" |
|||
maxDate="{{ maxDate }}" |
|||
minHour="{{ minHour }}" |
|||
maxHour="{{ maxHour }}" |
|||
minMinute="{{ minMinute }}" |
|||
maxMinute="{{ maxMinute }}" |
|||
lang="{{ lang }}" |
|||
bind:valueChange="onValueChange" |
|||
/> |
|||
</view> |
|||
</wux-popup> |
|||
<slot></slot> |
@ -1 +0,0 @@ |
|||
.wux-date-picker__toolbar{position:relative;width:100%;font-size:34rpx;line-height:1.5;color:rgba(0,0,0,.85);background-color:#f7f7f8}.wux-date-picker__toolbar::before{content:" ";position:absolute;left:0;top:0;right:0;height:1PX;border-top:1PX solid #d9d9d9;color:#d9d9d9;transform-origin:0 0;transform:scaleY(.5)}.wux-date-picker__inner{height:88rpx;display:-ms-flexbox;display:flex;text-align:center}.wux-date-picker__title{position:absolute;display:block;width:100%;padding:0;font-size:34rpx;font-weight:400;line-height:88rpx;color:rgba(0,0,0,.85);text-align:center;white-space:nowrap}.wux-date-picker__button{position:absolute;box-sizing:border-box;height:88rpx;line-height:88rpx;padding:0 30rpx;z-index:10}.wux-date-picker__button--cancel{left:0;color:#b2b2b2}.wux-date-picker__button--confirm{right:0;color:#33cd5f}.wux-date-picker__button--hover{background-color:#ececec} |
@ -1 +0,0 @@ |
|||
"use strict";function formatDate(e,t){e instanceof Date||(e=new Date(e));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("(".concat(a,")")).test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[a]:("00"+r[a]).substr((""+r[a]).length)));return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatDate=formatDate; |
File diff suppressed because one or more lines are too long
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,17 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}" bindtap="onTap"> |
|||
<block wx:if="{{ !exceeded }}"> |
|||
<text>{{ content }}</text> |
|||
</block> |
|||
<block wx:elif="{{ expanded }}"> |
|||
<text>{{ content }}</text> |
|||
<text class="{{ classes.collapsed }}" wx-if="{{ exceeded && collapseText }}" data-expanded="0" catchtap="setExpanded">{{ collapseText }}</text> |
|||
</block> |
|||
<block wx:else> |
|||
<text>{{ ellipsised.leading }}</text> |
|||
<text class="{{ classes.expanded }}" wx-if="{{ exceeded && expandText }}" data-expanded="1" catchtap="setExpanded">{{ expandText }}</text> |
|||
<text>{{ ellipsised.tailing }}</text> |
|||
</block> |
|||
</view> |
|||
<view class="wux-class {{ classes.container }}" style="{{ containerStyle }}" wx:if="{{ containerStyle }}"> |
|||
{{ innerText }} |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-ellipsis{overflow:hidden;line-height:1.5}.wux-ellipsis--container{position:fixed;left:-9999PX;top:-9999PX;z-index:-1000;height:auto;min-height:auto;max-height:auto;text-overflow:clip;white-space:normal;-webkit-line-clamp:unset;display:block}.wux-ellipsis__collapsed,.wux-ellipsis__expanded{display:inline;color:#387ef5;cursor:pointer} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames4=_interopRequireDefault(require("../helpers/classNames")),_styleToCssString=_interopRequireDefault(require("../helpers/styleToCssString"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,_baseComponent.default)({relations:{"../timeline/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-timeline-item"},content:{type:String,value:""},dotStyle:{type:[String,Object],value:"",observer:function(e){this.setData({extStyle:(0,_styleToCssString.default)(e)})}},custom:{type:Boolean,value:!1}},data:{isLast:!1,isPending:!1,pending:!1,className:"",extStyle:""},computed:{classes:["prefixCls, isLast, pending, isPending, custom",function(e,t,n,a,i){var s;return{wrap:(0,_classNames4.default)(e,(_defineProperty(s={},"".concat(e,"--last"),t),_defineProperty(s,"".concat(e,"--pending"),n),s)),tail:(0,_classNames4.default)("".concat(e,"__tail"),_defineProperty({},"".concat(e,"__tail--pending"),a)),dot:(0,_classNames4.default)("".concat(e,"__dot"),_defineProperty({},"".concat(e,"__dot--custom"),i)),content:"".concat(e,"__content")}}]},methods:{updateIsLastElement:function(e){var t=e.index,n=e.isLast,a=e.isPending,i=e.pending,s=e.position,r=this.data.prefixCls,o="alternate"===s?t%2==0?"".concat(r,"--alternate ").concat(r,"--left"):"".concat(r,"--alternate ").concat(r,"--right"):"right"===s?"".concat(r,"--right"):"";this.setData({isLast:n,isPending:a,pending:i,className:o})}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,10 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }} {{ className }}"> |
|||
<view class="{{ classes.tail }}"></view> |
|||
<view class="{{ classes.dot }}" style="{{ extStyle }}"> |
|||
<slot wx:if="{{ custom }}" name="dot"></slot> |
|||
</view> |
|||
<view class="{{ classes.content }}"> |
|||
<text>{{ content }}</text> |
|||
<slot></slot> |
|||
</view> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-timeline-item{position:relative;padding:0 0 24rpx;margin:0;font-size:28rpx;box-sizing:border-box}.wux-timeline-item__tail{height:100%;border-left:4rpx solid #e8e8e8;position:absolute;left:10rpx;top:0;box-sizing:border-box}.wux-timeline-item__dot{width:24rpx;height:24rpx;background-color:#fff;border-radius:50%;border:4rpx solid #387ef5;position:absolute;color:#387ef5;box-sizing:border-box}.wux-timeline-item__dot--custom{margin-left:2rpx!important;left:10rpx;top:16rpx;border:0;border-radius:0;width:auto;height:auto;background-color:transparent;text-align:center;transform:translate(-50%,-50%)}.wux-timeline-item__content{padding:0 0 20rpx 40rpx;position:relative;top:-10rpx;width:100%;box-sizing:border-box}.wux-timeline-item--last .wux-timeline-item__tail,.wux-timeline-item--pending .wux-timeline-item__tail--pending{display:none}.wux-timeline-item--last.wux-timeline-item--pending .wux-timeline-item__tail{display:block;border-left-style:dotted}.wux-timeline-item--right .wux-timeline-item__tail{left:100%}.wux-timeline-item--right .wux-timeline-item__dot{left:100%;margin-left:-10rpx}.wux-timeline-item--right .wux-timeline-item__content{text-align:right;right:0;left:-40rpx}.wux-timeline-item--alternate.wux-timeline-item--left .wux-timeline-item__tail,.wux-timeline-item--alternate.wux-timeline-item--right .wux-timeline-item__tail{left:50%}.wux-timeline-item--alternate.wux-timeline-item--left .wux-timeline-item__dot,.wux-timeline-item--alternate.wux-timeline-item--right .wux-timeline-item__dot{left:50%;margin-left:-10rpx}.wux-timeline-item--alternate.wux-timeline-item--right .wux-timeline-item__content{text-align:right;right:50%;width:50%}.wux-timeline-item--alternate.wux-timeline-item--left .wux-timeline-item__content{text-align:left;left:50%;width:50%} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({relations:{"../timeline-item/index":{type:"child",observer:function(){this.callDebounceFn(this.updateIsLastElement)}}},properties:{prefixCls:{type:String,value:"wux-timeline"},pending:{type:Boolean,value:!1},position:{type:String,value:"left"}},methods:{updateIsLastElement:function(){var e=this.getRelationNodes("../timeline-item/index");if(0<e.length){var s=e.length-1,t=this.data,a=t.pending,o=t.position;e.forEach(function(e,t){var i=a?t===Math.max(0,s-1):t===s,n=a&&t===s;e.updateIsLastElement({index:t,isLast:i,isPending:n,pending:a,position:o})})}}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,3 +0,0 @@ |
|||
<view class="wux-class {{ prefixCls }}"> |
|||
<slot></slot> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-timeline{position:relative} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_styleToCssString=_interopRequireDefault(require("../helpers/styleToCssString"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({relations:{"../virtual-list/index":{type:"ancestor"}},properties:{prefixCls:{type:String,value:"wux-virtual-item"}},data:{index:0,wrapStyle:""},methods:{updated:function(e,t){this.setData({index:e,wrapStyle:(0,_styleToCssString.default)({height:t})})}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,3 +0,0 @@ |
|||
<view class="wux-class {{ prefixCls }}" style="{{ wrapStyle }}"> |
|||
<slot></slot> |
|||
</view> |
File diff suppressed because one or more lines are too long
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,19 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}" style="{{ !enablePageScroll ? wrapStyle : '' }}"> |
|||
<view class="{{ classes.mask }}" wx:if="{{ disableScroll }}" catchtouchmove="noop"></view> |
|||
<scroll-view |
|||
class="{{ classes.scrollView }}" |
|||
scroll-y="{{ !enablePageScroll && !disableScroll }}" |
|||
upper-threshold="{{ upperThreshold }}" |
|||
lower-threshold="{{ lowerThreshold }}" |
|||
scroll-top="{{ innerScrollOffset }}" |
|||
scroll-with-animation="{{ scrollWithAnimation }}" |
|||
enable-back-to-top="{{ enableBackToTop }}" |
|||
bindscroll="scrollHandler" |
|||
bindscrolltoupper="onScrollToUpper" |
|||
bindscrolltolower="onScrollToLower" |
|||
> |
|||
<view class="{{ classes.scrollArea }}" style="{{ virtual && virtual.style }}"> |
|||
<slot></slot> |
|||
</view> |
|||
</scroll-view> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-virtual-list{position:relative;display:block;overflow:auto;height:auto}.wux-virtual-list__mask{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;background-color:transparent}.wux-virtual-list__scroll-view{width:100%;height:100%} |
@ -1 +0,0 @@ |
|||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getVisibleItemBounds=exports.mapVirtualToProps=void 0;var mapVirtualToProps=function(t,e){var o=t.items,r=t.itemHeight,i=e.startIndex,s=e.endIndex,a=-1<s?o.slice(i,s+1):[],n=o.length*r,p=i*r;return{virtual:{items:a,style:"height: ".concat(n,"px; padding-top: ").concat(p,"px; box-sizing: border-box;")}}};exports.mapVirtualToProps=mapVirtualToProps;var getVisibleItemBounds=function(t,e,o,r,i){var s=Math.max(0,t),a=Math.max(0,Math.floor(s/r));return{startIndex:a,endIndex:Math.min(a+Math.ceil(e/r)+i-1,o)}};exports.getVisibleItemBounds=getVisibleItemBounds; |
@ -1 +0,0 @@ |
|||
"use strict";var _observers,_baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames")),_styleToCssString=_interopRequireDefault(require("../helpers/styleToCssString")),_canvasPolyfill=require("../helpers/canvasPolyfill");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-water-mark"},content:{optionalTypes:[Array,String],type:String,value:""},fontColor:{type:String,value:"rgba(0, 0, 0, .15)"},fontStyle:{type:String,value:"normal"},fontFamily:{type:String,value:"sans-serif"},fontWeight:{type:String,value:"normal"},fontSize:{type:Number,value:14},fullPage:{type:Boolean,value:!0},gapX:{type:Number,value:24},gapY:{type:Number,value:48},width:{type:Number,value:120},height:{type:Number,value:64},image:{type:String,value:""},imageHeight:{type:Number,value:64},imageWidth:{type:Number,value:128},rotate:{type:Number,value:-22},zIndex:{type:Number,value:2e3}},data:{wrapStyle:"",base64Url:""},observers:(_observers={},_defineProperty(_observers,"zIndex, gapX, width, base64Url",function(){this.updateStyle.apply(this,arguments)}),_defineProperty(_observers,"prefixCls, gapX, gapY, rotate, fontStyle, fontWeight, width, height, fontFamily, fontColor, image, imageWidth, imageHeight, content, fontSize",function(){this.setBase64Url.apply(this,arguments)}),_observers),computed:{classes:["prefixCls, fullPage",function(e,t){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--full-page"),t)),canvas:"".concat(e,"__canvas")}}]},methods:{setBase64Url:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=t[0],n=t[1],i=t[2],o=t[3],l=t[4],s=t[5],u=t[6],f=t[7],c=t[8],g=t[9],p=t[10],h=t[11],y=t[12],m=t[13],v=t[14];this.createCanvasContext({prefixCls:r,gapX:n,gapY:i,rotate:o,fontStyle:l,fontWeight:s,width:u,height:f,fontFamily:c,fontColor:g,image:p,imageWidth:h,imageHeight:y,content:m,fontSize:v})},createCanvasContext:function(t){var a=this,e=t.prefixCls,u=t.gapX,f=t.gapY,c=t.rotate,g=t.fontStyle,p=t.fontWeight,h=t.width,y=t.height,m=t.fontFamily,v=t.fontColor,r=t.image,d=t.imageWidth,b=t.imageHeight,_=t.content,S=t.fontSize,n="".concat(e,"__canvas"),i=Promise.resolve();return r&&(i=i.then(function(){return(0,_canvasPolyfill.downloadImage)(r)})),i=(i=i.then(function(e){return function(s){return(0,_canvasPolyfill.getCanvas)({canvasId:n},a).then(function(e){var a=e.getContext("2d"),t=wx.getSystemInfoSync().pixelRatio,r=(u+h)*t,n=(f+y)*t,i=h*t,o=y*t;if(e.width=r,e.height=n,s)return a.translate(i/2,o/2),a.rotate(Math.PI/180*Number(c)),(0,_canvasPolyfill.createImage)({imageWidth:d,imageHeight:b,imageUrl:s},e).then(function(){return(0,_canvasPolyfill.toDataURL)({width:h,height:y},e).then(function(e){return a.restore(),e})});if(_){a.textBaseline="middle",a.textAlign="center",a.translate(i/2,o/2),a.rotate(Math.PI/180*Number(c));var l=Number(S)*t;return a.font="".concat(g," normal ").concat(p," ").concat(l,"px/").concat(o,"px ").concat(m),a.fillStyle=v,Array.isArray(_)?_.forEach(function(e,t){return a.fillText(e,0,t*l)}):a.fillText(_,0,0),(0,_canvasPolyfill.toDataURL)({width:h,height:y},e).then(function(e){return a.restore(),e})}})}(e)})).then(function(e){!function(e){t.base64Url!==e&&(a.setData({base64Url:e}),a.triggerEvent("load",{base64Url:e}))}(e)},function(e){a.triggerEvent("error",e)})},updateStyle:function(e,t,a,r){var n=(0,_styleToCssString.default)({zIndex:e,backgroundSize:"".concat(t+a,"px"),backgroundImage:r?"url('".concat(r,"')"):"unset"});this.setData({wrapStyle:n})}},ready:function(){var e=this.data,t=e.zIndex,a=e.gapX,r=e.width,n=e.base64Url;this.updateStyle(t,a,r,n),this.createCanvasContext(this.data)}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,4 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}" style="{{ wrapStyle }}"> |
|||
<canvas type="2d" id="{{ classes.canvas }}" class="{{ classes.canvas }}" /> |
|||
<slot></slot> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-water-mark{position:absolute;left:0;right:0;top:0;bottom:0;z-index:2000;pointer-events:none;background-repeat:repeat;box-sizing:border-box}.wux-water-mark--full-page{position:fixed}.wux-water-mark__canvas{position:absolute;left:-9999em;top:-9999em;opacity:0;visibility:hidden} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames")),_styleToCssString=_interopRequireDefault(require("../helpers/styleToCssString"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-whitespace"},size:{type:String,value:"default"},bodyStyle:{type:[String,Object],value:"",observer:function(e){this.setData({extStyle:(0,_styleToCssString.default)(e)})}}},data:{extStyle:""},computed:{classes:["prefixCls, size",function(e,t){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--").concat(t),t))}}]},methods:{onTap:function(){this.triggerEvent("click")}}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}" style="{{ extStyle }}" onTap="onTap"></view> |
@ -1 +0,0 @@ |
|||
.wux-whitespace--small{height:10rpx}.wux-whitespace--default{height:20rpx}.wux-whitespace--large{height:30rpx} |
@ -1 +0,0 @@ |
|||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames")),_styleToCssString=_interopRequireDefault(require("../helpers/styleToCssString"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-wingblank"},size:{type:String,value:"default"},bodyStyle:{type:[String,Object],value:"",observer:function(e){this.setData({extStyle:(0,_styleToCssString.default)(e)})}}},data:{extStyle:""},computed:{classes:["prefixCls, size",function(e,t){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--").concat(t),t))}}]}}); |
@ -1,3 +0,0 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -1,3 +0,0 @@ |
|||
<view class="wux-class {{ classes.wrap }}" style="{{ extStyle }}"> |
|||
<slot></slot> |
|||
</view> |
@ -1 +0,0 @@ |
|||
.wux-wingblank--small{margin-left:10rpx;margin-right:10rpx}.wux-wingblank--default{margin-left:20rpx;margin-right:20rpx}.wux-wingblank--large{margin-left:30rpx;margin-right:30rpx} |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 359 KiB |
Loading…
Reference in new issue