Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ChenSun1
vue-vben-admin
提交
d73d43ed
V
vue-vben-admin
项目概览
ChenSun1
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d73d43ed
编写于
6月 01, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(table): make sure the table width is correct, fix #593
上级
8a3f47d6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
9 deletion
+14
-9
src/components/Table/src/BasicTable.vue
src/components/Table/src/BasicTable.vue
+2
-0
src/components/Tinymce/src/Editor.vue
src/components/Tinymce/src/Editor.vue
+7
-5
src/main.ts
src/main.ts
+5
-4
未找到文件。
src/components/Table/src/BasicTable.vue
浏览文件 @
d73d43ed
...
...
@@ -304,6 +304,8 @@
@prefix-cls: ~'@{namespace}-basic-table';
.@{prefix-cls} {
max-width: 100%;
&-row__striped {
td {
background-color: @app-content-background;
...
...
src/components/Tinymce/src/Editor.vue
浏览文件 @
d73d43ed
...
...
@@ -12,6 +12,7 @@
</
template
>
<
script
lang=
"ts"
>
import
type
{
RawEditorSettings
}
from
'
tinymce
'
;
import
tinymce
from
'
tinymce/tinymce
'
;
import
'
tinymce/themes/silver
'
;
...
...
@@ -71,7 +72,7 @@
const
tinymceProps
=
{
options
:
{
type
:
Object
as
PropType
<
any
>
,
type
:
Object
as
PropType
<
Partial
<
RawEditorSettings
>
>
,
default
:
{},
},
value
:
{
...
...
@@ -141,7 +142,7 @@
return
[
'
zh_CN
'
,
'
en
'
].
includes
(
lang
)
?
lang
:
'
zh_CN
'
;
});
const
initOptions
=
computed
(()
=>
{
const
initOptions
=
computed
(()
:
RawEditorSettings
=>
{
const
{
height
,
options
,
toolbar
,
plugins
}
=
props
;
const
publicPath
=
import
.
meta
.
env
.
VITE_PUBLIC_PATH
||
'
/
'
;
return
{
...
...
@@ -156,14 +157,15 @@
default_link_target
:
'
_blank
'
,
link_title
:
false
,
object_resizing
:
false
,
auto_focus
:
true
,
skin
:
skinName
.
value
,
skin_url
:
publicPath
+
'
resource/tinymce/skins/ui/
'
+
skinName
.
value
,
content_css
:
publicPath
+
'
resource/tinymce/skins/ui/
'
+
skinName
.
value
+
'
/content.min.css
'
,
...
options
,
setup
:
(
editor
:
any
)
=>
{
setup
:
(
editor
)
=>
{
editorRef
.
value
=
editor
;
editor
.
on
(
'
init
'
,
(
e
:
Event
)
=>
initSetup
(
e
));
editor
.
on
(
'
init
'
,
(
e
)
=>
initSetup
(
e
));
},
};
});
...
...
@@ -210,7 +212,7 @@
tinymce
.
init
(
unref
(
initOptions
));
}
function
initSetup
(
e
:
Event
)
{
function
initSetup
(
e
)
{
const
editor
=
unref
(
editorRef
);
if
(
!
editor
)
{
return
;
...
...
src/main.ts
浏览文件 @
d73d43ed
import
'
/@/design/index.less
'
;
// Register windi
import
'
virtual:windi.css
'
;
// Register icon sprite
import
'
virtual:svg-icons-register
'
;
import
{
createApp
}
from
'
vue
'
;
import
App
from
'
./App.vue
'
;
import
{
initAppConfigStore
}
from
'
/@/logics/initAppConfig
'
;
import
{
setupErrorHandle
}
from
'
/@/logics/error-handle
'
;
import
router
,
{
setupRouter
}
from
'
/@/router
'
;
import
{
setupRouterGuard
}
from
'
/@/router/guard
'
;
import
{
setupStore
}
from
'
/@/store
'
;
import
{
setupErrorHandle
}
from
'
/@/logics/error-handle
'
;
import
{
setupGlobDirectives
}
from
'
/@/directives
'
;
import
{
setupI18n
}
from
'
/@/locales/setupI18n
'
;
import
{
registerGlobComp
}
from
'
/@/components/registerGlobComp
'
;
// Register icon Sprite
import
'
virtual:svg-icons-register
'
;
// Do not introduce on-demand in local development?
// In the local development for introduce on-demand, the number of browser requests will increase by about 20%.
// Which may slow down the browser refresh.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录