Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 689ddbb2
authored
Jul 21, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v1.0.0' of
http://192.168.3.233:8090/npm/glsx-components
into dev_v1.0.0
2 parents
2eb4b02a
759f9139
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
src/main.js
src/packages/GLDialog/src/index.vue
src/theme/theme.scss
src/main.js
View file @
689ddbb
...
@@ -23,10 +23,10 @@ import '@/theme/theme.scss'
...
@@ -23,10 +23,10 @@ import '@/theme/theme.scss'
// // import '../dist/glsx-components.css'
// // import '../dist/glsx-components.css'
// //开发完成后,本地测试使用我们第二次封装的组件
// //开发完成后,本地测试使用我们第二次封装的组件
//
import './index'
import
'./index'
//开发完成后,打包后本地测试,我们第二次封装的组件
//开发完成后,打包后本地测试,我们第二次封装的组件
import
'./localtest/index'
//
import './localtest/index'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
src/packages/GLDialog/src/index.vue
View file @
689ddbb
<
template
>
<
template
>
<div
class=
"gl-dialog-wrap"
:class=
"mode"
>
<div
class=
"gl-dialog-wrap
"
:class=
"mode"
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
>
<template
v-slot:title
>
<template
v-slot:title
>
<!-- 标题插槽 -->
<!-- 标题插槽 -->
<slot
name=
"title"
v-if=
"!bigTitle"
></slot>
<slot
name=
"title"
v-if=
"!bigTitle"
></slot>
<template
v-if=
"bigTitle"
>
<template
v-if=
"bigTitle"
>
<template
v-if=
"mode === 'big'"
>
<template
v-if=
"mode === 'big'"
>
<span
class=
"el-dialog__title"
>
{{
bigTitle
}}
</span>
<span
class=
"el-dialog__title"
v-if=
"!$slots.custombigtitle"
>
{{
bigTitle
}}
</span>
<span
class=
"el-dialog__title"
v-if=
"$slots.custombigtitle"
>
<!-- 大弹窗自定义插槽 -->
<slot
name=
"custombigtitle"
></slot>
</span>
<button
type=
"button"
aria-label=
"Close"
class=
"el-dialog__headerbtn"
>
<button
type=
"button"
aria-label=
"Close"
class=
"el-dialog__headerbtn"
>
<!--
<i
v-if=
"mode === 'big'"
class=
"el-icon-full-screen full-screen"
@
click=
"fullScreenFn"
></i>
-->
<!--
<i
v-if=
"mode === 'big'"
class=
"el-icon-full-screen full-screen"
@
click=
"fullScreenFn"
></i>
-->
<i
v-if=
"mode === 'big'"
:class=
"isFull ? 's-full-screen' : 'full-screen'"
@
click=
"fullScreenFn"
></i>
<i
v-if=
"mode === 'big'"
:class=
"isFull ? 's-full-screen' : 'full-screen'"
@
click=
"fullScreenFn"
></i>
...
@@ -90,6 +96,7 @@ export default {
...
@@ -90,6 +96,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'slots'
,
this
.
$slots
)
document
.
addEventListener
(
'fullscreenchange'
,
()
=>
{
document
.
addEventListener
(
'fullscreenchange'
,
()
=>
{
this
.
fullscreenchangeFn
()
this
.
fullscreenchangeFn
()
})
})
...
@@ -255,6 +262,7 @@ export default {
...
@@ -255,6 +262,7 @@ export default {
top
:
18px
;
top
:
18px
;
font-size
:
24px
;
font-size
:
24px
;
font-weight
:
600
;
font-weight
:
600
;
line-height
:
24px
;
color
:
#000
;
color
:
#000
;
.full-screen
{
.full-screen
{
display
:
block
;
display
:
block
;
...
@@ -288,4 +296,11 @@ export default {
...
@@ -288,4 +296,11 @@ export default {
height
:
40px
;
height
:
40px
;
}
}
}
}
//
.gl-dialog-scrm
{
//
.el-dialog__header
{
//
.el-dialog__headerbtn
{
//
top
:
15px
;
//
}
//
}
//
}
</
style
>
</
style
>
src/theme/theme.scss
View file @
689ddbb
...
@@ -645,6 +645,9 @@ $lightColorDisabled: $color-primary-light04;
...
@@ -645,6 +645,9 @@ $lightColorDisabled: $color-primary-light04;
// this.$confirm样式
// this.$confirm样式
.gl-message-box
{
.gl-message-box
{
.el-message-box__title
{
line-height
:
27px
;
}
.el-message-box__headerbtn
{
.el-message-box__headerbtn
{
height
:
100%
;
height
:
100%
;
top
:
0
;
top
:
0
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment