component_ryl_v3 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -0
- package/dist/component_ryl_v3.css +1 -0
- package/dist/component_ryl_v3.js +1240 -0
- package/dist/vite.svg +1 -0
- package/package.json +48 -0
- package/src/App.vue +215 -0
- package/src/assets/img/hide.png +0 -0
- package/src/assets/img/noData.png +0 -0
- package/src/assets/img/portrait.jpg +0 -0
- package/src/assets/styles/common.scss +239 -0
- package/src/assets/styles/dialog.scss +45 -0
- package/src/assets/styles/element-plus-theme.scss +15 -0
- package/src/assets/styles/index.scss +93 -0
- package/src/index.js +33 -0
- package/src/main.js +11 -0
- package/src/packages/directives/copy/index.js +47 -0
- package/src/packages/directives/debounce/index.js +17 -0
- package/src/packages/directives/index.js +18 -0
- package/src/packages/directives/money/index.js +84 -0
- package/src/packages/directives/throttle/index.js +29 -0
- package/src/packages/handConfirmNew/index.js +79 -0
- package/src/packages/handDialog/handDialog.vue +204 -0
- package/src/packages/handHeader/handHeader.vue +572 -0
- package/src/packages/handHeader/sidebarItem.vue +173 -0
- package/src/packages/handNoData/handNoData.vue +45 -0
- package/src/packages/handPaging/handPaging.vue +137 -0
- package/src/packages/handSeeImg/handSeeImg.vue +80 -0
- package/src/packages/handTab/handTab.vue +108 -0
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "component_ryl_v3",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Vue3 login form component with Element Plus",
|
|
7
|
+
"main": "./dist/component_ryl_v3.js",
|
|
8
|
+
"module": "./dist/component_ryl_v3.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/component_ryl_v3.js"
|
|
12
|
+
},
|
|
13
|
+
"./dist/style.css": "./dist/component_ryl_v3.css"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"vue",
|
|
21
|
+
"vue3",
|
|
22
|
+
"component",
|
|
23
|
+
"login",
|
|
24
|
+
"form",
|
|
25
|
+
"element-plus"
|
|
26
|
+
],
|
|
27
|
+
"author": "",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"build": "vite build",
|
|
32
|
+
"preview": "vite preview"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"vue": "^3.5.13"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
39
|
+
"element-plus": "^2.14.2"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
43
|
+
"sass-embedded": "^1.100.0",
|
|
44
|
+
"unplugin-auto-import": "^21.0.0",
|
|
45
|
+
"unplugin-vue-components": "^32.1.0",
|
|
46
|
+
"vite": "^6.3.5"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<hand-header
|
|
3
|
+
:userInfo="userInfo"
|
|
4
|
+
collapse
|
|
5
|
+
:defaultActive="menuActive"
|
|
6
|
+
:menuList="menuList"
|
|
7
|
+
>
|
|
8
|
+
<template #headElseTitle>
|
|
9
|
+
<div style="color:#fff;text-align:center;font-size:20px;">
|
|
10
|
+
{{ menuList.name }}
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<template #headElseInfo>
|
|
14
|
+
这是头部补充的内容
|
|
15
|
+
</template>
|
|
16
|
+
<template #headElseInfoRight>
|
|
17
|
+
工单
|
|
18
|
+
<div class="dropDown initWork">
|
|
19
|
+
<em class="san"></em>
|
|
20
|
+
<a
|
|
21
|
+
class="color"
|
|
22
|
+
target="_blank"
|
|
23
|
+
>提交工单</a
|
|
24
|
+
>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
<template #headElseHand>
|
|
28
|
+
<ul>
|
|
29
|
+
<li>1</li>
|
|
30
|
+
<li>2</li>
|
|
31
|
+
</ul>
|
|
32
|
+
</template>
|
|
33
|
+
<template #content>
|
|
34
|
+
<h6>Tab</h6>
|
|
35
|
+
<hand-tab :list="[{ label: '全部', value: 'all' }, { label: '待处理是的', value: 'pending' }, { label: '已处理', value: 'processed' }]" @getStatus="getStatus" />
|
|
36
|
+
<h6>图片预览</h6>
|
|
37
|
+
<img src="https://img.alicdn.com/bao/uploaded/i3/2206588314948/O1CN01KjFgoO1mQEsQjnFbC_!!2206588314948-0-C2M.jpg" alt="" style="width:60px;height: 60px;" @click="openPreview($event.target.currentSrc)">
|
|
38
|
+
<hand-see-img ref="handSeeImgRef" />
|
|
39
|
+
<h6>分页</h6>
|
|
40
|
+
<div>
|
|
41
|
+
<hand-paging :currentPage="handPagingRef.page" :total="handPagingRef.total" :pageSize="handPagingRef.pageSize" :size="handPagingRef.size" @page-change="handlePageChange" />
|
|
42
|
+
</div>
|
|
43
|
+
<h6>空数据提示</h6>
|
|
44
|
+
<hand-no-data title="暂无数据" />
|
|
45
|
+
<h6>弹窗</h6>
|
|
46
|
+
<el-button @click="openDialog" type="danger">打开弹窗</el-button>
|
|
47
|
+
<hand-dialog
|
|
48
|
+
v-model="dialogAcess"
|
|
49
|
+
title="添加/编辑快捷入口"
|
|
50
|
+
:center="false"
|
|
51
|
+
@cancel="exitDialog"
|
|
52
|
+
@confirm="saveAccess"
|
|
53
|
+
customClass="sldkslfd"
|
|
54
|
+
>
|
|
55
|
+
<template #content>
|
|
56
|
+
111
|
|
57
|
+
</template>
|
|
58
|
+
</hand-dialog>
|
|
59
|
+
<h6>询问窗口</h6>
|
|
60
|
+
<el-button v-debounce="[openConfirm,300,[1,2,3,4,5,6,7]]" type="success">打开询问窗口</el-button>
|
|
61
|
+
<h6>自定义指令</h6>
|
|
62
|
+
<span>防抖</span>
|
|
63
|
+
<el-input v-model="inputValue" v-debounce:input="handleInput" placeholder="请输入"></el-input>
|
|
64
|
+
<span>节流</span>
|
|
65
|
+
<el-input v-model="inputValue" v-throttle:input="handleInput" placeholder="请输入"></el-input>
|
|
66
|
+
<span>金额格式</span>
|
|
67
|
+
<el-input v-model="inputMoney" v-money="{max:100}" placeholder="请输入"></el-input>
|
|
68
|
+
<span>复制</span><br>
|
|
69
|
+
<el-button v-copy="['这是复制的内容',copyBack]">点击复制</el-button>
|
|
70
|
+
</template>
|
|
71
|
+
</hand-header>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<script setup>
|
|
75
|
+
import { ref } from 'vue'
|
|
76
|
+
import HandHeader from './packages/handHeader/handHeader.vue'
|
|
77
|
+
import HandTab from './packages/handTab/handTab.vue'
|
|
78
|
+
import HandSeeImg from './packages/handSeeImg/handSeeImg.vue'
|
|
79
|
+
import HandPaging from './packages/handPaging/handPaging.vue'
|
|
80
|
+
import HandNoData from './packages/handNoData/handNoData.vue'
|
|
81
|
+
import HandDialog from './packages/handDialog/handDialog.vue'
|
|
82
|
+
import { ElButton, ElInput } from 'element-plus'
|
|
83
|
+
import { handConfirmNew } from '@/packages/handConfirmNew'
|
|
84
|
+
//#region Tab组件
|
|
85
|
+
const getStatus = (v) => {
|
|
86
|
+
console.log(v)
|
|
87
|
+
}
|
|
88
|
+
//#endregion Tab组件
|
|
89
|
+
//#region 图片预览组件
|
|
90
|
+
const handSeeImgRef = ref(null)
|
|
91
|
+
const openPreview = (imageSrc) => {
|
|
92
|
+
handSeeImgRef.value.openPreview(imageSrc)
|
|
93
|
+
}
|
|
94
|
+
//#endregion 图片预览组件
|
|
95
|
+
//#region 分页组件
|
|
96
|
+
const handPagingRef = ref({page: 1, total: 100, pageSize: 10})
|
|
97
|
+
const handlePageChange = (v) => {
|
|
98
|
+
handPagingRef.value.page = v.page
|
|
99
|
+
handPagingRef.value.pageSize = v.pageSize
|
|
100
|
+
}
|
|
101
|
+
//#endregion 分页组件
|
|
102
|
+
//#region 弹窗组件
|
|
103
|
+
const dialogAcess = ref(false)
|
|
104
|
+
const openDialog = () => {
|
|
105
|
+
dialogAcess.value = true
|
|
106
|
+
}
|
|
107
|
+
const saveAccess = () => {
|
|
108
|
+
dialogAcess.value = false
|
|
109
|
+
console.log('确认弹窗')
|
|
110
|
+
}
|
|
111
|
+
const exitDialog = () => {
|
|
112
|
+
dialogAcess.value = false
|
|
113
|
+
console.log('取消弹窗')
|
|
114
|
+
}
|
|
115
|
+
//#endregion 弹窗组件
|
|
116
|
+
//#region 用户信息
|
|
117
|
+
const userInfo = ref({
|
|
118
|
+
name: '1112', // 登录人的名称
|
|
119
|
+
copyRight: `<div><p>网上有害信息举报专区 | <a href=\"https://www.12377.cn/\" target=\"_blank\">中央网信办(国家网信办)违法和不良信息举报中心</a></p>\r\n<span style=\"color: #a3a3a3;\">Copyright © 2021-2023.</span>\r\n <a href=\"/\">四川聚达鼎盛信息技术有限公司</a> \r\n <a href=\"https://beian.miit.gov.cn/#/Integrated/index\" target=\"_blank\">蜀ICP备20002637号-1</a> \r\n <a href=\"https://saas-1259468876.cos.ap-shanghai.myqcloud.com/saas/other/%E7%94%B5%E4%BF%A1%E5%A2%9E%E5%80%BC.jpg\" target=\"_blank\">电信增值业务许可证</a> \r\n <a href=\"https://saas-1259468876.cos.ap-shanghai.myqcloud.com/saas/other/%E8%90%A5%E4%B8%9A%E6%89%A7%E7%85%A7.jpg\" target=\"_blank\">营业执照</a></div>`,
|
|
120
|
+
})
|
|
121
|
+
const menuActive = ref('/third')
|
|
122
|
+
const menuList = ref( {
|
|
123
|
+
name: "控",
|
|
124
|
+
list: [
|
|
125
|
+
{
|
|
126
|
+
path: "/third",
|
|
127
|
+
meta: { title: "菜单3", icon: "icon-kuaijierukou" },
|
|
128
|
+
tips: { name: "num", value: 32 },
|
|
129
|
+
id:1
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
path: "/third_pre",
|
|
133
|
+
meta: { title: "菜单3Prev", icon: "icon-tuiguang1" },
|
|
134
|
+
tips: { name: "num", value: 8 },
|
|
135
|
+
id:12
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
path: "/third2",
|
|
139
|
+
meta: { title: "级菜单", icon: "icon-shangchuan" },
|
|
140
|
+
tips: { name: "hot" },
|
|
141
|
+
id:2,
|
|
142
|
+
children: [
|
|
143
|
+
{
|
|
144
|
+
path: "/home",
|
|
145
|
+
meta: { title: "水电费" },
|
|
146
|
+
tips: { name: "new" },
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
path: "/third3",
|
|
152
|
+
icon: "iconicon-test",
|
|
153
|
+
meta: { title: "三级菜单", icon: "icon-daochu" },
|
|
154
|
+
tips: { name: "run",value: 'HOT' },
|
|
155
|
+
id:4,
|
|
156
|
+
children: [
|
|
157
|
+
{
|
|
158
|
+
path: "/sd",
|
|
159
|
+
meta: { title: "实力坑爹" },
|
|
160
|
+
id:5,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
path: "/sd1",
|
|
164
|
+
meta: { title: "实力" },
|
|
165
|
+
id:6,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "/third3-1",
|
|
169
|
+
icon: "iconicon-test",
|
|
170
|
+
meta: { title: "皮斯柯达"},
|
|
171
|
+
id:6,
|
|
172
|
+
children: [
|
|
173
|
+
{
|
|
174
|
+
path: "/psmdsl",
|
|
175
|
+
id:7,
|
|
176
|
+
meta: { title: "历史课"},
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
})
|
|
184
|
+
//#endregion 用户信息
|
|
185
|
+
//#region 询问窗口组件
|
|
186
|
+
const openConfirm = () => {
|
|
187
|
+
handConfirmNew({
|
|
188
|
+
text: '塑料袋建设路口封建势力扩大发啦建设<br />路口到付件老师的开<b>发老师快</b>递费了收快递费塑料袋建设路口封建势力扩大发啦建设路口到付件老师的开发老师快递费了收快递费',
|
|
189
|
+
type:2,
|
|
190
|
+
title:'提示'
|
|
191
|
+
}).then(() => {
|
|
192
|
+
console.log('确认删除')
|
|
193
|
+
}).catch(() => {
|
|
194
|
+
console.log('取消删除')
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
//#endregion 询问窗口组件
|
|
198
|
+
//#region 自定义指令
|
|
199
|
+
const inputValue = ref('')
|
|
200
|
+
const handleInput = () => {
|
|
201
|
+
console.log(inputValue.value)
|
|
202
|
+
}
|
|
203
|
+
const inputMoney = ref('')
|
|
204
|
+
const handleMoney = () => {
|
|
205
|
+
console.log(inputMoney.value)
|
|
206
|
+
}
|
|
207
|
+
const copyBack = (err, success) => {
|
|
208
|
+
if (success) {
|
|
209
|
+
console.log('复制成功')
|
|
210
|
+
} else {
|
|
211
|
+
console.log(err || '复制失败')
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
//#endregion 自定义指令
|
|
215
|
+
</script>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
// table 区域
|
|
2
|
+
.JD_table.el-table {
|
|
3
|
+
&::before {
|
|
4
|
+
height: 0 !important;
|
|
5
|
+
}
|
|
6
|
+
width: 100%;
|
|
7
|
+
th,th.el-table__cell {
|
|
8
|
+
background-color: rgba(239,242,245,.5);
|
|
9
|
+
padding: 0;
|
|
10
|
+
height: 40px;
|
|
11
|
+
line-height: 40px;
|
|
12
|
+
border-bottom: none !important;
|
|
13
|
+
.cell {
|
|
14
|
+
font-weight: normal;
|
|
15
|
+
color: #999999;
|
|
16
|
+
text-align: left;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
td,td.el-table__cell {
|
|
21
|
+
padding: 0;
|
|
22
|
+
height: 48px;
|
|
23
|
+
line-height: 48px;
|
|
24
|
+
.cell {
|
|
25
|
+
line-height: normal;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// table 添加了 border属性,把多余的边框 隐藏
|
|
31
|
+
.el-table--group, .el-table--border{
|
|
32
|
+
border: none !important;
|
|
33
|
+
&::after{
|
|
34
|
+
width: 0 !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.el-table--border .el-table__cell,.el-table--border td{
|
|
38
|
+
border-right: none !important;
|
|
39
|
+
}
|
|
40
|
+
.el-table--border th.el-table__cell{
|
|
41
|
+
border-right: 1px solid #ebeef5 !important;
|
|
42
|
+
}
|
|
43
|
+
// table内容居中
|
|
44
|
+
.el-table .cell{
|
|
45
|
+
text-align: center !important;
|
|
46
|
+
}
|
|
47
|
+
//解决 elementUI 在IE下 table 表格宽度不是100%的问题
|
|
48
|
+
.el-table__header,
|
|
49
|
+
.el-table__empty-block,
|
|
50
|
+
.el-table__body {
|
|
51
|
+
width: 100% !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// button
|
|
55
|
+
.el-button {
|
|
56
|
+
border-radius: 2px !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// input
|
|
60
|
+
.el-input input{
|
|
61
|
+
border-radius: 2px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// 导航菜单
|
|
65
|
+
// hover效果
|
|
66
|
+
.el-sub-menu__title:hover,.el-sub-menu .el-menu-item:hover,.el-menu-item:hover {
|
|
67
|
+
color: #fff !important;
|
|
68
|
+
background-color: #06f !important;
|
|
69
|
+
i.iconfont{
|
|
70
|
+
color: #fff !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// 有下级的hover效果(暂时不用)
|
|
74
|
+
.el-sub-menu__title:hover{
|
|
75
|
+
// background-color: #1e222d !important;
|
|
76
|
+
}
|
|
77
|
+
.el-sub-menu .el-menu-item.is-active,.el-menu-item.is-active,.el-sub-menu__title.is-active{
|
|
78
|
+
background-color: #06f !important;
|
|
79
|
+
i.iconfont{
|
|
80
|
+
color: #fff !important;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.el-sub-menu__title {
|
|
84
|
+
text-align: left !important;
|
|
85
|
+
}
|
|
86
|
+
// 二级菜单颜色
|
|
87
|
+
.el-sub-menu .el-menu-item{
|
|
88
|
+
min-width: auto !important;
|
|
89
|
+
background-color: #151822 !important;
|
|
90
|
+
padding-left: 46px !important;
|
|
91
|
+
position: relative;
|
|
92
|
+
&::after{
|
|
93
|
+
content: '';
|
|
94
|
+
width: 4px;
|
|
95
|
+
height: 4px;
|
|
96
|
+
background: #7C878E;
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
position: absolute;
|
|
99
|
+
top:19px;
|
|
100
|
+
left: 26px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// 二级菜单栏(整个模块)的背景颜色
|
|
104
|
+
.el-sub-menu .el-menu{
|
|
105
|
+
background-color: #151822 !important;
|
|
106
|
+
}
|
|
107
|
+
.el-menu {
|
|
108
|
+
border-right: none !important;
|
|
109
|
+
}
|
|
110
|
+
.el-menu-item,
|
|
111
|
+
.el-sub-menu__title{
|
|
112
|
+
height: 38px !important;
|
|
113
|
+
line-height: 38px !important;
|
|
114
|
+
margin-top: 2px;
|
|
115
|
+
*{
|
|
116
|
+
vertical-align: middle;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.el-submenu__title i.el-sub-menu__icon-arrow{
|
|
120
|
+
color: #C0C5C7;
|
|
121
|
+
font-weight: bold;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* 自定义弹窗 -- 询问弹窗 */
|
|
125
|
+
.el-message-box {
|
|
126
|
+
width: 400px !important;
|
|
127
|
+
}
|
|
128
|
+
// 自定义版本
|
|
129
|
+
.initMsg_in{
|
|
130
|
+
padding: 20px 0 !important;
|
|
131
|
+
.el-message-box__header {
|
|
132
|
+
padding: 0 !important;
|
|
133
|
+
.el-message-box__headerbtn {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
.el-message-box__status {
|
|
137
|
+
font-size: 50px !important;
|
|
138
|
+
svg{
|
|
139
|
+
font-size: 100%;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.el-message-box__content {
|
|
144
|
+
padding: 30px !important;
|
|
145
|
+
.el-message-box__message {
|
|
146
|
+
letter-spacing: 1px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.el-message-box__btns {
|
|
150
|
+
padding: 0 !important;
|
|
151
|
+
button {
|
|
152
|
+
min-width: 100px;
|
|
153
|
+
height: 40px;
|
|
154
|
+
border-radius: 4px;
|
|
155
|
+
&:nth-child(2) {
|
|
156
|
+
margin-left: 20px !important;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// 默认版本
|
|
162
|
+
.defaultMsg_in{
|
|
163
|
+
.el-message-box__container{
|
|
164
|
+
align-items: flex-start;
|
|
165
|
+
}
|
|
166
|
+
.el-message-box__title{
|
|
167
|
+
span{
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
.el-message-box__headerbtn .el-message-box__close{
|
|
173
|
+
font-size: 18px;
|
|
174
|
+
svg{
|
|
175
|
+
font-size: 100%;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.el-message-box__headerbtn{
|
|
179
|
+
top:7px;
|
|
180
|
+
right: 10px;
|
|
181
|
+
}
|
|
182
|
+
.el-message-box__status{
|
|
183
|
+
top:0;
|
|
184
|
+
transform: none;
|
|
185
|
+
svg{
|
|
186
|
+
font-size: 100px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.el-message-box__btns {
|
|
190
|
+
button {
|
|
191
|
+
min-width: 68px;
|
|
192
|
+
height: 32px;
|
|
193
|
+
border-radius: 4px;
|
|
194
|
+
border: none;
|
|
195
|
+
&:nth-child(2) {
|
|
196
|
+
// margin-left: 20px !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
// 是否是ie浏览器
|
|
204
|
+
.ieBro {
|
|
205
|
+
position: fixed;
|
|
206
|
+
padding: 10px;
|
|
207
|
+
z-index: 9999;
|
|
208
|
+
top: 0;
|
|
209
|
+
left: 0;
|
|
210
|
+
right: 0;
|
|
211
|
+
background: #fffade;
|
|
212
|
+
border: 1px solid #f9d878;
|
|
213
|
+
justify-content: space-between;
|
|
214
|
+
span,
|
|
215
|
+
a {
|
|
216
|
+
font-size: 12px;
|
|
217
|
+
}
|
|
218
|
+
.color {
|
|
219
|
+
text-decoration: underline;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// 单选框,复选框,下拉框等样式字号
|
|
224
|
+
.el-radio__label,.el-checkbox__label,.el-form-item__label{
|
|
225
|
+
font-size: 12px !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// form表单,横向排列的间距
|
|
229
|
+
.el-form--inline .el-form-item{
|
|
230
|
+
margin-right: 18px !important;
|
|
231
|
+
}
|
|
232
|
+
.el-form-item__label{
|
|
233
|
+
padding: 0 !important;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// tinymce 显示 自定义的 placeholder 重影优化
|
|
237
|
+
.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{
|
|
238
|
+
content: '' !important;
|
|
239
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.jddsDialog {
|
|
2
|
+
&.el-dialog {
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
}
|
|
5
|
+
.el-dialog__title,.zbt {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
color: #272727;
|
|
8
|
+
line-height: normal;
|
|
9
|
+
}
|
|
10
|
+
.el-dialog__body .el-form-item {
|
|
11
|
+
&:last-child {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
.el-dialog__headerbtn{
|
|
16
|
+
top:5px;
|
|
17
|
+
right: 0;
|
|
18
|
+
i{
|
|
19
|
+
font-size: 18px;
|
|
20
|
+
svg{
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.btn {
|
|
27
|
+
width: 88px;
|
|
28
|
+
height: 36px;
|
|
29
|
+
line-height: 36px;
|
|
30
|
+
border-radius: 4px;
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
.exit {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
}
|
|
36
|
+
.header-title{
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
&.el-dialog--center{
|
|
41
|
+
.header-title{
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// 引入其他css
|
|
2
|
+
@use "./dialog.scss";
|
|
3
|
+
@use "./common.scss";
|
|
4
|
+
|
|
5
|
+
*,
|
|
6
|
+
#app,
|
|
7
|
+
html,
|
|
8
|
+
body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
|
12
|
+
Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
}
|
|
15
|
+
a {
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
color: #5a5a5a;
|
|
18
|
+
}
|
|
19
|
+
li {
|
|
20
|
+
list-style: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.flex {
|
|
24
|
+
display: -webkit-flex; /* 新版本语法: Chrome 21+ */
|
|
25
|
+
display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */
|
|
26
|
+
display: -moz-box; /* 老版本语法: Firefox (buggy) */
|
|
27
|
+
display: -ms-flexbox; /* 混合版本语法: IE 10 */
|
|
28
|
+
}
|
|
29
|
+
.flex_row {
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
}
|
|
32
|
+
.flex_col {
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// 取消textarea缩放
|
|
37
|
+
.initTextarea > .el-textarea__inner {
|
|
38
|
+
resize: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 默认-滚动条自定义
|
|
42
|
+
::-webkit-scrollbar{
|
|
43
|
+
width:8px;
|
|
44
|
+
height:8px;
|
|
45
|
+
}
|
|
46
|
+
// 整个滚动条的背景
|
|
47
|
+
::-webkit-scrollbar-track{
|
|
48
|
+
background: transparent;
|
|
49
|
+
border-radius:4px;
|
|
50
|
+
}
|
|
51
|
+
// 滚动条内 滑块的背景
|
|
52
|
+
::-webkit-scrollbar-thumb{
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
border-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
::-webkit-scrollbar-thumb:hover{
|
|
57
|
+
background: #c2c2c2;
|
|
58
|
+
}
|
|
59
|
+
::-webkit-scrollbar-corner{
|
|
60
|
+
background: transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// 特殊情况下 需要默认显示出滚动条
|
|
64
|
+
.common_show_scroll{
|
|
65
|
+
&::-webkit-scrollbar-thumb{
|
|
66
|
+
background: #c2c2c2;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 处理tinymce默认标签的样式
|
|
71
|
+
.tinymce-editor-JustOne *:not(h1,h2,h3,h4,h5,h6){
|
|
72
|
+
font-size: inherit;
|
|
73
|
+
}
|
|
74
|
+
.tinymce-editor-JustOne {
|
|
75
|
+
h1{
|
|
76
|
+
font-size: 32px;
|
|
77
|
+
}
|
|
78
|
+
h2{
|
|
79
|
+
font-size: 28px;
|
|
80
|
+
}
|
|
81
|
+
h3{
|
|
82
|
+
font-size: 24px;
|
|
83
|
+
}
|
|
84
|
+
h4{
|
|
85
|
+
font-size: 20px;
|
|
86
|
+
}
|
|
87
|
+
h5{
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
}
|
|
90
|
+
h6{
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import HandDialog from './packages/handDialog/handDialog.vue'
|
|
2
|
+
import HandHeader from './packages/handHeader/handHeader.vue'
|
|
3
|
+
import HandNoData from './packages/handNoData/handNoData.vue'
|
|
4
|
+
import HandPaging from './packages/handPaging/handPaging.vue'
|
|
5
|
+
import HandSeeImg from './packages/handSeeImg/handSeeImg.vue'
|
|
6
|
+
import HandTab from './packages/handTab/handTab.vue'
|
|
7
|
+
import { handConfirmNew } from './packages/handConfirmNew/index.js'
|
|
8
|
+
import directives from './packages/directives'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
HandDialog,
|
|
14
|
+
HandHeader,
|
|
15
|
+
HandNoData,
|
|
16
|
+
HandPaging,
|
|
17
|
+
HandSeeImg,
|
|
18
|
+
HandTab,
|
|
19
|
+
handConfirmNew,
|
|
20
|
+
directives
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
install(app) {
|
|
25
|
+
app.component('HandDialog', HandDialog)
|
|
26
|
+
app.component('HandHeader', HandHeader)
|
|
27
|
+
app.component('HandNoData', HandNoData)
|
|
28
|
+
app.component('HandPaging', HandPaging)
|
|
29
|
+
app.component('HandSeeImg', HandSeeImg)
|
|
30
|
+
app.component('HandTab', HandTab)
|
|
31
|
+
app.use(directives)
|
|
32
|
+
}
|
|
33
|
+
}
|