<template>
    <view>
        <!-- 首页模板 -->
        <rich-text :style="sktStyle" :nodes="nodes[sktTpl]" />
    </view>
</template>

<script>
/**
 * @file h5骨架屏
 * @author zhangeryi
 * @categories 通用组件
 * @tags [component]
 */
import brand from '../../skeleton/page/brand.tpl';
import bx from '../../skeleton/page/bx.tpl';
import wz from '../../skeleton/page/wz.tpl';
import fyhome from '../../skeleton/page/fyhome.tpl';
import gh from '../../skeleton/page/gh.tpl';
import triage from '../../skeleton/page/triage.tpl';
import search from '../../skeleton/page/search.tpl';
import list from '../../skeleton/page/list.tpl';
import zys from '../../skeleton/page/zys.tpl';
import hosDetail from '../../skeleton/page/hosdetail.tpl';
import appointDetail from '../../skeleton/page/appointdetail.tpl';
import filterList from '../../skeleton/page/filterList.tpl';
import cascaderList from '../../skeleton/page/cascaderList.tpl';
import drugDetail from '../../skeleton/page/drug-detail.tpl';
import gyHome from '../../skeleton/page/gy-home.tpl';
import drugHall from '../../skeleton/page/drug-hall.tpl';
import drugCart from '../../skeleton/page/drug-cart.tpl';
import speTopic from '../../skeleton/page/spe-topic.tpl';
import speTopicActivity from '../../skeleton/page/speTopicActivity.tpl';
import activity from '../../skeleton/page/activity.tpl';
import experthome from '../../skeleton/page/experthome.tpl';
import dictDiease from '../../skeleton/page/dictDiease.tpl';
import dicthome from '../../skeleton/page/dicthome.tpl';
import dictdrug from '../../skeleton/page/dictdrug.tpl';
import dictsearch from '../../skeleton/page/dictsearch.tpl';
import detailQa from '../../skeleton/page/detailQa.tpl';
import detailVideo from '../../skeleton/page/detailVideo.tpl';
import detailAudio from '../../skeleton/page/detailAudio.tpl';
import detailArticle from '../../skeleton/page/detailArticle.tpl';
import physical from '../../skeleton/page/physical.tpl';
import physicalAgency from '../../skeleton/page/physicalAgency.tpl';
import physicalPackage from '../../skeleton/page/physicalPackage.tpl';
import plmResult from '../../skeleton/page/plmResult.tpl';
import plmHome from '../../skeleton/page/plmHome.tpl';
import plmSearch from '../../skeleton/page/plmSearch.tpl';
import plmLand from '../../skeleton/page/plmLand.tpl';
import newYear from '../../skeleton/page/newYear.tpl';
import vaccStoreinfo from '../../skeleton/page/vaccStoreinfo.tpl';
import experthomeNew from '../../skeleton/page/experthome-new.tpl';
import mallApply from './../../skeleton/page/mall-apply.tpl';
export default {
    config: {
        component: true
    },
    options: {
        addGlobalClass: true
    },
    props: {
        /**
         * 骨架屏类型
         */
        sktTpl: {
            type: String,
            default: ''
        },

        /**
         * H5骨架屏外层样式
         */
        sktStyle: {
            type: Object,

            default() {
                return {};
            }
        }
    },

    data() {
        return {
            nodes: {
                brand,
                bx,
                wz,
                fyhome,
                gh,
                triage,
                search,
                list,
                zys,
                hosDetail,
                appointDetail,
                filterList,
                cascaderList,
                drugDetail,
                gyHome,
                speTopic,
                speTopicActivity,
                drugCart,
                activity,
                experthome,
                dictDiease,
                dicthome,
                dictdrug,
                dictsearch,
                detailQa,
                detailVideo,
                detailAudio,
                detailArticle,
                physical,
                physicalAgency,
                physicalPackage,
                drugHall,
                plmResult,
                plmHome,
                plmSearch,
                plmLand,
                newYear,
                experthomeNew,
                vaccStoreinfo,
                mallApply
            }
        };
    }
};
</script>
