JS-拼接Json

var editorJson = JSON.parse(
      (JSON.stringify(values) + JSON.stringify(head_img)).replace(/}{/, ',')
    );

action-sheet.json alert.json badge.json button.json calendar-bar.json calendar-view.json card.json carousel.json carousel-item.json cascader.json cascader-panel.json cascader-select.json cell.json chart-autonavi-map.json chart-baidu-map.json chart-bar.json chart-boxplot.json chart-candle.json chart-core.json chart-funnel.json chart-gauge.json chart-heatmap.json chart-histogram.json chart-line.json chart-liquidfill.json chart-map.json chart-pie.json chart-radar.json chart-ring.json chart-sankey.json chart-scatter.json chart-tree.json chart-waterfall.json chart-wordcloud.json checkbox.json checkbox-group.json col.json collapse.json collapse-item.json column-list-item.json date-picker.json dialog-box.json divider.json drawer.json dropdown.json dropdown-menu-bar.json exception.json file-upload.json filter.json floating-button.json form.json icon.json image.json index-bar.json input.json link.json load-list.json loading.json menu.json modal.json numeric.json pager.json popover.json popup.json progress.json pull-refresh.json radio.json radio-button.json radio-group.json rate.json record.json row.json scroll-text.json scrollbar.json search.json select.json signature.json skeleton.json slider.json slider-button.json slider-button-group.json standard-list-item.json steps.json sticky.json switch.json tab-item.json tabbar.json tabbar-item.json tabs.json tag.json tag-input.json text-ellipsis.json tooltip.json tree.json user-head.json 把上面的json文件名按照下面格式。也就是补充import以及在compositionAUI6Component中导出。不需要解析文件。 import ActionSheet from './action-sheet.json'; export const compositionAUI6Component = { ActionSheet, };
最新发布
09-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值