Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
5c95f7db
提交
5c95f7db
编写于
9月 07, 2022
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除
上级
5659c25f
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
0 行增加
和
143 行删除
+0
-143
App.vue
App.vue
+0
-49
dist.rar
dist.rar
+0
-0
main.ts
main.ts
+0
-75
shims-tsx.d.ts
shims-tsx.d.ts
+0
-13
shims-vue.d.ts
shims-vue.d.ts
+0
-6
未找到文件。
App.vue
已删除
100644 → 0
浏览文件 @
5659c25f
<
template
>
<div
id=
"app"
>
<transition
:name=
"animateName"
>
<keep-alive>
<router-view
class=
"router-container"
v-if=
"$route.meta.keepAlive"
>
</router-view>
</keep-alive>
</transition>
<!--
<transition
:name=
"animateName"
>
-->
<router-view
class=
"router-container"
v-if=
"!$route.meta.keepAlive"
>
</router-view>
<!--
</transition>
-->
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Watch
,
Vue
}
from
"
vue-property-decorator
"
;
import
routerService
from
"
@/services/router.service
"
;
import
{
Dialog
}
from
"
vant
"
;
Vue
.
use
(
Dialog
);
@
Component
({
name
:
"
App
"
,
})
export
default
class
App
extends
Vue
{
animateName
=
""
;
// 路由动画名称
pathMap
:
any
=
{};
// 存储路由对象
@
Watch
(
"
$route
"
)
onRouterChanged
(
to
:
any
,
from
:
any
)
{
if
(
from
.
path
===
"
/
"
)
{
return
;
}
const
anim
=
routerService
.
animateName
(
to
,
from
,
this
);
// this.animateName = `slide-${anim}`;
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
#app
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
overflow
:
hidden
;
.main-view
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
dist.rar
已删除
100644 → 0
浏览文件 @
5659c25f
文件已删除
main.ts
已删除
100644 → 0
浏览文件 @
5659c25f
/*
* @Author: jiangzaicheng jiangzaicheng_jzc@163.com
* @Date: 2022-07-04 15:41:06
* @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com
* @LastEditTime: 2022-07-25 16:33:54
* @FilePath: \mcep-h5\src\main.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
Vue
from
"
vue
"
;
import
App
from
"
./App.vue
"
;
import
router
from
"
./router
"
;
import
store
from
"
./stores
"
;
import
componentService
from
"
@/services/component-vue.service
"
;
import
enumService
from
"
./constants/enum/enum.service
"
;
import
filterService
from
"
./filtres/filter.service
"
;
import
directiveService
from
"
./directives/directive.service
"
;
import
apiService
from
"
@/services/api.service
"
;
import
dbService
from
"
@/services/db.service
"
;
import
dictService
from
"
@/services/dict.service
"
;
import
"
./assets/iconfont/iconfont.css
"
;
import
"
./assets/iconfont/iconfont.js
"
;
import
{
NativeUI
}
from
"
@/public/ts/NativeUI
"
;
/* START导入样式*/
import
"
@dhccmobile/common-style
"
;
import
"
vant/lib/index.css
"
;
import
"
@/assets/css/index.scss
"
;
import
nativeService
from
"
@/services/native.service
"
;
import
{
Step
,
Steps
}
from
'
vant
'
;
import
vueEsign
from
'
vue-esign
'
;
import
Vconsole
from
'
vconsole
'
;
import
Vant
from
'
vant
'
;
import
Element
from
'
element-ui
'
import
ant
from
'
ant-design-vue
'
import
'
ant-design-vue/dist/antd.css
'
import
{
VanComponent
}
from
"
vant/types/component
"
import
'
element-ui/lib/theme-chalk/index.css
'
;
Vue
.
use
(
Element
);
Vue
.
use
(
Vant
);
Vue
.
use
(
ant
);
Vue
.
use
(
vueEsign
);
Vue
.
use
(
Step
);
Vue
.
use
(
Steps
);
Vue
.
config
.
productionTip
=
process
.
env
.
PRODUCTION_TIP
;
/*注册组件*/
componentService
.
init
();
/*注册全局枚举*/
enumService
.
init
();
/*注册全局过滤器*/
filterService
.
init
();
/*注册全局指令*/
directiveService
.
init
();
/*注册axios*/
apiService
.
init
();
dbService
.
initDB
().
then
(()
=>
{
dictService
.
init
();
});
new
Vconsole
();
/*h5+插件*/
nativeService
.
init
();
new
Vue
({
router
,
store
,
render
:
(
h
)
=>
h
(
App
),
}).
$mount
(
"
#app
"
);
shims-tsx.d.ts
已删除
100644 → 0
浏览文件 @
5659c25f
import
Vue
,
{
VNode
}
from
"
vue
"
;
declare
global
{
namespace
JSX
{
// tslint:disable no-empty-interface
interface
Element
extends
VNode
{}
// tslint:disable no-empty-interface
interface
ElementClass
extends
Vue
{}
interface
IntrinsicElements
{
[
elem
:
string
]:
any
;
}
}
}
shims-vue.d.ts
已删除
100644 → 0
浏览文件 @
5659c25f
declare
module
"
*.vue
"
{
import
Vue
from
"
vue
"
;
export
default
Vue
;
}
declare
module
'
vue-esign
'
declare
module
'
vue-qr
'
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录