Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
绝世唐门三哥
Vue Manage System
提交
645e9024
Vue Manage System
项目概览
绝世唐门三哥
/
Vue Manage System
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Vue Manage System
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
645e9024
编写于
4月 13, 2018
作者:
L
lin-xin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
'重写mavonEditor的flex样式兼容IE'
上级
34a4fd4b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
76 addition
and
4 deletion
+76
-4
config/index.js
config/index.js
+1
-1
package.json
package.json
+1
-1
src/components/page/Markdown.vue
src/components/page/Markdown.vue
+2
-0
src/main.js
src/main.js
+2
-2
static/css/mavon-flex.css
static/css/mavon-flex.css
+70
-0
未找到文件。
config/index.js
浏览文件 @
645e9024
...
...
@@ -65,7 +65,7 @@ module.exports = {
* Source Maps
*/
productionSourceMap
:
tru
e
,
productionSourceMap
:
fals
e
,
// https://webpack.js.org/configuration/devtool/#production
devtool
:
'
#source-map
'
,
...
...
package.json
浏览文件 @
645e9024
...
...
@@ -65,7 +65,7 @@
},
"browserslist"
:
[
"> 1%"
,
"last
2
versions"
,
"last
5
versions"
,
"not ie <= 8"
]
}
src/components/page/Markdown.vue
浏览文件 @
645e9024
...
...
@@ -20,6 +20,8 @@
<
script
>
import
{
mavonEditor
}
from
'
mavon-editor
'
import
'
mavon-editor/dist/css/index.css
'
// 重写mavon的flex样式来兼容IE
import
'
static/css/mavon-flex.css
'
export
default
{
data
:
function
(){
return
{
...
...
src/main.js
浏览文件 @
645e9024
...
...
@@ -18,7 +18,7 @@ router.beforeEach((to, from, next) => {
role
===
'
admin
'
?
next
()
:
next
(
'
/login
'
);
}
else
{
// 简单的判断IE10及以下不进入富文本编辑器,该组件不兼容
if
(
navigator
.
userAgent
.
indexOf
(
'
MSIE
'
)
&&
to
.
path
===
'
/editor
'
){
if
(
navigator
.
userAgent
.
indexOf
(
'
MSIE
'
)
>
-
1
&&
to
.
path
===
'
/editor
'
){
Vue
.
prototype
.
$alert
(
'
vue-quill-editor组件不兼容IE10及以下浏览器,请使用更高版本的浏览器查看
'
,
'
浏览器不兼容通知
'
,
{
confirmButtonText
:
'
确定
'
});
...
...
@@ -27,7 +27,7 @@ router.beforeEach((to, from, next) => {
}
}
})
console
.
log
(
navigator
.
userAgent
);
new
Vue
({
router
,
render
:
h
=>
h
(
App
)
...
...
static/css/mavon-flex.css
0 → 100644
浏览文件 @
645e9024
.v-note-wrapper
{
display
:
flex
;
flex-direction
:
column
;
}
.v-note-wrapper
.v-note-op
{
display
:
flex
;
flex
:
none
;
}
.v-note-wrapper
.v-note-op
.left
,
.v-note-wrapper
.v-note-op
.right
{
flex
:
1
;
}
.v-note-wrapper
{
display
:
flex
;
flex-direction
:
column
;
}
.v-note-wrapper
.v-note-op
{
display
:
flex
;
flex
:
none
;
}
.v-note-wrapper
.v-note-op
.left
,
.v-note-wrapper
.v-note-op
.right
{
flex
:
1
;
}
.v-note-wrapper
.v-note-panel
{
display
:
flex
;
flex
:
1
;
min-height
:
500px
;
}
.v-note-wrapper
.v-note-panel
.v-note-edit.divarea-wrapper
{
flex
:
0
0
50%
;
}
.v-note-wrapper
.v-note-panel
.v-note-edit.divarea-wrapper.single-edit
{
flex
:
0
0
100%
;
}
.v-note-wrapper
.v-note-panel
.v-note-edit.divarea-wrapper.single-show
{
width
:
0
;
flex
:
0
0
0
;
display
:
none
;
}
.v-note-wrapper
.v-note-panel
.v-note-show
{
flex
:
0
0
50%
;
}
.v-note-wrapper
.v-note-panel
.v-note-show.single-show
{
flex
:
0
0
100%
;
}
.v-note-wrapper
.v-note-panel
.v-note-navigation-wrapper
{
display
:
flex
;
flex-direction
:
column
;
}
.v-note-wrapper
.v-note-panel
.v-note-navigation-wrapper
.v-note-navigation-title
{
flex
:
none
;
}
.v-note-wrapper
.v-note-panel
.v-note-navigation-wrapper
.v-note-navigation-content
{
flex
:
1
;
}
.v-note-img-wrapper
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.v-note-img-wrapper
img
{
flex
:
0
0
auto
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录