Skip to content

Commit 4eab1da

Browse files
committed
👕 Lov 样式以及 eslint 警告消除
1 parent 416130f commit 4eab1da

File tree

6 files changed

+28
-10
lines changed

6 files changed

+28
-10
lines changed

src/components/lov/Lov.vue renamed to src/components/Lov/Lov.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
class="lov-model"
3939
:width="width"
4040
:visible="visible"
41+
:centered="true"
4142
:confirm-loading="loading"
4243
:footer="ret?undefined:null"
43-
:body-style="{paddingBottom:'0'}"
44+
:body-style="{padding:'0 16px 0'}"
4445
:closable="title.length>0"
4546
@cancel="cancel"
4647
@ok="selectData"

src/components/lov/lovPlugin.js renamed to src/components/Lov/lovPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Lov from '@/components/lov/Lov'
1+
import Lov from '@/components/Lov/Lov'
22

33
export default {
44
install: function (Vue) {

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Vue.prototype.fileAbsoluteUrl = function (relativeUrl) {
2525
import DictPlugin from '@/components/dict/dictPlugin'
2626
Vue.use(DictPlugin)
2727
// lov注册
28-
import LovPlugin from '@/components/lov/lovPlugin'
28+
import LovPlugin from '@/components/Lov/lovPlugin'
2929
Vue.use(LovPlugin)
3030

3131
Vue.config.productionTip = false

src/views/sys/lov/FormBasic.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,14 @@
134134
export default {
135135
name: 'FormBasic',
136136
props: {
137-
formAction: String,
138-
form: Object,
137+
formAction: {
138+
type: String,
139+
required: true
140+
},
141+
form: {
142+
type: Object,
143+
required: true
144+
},
139145
},
140146
data() {
141147
return {

src/views/sys/lov/FormBody.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,14 @@ export default {
8888
name: 'FormBody',
8989
components: { codemirror },
9090
props: {
91-
formAction: String,
92-
form: Object
91+
formAction: {
92+
type: String,
93+
required: true
94+
},
95+
form: {
96+
type: Object,
97+
required: true
98+
},
9399
},
94100
data() {
95101
return {

src/views/sys/lov/FormSearch.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,14 @@
128128
export default {
129129
name: 'FormSearch',
130130
props: {
131-
formAction: String,
132-
getForm: Function,
133-
form: Object
131+
formAction: {
132+
type: String,
133+
required: true
134+
},
135+
form: {
136+
type: Object,
137+
required: true
138+
},
134139
},
135140
data () {
136141
return {

0 commit comments

Comments
 (0)