ftvs-vue2 0.0.13 → 0.0.15
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/lib/cjs/Button.js +1 -1
- package/lib/cjs/FileBag.js +1 -1
- package/lib/cjs/ListSelect.js +1 -1
- package/lib/cjs/Picker.js +1 -1
- package/lib/cjs/Popup.js +1 -1
- package/lib/cjs/SelectAddress.js +1 -1
- package/lib/cjs/index-42a2cd0c.js +1 -0
- package/lib/cjs/index.css +67 -38
- package/lib/cjs/index.js +1 -1
- package/lib/esm/Button.js +1 -1
- package/lib/esm/FileBag.js +1 -1
- package/lib/esm/ListSelect.js +1 -1
- package/lib/esm/Picker.js +1 -1
- package/lib/esm/Popup.js +1 -1
- package/lib/esm/SelectAddress.js +1 -1
- package/lib/esm/index-3a473cdc.js +1 -0
- package/lib/esm/index.css +67 -38
- package/lib/esm/index.js +1 -1
- package/package.json +1 -1
- package/lib/cjs/ListSelect-b31b9dfc.js +0 -1
- package/lib/esm/ListSelect-f0abbab6.js +0 -1
- /package/lib/cjs/{browser-452735a2.js → browser-6bf896d2.js} +0 -0
- /package/lib/esm/{browser-dba31c0f.js → browser-c44022ac.js} +0 -0
package/lib/cjs/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./browser-
|
|
1
|
+
"use strict";var e=require("./browser-6bf896d2.js"),t={name:"Button",props:{type:{type:String,default:"default",desc:"default | danger"}},emits:{click:function(e){return"点击事件"}},methods:{},mounted:function(){}},n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"focusable",rawName:"v-focusable"}],class:[e.$style.button,e.$style[e.type]],on:{click:function(t){return e.$emit("click")}}},[e._t("default")],2)};n._withStripped=!0;var a=function(e){e&&(e("data-v-807922ca_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{button:"packages-Button-button-1dIW",default:"packages-Button-default-Zf6U",danger:"packages-Button-danger-1SaJ"}}))},r=e.normalizeComponent({render:n,staticRenderFns:[]},a,t,undefined,false,undefined,!1,e.createInjector,void 0,void 0);module.exports=r;
|
package/lib/cjs/FileBag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./
|
|
1
|
+
"use strict";var e=require("./index-42a2cd0c.js"),t=require("./Popup.js"),i=require("./ListSelect.js"),n=require("./browser-6bf896d2.js");require("vant"),require("./utils.js"),require("vue"),require("./staticImg.js");var r={name:"FileBag",components:{Popup:t,ListSelect:i},props:{value:{type:Boolean,default:!1,required:!0,desc:"是否展示"},title:{type:String,default:"请选择健康档案",desc:"标题"},codeTitle:{type:String,default:"添加或编辑档案",desc:"二维码标题"}},watch:{value:{handler:function(e){this.show=e,e&&this.inits()},immediate:!0},show:function(e){e||this.$refs.listSelect._tvRest(),this.$emit("input",e)}},emits:{input:function(e){return"内容变化时触发"},change:function(e){return"选中当前项"},list:function(e){return"地址数据返回"}},data:function(){return{list:[],QrPath:"",show:!1}},methods:{change:function(e){this.show=!1,this.$emit("change",e)},inits:function(){var t=this;return e._asyncToGenerator(e.regenerator.mark(function i(){var n,r;return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$ftvsApiConfigInfo.fileBagFn){e.next=2;break}return e.next=1,t.$ftvsApiConfigInfo.fileBagFn();case 1:n=e.sent,t.list=n||[],t.$emit("list",t.list);case 2:t.$ftvsApiConfigInfo.qrCodePathFn&&(r=t.$ftvsApiConfigInfo.qrCodePathFn(),t.QrPath=r.weAppHealthRecordPath);case 3:case"end":return e.stop()}},i)}))()}}},s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("Popup",{class:e.$style.popup,model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[i("div",{class:e.$style["file-bag"]},[i("ListSelect",{ref:"listSelect",attrs:{list:e.list,qrPath:e.QrPath,title:e.title,codeTitle:e.codeTitle},on:{change:e.change}})],1)])};s._withStripped=!0;var a=function(e){e&&(e("data-v-67218a36_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-FileBag-popup-Hc07","file-bag":"packages-FileBag-file-bag-xapd"}}))},o=n.normalizeComponent({render:s,staticRenderFns:[]},a,r,undefined,false,undefined,!1,n.createInjector,void 0,void 0);module.exports=o;
|
package/lib/cjs/ListSelect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./
|
|
1
|
+
"use strict";var e=require("./index-42a2cd0c.js"),t=require("./utils.js"),n=require("./staticImg.js"),i=require("./browser-6bf896d2.js");function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}require("vue");var r={name:"ListSelect",props:{value:{type:Object,default:function(){return{}},desc:"当前选中项"},list:{type:Array,required:!0,desc:"属性说明"},title:{type:String,default:"",desc:"标题"},codeTitle:{type:String,default:"",desc:"二维码标题"},qrPath:{type:String,default:"",desc:"二维码链接"}},watch:{qrPath:{handler:function(e){this.initQr(e)},immediate:!0},value:{handler:function(e){var t=this.findObjectIndex(this.list,e);t>-1&&(this.selectIndex=t)},immediate:!0},list:{handler:function(e){e.length&&this.inits()},immediate:!0}},emits:{change:function(e){return"选中当前项"},input:function(e){return"内容变化时触发"},onFocus:function(e){return"获得当前焦点所在项"}},slots:{item:{desc:"列表元素"},hint:{desc:"二维码下方提示"}},data:function(){var e=t.ftvsTvScope.apply(this);return{ftvsTvInit:e.ftvsTvInit,ftvsTvReset:e.ftvsTvReset,qrcodeThis:void 0,QRCode:null,selectIndex:null,staticCodeIcon:n.staticCodeIcon,selected:n.staticSelectedIcon,wxIcon:n.staticWxIcon}},methods:{initQr:function(t){var n=this;return e._asyncToGenerator(e.regenerator.mark(function i(){var r;return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==n.QRCode){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return s(require("qrcodejs2"))});case 1:n.QRCode=e.sent.default;case 2:if(t){e.next=3;break}return e.abrupt("return");case 3:r={text:t,width:314,height:316,colorDark:"#000000",colorLight:"#ffffff",correctLevel:n.QRCode.CorrectLevel.H},void 0!==n.qrcodeThis?(n.qrcodeThis.clear(),n.qrcodeThis.makeCode(t)):n.qrcodeThis=new n.QRCode(n.$refs.ftvsQrCode,r),n.$nextTick(function(){n.forceRepaint(n.$refs.ftvsQrCode)});case 4:case"end":return e.stop()}},i)}))()},forceRepaint:function(e){e.style.display="none",e.offsetHeight,e.style.display="flex"},findObjectIndex:function(e,t){return e.findIndex(function(e){return Object.keys(t).every(function(n){return e[n]===t[n]})})},_tvRest:function(){this.ftvsTvReset()},change:function(e,t){this.selectIndex=t,this.$emit("input",e),this.$emit("change",{item:e,index:t}),this.ftvsTvReset()},onFocus:function(e,t){this.$emit("onFocus",{item:e,index:t})},inits:function(){var t=this;return e._asyncToGenerator(e.regenerator.mark(function n(){return e.regenerator.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.$nextTick(e._asyncToGenerator(e.regenerator.mark(function n(){return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.ftvsTvInit({distanceToCenter:!0,scrollEl:t.$refs.left,limitingEl:t.$refs.left},function(){var e=t.$refs.left,n=e?e.querySelectorAll(".".concat(t.$style.item)):null;n&&n.length&&t.$tv.next(n[t.selectIndex||0])});case 1:case"end":return e.stop()}},n)})));case 1:case"end":return n.stop()}},n)}))()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.$style.list_select},[e.title?n("div",{class:e.$style.title},[e._v(e._s(e.title))]):e._e(),e._v(" "),n("div",{class:e.$style.content},[e.list.length?n("div",{ref:"left",class:e.$style.left},e._l(e.list,function(t,i){return n("div",{directives:[{name:"focusable",rawName:"v-focusable"}],key:i+"-ftvs-file-bg-list",class:e.$style.item,on:{click:function(n){return e.change(t,i)},onFocus:function(n){return e.onFocus(t,i)}}},[n("div",{class:e.$style.item_l},[e._t("item",function(){return[n("div",[e._v("\n "+e._s(t.memberName)+" "+e._s(t.sexText)+" "+e._s(t.age)+"岁\n ")])]},{item:t,index:i})],2),e._v(" "),i===e.selectIndex?n("img",{class:e.$style.selected,attrs:{src:e.selected}}):e._e()])}),0):e._e(),e._v(" "),n("div",{class:e.$style.right,style:{background:"url('"+e.staticCodeIcon+"')"}},[n("div",{class:e.$style.r_div},[n("div",{class:e.$style.r_title},[e._v(e._s(e.codeTitle))]),e._v(" "),n("div",{ref:"ftvsQrCode",class:e.$style.img_code}),e._v(" "),e._t("hint",function(){return[n("div",{class:e.$style.r_hint},[n("img",{attrs:{src:e.wxIcon}}),e._v("\n 使用微信扫码\n ")])]})],2)])])])};c._withStripped=!0;var a=function(e){e&&(e("data-v-5ffffc7d_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{list_select:"packages-ListSelect-list_select-83QA",title:"packages-ListSelect-title-eOZz",content:"packages-ListSelect-content-g6tF",left:"packages-ListSelect-left-3xR9",item:"packages-ListSelect-item-1TtQ",item_l:"packages-ListSelect-item_l-2OUN",selected:"packages-ListSelect-selected-1V7w",right:"packages-ListSelect-right-3GvU",r_div:"packages-ListSelect-r_div-2m0w",img_code:"packages-ListSelect-img_code-24n2",r_title:"packages-ListSelect-r_title-12wf",r_hint:"packages-ListSelect-r_hint-189D"}}))},o=i.normalizeComponent({render:c,staticRenderFns:[]},a,r,undefined,false,undefined,!1,i.createInjector,void 0,void 0);module.exports=o;
|
package/lib/cjs/Picker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var n=require("./index-42a2cd0c.js"),e=require("vant"),t=require("./utils.js"),o=require("./browser-6bf896d2.js");function s(n){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(n)}function i(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return r(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var o=0,s=function(){};return{s:s,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(n){throw n},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return u=n.done,n},e:function(n){l=!0,i=n},f:function(){try{u||null==t.return||t.return()}finally{if(l)throw i}}}}function r(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}require("vue");var u={name:"Picker",components:{vantPicker:e.Picker,vanLoading:e.Loading},props:{valueKey:{type:String,default:"text",desc:"选项对象中,选项文字对应的键名"},idKey:{type:String,default:"id",desc:"选项对象中,唯一标识符,主要用于异步获取列数据"},deep:{type:Number,default:2,desc:"异步获取树状数据,层级默认为2,从1开始,目前仅支持2级树形结构"},columns:{type:[Array,Function],required:!0,desc:"对象数组,配置每一列显示的数据"}},emits:{confirm:function(n){return"最后一列选项改变时触发,单列:Picker 实例,选中值,选中值对应的索引\n多列:Picker 实例,所有列选中值,当前列对应的索引"}},data:function(){var n=t.ftvsTvScope.apply(this);return{ftvsTvInit:n.ftvsTvInit,ftvsTvReset:n.ftvsTvReset,loading:!1,vantColumns:[],itemHeight:t.ftvsPxToRem(130),isMove:!1,visibleItemCount:6,tvColumns:[],columnsNum:null,nowColumnsIndex:0,columnsType:"singleRow",isTree:!1}},computed:{nowColumns:function(){return this.tvColumns[this.nowColumnsIndex]},isSyncFn:function(){return"function"==typeof this.columns}},watch:{columns:{handler:function(n){var e=this;"function"!=typeof n?n.length&&(this.vantColumns=n,this.$nextTick(function(){e.init()})):this.getSyncFun(n)},immediate:!0,deep:!0}},methods:{setPracticalIndex:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.getColumnsIndexes(),t=n||this.nowColumnsIndex;this.tvColumns[t].focusIndex=e[t]||null},selectVal:function(n){var e,t=this,o=n.target;if(!this.loading){var s=o.parentNode,i=s.parentNode,r=null===(e=Array.from(null==i?void 0:i.children))||void 0===e?void 0:e.indexOf(s),u=Number(o.parentNode.parentNode.getAttribute("data-tv-index"));this.nowColumnsIndex=u,this.$set(this.tvColumns[u],"focusIndex",r),this.setNowColumnsFocus(),this.$refs.vantPicker.setColumnIndex(this.nowColumnsIndex,this.nowColumns.focusIndex),this.isTree&&this.resetColumnFocusIndex();var l,a=this.$refs.vantPicker.getValues();l="singleRow"===this.columnsType?a[0]:this.isTree?a.map(function(n){return n&&n[t.valueKey]}):a,this.emitVal(l,a)}},emitVal:function(n,e){var t=this;if("function"==typeof this.columns&&this.nowColumnsIndex+1<this.deep)this.updateVantColumns();else{if(this.nowColumnsIndex+1===this.columnsNum){var o=[];try{o=this.$refs.vantPicker.getColumnValue(this.nowColumnsIndex)}catch(n){}var s={currentOption:o,selectedValuesKeys:n,selectedValues:e,selectedOptions:this.getColumnValues(this.nowColumnsIndex),selectedIndexes:this.getColumnsIndexes()};this.$emit("confirm",s),this.ftvsTvReset()}var i=this.tvColumns[this.nowColumnsIndex+1];i&&i.dom&&this.$nextTick(function(){t.updateColumns(i.dom,t.nowColumnsIndex+1,i.focusIndex)})}},toUp:function(){this.nowColumns.focusIndex>0&&(this.tvColumns[this.nowColumnsIndex].focusIndex--,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},toLeft:function(){this.nowColumnsIndex>0&&(this.nowColumnsIndex--,this.setPracticalIndex(this.nowColumnsIndex+1),this.setNowColumnsFocus())},toRight:function(){this.nowColumnsIndex<this.tvColumns.length-1&&(this.nowColumnsIndex++,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},toDown:function(){this.nowColumns.focusIndex<this.nowColumns.focusNum-1&&(this.tvColumns[this.nowColumnsIndex].focusIndex++,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},getColumnsIndexes:function(){return this.$refs.vantPicker.getIndexes()},getColumnValues:function(n){return this.$refs.vantPicker.getColumnValues(n)},resetColumnFocusIndex:function(){for(var n=this.nowColumnsIndex;n<this.tvColumns.length-1;n++)this.tvColumns[n+1].focusIndex=0},move:function(n){var e=this,t=this.$refs.vantPicker,o=t.children[this.nowColumnsIndex].options,s=t.children[this.nowColumnsIndex].itemHeight,i=function(n,e){var t,o,s;t=e,o=0,s=n.length;for(var i=e=Math.min(Math.max(t,o),s);i<n.length;i++)if(!n[i].disabled)return i;for(var r=e-1;r>=0;r--)if(!n[r].disabled)return r;return 0},r=function(n){return-i(o,n)*s+s*(e.visibleItemCount-1)/2}(n);this.nowColumns.dom.style.webkitTtransitionDuration="0ms",this.nowColumns.dom.style.webkitTransitionProperty="none",this.nowColumns.dom.style.webkitTransform="translate3d(0px, ".concat(r,"px, 0px)"),this.$forceUpdate()},getAndUpdateChildren:function(n,e,t){var o=this,s=function(n){var r,u=i(n);try{for(u.s();!(r=u.n()).done;){var l=r.value;if(l[o.idKey]===e)return t&&o.$set(l,"children",t),l;if(l.children){var a=s(l.children);if(a)return a}}}catch(n){u.e(n)}finally{u.f()}return null},r=s(n);return r&&r.children||[]},updateVantColumns:function(){var e=this;return n._asyncToGenerator(n.regenerator.mark(function t(){var o,s,i;return n.regenerator.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isSyncFn&&e.nowColumnsIndex+1!==e.deep){n.next=1;break}return n.abrupt("return");case 1:if(o=e.$refs.vantPicker.getColumnValues(e.nowColumnsIndex)[e.nowColumns.focusIndex],s=e.getAndUpdateChildren(e.vantColumns,o[e.idKey]),i=[],s.length){n.next=3;break}return e.loading=!0,n.next=2,e.columns({level:e.nowColumnsIndex+1,item:o});case 2:i=n.sent,n.next=4;break;case 3:i=s;case 4:e.getAndUpdateChildren(e.vantColumns,o[e.idKey],i),e.$refs.vantPicker.setColumnValues(e.nowColumnsIndex+1,i),e.$nextTick(function(){e.updateTvColumns()}),e.loading=!1;case 5:case"end":return n.stop()}},t)}))()},setNowColumnsFocus:function(){var n=this.tvColumns[this.nowColumnsIndex];null===n.focusIndex&&(n.focusIndex=this.getColumnsIndexes()[this.nowColumnsIndex]);var e=n.dom.querySelectorAll("li")[n.focusIndex].children[0];this.$tv.next(e),this.isMove=!0},setColumnsType:function(){var n=this.vantColumns[0];"object"===s(n)&&(n.hasOwnProperty("children")||n.hasOwnProperty("values"))&&(n.hasOwnProperty("children")&&(this.isTree=!0),this.columnsType="multiColumn")},againFocus:function(){this.isMove&&(this.ftvsTvInit(),this.setNowColumnsFocus())},updateColumns:function(n,e){this.tvColumns[e].focusNum=n.querySelectorAll("li").length},getSyncFun:function(e){var t=this;return n._asyncToGenerator(n.regenerator.mark(function o(){var s;return n.regenerator.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=1,e({level:0,item:null});case 1:(s=n.sent)&&s[0]&&!s[0].hasOwnProperty("children")?t.vantColumns=s.map(function(n){return n.children=[],n}):t.vantColumns=s,t.setColumnsType(),t.$nextTick(function(){t.init(),t.updateVantColumns()});case 2:case"end":return n.stop()}},o)}))()},updateTvColumns:function(){var n="singleRow"===this.columnsType,e=this.$refs.vantPicker.$el.querySelectorAll("ul");this.columnsNum=n?1:e.length;for(var t=0;t<e.length;t++){var o=e[t];o.setAttribute("data-tv-index",t);var s=this.tvColumns[t]?this.tvColumns[t]:{};s.focusNum!==o.querySelectorAll("li").length&&this.$set(this.tvColumns,t,{focusIndex:s.focusIndex>=0?s.focusIndex:null,focusNum:o.querySelectorAll("li").length,dom:o})}},init:function(){this.ftvsTvInit(),this.setColumnsType(),this.updateTvColumns(),this.setNowColumnsFocus()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},l=u,a=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("vantPicker",{ref:"vantPicker",class:n.$style.picker,attrs:{columns:n.vantColumns,"value-key":n.valueKey,"item-height":n.itemHeight},scopedSlots:n._u([{key:"option",fn:function(e){return[t("div",{directives:[{name:"focusable",rawName:"v-focusable"}],class:n.$style.column_item,on:{up:n.toUp,left:n.toLeft,right:n.toRight,down:n.toDown,click:n.selectVal}},[t("span",["string"==typeof e||"number"==typeof e?[n._v("\n "+n._s(e)+"\n ")]:[n._v(n._s(e[n.valueKey]))]],2)])]}}])}),n._v(" "),n.loading?t("div",{class:n.$style.loading},[t("vanLoading",{attrs:{size:"46"}})],1):n._e()],1)};a._withStripped=!0;var c=function(n){n&&(n("data-v-08eb1abc_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{loading:"packages-Picker-loading-1W4w",picker:"packages-Picker-picker-3oJS",column_item:"packages-Picker-column_item-3Wh4"}}))},m=o.normalizeComponent({render:a,staticRenderFns:[]},c,l,undefined,false,undefined,!1,o.createInjector,void 0,void 0);module.exports=m;
|
package/lib/cjs/Popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("vant"),o=require("./browser-
|
|
1
|
+
"use strict";var e=require("vant"),o=require("./browser-6bf896d2.js"),t={name:"Popup",components:{vantPopup:e.Popup},props:{value:{type:Boolean,required:!0,desc:"属性说明"},position:{type:String,default:"center",desc:"弹出位置,可选值为 top bottom right left"},closeable:{type:Boolean,default:!1,desc:"是否显示关闭图标"},getContainer:{type:String,desc:"挂载节点, 使用 get-container 属性的组件不能为根节点"},overlay:{type:Boolean,default:!0,desc:"是否显示遮罩层"},duration:{type:[Number,String],default:.3,desc:"动画时长,单位秒"},overlayClass:{type:String,desc:"自定义遮罩层类名"},overlayStyle:{type:Object,default:function(){return{backgroundColor:"#151d2b"}},desc:"自定义遮罩层样式"},closeOnPopstate:{type:Boolean,default:!1,desc:"是否在页面回退时自动关闭"},closeOnClickOverlay:{type:Boolean,default:!1,desc:"是否在点击遮罩层后关闭"}},emits:{clickCloseIcon:function(e){return"点击关闭图标时触发"},click:function(e){return"点击弹出层时触发"},clickOverlay:function(){return"点击遮罩层时触发"},open:function(){return"打开弹出层时触发"},close:function(){return"关闭弹出层时触发"},opened:function(){return"打开弹出层且动画结束后触发"},closed:function(){return"关闭弹出层且动画结束后触发"}},data:function(){return{show:!1}},watch:{value:{handler:function(e){this.show=e},immediate:!0},show:{handler:function(e){this.$emit("input",e)}}},methods:{clickCloseIcon:function(e){this.$emit("clickCloseIcon",e)},click:function(e){this.$emit("click",e)},clickOverlay:function(){this.$emit("clickOverlay")},open:function(){this.$emit("open")},close:function(){this.$emit("close")},opened:function(){this.$emit("opened")},closed:function(){this.$emit("closed")}},mounted:function(){}},n=function(){var e=this,o=e.$createElement;return(e._self._c||o)("vantPopup",{class:e.$style.popup,attrs:{position:e.position,closeable:e.closeable,"get-container":e.getContainer,overlay:e.overlay,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,"close-on-popstate":e.closeOnPopstate,"close-on-click-overlay":e.closeOnClickOverlay,duration:e.duration},on:{"click-close-icon":e.clickCloseIcon,click:e.click,"click-overlay":e.clickOverlay,open:e.open,close:e.close,opened:e.opened,closed:e.closed},model:{value:e.show,callback:function(o){e.show=o},expression:"show"}},[e._t("default")],2)};n._withStripped=!0;var c=function(e){e&&(e("data-v-ba0ffae0_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-Popup-popup-1uSf"}}))},l=o.normalizeComponent({render:n,staticRenderFns:[]},c,t,undefined,false,undefined,!1,o.createInjector,void 0,void 0);module.exports=l;
|
package/lib/cjs/SelectAddress.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./
|
|
1
|
+
"use strict";var e=require("./index-42a2cd0c.js"),t=require("vue"),n=require("./Popup.js"),s=require("./ListSelect.js"),r=require("./staticImg.js"),i=require("./browser-6bf896d2.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("vant"),require("./utils.js");var c=a(t),o=function(){var t=e._asyncToGenerator(e.regenerator.mark(function t(){var n;return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],!c.default.prototype.$ftvsApiConfigInfo.selectAddressFn){e.next=1;break}return e.next=1,c.default.prototype.$ftvsApiConfigInfo.selectAddressFn().then(function(e){n=e||[]});case 1:return e.abrupt("return",n);case 2:case"end":return e.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),u={name:"SelectAddress",components:{Popup:n,ListSelect:s},props:{value:{type:Boolean,default:!1,required:!0,desc:"是否展示"},title:{type:String,default:"收货地址",desc:"标题"},codeTitle:{type:String,default:"添加或编辑地址",desc:"二维码标题"}},watch:{value:{handler:function(e){this.show=e,e&&this.inits()},immediate:!0},show:function(e){e||this.$refs.listSelect._tvRest(),this.$emit("input",e)}},emits:{input:function(e){return"内容变化时触发"},change:function(e){return"选中当前项"},list:function(e){return"地址数据返回"}},data:function(){return{nowIndex:null,staticSiteSelectIcon:r.staticSiteSelectIcon,staticSiteUnSelectIcon:r.staticSiteUnSelectIcon,list:[],QrPath:"",show:!1}},getList:function(){return e._asyncToGenerator(e.regenerator.mark(function t(){return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,o();case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},t)}))()},methods:{getList:o,change:function(e){this.show=!1,this.$emit("change",e)},onFocus:function(e){var t=e.index;this.nowIndex=t},inits:function(){var t=this;return e._asyncToGenerator(e.regenerator.mark(function n(){var s;return e.regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o().then(function(e){t.list=e,t.$emit("list",t.list)}),t.$ftvsApiConfigInfo.qrCodePathFn&&(s=t.$ftvsApiConfigInfo.qrCodePathFn(),t.QrPath=s.weAppSitePath);case 1:case"end":return e.stop()}},n)}))()}}},d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popup",{class:e.$style.popup,model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("div",{class:e.$style.select_address},[n("ListSelect",{ref:"listSelect",attrs:{list:e.list,qrPath:e.QrPath,title:e.title,codeTitle:e.codeTitle},on:{onFocus:e.onFocus,change:e.change},scopedSlots:e._u([{key:"item",fn:function(t){var s=t.item,r=t.index;return[n("div",{class:[e.$style.item_title]},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.nowIndex===r,expression:"nowIndex === index"}],attrs:{src:e.staticSiteSelectIcon}}),e._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:e.nowIndex!==r,expression:"nowIndex !== index"}],attrs:{src:e.staticSiteUnSelectIcon}}),e._v(" "),n("div",[e._v("\n "+e._s(s.detail)+"\n ")])]),e._v(" "),n("div",{class:[e.$style.item_content,e.nowIndex===r&&e.$style.item_active]},[n("span",[e._v(e._s(s.receiver))]),e._v(" "),n("span",[e._v(e._s(s.phoneNo))]),e._v(" "),s.defaultFlag?n("span",{class:e.$style.def_text},[e._v("默认")]):e._e()])]}}])})],1)])};d._withStripped=!0;var l=function(e){e&&(e("data-v-b8cbe966_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-SelectAddress-popup-23a2",select_address:"packages-SelectAddress-select_address-3v1d",item_title:"packages-SelectAddress-item_title-1zWy",item_content:"packages-SelectAddress-item_content-kXYo",def_text:"packages-SelectAddress-def_text-2xeo",item_active:"packages-SelectAddress-item_active-3Xn3"}}))},p=i.normalizeComponent({render:d,staticRenderFns:[]},l,u,undefined,false,undefined,!1,i.createInjector,void 0,void 0);module.exports=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var r={exports:{}};!function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:O(t,e,c)}),a}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s="suspendedStart",p="suspendedYield",y="executing",v="completed",g={};function d(){}function m(){}function w(){}var x={};h(x,a,function(){return this});var b=Object.getPrototypeOf,L=b&&b(b(T([])));L&&L!==e&&n.call(L,a)&&(x=L);var E=w.prototype=d.prototype=Object.create(x);function _(t){["next","throw","return"].forEach(function(r){h(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function e(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(f).then(function(t){h.value=t,a(h)},function(t){return e("throw",t,a,c)})}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r(function(r,o){e(t,n,r,o)})}return i=i?i.then(o,o):o()}})}function O(t,r,e){var n=s;return function(o,i){if(n===y)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=G(a,e);if(c){if(c===g)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=y;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?v:p,u.arg===g)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}function G(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,G(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=l(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:r,done:!0}}return m.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=h(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},_(j.prototype),h(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new j(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},_(E),h(E,u,"Generator"),h(E,a,function(){return this}),h(E,"toString",function(){return"[object Generator]"}),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(r);var e=r.exports;exports._asyncToGenerator=function(r){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=r.apply(e,n);function c(r){t(a,o,i,c,u,"next",r)}function u(r){t(a,o,i,c,u,"throw",r)}c(void 0)})}},exports.regenerator=e;
|
package/lib/cjs/index.css
CHANGED
|
@@ -126,44 +126,6 @@
|
|
|
126
126
|
border-radius: 24px;
|
|
127
127
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
128
128
|
}
|
|
129
|
-
.packages-Popup-popup-1uSf {
|
|
130
|
-
background-color: transparent !important;
|
|
131
|
-
}
|
|
132
|
-
.packages-Picker-picker-3oJS {
|
|
133
|
-
background-color: transparent !important;
|
|
134
|
-
}
|
|
135
|
-
.packages-Picker-picker-3oJS .van-picker__mask,
|
|
136
|
-
.packages-Picker-picker-3oJS .van-hairline-unset--top-bottom {
|
|
137
|
-
display: none !important;
|
|
138
|
-
}
|
|
139
|
-
.packages-Picker-picker-3oJS .van-picker-column {
|
|
140
|
-
padding: 0 10px;
|
|
141
|
-
}
|
|
142
|
-
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div {
|
|
143
|
-
background: #363639;
|
|
144
|
-
color: rgb(255, 255, 255);
|
|
145
|
-
}
|
|
146
|
-
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div[focused] {
|
|
147
|
-
background: #ffffff;
|
|
148
|
-
color: rgba(0, 0, 0, 0.9);
|
|
149
|
-
}
|
|
150
|
-
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 {
|
|
151
|
-
width: 300px;
|
|
152
|
-
height: 110px;
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: center;
|
|
156
|
-
border-radius: 55px;
|
|
157
|
-
font-family: MiSans-Medium;
|
|
158
|
-
font-weight: 500;
|
|
159
|
-
font-size: 32px;
|
|
160
|
-
color: rgba(255, 255, 255, 0.7);
|
|
161
|
-
line-height: 42px;
|
|
162
|
-
}
|
|
163
|
-
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] {
|
|
164
|
-
background: #ffffff;
|
|
165
|
-
color: rgba(0, 0, 0, 0.9);
|
|
166
|
-
}
|
|
167
129
|
.packages-SelectAddress-popup-23a2 {
|
|
168
130
|
background-color: transparent !important;
|
|
169
131
|
}
|
|
@@ -216,6 +178,73 @@
|
|
|
216
178
|
.packages-SelectAddress-select_address-3v1d .packages-SelectAddress-item_active-3Xn3 {
|
|
217
179
|
color: rgba(0, 0, 0, 0.9);
|
|
218
180
|
}
|
|
181
|
+
.packages-Picker-loading-1W4w {
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
position: absolute;
|
|
189
|
+
left: 0;
|
|
190
|
+
top: 0;
|
|
191
|
+
}
|
|
192
|
+
.packages-Picker-picker-3oJS {
|
|
193
|
+
background-color: transparent !important;
|
|
194
|
+
}
|
|
195
|
+
.packages-Picker-picker-3oJS .van-picker__mask,
|
|
196
|
+
.packages-Picker-picker-3oJS .van-hairline-unset--top-bottom {
|
|
197
|
+
display: none !important;
|
|
198
|
+
}
|
|
199
|
+
.packages-Picker-picker-3oJS .van-picker-column {
|
|
200
|
+
padding: 0 10px;
|
|
201
|
+
}
|
|
202
|
+
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div {
|
|
203
|
+
background: #363639;
|
|
204
|
+
color: rgb(255, 255, 255);
|
|
205
|
+
}
|
|
206
|
+
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div[focused] {
|
|
207
|
+
background: #ffffff;
|
|
208
|
+
color: rgba(0, 0, 0, 0.9);
|
|
209
|
+
}
|
|
210
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 {
|
|
211
|
+
width: 320px;
|
|
212
|
+
height: 110px;
|
|
213
|
+
border-radius: 55px;
|
|
214
|
+
font-family: MiSans-Medium;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
font-size: 32px;
|
|
217
|
+
color: rgba(255, 255, 255, 0.7);
|
|
218
|
+
line-height: 42px;
|
|
219
|
+
padding: 0 16px;
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
225
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 span {
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
max-width: 100%;
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] {
|
|
233
|
+
background: #ffffff;
|
|
234
|
+
color: rgba(0, 0, 0, 0.9);
|
|
235
|
+
}
|
|
236
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] span {
|
|
237
|
+
white-space: normal !important;
|
|
238
|
+
display: -webkit-box !important;
|
|
239
|
+
-webkit-line-clamp: 2;
|
|
240
|
+
-webkit-box-orient: vertical;
|
|
241
|
+
text-overflow: unset !important;
|
|
242
|
+
line-height: 36px;
|
|
243
|
+
max-height: 72px;
|
|
244
|
+
}
|
|
245
|
+
.packages-Popup-popup-1uSf {
|
|
246
|
+
background-color: transparent !important;
|
|
247
|
+
}
|
|
219
248
|
.packages-Button-button-1dIW {
|
|
220
249
|
display: inline-block;
|
|
221
250
|
font-family: MiSans-regular;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Popup.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Popup.js"),r=require("./Picker.js"),t=require("./SelectAddress.js"),n=require("./ListSelect.js");require("vue");var i=require("./Button.js"),s=require("./FileBag.js");require("vant"),require("./browser-6bf896d2.js"),require("./index-42a2cd0c.js"),require("./utils.js"),require("./staticImg.js"),e.install=function(r){r.component(e.name,e)};var o=e;r.install=function(e){e.component(r.name,r)};var u=r;t.install=function(e){e.component(t.name,t)};var a=t;n.install=function(e){e.component(n.name,n)};var c=n;i.install=function(e){e.component(i.name,i)};var l=i;s.install=function(e){e.component(s.name,s)};var p=s;exports.Button=l,exports.FileBag=p,exports.ListSelect=c,exports.Picker=u,exports.Popup=o,exports.SelectAddress=a;
|
package/lib/esm/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,c as t}from"./browser-
|
|
1
|
+
import{n as e,c as t}from"./browser-c44022ac.js";var a={name:"Button",props:{type:{type:String,default:"default",desc:"default | danger"}},emits:{click:function(e){return"点击事件"}},methods:{},mounted:function(){}},n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"focusable",rawName:"v-focusable"}],class:[e.$style.button,e.$style[e.type]],on:{click:function(t){return e.$emit("click")}}},[e._t("default")],2)};n._withStripped=!0;var d=e({render:n,staticRenderFns:[]},function(e){e&&(e("data-v-807922ca_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{button:"packages-Button-button-1dIW",default:"packages-Button-default-Zf6U",danger:"packages-Button-danger-1SaJ"}}))},a,undefined,false,undefined,!1,t,void 0,void 0);export{d as default};
|
package/lib/esm/FileBag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,
|
|
1
|
+
import{_ as t,r as e}from"./index-3a473cdc.js";import i from"./Popup.js";import n from"./ListSelect.js";import{n as s,c as a}from"./browser-c44022ac.js";import"vant";import"./utils.js";import"vue";import"./staticImg.js";var o={name:"FileBag",components:{Popup:i,ListSelect:n},props:{value:{type:Boolean,default:!1,required:!0,desc:"是否展示"},title:{type:String,default:"请选择健康档案",desc:"标题"},codeTitle:{type:String,default:"添加或编辑档案",desc:"二维码标题"}},watch:{value:{handler:function(t){this.show=t,t&&this.inits()},immediate:!0},show:function(t){t||this.$refs.listSelect._tvRest(),this.$emit("input",t)}},emits:{input:function(t){return"内容变化时触发"},change:function(t){return"选中当前项"},list:function(t){return"地址数据返回"}},data:function(){return{list:[],QrPath:"",show:!1}},methods:{change:function(t){this.show=!1,this.$emit("change",t)},inits:function(){var i=this;return t(e.mark(function t(){var n,s;return e.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!i.$ftvsApiConfigInfo.fileBagFn){t.next=2;break}return t.next=1,i.$ftvsApiConfigInfo.fileBagFn();case 1:n=t.sent,i.list=n||[],i.$emit("list",i.list);case 2:i.$ftvsApiConfigInfo.qrCodePathFn&&(s=i.$ftvsApiConfigInfo.qrCodePathFn(),i.QrPath=s.weAppHealthRecordPath);case 3:case"end":return t.stop()}},t)}))()}}},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Popup",{class:t.$style.popup,model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{class:t.$style["file-bag"]},[i("ListSelect",{ref:"listSelect",attrs:{list:t.list,qrPath:t.QrPath,title:t.title,codeTitle:t.codeTitle},on:{change:t.change}})],1)])};r._withStripped=!0;var c=s({render:r,staticRenderFns:[]},function(t){t&&(t("data-v-67218a36_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-FileBag-popup-Hc07","file-bag":"packages-FileBag-file-bag-xapd"}}))},o,undefined,false,undefined,!1,a,void 0,void 0);export{c as default};
|
package/lib/esm/ListSelect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{_ as e,r as t}from"./index-3a473cdc.js";import{ftvsTvScope as s}from"./utils.js";import{staticCodeIcon as i,staticSelectedIcon as n,staticWxIcon as c}from"./staticImg.js";import{n as r,c as l}from"./browser-c44022ac.js";import"vue";var a={name:"ListSelect",props:{value:{type:Object,default:function(){return{}},desc:"当前选中项"},list:{type:Array,required:!0,desc:"属性说明"},title:{type:String,default:"",desc:"标题"},codeTitle:{type:String,default:"",desc:"二维码标题"},qrPath:{type:String,default:"",desc:"二维码链接"}},watch:{qrPath:{handler:function(e){this.initQr(e)},immediate:!0},value:{handler:function(e){var t=this.findObjectIndex(this.list,e);t>-1&&(this.selectIndex=t)},immediate:!0},list:{handler:function(e){e.length&&this.inits()},immediate:!0}},emits:{change:function(e){return"选中当前项"},input:function(e){return"内容变化时触发"},onFocus:function(e){return"获得当前焦点所在项"}},slots:{item:{desc:"列表元素"},hint:{desc:"二维码下方提示"}},data:function(){var e=s.apply(this);return{ftvsTvInit:e.ftvsTvInit,ftvsTvReset:e.ftvsTvReset,qrcodeThis:void 0,QRCode:null,selectIndex:null,staticCodeIcon:i,selected:n,wxIcon:c}},methods:{initQr:function(s){var i=this;return e(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==i.QRCode){e.next=2;break}return e.next=1,import("qrcodejs2");case 1:i.QRCode=e.sent.default;case 2:if(s){e.next=3;break}return e.abrupt("return");case 3:n={text:s,width:314,height:316,colorDark:"#000000",colorLight:"#ffffff",correctLevel:i.QRCode.CorrectLevel.H},void 0!==i.qrcodeThis?(i.qrcodeThis.clear(),i.qrcodeThis.makeCode(s)):i.qrcodeThis=new i.QRCode(i.$refs.ftvsQrCode,n),i.$nextTick(function(){i.forceRepaint(i.$refs.ftvsQrCode)});case 4:case"end":return e.stop()}},e)}))()},forceRepaint:function(e){e.style.display="none",e.offsetHeight,e.style.display="flex"},findObjectIndex:function(e,t){return e.findIndex(function(e){return Object.keys(t).every(function(s){return e[s]===t[s]})})},_tvRest:function(){this.ftvsTvReset()},change:function(e,t){this.selectIndex=t,this.$emit("input",e),this.$emit("change",{item:e,index:t}),this.ftvsTvReset()},onFocus:function(e,t){this.$emit("onFocus",{item:e,index:t})},inits:function(){var s=this;return e(t.mark(function i(){return t.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:s.$nextTick(e(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s.ftvsTvInit({distanceToCenter:!0,scrollEl:s.$refs.left,limitingEl:s.$refs.left},function(){var e=s.$refs.left,t=e?e.querySelectorAll(".".concat(s.$style.item)):null;t&&t.length&&s.$tv.next(t[s.selectIndex||0])});case 1:case"end":return e.stop()}},e)})));case 1:case"end":return i.stop()}},i)}))()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{class:e.$style.list_select},[e.title?s("div",{class:e.$style.title},[e._v(e._s(e.title))]):e._e(),e._v(" "),s("div",{class:e.$style.content},[e.list.length?s("div",{ref:"left",class:e.$style.left},e._l(e.list,function(t,i){return s("div",{directives:[{name:"focusable",rawName:"v-focusable"}],key:i+"-ftvs-file-bg-list",class:e.$style.item,on:{click:function(s){return e.change(t,i)},onFocus:function(s){return e.onFocus(t,i)}}},[s("div",{class:e.$style.item_l},[e._t("item",function(){return[s("div",[e._v("\n "+e._s(t.memberName)+" "+e._s(t.sexText)+" "+e._s(t.age)+"岁\n ")])]},{item:t,index:i})],2),e._v(" "),i===e.selectIndex?s("img",{class:e.$style.selected,attrs:{src:e.selected}}):e._e()])}),0):e._e(),e._v(" "),s("div",{class:e.$style.right,style:{background:"url('"+e.staticCodeIcon+"')"}},[s("div",{class:e.$style.r_div},[s("div",{class:e.$style.r_title},[e._v(e._s(e.codeTitle))]),e._v(" "),s("div",{ref:"ftvsQrCode",class:e.$style.img_code}),e._v(" "),e._t("hint",function(){return[s("div",{class:e.$style.r_hint},[s("img",{attrs:{src:e.wxIcon}}),e._v("\n 使用微信扫码\n ")])]})],2)])])])};o._withStripped=!0;var d=r({render:o,staticRenderFns:[]},function(e){e&&(e("data-v-5ffffc7d_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{list_select:"packages-ListSelect-list_select-83QA",title:"packages-ListSelect-title-eOZz",content:"packages-ListSelect-content-g6tF",left:"packages-ListSelect-left-3xR9",item:"packages-ListSelect-item-1TtQ",item_l:"packages-ListSelect-item_l-2OUN",selected:"packages-ListSelect-selected-1V7w",right:"packages-ListSelect-right-3GvU",r_div:"packages-ListSelect-r_div-2m0w",img_code:"packages-ListSelect-img_code-24n2",r_title:"packages-ListSelect-r_title-12wf",r_hint:"packages-ListSelect-r_hint-189D"}}))},a,undefined,false,undefined,!1,l,void 0,void 0);export{d as default};
|
package/lib/esm/Picker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as n,r as t}from"./index-3a473cdc.js";import{Picker as e,Loading as o}from"vant";import{ftvsTvScope as s,ftvsPxToRem as i}from"./utils.js";import{n as u,c as r}from"./browser-c44022ac.js";import"vue";function l(n){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l(n)}function a(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return c(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var o=0,s=function(){};return{s:s,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(n){throw n},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,r=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return u=n.done,n},e:function(n){r=!0,i=n},f:function(){try{u||null==e.return||e.return()}finally{if(r)throw i}}}}function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=Array(t);e<t;e++)o[e]=n[e];return o}var m={name:"Picker",components:{vantPicker:e,vanLoading:o},props:{valueKey:{type:String,default:"text",desc:"选项对象中,选项文字对应的键名"},idKey:{type:String,default:"id",desc:"选项对象中,唯一标识符,主要用于异步获取列数据"},deep:{type:Number,default:2,desc:"异步获取树状数据,层级默认为2,从1开始,目前仅支持2级树形结构"},columns:{type:[Array,Function],required:!0,desc:"对象数组,配置每一列显示的数据"}},emits:{confirm:function(n){return"最后一列选项改变时触发,单列:Picker 实例,选中值,选中值对应的索引\n多列:Picker 实例,所有列选中值,当前列对应的索引"}},data:function(){var n=s.apply(this);return{ftvsTvInit:n.ftvsTvInit,ftvsTvReset:n.ftvsTvReset,loading:!1,vantColumns:[],itemHeight:i(130),isMove:!1,visibleItemCount:6,tvColumns:[],columnsNum:null,nowColumnsIndex:0,columnsType:"singleRow",isTree:!1}},computed:{nowColumns:function(){return this.tvColumns[this.nowColumnsIndex]},isSyncFn:function(){return"function"==typeof this.columns}},watch:{columns:{handler:function(n){var t=this;"function"!=typeof n?n.length&&(this.vantColumns=n,this.$nextTick(function(){t.init()})):this.getSyncFun(n)},immediate:!0,deep:!0}},methods:{setPracticalIndex:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getColumnsIndexes(),e=n||this.nowColumnsIndex;this.tvColumns[e].focusIndex=t[e]||null},selectVal:function(n){var t,e=this,o=n.target;if(!this.loading){var s=o.parentNode,i=s.parentNode,u=null===(t=Array.from(null==i?void 0:i.children))||void 0===t?void 0:t.indexOf(s),r=Number(o.parentNode.parentNode.getAttribute("data-tv-index"));this.nowColumnsIndex=r,this.$set(this.tvColumns[r],"focusIndex",u),this.setNowColumnsFocus(),this.$refs.vantPicker.setColumnIndex(this.nowColumnsIndex,this.nowColumns.focusIndex),this.isTree&&this.resetColumnFocusIndex();var l,a=this.$refs.vantPicker.getValues();l="singleRow"===this.columnsType?a[0]:this.isTree?a.map(function(n){return n&&n[e.valueKey]}):a,this.emitVal(l,a)}},emitVal:function(n,t){var e=this;if("function"==typeof this.columns&&this.nowColumnsIndex+1<this.deep)this.updateVantColumns();else{if(this.nowColumnsIndex+1===this.columnsNum){var o=[];try{o=this.$refs.vantPicker.getColumnValue(this.nowColumnsIndex)}catch(n){}var s={currentOption:o,selectedValuesKeys:n,selectedValues:t,selectedOptions:this.getColumnValues(this.nowColumnsIndex),selectedIndexes:this.getColumnsIndexes()};this.$emit("confirm",s),this.ftvsTvReset()}var i=this.tvColumns[this.nowColumnsIndex+1];i&&i.dom&&this.$nextTick(function(){e.updateColumns(i.dom,e.nowColumnsIndex+1,i.focusIndex)})}},toUp:function(){this.nowColumns.focusIndex>0&&(this.tvColumns[this.nowColumnsIndex].focusIndex--,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},toLeft:function(){this.nowColumnsIndex>0&&(this.nowColumnsIndex--,this.setPracticalIndex(this.nowColumnsIndex+1),this.setNowColumnsFocus())},toRight:function(){this.nowColumnsIndex<this.tvColumns.length-1&&(this.nowColumnsIndex++,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},toDown:function(){this.nowColumns.focusIndex<this.nowColumns.focusNum-1&&(this.tvColumns[this.nowColumnsIndex].focusIndex++,this.setNowColumnsFocus(),this.move(this.nowColumns.focusIndex))},getColumnsIndexes:function(){return this.$refs.vantPicker.getIndexes()},getColumnValues:function(n){return this.$refs.vantPicker.getColumnValues(n)},resetColumnFocusIndex:function(){for(var n=this.nowColumnsIndex;n<this.tvColumns.length-1;n++)this.tvColumns[n+1].focusIndex=0},move:function(n){var t=this,e=this.$refs.vantPicker,o=e.children[this.nowColumnsIndex].options,s=e.children[this.nowColumnsIndex].itemHeight,i=function(n,t){var e,o,s;e=t,o=0,s=n.length;for(var i=t=Math.min(Math.max(e,o),s);i<n.length;i++)if(!n[i].disabled)return i;for(var u=t-1;u>=0;u--)if(!n[u].disabled)return u;return 0},u=function(n){return-i(o,n)*s+s*(t.visibleItemCount-1)/2}(n);this.nowColumns.dom.style.webkitTtransitionDuration="0ms",this.nowColumns.dom.style.webkitTransitionProperty="none",this.nowColumns.dom.style.webkitTransform="translate3d(0px, ".concat(u,"px, 0px)"),this.$forceUpdate()},getAndUpdateChildren:function(n,t,e){var o=this,s=function(n){var i,u=a(n);try{for(u.s();!(i=u.n()).done;){var r=i.value;if(r[o.idKey]===t)return e&&o.$set(r,"children",e),r;if(r.children){var l=s(r.children);if(l)return l}}}catch(n){u.e(n)}finally{u.f()}return null},i=s(n);return i&&i.children||[]},updateVantColumns:function(){var e=this;return n(t.mark(function n(){var o,s,i;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isSyncFn&&e.nowColumnsIndex+1!==e.deep){n.next=1;break}return n.abrupt("return");case 1:if(o=e.$refs.vantPicker.getColumnValues(e.nowColumnsIndex)[e.nowColumns.focusIndex],s=e.getAndUpdateChildren(e.vantColumns,o[e.idKey]),i=[],s.length){n.next=3;break}return e.loading=!0,n.next=2,e.columns({level:e.nowColumnsIndex+1,item:o});case 2:i=n.sent,n.next=4;break;case 3:i=s;case 4:e.getAndUpdateChildren(e.vantColumns,o[e.idKey],i),e.$refs.vantPicker.setColumnValues(e.nowColumnsIndex+1,i),e.$nextTick(function(){e.updateTvColumns()}),e.loading=!1;case 5:case"end":return n.stop()}},n)}))()},setNowColumnsFocus:function(){var n=this.tvColumns[this.nowColumnsIndex];null===n.focusIndex&&(n.focusIndex=this.getColumnsIndexes()[this.nowColumnsIndex]);var t=n.dom.querySelectorAll("li")[n.focusIndex].children[0];this.$tv.next(t),this.isMove=!0},setColumnsType:function(){var n=this.vantColumns[0];"object"===l(n)&&(n.hasOwnProperty("children")||n.hasOwnProperty("values"))&&(n.hasOwnProperty("children")&&(this.isTree=!0),this.columnsType="multiColumn")},againFocus:function(){this.isMove&&(this.ftvsTvInit(),this.setNowColumnsFocus())},updateColumns:function(n,t){this.tvColumns[t].focusNum=n.querySelectorAll("li").length},getSyncFun:function(e){var o=this;return n(t.mark(function n(){var s;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o.loading=!0,n.next=1,e({level:0,item:null});case 1:(s=n.sent)&&s[0]&&!s[0].hasOwnProperty("children")?o.vantColumns=s.map(function(n){return n.children=[],n}):o.vantColumns=s,o.setColumnsType(),o.$nextTick(function(){o.init(),o.updateVantColumns()});case 2:case"end":return n.stop()}},n)}))()},updateTvColumns:function(){var n="singleRow"===this.columnsType,t=this.$refs.vantPicker.$el.querySelectorAll("ul");this.columnsNum=n?1:t.length;for(var e=0;e<t.length;e++){var o=t[e];o.setAttribute("data-tv-index",e);var s=this.tvColumns[e]?this.tvColumns[e]:{};s.focusNum!==o.querySelectorAll("li").length&&this.$set(this.tvColumns,e,{focusIndex:s.focusIndex>=0?s.focusIndex:null,focusNum:o.querySelectorAll("li").length,dom:o})}},init:function(){this.ftvsTvInit(),this.setColumnsType(),this.updateTvColumns(),this.setNowColumnsFocus()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},d=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e("vantPicker",{ref:"vantPicker",class:n.$style.picker,attrs:{columns:n.vantColumns,"value-key":n.valueKey,"item-height":n.itemHeight},scopedSlots:n._u([{key:"option",fn:function(t){return[e("div",{directives:[{name:"focusable",rawName:"v-focusable"}],class:n.$style.column_item,on:{up:n.toUp,left:n.toLeft,right:n.toRight,down:n.toDown,click:n.selectVal}},[e("span",["string"==typeof t||"number"==typeof t?[n._v("\n "+n._s(t)+"\n ")]:[n._v(n._s(t[n.valueKey]))]],2)])]}}])}),n._v(" "),n.loading?e("div",{class:n.$style.loading},[e("vanLoading",{attrs:{size:"46"}})],1):n._e()],1)};d._withStripped=!0;var f=u({render:d,staticRenderFns:[]},function(n){n&&(n("data-v-08eb1abc_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{loading:"packages-Picker-loading-1W4w",picker:"packages-Picker-picker-3oJS",column_item:"packages-Picker-column_item-3Wh4"}}))},m,undefined,false,undefined,!1,r,void 0,void 0);export{f as default};
|
package/lib/esm/Popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Popup as e}from"vant";import{n as o,c as t}from"./browser-
|
|
1
|
+
import{Popup as e}from"vant";import{n as o,c as t}from"./browser-c44022ac.js";var n={name:"Popup",components:{vantPopup:e},props:{value:{type:Boolean,required:!0,desc:"属性说明"},position:{type:String,default:"center",desc:"弹出位置,可选值为 top bottom right left"},closeable:{type:Boolean,default:!1,desc:"是否显示关闭图标"},getContainer:{type:String,desc:"挂载节点, 使用 get-container 属性的组件不能为根节点"},overlay:{type:Boolean,default:!0,desc:"是否显示遮罩层"},duration:{type:[Number,String],default:.3,desc:"动画时长,单位秒"},overlayClass:{type:String,desc:"自定义遮罩层类名"},overlayStyle:{type:Object,default:function(){return{backgroundColor:"#151d2b"}},desc:"自定义遮罩层样式"},closeOnPopstate:{type:Boolean,default:!1,desc:"是否在页面回退时自动关闭"},closeOnClickOverlay:{type:Boolean,default:!1,desc:"是否在点击遮罩层后关闭"}},emits:{clickCloseIcon:function(e){return"点击关闭图标时触发"},click:function(e){return"点击弹出层时触发"},clickOverlay:function(){return"点击遮罩层时触发"},open:function(){return"打开弹出层时触发"},close:function(){return"关闭弹出层时触发"},opened:function(){return"打开弹出层且动画结束后触发"},closed:function(){return"关闭弹出层且动画结束后触发"}},data:function(){return{show:!1}},watch:{value:{handler:function(e){this.show=e},immediate:!0},show:{handler:function(e){this.$emit("input",e)}}},methods:{clickCloseIcon:function(e){this.$emit("clickCloseIcon",e)},click:function(e){this.$emit("click",e)},clickOverlay:function(){this.$emit("clickOverlay")},open:function(){this.$emit("open")},close:function(){this.$emit("close")},opened:function(){this.$emit("opened")},closed:function(){this.$emit("closed")}},mounted:function(){}},c=function(){var e=this,o=e.$createElement;return(e._self._c||o)("vantPopup",{class:e.$style.popup,attrs:{position:e.position,closeable:e.closeable,"get-container":e.getContainer,overlay:e.overlay,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,"close-on-popstate":e.closeOnPopstate,"close-on-click-overlay":e.closeOnClickOverlay,duration:e.duration},on:{"click-close-icon":e.clickCloseIcon,click:e.click,"click-overlay":e.clickOverlay,open:e.open,close:e.close,opened:e.opened,closed:e.closed},model:{value:e.show,callback:function(o){e.show=o},expression:"show"}},[e._t("default")],2)};c._withStripped=!0;var l=o({render:c,staticRenderFns:[]},function(e){e&&(e("data-v-ba0ffae0_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-Popup-popup-1uSf"}}))},n,undefined,false,undefined,!1,t,void 0,void 0);export{l as default};
|
package/lib/esm/SelectAddress.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,
|
|
1
|
+
import{_ as e,r as t}from"./index-3a473cdc.js";import n from"vue";import s from"./Popup.js";import i from"./ListSelect.js";import{staticSiteSelectIcon as r,staticSiteUnSelectIcon as o}from"./staticImg.js";import{n as a,c}from"./browser-c44022ac.js";import"vant";import"./utils.js";var d=function(){var s=e(t.mark(function e(){var s;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=[],!n.prototype.$ftvsApiConfigInfo.selectAddressFn){e.next=1;break}return e.next=1,n.prototype.$ftvsApiConfigInfo.selectAddressFn().then(function(e){s=e||[]});case 1:return e.abrupt("return",s);case 2:case"end":return e.stop()}},e)}));return function(){return s.apply(this,arguments)}}(),u={name:"SelectAddress",components:{Popup:s,ListSelect:i},props:{value:{type:Boolean,default:!1,required:!0,desc:"是否展示"},title:{type:String,default:"收货地址",desc:"标题"},codeTitle:{type:String,default:"添加或编辑地址",desc:"二维码标题"}},watch:{value:{handler:function(e){this.show=e,e&&this.inits()},immediate:!0},show:function(e){e||this.$refs.listSelect._tvRest(),this.$emit("input",e)}},emits:{input:function(e){return"内容变化时触发"},change:function(e){return"选中当前项"},list:function(e){return"地址数据返回"}},data:function(){return{nowIndex:null,staticSiteSelectIcon:r,staticSiteUnSelectIcon:o,list:[],QrPath:"",show:!1}},getList:function(){return e(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,d();case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))()},methods:{getList:d,change:function(e){this.show=!1,this.$emit("change",e)},onFocus:function(e){var t=e.index;this.nowIndex=t},inits:function(){var n=this;return e(t.mark(function e(){var s;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d().then(function(e){n.list=e,n.$emit("list",n.list)}),n.$ftvsApiConfigInfo.qrCodePathFn&&(s=n.$ftvsApiConfigInfo.qrCodePathFn(),n.QrPath=s.weAppSitePath);case 1:case"end":return e.stop()}},e)}))()}}},l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popup",{class:e.$style.popup,model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("div",{class:e.$style.select_address},[n("ListSelect",{ref:"listSelect",attrs:{list:e.list,qrPath:e.QrPath,title:e.title,codeTitle:e.codeTitle},on:{onFocus:e.onFocus,change:e.change},scopedSlots:e._u([{key:"item",fn:function(t){var s=t.item,i=t.index;return[n("div",{class:[e.$style.item_title]},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.nowIndex===i,expression:"nowIndex === index"}],attrs:{src:e.staticSiteSelectIcon}}),e._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:e.nowIndex!==i,expression:"nowIndex !== index"}],attrs:{src:e.staticSiteUnSelectIcon}}),e._v(" "),n("div",[e._v("\n "+e._s(s.detail)+"\n ")])]),e._v(" "),n("div",{class:[e.$style.item_content,e.nowIndex===i&&e.$style.item_active]},[n("span",[e._v(e._s(s.receiver))]),e._v(" "),n("span",[e._v(e._s(s.phoneNo))]),e._v(" "),s.defaultFlag?n("span",{class:e.$style.def_text},[e._v("默认")]):e._e()])]}}])})],1)])};l._withStripped=!0;var p=a({render:l,staticRenderFns:[]},function(e){e&&(e("data-v-b8cbe966_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{popup:"packages-SelectAddress-popup-23a2",select_address:"packages-SelectAddress-select_address-3v1d",item_title:"packages-SelectAddress-item_title-1zWy",item_content:"packages-SelectAddress-item_content-kXYo",def_text:"packages-SelectAddress-def_text-2xeo",item_active:"packages-SelectAddress-item_active-3Xn3"}}))},u,undefined,false,undefined,!1,c,void 0,void 0);export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}function r(r){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=r.apply(e,n);function c(r){t(a,o,i,c,u,"next",r)}function u(r){t(a,o,i,c,u,"throw",r)}c(void 0)})}}var e={exports:{}};!function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof d?r:d,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:O(t,e,c)}),a}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s="suspendedStart",p="suspendedYield",y="executing",v="completed",g={};function d(){}function m(){}function w(){}var x={};h(x,a,function(){return this});var b=Object.getPrototypeOf,L=b&&b(b(T([])));L&&L!==e&&n.call(L,a)&&(x=L);var E=w.prototype=d.prototype=Object.create(x);function _(t){["next","throw","return"].forEach(function(r){h(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function e(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(f).then(function(t){h.value=t,a(h)},function(t){return e("throw",t,a,c)})}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r(function(r,o){e(t,n,r,o)})}return i=i?i.then(o,o):o()}})}function O(t,r,e){var n=s;return function(o,i){if(n===y)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=P(a,e);if(c){if(c===g)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=y;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?v:p,u.arg===g)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=v,e.method="throw",e.arg=u.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=l(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function G(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:r,done:!0}}return m.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=h(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},_(j.prototype),h(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new j(f(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},_(E),h(E,u,"Generator"),h(E,a,function(){return this}),h(E,"toString",function(){return"[object Generator]"}),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(G),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),G(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;G(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(e);var n=e.exports;export{r as _,n as r};
|
package/lib/esm/index.css
CHANGED
|
@@ -126,44 +126,6 @@
|
|
|
126
126
|
border-radius: 24px;
|
|
127
127
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
128
128
|
}
|
|
129
|
-
.packages-Popup-popup-1uSf {
|
|
130
|
-
background-color: transparent !important;
|
|
131
|
-
}
|
|
132
|
-
.packages-Picker-picker-3oJS {
|
|
133
|
-
background-color: transparent !important;
|
|
134
|
-
}
|
|
135
|
-
.packages-Picker-picker-3oJS .van-picker__mask,
|
|
136
|
-
.packages-Picker-picker-3oJS .van-hairline-unset--top-bottom {
|
|
137
|
-
display: none !important;
|
|
138
|
-
}
|
|
139
|
-
.packages-Picker-picker-3oJS .van-picker-column {
|
|
140
|
-
padding: 0 10px;
|
|
141
|
-
}
|
|
142
|
-
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div {
|
|
143
|
-
background: #363639;
|
|
144
|
-
color: rgb(255, 255, 255);
|
|
145
|
-
}
|
|
146
|
-
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div[focused] {
|
|
147
|
-
background: #ffffff;
|
|
148
|
-
color: rgba(0, 0, 0, 0.9);
|
|
149
|
-
}
|
|
150
|
-
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 {
|
|
151
|
-
width: 300px;
|
|
152
|
-
height: 110px;
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: center;
|
|
156
|
-
border-radius: 55px;
|
|
157
|
-
font-family: MiSans-Medium;
|
|
158
|
-
font-weight: 500;
|
|
159
|
-
font-size: 32px;
|
|
160
|
-
color: rgba(255, 255, 255, 0.7);
|
|
161
|
-
line-height: 42px;
|
|
162
|
-
}
|
|
163
|
-
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] {
|
|
164
|
-
background: #ffffff;
|
|
165
|
-
color: rgba(0, 0, 0, 0.9);
|
|
166
|
-
}
|
|
167
129
|
.packages-SelectAddress-popup-23a2 {
|
|
168
130
|
background-color: transparent !important;
|
|
169
131
|
}
|
|
@@ -216,6 +178,73 @@
|
|
|
216
178
|
.packages-SelectAddress-select_address-3v1d .packages-SelectAddress-item_active-3Xn3 {
|
|
217
179
|
color: rgba(0, 0, 0, 0.9);
|
|
218
180
|
}
|
|
181
|
+
.packages-Picker-loading-1W4w {
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
position: absolute;
|
|
189
|
+
left: 0;
|
|
190
|
+
top: 0;
|
|
191
|
+
}
|
|
192
|
+
.packages-Picker-picker-3oJS {
|
|
193
|
+
background-color: transparent !important;
|
|
194
|
+
}
|
|
195
|
+
.packages-Picker-picker-3oJS .van-picker__mask,
|
|
196
|
+
.packages-Picker-picker-3oJS .van-hairline-unset--top-bottom {
|
|
197
|
+
display: none !important;
|
|
198
|
+
}
|
|
199
|
+
.packages-Picker-picker-3oJS .van-picker-column {
|
|
200
|
+
padding: 0 10px;
|
|
201
|
+
}
|
|
202
|
+
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div {
|
|
203
|
+
background: #363639;
|
|
204
|
+
color: rgb(255, 255, 255);
|
|
205
|
+
}
|
|
206
|
+
.packages-Picker-picker-3oJS .van-picker-column__item--selected > div[focused] {
|
|
207
|
+
background: #ffffff;
|
|
208
|
+
color: rgba(0, 0, 0, 0.9);
|
|
209
|
+
}
|
|
210
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 {
|
|
211
|
+
width: 320px;
|
|
212
|
+
height: 110px;
|
|
213
|
+
border-radius: 55px;
|
|
214
|
+
font-family: MiSans-Medium;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
font-size: 32px;
|
|
217
|
+
color: rgba(255, 255, 255, 0.7);
|
|
218
|
+
line-height: 42px;
|
|
219
|
+
padding: 0 16px;
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
225
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4 span {
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
max-width: 100%;
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] {
|
|
233
|
+
background: #ffffff;
|
|
234
|
+
color: rgba(0, 0, 0, 0.9);
|
|
235
|
+
}
|
|
236
|
+
.packages-Picker-picker-3oJS .packages-Picker-column_item-3Wh4[focused] span {
|
|
237
|
+
white-space: normal !important;
|
|
238
|
+
display: -webkit-box !important;
|
|
239
|
+
-webkit-line-clamp: 2;
|
|
240
|
+
-webkit-box-orient: vertical;
|
|
241
|
+
text-overflow: unset !important;
|
|
242
|
+
line-height: 36px;
|
|
243
|
+
max-height: 72px;
|
|
244
|
+
}
|
|
245
|
+
.packages-Popup-popup-1uSf {
|
|
246
|
+
background-color: transparent !important;
|
|
247
|
+
}
|
|
219
248
|
.packages-Button-button-1dIW {
|
|
220
249
|
display: inline-block;
|
|
221
250
|
font-family: MiSans-regular;
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./Popup.js";import t from"./Picker.js";import n from"./SelectAddress.js";import
|
|
1
|
+
import o from"./Popup.js";import t from"./Picker.js";import n from"./SelectAddress.js";import m from"./ListSelect.js";import"vue";import i from"./Button.js";import r from"./FileBag.js";import"vant";import"./browser-c44022ac.js";import"./index-3a473cdc.js";import"./utils.js";import"./staticImg.js";o.install=function(t){t.component(o.name,o)};var a=o;t.install=function(o){o.component(t.name,t)};var e=t;n.install=function(o){o.component(n.name,n)};var s=n;m.install=function(o){o.component(m.name,m)};var p=m;i.install=function(o){o.component(i.name,i)};var c=i;r.install=function(o){o.component(r.name,r)};var l=r;export{c as Button,l as FileBag,p as ListSelect,e as Picker,a as Popup,s as SelectAddress};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ftvs-vue2","version":"0.0.
|
|
1
|
+
{"name":"ftvs-vue2","version":"0.0.15","description":"未来电视vue2版本ui库","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","license":"MIT","dependencies":{},"peerDependencies":{"qrcodejs2":"^0.0.2","vant":"^2.12.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./utils.js"),e=require("./staticImg.js"),r=require("./browser-452735a2.js");function n(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}function i(t,e,r,n,i,o,c){try{var a=t[o](c),s=a.value}catch(t){return void r(t)}a.done?e(s):Promise.resolve(s).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var c=t.apply(e,r);function a(t){i(c,n,o,a,s,"next",t)}function s(t){i(c,n,o,a,s,"throw",t)}a(void 0)})}}var c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,c=Object.create(o.prototype),a=new $(n||[]);return i(c,"_invoke",{value:T(t,r,a)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function _(){}var w={};u(w,c,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(I([])));b&&b!==r&&n.call(b,c)&&(w=b);var L=_.prototype=g.prototype=Object.create(w);function k(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(i,o,c,a){var s=f(t[i],t,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,c,a)},function(t){r("throw",t,c,a)}):e.resolve(l).then(function(t){u.value=t,c(u)},function(t){return r("throw",t,c,a)})}a(s.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,i){r(t,n,e,i)})}return o=o?o.then(i,i):i()}})}function T(t,e,r){var n=h;return function(i,o){if(n===v)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return R()}for(r.method=i,r.arg=o;;){var c=r.delegate;if(c){var a=O(c,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?p:d,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:R}}function R(){return{value:e,done:!0}}return m.prototype=_,i(L,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:m,configurable:!0}),m.displayName=u(_,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},k(j.prototype),u(j.prototype,a,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var c=new j(l(e,r,n,i),o);return t.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},k(L),u(L,s,"Generator"),u(L,c,function(){return this}),u(L,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var a=c.exports,s={name:"ListSelect",props:{value:{type:Object,default:function(){return{}},desc:"当前选中项"},list:{type:Array,required:!0,desc:"属性说明"},title:{type:String,default:"",desc:"标题"},codeTitle:{type:String,default:"",desc:"二维码标题"},qrPath:{type:String,default:"",desc:"二维码链接"}},watch:{qrPath:{handler:function(t){this.initQr(t)},immediate:!0},value:{handler:function(t){var e=this.findObjectIndex(this.list,t);e>-1&&(this.selectIndex=e)},immediate:!0},list:{handler:function(t){t.length&&this.inits()},immediate:!0}},emits:{change:function(t){return"选中当前项"},input:function(t){return"内容变化时触发"},onFocus:function(t){return"获得当前焦点所在项"}},slots:{item:{desc:"列表元素"},hint:{desc:"二维码下方提示"}},data:function(){var r=t.ftvsTvScope.apply(this);return{ftvsTvInit:r.ftvsTvInit,ftvsTvReset:r.ftvsTvReset,qrcodeThis:void 0,QRCode:null,selectIndex:null,staticCodeIcon:e.staticCodeIcon,selected:e.staticSelectedIcon,wxIcon:e.staticWxIcon}},methods:{initQr:function(t){var e=this;return o(a.mark(function r(){var i;return a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==e.QRCode){r.next=2;break}return r.next=1,Promise.resolve().then(function(){return n(require("qrcodejs2"))});case 1:e.QRCode=r.sent.default;case 2:if(t){r.next=3;break}return r.abrupt("return");case 3:i={text:t,width:314,height:316,colorDark:"#000000",colorLight:"#ffffff",correctLevel:e.QRCode.CorrectLevel.H},void 0!==e.qrcodeThis?(e.qrcodeThis.clear(),e.qrcodeThis.makeCode(t)):e.qrcodeThis=new e.QRCode(e.$refs.ftvsQrCode,i),e.$nextTick(function(){e.forceRepaint(e.$refs.ftvsQrCode)});case 4:case"end":return r.stop()}},r)}))()},forceRepaint:function(t){t.style.display="none",t.offsetHeight,t.style.display="flex"},findObjectIndex:function(t,e){return t.findIndex(function(t){return Object.keys(e).every(function(r){return t[r]===e[r]})})},_tvRest:function(){this.ftvsTvReset()},change:function(t,e){this.selectIndex=e,this.$emit("input",t),this.$emit("change",{item:t,index:e}),this.ftvsTvReset()},onFocus:function(t,e){this.$emit("onFocus",{item:t,index:e})},inits:function(){var t=this;return o(a.mark(function e(){return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$nextTick(o(a.mark(function e(){return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.ftvsTvInit({distanceToCenter:!0,scrollEl:t.$refs.left,limitingEl:t.$refs.left},function(){var e=t.$refs.left,r=e?e.querySelectorAll(".".concat(t.$style.item)):null;r&&r.length&&t.$tv.next(r[t.selectIndex||0])});case 1:case"end":return e.stop()}},e)})));case 1:case"end":return e.stop()}},e)}))()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$style.list_select},[t.title?r("div",{class:t.$style.title},[t._v(t._s(t.title))]):t._e(),t._v(" "),r("div",{class:t.$style.content},[t.list.length?r("div",{ref:"left",class:t.$style.left},t._l(t.list,function(e,n){return r("div",{directives:[{name:"focusable",rawName:"v-focusable"}],key:n+"-ftvs-file-bg-list",class:t.$style.item,on:{click:function(r){return t.change(e,n)},onFocus:function(r){return t.onFocus(e,n)}}},[r("div",{class:t.$style.item_l},[t._t("item",function(){return[r("div",[t._v("\n "+t._s(e.memberName)+" "+t._s(e.sexText)+" "+t._s(e.age)+"岁\n ")])]},{item:e,index:n})],2),t._v(" "),n===t.selectIndex?r("img",{class:t.$style.selected,attrs:{src:t.selected}}):t._e()])}),0):t._e(),t._v(" "),r("div",{class:t.$style.right,style:{background:"url('"+t.staticCodeIcon+"')"}},[r("div",{class:t.$style.r_div},[r("div",{class:t.$style.r_title},[t._v(t._s(t.codeTitle))]),t._v(" "),r("div",{ref:"ftvsQrCode",class:t.$style.img_code}),t._v(" "),t._t("hint",function(){return[r("div",{class:t.$style.r_hint},[r("img",{attrs:{src:t.wxIcon}}),t._v("\n 使用微信扫码\n ")])]})],2)])])])};u._withStripped=!0;var l=function(t){t&&(t("data-v-34ece6c8_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{list_select:"packages-ListSelect-list_select-83QA",title:"packages-ListSelect-title-eOZz",content:"packages-ListSelect-content-g6tF",left:"packages-ListSelect-left-3xR9",item:"packages-ListSelect-item-1TtQ",item_l:"packages-ListSelect-item_l-2OUN",selected:"packages-ListSelect-selected-1V7w",right:"packages-ListSelect-right-3GvU",r_div:"packages-ListSelect-r_div-2m0w",img_code:"packages-ListSelect-img_code-24n2",r_title:"packages-ListSelect-r_title-12wf",r_hint:"packages-ListSelect-r_hint-189D"}}))},f=r.normalizeComponent({render:u,staticRenderFns:[]},l,s,undefined,false,undefined,!1,r.createInjector,void 0,void 0);exports.__vue_component__=f,exports._asyncToGenerator=o,exports.regenerator=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ftvsTvScope as t}from"./utils.js";import{staticCodeIcon as e,staticSelectedIcon as r,staticWxIcon as n}from"./staticImg.js";import{n as i,c as o}from"./browser-dba31c0f.js";function c(t,e,r,n,i,o,c){try{var a=t[o](c),s=a.value}catch(t){return void r(t)}a.done?e(s):Promise.resolve(s).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)})}}var s={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,c=Object.create(o.prototype),a=new O(n||[]);return i(c,"_invoke",{value:$(t,r,a)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function w(){}var _={};l(_,c,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(I([])));b&&b!==r&&n.call(b,c)&&(_=b);var L=w.prototype=g.prototype=Object.create(_);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function T(t,e){function r(i,o,c,a){var s=f(t[i],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,c,a)},function(t){r("throw",t,c,a)}):e.resolve(u).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,a)})}a(s.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,i){r(t,n,e,i)})}return o=o?o.then(i,i):i()}})}function $(t,e,r){var n=h;return function(i,o){if(n===v)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return R()}for(r.method=i,r.arg=o;;){var c=r.delegate;if(c){var a=E(c,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?p:d,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:R}}function R(){return{value:e,done:!0}}return m.prototype=w,i(L,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:m,configurable:!0}),m.displayName=l(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},k(T.prototype),l(T.prototype,a,function(){return this}),t.AsyncIterator=T,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var c=new T(u(e,r,n,i),o);return t.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},k(L),l(L,s,"Generator"),l(L,c,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(s);var l=s.exports,u={name:"ListSelect",props:{value:{type:Object,default:function(){return{}},desc:"当前选中项"},list:{type:Array,required:!0,desc:"属性说明"},title:{type:String,default:"",desc:"标题"},codeTitle:{type:String,default:"",desc:"二维码标题"},qrPath:{type:String,default:"",desc:"二维码链接"}},watch:{qrPath:{handler:function(t){this.initQr(t)},immediate:!0},value:{handler:function(t){var e=this.findObjectIndex(this.list,t);e>-1&&(this.selectIndex=e)},immediate:!0},list:{handler:function(t){t.length&&this.inits()},immediate:!0}},emits:{change:function(t){return"选中当前项"},input:function(t){return"内容变化时触发"},onFocus:function(t){return"获得当前焦点所在项"}},slots:{item:{desc:"列表元素"},hint:{desc:"二维码下方提示"}},data:function(){var i=t.apply(this);return{ftvsTvInit:i.ftvsTvInit,ftvsTvReset:i.ftvsTvReset,qrcodeThis:void 0,QRCode:null,selectIndex:null,staticCodeIcon:e,selected:r,wxIcon:n}},methods:{initQr:function(t){var e=this;return a(l.mark(function r(){var n;return l.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==e.QRCode){r.next=2;break}return r.next=1,import("qrcodejs2");case 1:e.QRCode=r.sent.default;case 2:if(t){r.next=3;break}return r.abrupt("return");case 3:n={text:t,width:314,height:316,colorDark:"#000000",colorLight:"#ffffff",correctLevel:e.QRCode.CorrectLevel.H},void 0!==e.qrcodeThis?(e.qrcodeThis.clear(),e.qrcodeThis.makeCode(t)):e.qrcodeThis=new e.QRCode(e.$refs.ftvsQrCode,n),e.$nextTick(function(){e.forceRepaint(e.$refs.ftvsQrCode)});case 4:case"end":return r.stop()}},r)}))()},forceRepaint:function(t){t.style.display="none",t.offsetHeight,t.style.display="flex"},findObjectIndex:function(t,e){return t.findIndex(function(t){return Object.keys(e).every(function(r){return t[r]===e[r]})})},_tvRest:function(){this.ftvsTvReset()},change:function(t,e){this.selectIndex=e,this.$emit("input",t),this.$emit("change",{item:t,index:e}),this.ftvsTvReset()},onFocus:function(t,e){this.$emit("onFocus",{item:t,index:e})},inits:function(){var t=this;return a(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$nextTick(a(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.ftvsTvInit({distanceToCenter:!0,scrollEl:t.$refs.left,limitingEl:t.$refs.left},function(){var e=t.$refs.left,r=e?e.querySelectorAll(".".concat(t.$style.item)):null;r&&r.length&&t.$tv.next(r[t.selectIndex||0])});case 1:case"end":return e.stop()}},e)})));case 1:case"end":return e.stop()}},e)}))()}},beforeDestroy:function(){this.ftvsTvReset()},mounted:function(){}},f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$style.list_select},[t.title?r("div",{class:t.$style.title},[t._v(t._s(t.title))]):t._e(),t._v(" "),r("div",{class:t.$style.content},[t.list.length?r("div",{ref:"left",class:t.$style.left},t._l(t.list,function(e,n){return r("div",{directives:[{name:"focusable",rawName:"v-focusable"}],key:n+"-ftvs-file-bg-list",class:t.$style.item,on:{click:function(r){return t.change(e,n)},onFocus:function(r){return t.onFocus(e,n)}}},[r("div",{class:t.$style.item_l},[t._t("item",function(){return[r("div",[t._v("\n "+t._s(e.memberName)+" "+t._s(e.sexText)+" "+t._s(e.age)+"岁\n ")])]},{item:e,index:n})],2),t._v(" "),n===t.selectIndex?r("img",{class:t.$style.selected,attrs:{src:t.selected}}):t._e()])}),0):t._e(),t._v(" "),r("div",{class:t.$style.right,style:{background:"url('"+t.staticCodeIcon+"')"}},[r("div",{class:t.$style.r_div},[r("div",{class:t.$style.r_title},[t._v(t._s(t.codeTitle))]),t._v(" "),r("div",{ref:"ftvsQrCode",class:t.$style.img_code}),t._v(" "),t._t("hint",function(){return[r("div",{class:t.$style.r_hint},[r("img",{attrs:{src:t.wxIcon}}),t._v("\n 使用微信扫码\n ")])]})],2)])])])};f._withStripped=!0;var h=i({render:f,staticRenderFns:[]},function(t){t&&(t("data-v-34ece6c8_0",{source:"",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{list_select:"packages-ListSelect-list_select-83QA",title:"packages-ListSelect-title-eOZz",content:"packages-ListSelect-content-g6tF",left:"packages-ListSelect-left-3xR9",item:"packages-ListSelect-item-1TtQ",item_l:"packages-ListSelect-item_l-2OUN",selected:"packages-ListSelect-selected-1V7w",right:"packages-ListSelect-right-3GvU",r_div:"packages-ListSelect-r_div-2m0w",img_code:"packages-ListSelect-img_code-24n2",r_title:"packages-ListSelect-r_title-12wf",r_hint:"packages-ListSelect-r_hint-189D"}}))},u,undefined,false,undefined,!1,o,void 0,void 0);export{h as _,a,l as r};
|
|
File without changes
|
|
File without changes
|