@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 4.45 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js"],e):"object"==typeof exports?exports.GoldFaq=e(require("@xysfe/actui/es/assets/utils/create/index.js")):t.GoldFaq=e(t["@xysfe/actui/es/assets/utils/create/index.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(n){if(s[n])return s[n].exports;var o=s[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var s={};return e.m=t,e.c=s,e.d=function(t,s,n){e.o(t,s)||Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var s=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(s,"a",s),s},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1816)}({1169:function(t,e,s){"use strict";e.a={name:"ActGoldFaq",data:function(){return{showMore:!1}},props:{list:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},moreDataTrack:{type:String,default:""},showLength:{type:[String,Number],default:2}},computed:{questionBoxStyle:function(){var t={};return this.brandColor&&(t.color=this.brandColor,t.background="linear-gradient(90deg, "+this.brandColor+"31 0%, "+this.brandColor+"31 100%)"),t}},methods:{_toggleMore:function(){this.showMore=!this.showMore}}}},1816:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s(26),o=s.n(n),r=s(1817);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldInsureQa=o()(r.a,t)},e.default=r.a},1817:function(t,e,s){"use strict";function n(t){i||s(1818)}var o=s(1169),r=s(1819),a=s(7),i=!1,c=n,l=Object(a.a)(o.a,r.a,r.b,!1,c,"data-v-64e71f34",null);l.options.__file="src\\components\\GoldFaq\\src\\index.vue",e.a=l.exports},1818:function(t,e){},1819:function(t,e,s){"use strict";s.d(e,"a",function(){return n}),s.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"act-question-box"},[t.$slots.header?t._t("header"):s("div",{staticClass:"act-box-tit",style:{"--color":t.brandColor}},[t._v("\n 常见问题\n ")]),t._v(" "),t.list.length>0?[s("div",{staticClass:"act-question-list"},[t._l(t.list,function(e,n){return[t.showMore||n<t.showLength?s("div",{key:n,staticClass:"act-question-item mem-replayer-show",class:{"act-question-item-fix-bottom":n===t.list.length-1}},[s("div",{staticClass:"act-question-tit act-row"},[t.$slots.question?t._t("question"):s("div",{staticClass:"act-tag act-question-tag",style:t.questionBoxStyle},[t._v("\n Q\n ")]),t._v(" "),s("p",{staticClass:"act-col act-question-text",domProps:{innerHTML:t._s(e.comment)}})],2),t._v(" "),s("div",{staticClass:"act-question-text act-row"},[t.$slots.answer?t._t("answer"):s("div",{staticClass:"act-tag act-answer-tag"},[t._v("\n A\n ")]),t._v(" "),s("p",{staticClass:"act-col act-answer-text",domProps:{innerHTML:t._s(e.reply)}})],2)]):t._e()]})],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.list.length>t.showLength&&!t.showMore,expression:"list.length > showLength && !showMore"}],staticClass:"act-question-more mem-replayer-hide",style:{color:t.brandColor},attrs:{"data-track":t.moreDataTrack},on:{click:t._toggleMore}},[t._v("\n 查看更多"),s("span",{staticClass:"arrow"})])]:s("p",{staticClass:"act-box-nodata"},[t._v("\n 暂无数据\n ")])],2)},o=[];n._withStripped=!0},26:function(e,s){e.exports=t},7:function(t,e,s){"use strict";function n(t,e,s,n,o,r,a,i){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):o&&(u=i?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(t,e){return u.call(e),d(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}e.a=n}})});