File tree Expand file tree Collapse file tree 8 files changed +195
-11
lines changed Expand file tree Collapse file tree 8 files changed +195
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "/app.js" : " /app.js?id=aa3a61559592bb7e4225 " ,
2
+ "/app.js" : " /app.js?id=868d166b1127889c43e9 " ,
3
3
"/manifest.js" : " /manifest.js?id=8991394a854ee5cdffc3" ,
4
4
"/vendor.js" : " /vendor.js?id=df0be4950fcb717193ba"
5
5
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ php artisan vendor:publish --tag=laravel-vue-admin-lang --force
60
60
// 清理视图缓存
61
61
php artisan view:clear
62
62
```
63
- 最后不要忘记清理浏览器缓存
63
+ 最后不要忘记清理浏览器缓存,如果有CDN也要更新CDN的缓存
64
64
65
65
# 感谢
66
66
Original file line number Diff line number Diff line change 165
165
</el-table-column >
166
166
</el-table >
167
167
</div >
168
- <div class =" table-page padding-sm " >
168
+ <div class =" table-page padding-xs " >
169
169
<el-pagination
170
170
:layout =" attrs.pageLayout"
171
171
:hide-on-single-page =" false"
Original file line number Diff line number Diff line change 1
1
<template >
2
- <el-col :span =" attrs.width" :style =" attrs.style" :class =" attrs.className" >
2
+ <el-col
3
+ :span =" attrs.width"
4
+ :offset =" attrs.offset"
5
+ :push =' attrs.push'
6
+ :pull =' attrs.pull'
7
+ :xs =' attrs.xs'
8
+ :sm =' attrs.sm'
9
+ :md =' attrs.md'
10
+ :lg =' attrs.lg'
11
+ :xl =' attrs.xl'
12
+ :tag =' attrs.tag'
13
+ :style =" attrs.style"
14
+ :class =" attrs.className"
15
+ >
3
16
<component
4
17
v-for =" (content, index) in attrs.contents"
5
18
:key =" index"
13
26
<script >
14
27
export default {
15
28
props: {
16
- attrs: Object
17
- }
29
+ attrs: Object ,
30
+ },
18
31
};
19
32
</script >
20
33
Original file line number Diff line number Diff line change 1
1
<template >
2
- <el-row :gutter =" attrs.gutter" :style =" attrs.style" :class =" attrs.className" >
2
+ <el-row
3
+ :gutter =" attrs.gutter"
4
+ :type =" attrs.type"
5
+ :justify =" attrs.justify"
6
+ :align =" attrs.align"
7
+ :tag =" attrs.tag"
8
+ :style =" attrs.style"
9
+ :class =" attrs.className"
10
+ >
3
11
<component
4
12
v-for =" (column, index) in attrs.columns"
5
13
:key =" index"
13
21
<script >
14
22
export default {
15
23
props: {
16
- attrs: Object
17
- }
24
+ attrs: Object ,
25
+ },
18
26
};
19
27
</script >
20
28
Original file line number Diff line number Diff line change @@ -13,6 +13,16 @@ class Column extends Component
13
13
14
14
protected $ width = 24 ;
15
15
16
+ protected $ span ;
17
+ protected $ offset ;
18
+ protected $ push ;
19
+ protected $ pull ;
20
+ protected $ xs ;
21
+ protected $ md ;
22
+ protected $ lg ;
23
+ protected $ xl ;
24
+ protected $ tag ;
25
+
16
26
protected $ contents = [];
17
27
18
28
public function __construct ($ content , $ width = 24 )
@@ -43,4 +53,106 @@ public function row($content)
43
53
$ this ->append ($ row );
44
54
}
45
55
56
+ /**
57
+ * @param mixed $span
58
+ * @return $this
59
+ */
60
+ public function span ($ span )
61
+ {
62
+ $ this ->span = $ span ;
63
+ return $ this ;
64
+ }
65
+
66
+ /**
67
+ * @param mixed $offset
68
+ * @return $this
69
+ */
70
+ public function offset ($ offset )
71
+ {
72
+ $ this ->offset = $ offset ;
73
+ return $ this ;
74
+ }
75
+
76
+ /**
77
+ * @param mixed $push
78
+ * @return $this
79
+ */
80
+ public function push ($ push )
81
+ {
82
+ $ this ->push = $ push ;
83
+ return $ this ;
84
+ }
85
+
86
+ /**
87
+ * @param mixed $pull
88
+ * @return $this
89
+ */
90
+ public function pull ($ pull )
91
+ {
92
+ $ this ->pull = $ pull ;
93
+ return $ this ;
94
+ }
95
+
96
+ /**
97
+ * @param mixed $xs
98
+ * @return $this
99
+ */
100
+ public function xs ($ xs )
101
+ {
102
+ $ this ->xs = $ xs ;
103
+ return $ this ;
104
+ }
105
+
106
+ /**
107
+ * @param mixed $md
108
+ * @return $this
109
+ */
110
+ public function md ($ md )
111
+ {
112
+ $ this ->md = $ md ;
113
+ return $ this ;
114
+ }
115
+
116
+ /**
117
+ * @param mixed $lg
118
+ * @return $this
119
+ */
120
+ public function lg ($ lg )
121
+ {
122
+ $ this ->lg = $ lg ;
123
+ return $ this ;
124
+ }
125
+
126
+ /**
127
+ * @param mixed $xl
128
+ * @return $this
129
+ */
130
+ public function xl ($ xl )
131
+ {
132
+ $ this ->xl = $ xl ;
133
+ return $ this ;
134
+ }
135
+
136
+ /**
137
+ * @param mixed $tag
138
+ * @return $this
139
+ */
140
+ public function tag ($ tag )
141
+ {
142
+ $ this ->tag = $ tag ;
143
+ return $ this ;
144
+ }
145
+
146
+ /**
147
+ * @param array $contents
148
+ * @return $this
149
+ */
150
+ public function contents (array $ contents )
151
+ {
152
+ $ this ->contents = $ contents ;
153
+ return $ this ;
154
+ }
155
+
156
+
157
+
46
158
}
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ class Row extends Component
16
16
protected $ columns = [];
17
17
18
18
protected $ gutter = 0 ;
19
+ protected $ type ;
20
+ protected $ justify = "start " ;
21
+ protected $ align = "top " ;
22
+ protected $ tag = "div " ;
19
23
20
24
public function __construct ($ content = '' )
21
25
{
@@ -31,7 +35,7 @@ public function item($item)
31
35
{
32
36
if ($ item instanceof \Closure) {
33
37
$ this ->addColumn (call_user_func ($ item ));
34
- }else {
38
+ } else {
35
39
$ this ->addColumn ($ item );
36
40
}
37
41
@@ -61,4 +65,51 @@ public function gutter($gutter)
61
65
$ this ->gutter = $ gutter ;
62
66
return $ this ;
63
67
}
68
+
69
+ /**
70
+ * 布局模式,可选 flex,现代浏览器下有效
71
+ * @param mixed $type
72
+ * @return $this
73
+ */
74
+ public function type ($ type )
75
+ {
76
+ $ this ->type = $ type ;
77
+ return $ this ;
78
+ }
79
+
80
+ /**
81
+ * flex 布局下的水平排列方式
82
+ * start/end/center/space-around/space-between
83
+ * @param string $justify
84
+ * @return $this
85
+ */
86
+ public function justify (string $ justify )
87
+ {
88
+ $ this ->justify = $ justify ;
89
+ return $ this ;
90
+ }
91
+
92
+ /**
93
+ * flex 布局下的垂直排列方式
94
+ * @param string $align
95
+ * @return $this
96
+ */
97
+ public function align (string $ align )
98
+ {
99
+ $ this ->align = $ align ;
100
+ return $ this ;
101
+ }
102
+
103
+ /**
104
+ * 自定义元素标签
105
+ * @param string $tag
106
+ * @return $this
107
+ */
108
+ public function tag (string $ tag )
109
+ {
110
+ $ this ->tag = $ tag ;
111
+ return $ this ;
112
+ }
113
+
114
+
64
115
}
You can’t perform that action at this time.
0 commit comments