@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 7.87 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@xysfe/actui/es/assets/common/input.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/common/input.js"],t):"object"==typeof exports?exports["assets/common/dynamicform.js"]=t(require("@xysfe/actui/es/assets/common/input.js")):e["assets/common/dynamicform.js"]=t(e["@xysfe/actui/es/assets/common/input.js"])}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../es",t(t.s=907)}({35:function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([s]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(r[s]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},36:function(e,t,n){"use strict";function r(e,t,n,r){v=n,y=r||{};var s=Object(u.a)(e,t);return o(s),function(t){for(var n=[],r=0;r<s.length;r++){var i=s[r],a=l[i.id];a.refs--,n.push(a)}t?(s=Object(u.a)(e,t),o(s)):s=[];for(var r=0;r<n.length;r++){var a=n[r];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete l[a.id]}}}}function o(e){for(var t=0;t<e.length;t++){var n=e[t],r=l[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(i(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],o=0;o<n.parts.length;o++)s.push(i(n.parts[o]));l[n.id]={id:n.id,refs:1,parts:s}}}}function s(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function i(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(v)return h;r.parentNode.removeChild(r)}if(b){var o=m++;r=p||(p=s()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=s(),t=c.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var s=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function c(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),y.ssrId&&e.setAttribute(g,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var u=n(40),f="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!f)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},d=f&&(document.head||document.getElementsByTagName("head")[0]),p=null,m=0,v=!1,h=function(){},y=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),_=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},40:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o],i=s[0],a=s[1],c=s[2],u=s[3],f={id:e+":"+o,css:a,media:c,sourceMap:u};r[i]?r[i].parts.push(f):n.push(r[i]={id:i,parts:[f]})}return n}t.a=r},552:function(t,n){t.exports=e},677:function(e,t,n){"use strict";var r=n(552),o=n.n(r);t.a={name:"ActDynamicForm",components:{ActInput:o.a},props:{form:{type:Array,default:function(){return[]}},verifyColor:{type:String,default:"#f9433d"}},data:function(){return{seconds:0}},mounted:function(){this.$on("startcountdown",this.startCountDown)},methods:{getInfoCode:function(e){this.seconds||this.$emit("getcode",{index:e})},getInputType:function(e){return e.inputType?e.inputType:"text"},getErrTips:function(e){return e.isShowTips&&e.tips?e.tips:e.isShowTips?e.isEmpty?e.emptyTips:e.errTips:""},startCountDown:function(){this.seconds=60,this.clearTimer(),this.freshTime()},freshTime:function(){var e=this;this.timer=setInterval(function(){e.seconds>0?e.seconds--:e.clearTimer()},1e3)},clearTimer:function(){this.timer&&clearInterval(this.timer)}}}},8:function(e,t,n){"use strict";function r(e,t,n,r,o,s,i,a){e=e||{};var c=typeof e.default;"object"!==c&&"function"!==c||(e=e.default);var u="function"==typeof e?e.options:e;t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId=s);var f;if(i?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=f):o&&(f=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(u.functional){u._injectStyles=f;var l=u.render;u.render=function(e,t){return f.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,f):[f]}return{exports:e,options:u}}t.a=r},907:function(e,t,n){"use strict";function r(e){a||n(908)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(677),s=n(910),i=n(8),a=!1,c=r,u=Object(i.a)(o.a,s.a,s.b,!1,c,"data-v-5a09a7fc",null);u.options.__file="src\\components\\common\\dynamicform.vue",t.default=u.exports},908:function(e,t,n){var r=n(909);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n(36).default;o("d3fd1552",r,!1,{})},909:function(e,t,n){t=e.exports=n(35)(!1),t.push([e.i,"\n.act-form-left[data-v-5a09a7fc]{color:#c8c8c8;font-size:1.6em;margin-right:0.5em\n}\n.act-mobile-word[data-v-5a09a7fc]{position:relative;color:#f9433d;font-size:1.4em;z-index:1\n}\n",""])},910:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._l(e.form,function(t,r){return n("div",{key:r},[n("act-input",{staticClass:"act-form-input",attrs:{tipscolor:e.verifyColor,tips:e.getErrTips(t),type:e.getInputType(t),placeholder:t.placeholder},scopedSlots:e._u(["verifycode"!==t.key?{key:"left",fn:function(){return[n("div",{staticClass:"act-form-left"},[e._v("\n "+e._s(t.label)+"\n ")])]},proxy:!0}:{key:"right",fn:function(){return[e.seconds?n("div",{staticClass:"act-mobile-word",style:{color:e.verifyColor}},[e._v("\n 剩余"+e._s(e.seconds)+"秒\n ")]):n("div",{staticClass:"act-mobile-word",style:{color:e.verifyColor},on:{click:function(t){return e.getInfoCode(r)}}},[e._v("\n "+e._s(t.label?t.label:"发送验证码")+"\n ")])]},proxy:!0}],null,!0),model:{value:t.value,callback:function(n){e.$set(t,"value","string"==typeof n?n.trim():n)},expression:"item.value"}})],1)}),0)},o=[];r._withStripped=!0}})});