chore(组件): 组件尽量使用异步导入模式
This commit is contained in:
@@ -71,11 +71,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import nsChatGoods from '@/pages_tool/components/ns-chat/ns-chat-goods.vue';
|
||||
import nsChatOrder from '@/pages_tool/components/ns-chat/ns-chat-order.vue';
|
||||
import nsChatReceiveGoods from '@/pages_tool/components/ns-chat/ns-chat-receiveGoods.vue';
|
||||
import htmlParser from '@/common/js/html-parser';
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
import htmlParser from '@/common/js/html-parser.js';
|
||||
import emjoy from '@/common/js/emjoy.js';
|
||||
|
||||
export default {
|
||||
@@ -88,6 +84,12 @@
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
components: {
|
||||
uniPopup: () => import('@/components/uni-popup/uni-popup.vue'),
|
||||
nsChatGoods: () => import('@/pages_tool/components/ns-chat/ns-chat-goods.vue'),
|
||||
nsChatOrder: () => import('@/pages_tool/components/ns-chat/ns-chat-order.vue'),
|
||||
nsChatReceiveGoods: () => import('@/pages_tool/components/ns-chat/ns-chat-receiveGoods.vue'),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
avatar: '', //店铺头像
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
<script>
|
||||
import Calendar from './util.js';
|
||||
import uniCalendarItem from './uni-calendar-item.vue';
|
||||
|
||||
/**
|
||||
* Calendar 日历
|
||||
* @description 日历组件可以查看日期,选择任意范围内的日期,打点操作。常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等
|
||||
@@ -67,7 +67,7 @@ import uniCalendarItem from './uni-calendar-item.vue';
|
||||
*/
|
||||
export default {
|
||||
components: {
|
||||
uniCalendarItem
|
||||
uniCalendarItem: () => import('./uni-calendar-item.vue'),
|
||||
},
|
||||
props: {
|
||||
date: {
|
||||
|
||||
@@ -38,14 +38,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniStatusBar from '@/pages_tool/components/uni-status-bar/uni-status-bar.vue';
|
||||
import uniIcons from '@/components/uni-icons/uni-icons.vue';
|
||||
|
||||
export default {
|
||||
name: 'UniNavBar',
|
||||
components: {
|
||||
uniStatusBar,
|
||||
uniIcons
|
||||
uniStatusBar: () => import('@/pages_tool/components/uni-status-bar/uni-status-bar.vue'),
|
||||
uniIcons: () => import('@/components/uni-icons/uni-icons.vue'),
|
||||
},
|
||||
props: {
|
||||
title: {
|
||||
|
||||
Reference in New Issue
Block a user