t20-common-lib 0.7.7 → 0.7.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "t20-common-lib",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "T20",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"core-js": "^2.6.12",
|
|
32
32
|
"element-ui": "^2.15.13",
|
|
33
|
+
"highlight.js": "^11.11.1",
|
|
33
34
|
"n20-common-lib": "^2.16.24",
|
|
34
35
|
"normalize.css": "^8.0.1",
|
|
35
36
|
"vue": "^2.6.14",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="t20-form flex-column">
|
|
3
|
+
<div class="m-b-s" v-if="$slots.header">
|
|
4
|
+
<slot name="header"></slot>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="n20-page-content flex-item">
|
|
7
|
+
<!--
|
|
8
|
+
锚点 + 表单
|
|
9
|
+
<N20-anchor v-model="action" position="right">
|
|
10
|
+
<el-form
|
|
11
|
+
class="label-width-16em"
|
|
12
|
+
:model="formData"
|
|
13
|
+
:rules="rules"
|
|
14
|
+
label-width="16em"
|
|
15
|
+
>
|
|
16
|
+
<N20-anchor-item :title="$l('基本信息')" id="1">
|
|
17
|
+
<el-form-item :label="$l('支付工具')" prop="settlementTools"></el-form-item>
|
|
18
|
+
</N20-anchor-item>
|
|
19
|
+
</el-form>
|
|
20
|
+
</N20-anchor>
|
|
21
|
+
-->
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="t20-page-button-shadow flex-box flex-c flex-v" v-if="$slots.footer">
|
|
25
|
+
<slot name="footer"></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
export default {
|
|
32
|
+
name: 'FormPage'
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<style lang="scss" scoped>
|
|
37
|
+
.t20-form {
|
|
38
|
+
padding: 8px 8px 0 !important;
|
|
39
|
+
background-color: #ffffff !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.t20-page-button-shadow {
|
|
43
|
+
position: relative;
|
|
44
|
+
height: 44px;
|
|
45
|
+
&::before {
|
|
46
|
+
content: "";
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
height: 100%;
|
|
51
|
+
left: -8px;
|
|
52
|
+
right: -8px;
|
|
53
|
+
box-shadow: 0 -2px 6px 0 rgba(0, 0, 0, .08);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { getColumnWidth, getCellAlign } from './utils/tableCellUtils'
|
|
|
5
5
|
// 导入组件
|
|
6
6
|
import MainPage from '../packages/main-page/index.js'
|
|
7
7
|
import TablePage from '../packages/table-page/index.js'
|
|
8
|
+
import FormPage from '../packages/form-page/index.js'
|
|
8
9
|
import TabPane from '../packages/tab-pane/index.js'
|
|
9
10
|
import StatisCard from '../packages/statis-card/index.js'
|
|
10
11
|
import CommonCollapse from '../packages/common-collapse/index.js'
|
|
@@ -13,6 +14,7 @@ import CommonCollapse from '../packages/common-collapse/index.js'
|
|
|
13
14
|
const components = [
|
|
14
15
|
MainPage,
|
|
15
16
|
TablePage,
|
|
17
|
+
FormPage,
|
|
16
18
|
TabPane,
|
|
17
19
|
StatisCard,
|
|
18
20
|
CommonCollapse
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
// 以下是具体的组件列表
|
|
47
49
|
MainPage,
|
|
48
50
|
TablePage,
|
|
51
|
+
FormPage,
|
|
49
52
|
StatisCard,
|
|
50
53
|
CommonCollapse,
|
|
51
54
|
TabPane,
|