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 094bf523
authored
Feb 15, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add:更改气泡样式类名
1 parent
98285ed4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
33 deletions
src/App.vue
src/main.js
src/packages/Popover/src/Popover.md
src/theme/theme.scss
src/App.vue
View file @
094bf52
...
...
@@ -44,11 +44,12 @@
<p>Here's some contact info</p>
</template>
</gl-tooltip> -->
<
!-- <
el-tooltip class="item" content="hello tooltip" placement="top-start">
<el-tooltip
class=
"item"
content=
"hello tooltip"
placement=
"top-start"
>
<el-button>
上左
</el-button>
</el-tooltip> -->
<el-popover
popper-class=
"bubble-box"
placement=
"top"
width=
"600"
trigger=
"click"
>
<div
class=
"bubble-content"
>
</el-tooltip>
<el-popover
popper-class=
"gl-popover"
placement=
"top"
width=
"600"
trigger=
"click"
>
<div
class=
"gl-popover-content"
>
<el-table
:data=
"gridData"
>
<el-table-column
width=
"150"
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
width=
"100"
property=
"name"
label=
"姓名"
></el-table-column>
...
...
@@ -58,15 +59,16 @@
<el-button
slot=
"reference"
>
click 激活
</el-button>
</el-popover>
<GLFooter></GLFooter>
<!-- <el-popover
placement="bottom"
title="标题"
width="200"
trigger="manual"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
v-model="visible">
<el-button slot="reference" @click="visible = !visible">手动激活</el-button>
</el-popover> -->
<!-- width="200" -->
<!-- title="标题" -->
<el-popover
placement=
"bottom"
trigger=
"manual"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
v-model=
"visible"
>
<el-button
slot=
"reference"
@
click=
"visible = !visible"
>
手动激活
</el-button>
</el-popover>
<!-- <el-popover
placement="top"
width="160"
...
...
@@ -236,17 +238,17 @@ export default {
date
:
'2016-05-04'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
}
//
{
//
date: '2016-05-01',
//
name: '王小虎',
//
address: '上海市普陀区金沙江路 1518 弄'
//
},
//
{
//
date: '2016-05-03',
//
name: '王小虎',
//
address: '上海市普陀区金沙江路 1518 弄'
//
},
}
,
{
date
:
'2016-05-01'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
},
// {
// date: '2016-05-01',
// name: '王小虎',
...
...
src/main.js
View file @
094bf52
...
...
@@ -46,15 +46,15 @@ Object.keys(filters).forEach(key => {
// })
// // element ui组件
//
import '@/plugins/element.js'
//
import '@/theme/theme.scss'
import
'@/plugins/element.js'
import
'@/theme/theme.scss'
// // import '../dist/glsx-components.css'
// //开发完成后,本地测试使用我们第二次封装的组件
//
import './index'
import
'./index'
//开发完成后,打包后本地测试,我们第二次封装的组件
import
'./localtest/index'
//
import './localtest/index'
Vue
.
config
.
productionTip
=
false
...
...
src/packages/Popover/src/Popover.md
View file @
094bf52
...
...
@@ -143,7 +143,7 @@
<el-popover
placement="top"
width="
20
0"
width="
38
0"
trigger="click"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<el-button slot="reference">
click 激活
</el-button>
...
...
@@ -160,7 +160,7 @@
<template>
<el-popover
placement=
"top"
width=
"
20
0"
width=
"
38
0"
trigger=
"click"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-button
slot=
"reference"
>
click 激活
</el-button>
...
...
src/theme/theme.scss
View file @
094bf52
...
...
@@ -454,6 +454,7 @@ $dackColor: $color-primary-dark30;
// 第二层黑色
.el-popover
{
padding
:
10px
;
box-sizing
:
border-box
;
}
.el-popover--plain
{
padding
:
10px
;
...
...
@@ -468,9 +469,9 @@ $dackColor: $color-primary-dark30;
// 气泡(基础用法,气泡框)
// width 600px
.
bubble-box
{
padding
:
20px
;
.
bubble
-content
{
.
gl-popover
{
padding
:
20px
!
important
;
.
gl-popover
-content
{
max-height
:
172px
;
overflow-y
:
auto
;
@extend
.scrollbar-common
;
...
...
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