TestRestructureWechatLymark.../dist/pages/saleStatistic/sub-common/d8e7d5109977706b25e68314079fe81c.js
2023-05-12 11:35:54 +08:00

2 lines
2.8 KiB
JavaScript

/*! For license information please see d8e7d5109977706b25e68314079fe81c.js.LICENSE.txt */
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/d8e7d5109977706b25e68314079fe81c"],{"./src/components/calendar/ui/date-list/index.tsx":function(e,t,a){a.d(t,{default:function(){return h}});var n=a("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var s=a("./node_modules/@babel/runtime/helpers/esm/createClass.js");var l=a("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");var r=a("./node_modules/@babel/runtime/helpers/esm/inherits.js");var i=a("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var c=a("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");var o=a("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var d=a("./node_modules/classnames/index.js");var u=a.n(d);var m=a("./node_modules/react/cjs/react.production.min.js");var f=a("./src/components/calendar/common/constant.ts");var p=a("./node_modules/react/cjs/react-jsx-runtime.production.min.js");var _;var x=(_={},(0,c["default"])(_,f.TYPE_PRE_MONTH,"pre"),(0,c["default"])(_,f.TYPE_NOW_MONTH,"now"),(0,c["default"])(_,f.TYPE_NEXT_MONTH,"next"),_);var h=function(e){(0,r["default"])(AtCalendarList,e);var t=(0,i["default"])(AtCalendarList);function AtCalendarList(){var e;(0,n["default"])(this,AtCalendarList);for(var a=arguments.length,s=new Array(a),r=0;r<a;r++){s[r]=arguments[r]}e=t.call.apply(t,[this].concat(s));(0,c["default"])((0,l["default"])(e),"handleClick",(function(t){if(typeof e.props.onClick==="function"){e.props.onClick(t)}}));(0,c["default"])((0,l["default"])(e),"handleLongClick",(function(t){if(typeof e.props.onLongClick==="function"){e.props.onLongClick(t)}}));return e}(0,s["default"])(AtCalendarList,[{key:"render",value:function render(){var e=this;var t=this.props.list;if(!t||t.length===0){return null}return(0,p.jsx)(o.View,{className:"at-calendar__list flex",children:t.map((function(t){return(0,p.jsxs)(o.View,{onClick:e.handleClick.bind(e,t),onLongPress:e.handleLongClick.bind(e,t),className:u()("flex__item","flex__item--".concat(x[t.type]),{"flex__item--today":t.isToday,"flex__item--active":t.isActive,"flex__item--selected":t.isSelected,"flex__item--selected-head":t.isSelectedHead,"flex__item--selected-tail":t.isSelectedTail,"flex__item--blur":t.isDisabled||t.type===f.TYPE_PRE_MONTH||t.type===f.TYPE_NEXT_MONTH}),children:[(0,p.jsx)(o.View,{className:"flex__item-container",children:(0,p.jsx)(o.View,{className:"container-text",children:t.text})}),(0,p.jsx)(o.View,{className:"flex__item-extra extra",children:t.marks&&t.marks.length>0?(0,p.jsx)(o.View,{className:"extra-marks",children:t.marks.map((function(e,t){return(0,p.jsx)(o.Text,{className:"mark",children:e.value},t)}))}):null})]},"list-item-".concat(t.value))}))})}}]);return AtCalendarList}(m.Component)}}]);