paas-component-library 1.0.76 → 1.0.78

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,7 +1,7 @@
1
1
  {
2
2
  "name": "paas-component-library",
3
3
  "private": false,
4
- "version": "1.0.76",
4
+ "version": "1.0.78",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -25,7 +25,8 @@ export default {
25
25
  default: false
26
26
  },
27
27
  modelValue: {
28
- type: [String, Array, Date]
28
+ type: [String, Array, Date],
29
+ default: null
29
30
  },
30
31
  showTime: {
31
32
  type: Boolean,
@@ -34,6 +35,10 @@ export default {
34
35
  format: {
35
36
  type: String,
36
37
  default: null
38
+ },
39
+ onChange: {
40
+ type: Function,
41
+ default: null
37
42
  }
38
43
  },
39
44
  data() {
@@ -48,6 +48,10 @@ export default {
48
48
  isJoin: {
49
49
  type: Boolean,
50
50
  default: false
51
+ },
52
+ onChange: {
53
+ type: Function,
54
+ default: null
51
55
  }
52
56
  },
53
57
  computed: {
@@ -18,12 +18,21 @@ export default {
18
18
  type: String,
19
19
  default: "",
20
20
  },
21
- modelValue: String,
21
+ modelValue: {
22
+ type: String,
23
+ default: ""
24
+ },
22
25
  height: {
26
+ type: [Number, String],
23
27
  default: 350
24
28
  },
25
29
  readonly: {
30
+ type: Boolean,
26
31
  default: false
32
+ },
33
+ onChange: {
34
+ type: Function,
35
+ default: null
27
36
  }
28
37
  },
29
38
  watch: {
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <a-form :ref="refName" :model="model" :rules="rules" @finish="submitForm"
3
- @finishFailed="onFinishFailed" :labelAlign="labelAlign" v-bind="$attrs">
2
+ <a-form :ref="refName" :model="model" :rules="rules" @finish="submitForm" @finishFailed="onFinishFailed"
3
+ :labelAlign="labelAlign" v-bind="$attrs">
4
4
  <a-row :gutter="16"
5
5
  :style="{ backgroundColor: 'var(--background-color)', padding: colSpan === 24 ? '0 400px' : '0px' }">
6
6
  <slot></slot>
@@ -41,7 +41,7 @@ export default {
41
41
  modelValue: [String, Array],
42
42
  url: { type: String, required: true },
43
43
  vars: { type: Object, default: () => ({}) },
44
- style: { type: String, default: "min-width: 200px; width: 100%;" },
44
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" },
45
45
  },
46
46
  data() {
47
47
  return {
@@ -15,7 +15,7 @@ export default {
15
15
  modelValue: { type: [String, Number, Array], default: null },
16
16
  data: { type: Array, default: () => [] },
17
17
  params: { type: String, default: "" },
18
- style: { type: String, default: "min-width: 200px; width: 100%;" },
18
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" },
19
19
  },
20
20
  data() {
21
21
  return {
@@ -32,9 +32,14 @@ export default {
32
32
  type: String,
33
33
  default: ""
34
34
  },
35
- colSpan: { type: Number }, // 自定义列跨度
36
- multiple: undefined,
35
+ colSpan: { type: Number },
36
+ multiple: {
37
+ type: [Boolean, undefined],
38
+ default: undefined
39
+ },
37
40
  modelValue: {
41
+ type: [String, Number, Array],
42
+ default: null
38
43
  },
39
44
  open: {
40
45
  type: Boolean,
@@ -42,13 +47,32 @@ export default {
42
47
  },
43
48
  fieldNames: {
44
49
  type: Object,
45
- default: { children: 'children', title: 'title', key: 'id' }
50
+ default: () => ({ children: 'children', title: 'title', key: 'id' })
51
+ },
52
+ params: {
53
+ type: Object,
54
+ default: () => ({})
55
+ },
56
+ label: {
57
+ type: String,
58
+ default: ""
46
59
  },
47
- params: {},
48
- label: "",
49
- name: "",
50
- disabled: { default: false },
51
- url: "",
60
+ name: {
61
+ type: String,
62
+ default: ""
63
+ },
64
+ disabled: {
65
+ type: Boolean,
66
+ default: false
67
+ },
68
+ url: {
69
+ type: String,
70
+ default: ""
71
+ },
72
+ onChange: {
73
+ type: Function,
74
+ default: null
75
+ }
52
76
  },
53
77
  computed: {
54
78
  see() {