doway-coms 1.5.7 → 1.5.9

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.
Files changed (74) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
  4. package/dist/css/index.7946d50b.css +1 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.28fda91d.js +340 -0
  7. package/dist/js/index.49bc6add.js +2 -0
  8. package/lib/doway-coms.common.js +120397 -0
  9. package/lib/doway-coms.css +1 -0
  10. package/lib/doway-coms.umd.js +120407 -0
  11. package/lib/doway-coms.umd.min.js +328 -0
  12. package/package.json +52 -52
  13. package/packages/BaseButton/index.js +7 -7
  14. package/packages/BaseButton/src/index.vue +241 -241
  15. package/packages/BaseCheckbox/index.js +7 -7
  16. package/packages/BaseCheckbox/src/index.vue +134 -134
  17. package/packages/BaseDate/index.js +7 -7
  18. package/packages/BaseDate/src/index.vue +197 -197
  19. package/packages/BaseDateWeek/index.js +7 -7
  20. package/packages/BaseDateWeek/src/index.vue +163 -163
  21. package/packages/BaseDatetime/index.js +7 -7
  22. package/packages/BaseDatetime/src/index.vue +196 -196
  23. package/packages/BaseForm/index.js +7 -7
  24. package/packages/BaseForm/src/index.vue +664 -664
  25. package/packages/BaseGantt/index.js +9 -9
  26. package/packages/BaseGantt/src/index.vue +604 -604
  27. package/packages/BaseGrid/index.js +9 -9
  28. package/packages/BaseGrid/src/index.vue +2700 -2690
  29. package/packages/BaseGridAdjust/index.js +9 -9
  30. package/packages/BaseGridAdjust/src/index.vue +455 -455
  31. package/packages/BaseInput/index.js +7 -7
  32. package/packages/BaseInput/src/index.vue +164 -164
  33. package/packages/BaseIntervalInput/index.js +7 -7
  34. package/packages/BaseIntervalInput/src/index.vue +310 -310
  35. package/packages/BaseKanbanEmpty/index.js +7 -7
  36. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  37. package/packages/BaseNumberInput/index.js +7 -7
  38. package/packages/BaseNumberInput/src/index.vue +229 -229
  39. package/packages/BasePagination/index.js +7 -7
  40. package/packages/BasePagination/src/index.vue +91 -91
  41. package/packages/BasePictureCard/index.js +7 -7
  42. package/packages/BasePictureCard/src/index.vue +561 -561
  43. package/packages/BasePrintPreview/index.js +7 -7
  44. package/packages/BasePrintPreview/src/index.vue +117 -117
  45. package/packages/BasePulldown/index.js +7 -7
  46. package/packages/BasePulldown/src/index.vue +867 -867
  47. package/packages/BaseSearch/index.js +7 -7
  48. package/packages/BaseSearch/src/index.vue +935 -935
  49. package/packages/BaseSelect/index.js +7 -7
  50. package/packages/BaseSelect/src/index.vue +153 -153
  51. package/packages/BaseSelectMulti/index.js +7 -7
  52. package/packages/BaseSelectMulti/src/index.vue +148 -148
  53. package/packages/BaseTextArea/index.js +7 -7
  54. package/packages/BaseTextArea/src/index.vue +178 -178
  55. package/packages/BaseTime/index.js +7 -7
  56. package/packages/BaseTime/src/index.vue +166 -166
  57. package/packages/BaseTool/index.js +7 -7
  58. package/packages/BaseTool/src/index.vue +349 -349
  59. package/packages/BaseToolStatus/index.js +7 -7
  60. package/packages/BaseToolStatus/src/index.vue +383 -383
  61. package/packages/index.js +165 -165
  62. package/packages/styles/default.less +80 -80
  63. package/packages/utils/api.js +45 -45
  64. package/packages/utils/auth.js +38 -38
  65. package/packages/utils/common.js +583 -583
  66. package/packages/utils/dom.js +181 -181
  67. package/packages/utils/enum.js +83 -83
  68. package/packages/utils/filters.js +458 -458
  69. package/packages/utils/gridFormat.js +52 -52
  70. package/packages/utils/msg.js +16 -16
  71. package/packages/utils/patchFiles.js +44 -44
  72. package/packages/utils/request.js +169 -169
  73. package/packages/utils/store.js +254 -257
  74. package/vue.config.js +59 -59
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseSelect from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseSelect.install = function(Vue) {
5
- Vue.component(BaseSelect.name, BaseSelect);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseSelect from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseSelect.install = function(Vue) {
5
+ Vue.component(BaseSelect.name, BaseSelect);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseSelect;
@@ -1,154 +1,154 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div
4
- class="d-control-label"
5
- :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
- >
7
- {{ label
8
- }}
9
- <span v-if="rules && rules['required']" class="d-control-label-required"
10
- >*</span
11
- >
12
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
14
- </Tooltip>
15
- </div>
16
- <div class="d-control">
17
- <ValidationProvider
18
- :name="label"
19
- v-slot="v"
20
- :rules="rules"
21
- v-if="edit === true"
22
- >
23
- <Select
24
- v-model="currentValue"
25
- :placeholder="placeholder"
26
- :size="'small'"
27
- @change="selectChange"
28
- style="width: 100%"
29
- :class="{ 'd-error-input': v.errors.length > 0 }"
30
- >
31
- <SelectOption
32
- v-for="loopSource in dataSource"
33
- :key="loopSource.value"
34
- :value="loopSource.value"
35
- >{{ loopSource.caption }}</SelectOption
36
- >
37
- </Select>
38
- <div class="d-error-msg">
39
- {{ v.errors[0] }}
40
- </div>
41
- </ValidationProvider>
42
- <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</span>
43
- </div>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import { Select } from 'ant-design-vue'
49
- import { ValidationProvider } from 'vee-validate'
50
- import { displaySelectCaption } from '../../utils/filters'
51
- import { Tooltip } from 'ant-design-vue'
52
- export default {
53
- filters:{
54
- displaySelectCaption:displaySelectCaption
55
- },
56
- name: 'BaseSelect',
57
- components:{
58
- Select,
59
- SelectOption:Select.Option,
60
- ValidationProvider,
61
- Tooltip,
62
-
63
- },
64
- data() {
65
- return {
66
- filterCols: [],
67
- gridLoading: false,
68
- gridPagerConfig: {
69
- total: 0,
70
- currentPage: 1,
71
- pageSize: 10
72
- }
73
- }
74
- },
75
- computed: {
76
- currentValue: {
77
- // 动态计算currentValue的值
78
- get: function() {
79
- return this.value // 将props中的value赋值给currentValue
80
- },
81
- set: function(val) {
82
- this.$emit('input', val) // 通过$emit触发父组件
83
- }
84
- }
85
- },
86
- props: {
87
- labelWidth: {
88
- type: Number,
89
- default: function() {
90
- return 0
91
- }
92
- },
93
- rules: {
94
- type: Object,
95
- default: function() {
96
- return null
97
- }
98
- },
99
- value: {
100
- type: String,
101
- default: function() {
102
- return ''
103
- }
104
- },
105
- dataSource: {
106
- type: Array,
107
- default: function() {
108
- return []
109
- }
110
- },
111
- edit: {
112
- type: Boolean,
113
- default: function() {
114
- return false
115
- }
116
- },
117
- name: {
118
- type: String,
119
- default: function() {
120
- return ''
121
- }
122
- },
123
- label: {
124
- type: String,
125
- default: function() {
126
- return ''
127
- }
128
- },
129
- placeholder: {
130
- type: String,
131
- default: function() {
132
- return ''
133
- }
134
- },
135
- tooltip: {
136
- type: String,
137
- default: function() {
138
- return ''
139
- }
140
- }
141
- },
142
- created() {},
143
- methods: {
144
- selectChange() {
145
- this.$emit('change', null)
146
- }
147
- }
148
- }
149
- </script>
150
-
151
- <style lang="scss" scoped></style>
152
- <style lang="less">
153
- @import '../../styles/default.less';
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div
4
+ class="d-control-label"
5
+ :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
+ >
7
+ {{ label
8
+ }}
9
+ <span v-if="rules && rules['required']" class="d-control-label-required"
10
+ >*</span
11
+ >
12
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
14
+ </Tooltip>
15
+ </div>
16
+ <div class="d-control">
17
+ <ValidationProvider
18
+ :name="label"
19
+ v-slot="v"
20
+ :rules="rules"
21
+ v-if="edit === true"
22
+ >
23
+ <Select
24
+ v-model="currentValue"
25
+ :placeholder="placeholder"
26
+ :size="'small'"
27
+ @change="selectChange"
28
+ style="width: 100%"
29
+ :class="{ 'd-error-input': v.errors.length > 0 }"
30
+ >
31
+ <SelectOption
32
+ v-for="loopSource in dataSource"
33
+ :key="loopSource.value"
34
+ :value="loopSource.value"
35
+ >{{ loopSource.caption }}</SelectOption
36
+ >
37
+ </Select>
38
+ <div class="d-error-msg">
39
+ {{ v.errors[0] }}
40
+ </div>
41
+ </ValidationProvider>
42
+ <span v-else>{{ currentValue | displaySelectCaption(dataSource) }}</span>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { Select } from 'ant-design-vue'
49
+ import { ValidationProvider } from 'vee-validate'
50
+ import { displaySelectCaption } from '../../utils/filters'
51
+ import { Tooltip } from 'ant-design-vue'
52
+ export default {
53
+ filters:{
54
+ displaySelectCaption:displaySelectCaption
55
+ },
56
+ name: 'BaseSelect',
57
+ components:{
58
+ Select,
59
+ SelectOption:Select.Option,
60
+ ValidationProvider,
61
+ Tooltip,
62
+
63
+ },
64
+ data() {
65
+ return {
66
+ filterCols: [],
67
+ gridLoading: false,
68
+ gridPagerConfig: {
69
+ total: 0,
70
+ currentPage: 1,
71
+ pageSize: 10
72
+ }
73
+ }
74
+ },
75
+ computed: {
76
+ currentValue: {
77
+ // 动态计算currentValue的值
78
+ get: function() {
79
+ return this.value // 将props中的value赋值给currentValue
80
+ },
81
+ set: function(val) {
82
+ this.$emit('input', val) // 通过$emit触发父组件
83
+ }
84
+ }
85
+ },
86
+ props: {
87
+ labelWidth: {
88
+ type: Number,
89
+ default: function() {
90
+ return 0
91
+ }
92
+ },
93
+ rules: {
94
+ type: Object,
95
+ default: function() {
96
+ return null
97
+ }
98
+ },
99
+ value: {
100
+ type: String,
101
+ default: function() {
102
+ return ''
103
+ }
104
+ },
105
+ dataSource: {
106
+ type: Array,
107
+ default: function() {
108
+ return []
109
+ }
110
+ },
111
+ edit: {
112
+ type: Boolean,
113
+ default: function() {
114
+ return false
115
+ }
116
+ },
117
+ name: {
118
+ type: String,
119
+ default: function() {
120
+ return ''
121
+ }
122
+ },
123
+ label: {
124
+ type: String,
125
+ default: function() {
126
+ return ''
127
+ }
128
+ },
129
+ placeholder: {
130
+ type: String,
131
+ default: function() {
132
+ return ''
133
+ }
134
+ },
135
+ tooltip: {
136
+ type: String,
137
+ default: function() {
138
+ return ''
139
+ }
140
+ }
141
+ },
142
+ created() {},
143
+ methods: {
144
+ selectChange() {
145
+ this.$emit('change', null)
146
+ }
147
+ }
148
+ }
149
+ </script>
150
+
151
+ <style lang="scss" scoped></style>
152
+ <style lang="less">
153
+ @import '../../styles/default.less';
154
154
  </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseSelectMulti from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseSelectMulti.install = function(Vue) {
5
- Vue.component(BaseSelectMulti.name, BaseSelectMulti);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseSelectMulti from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseSelectMulti.install = function(Vue) {
5
+ Vue.component(BaseSelectMulti.name, BaseSelectMulti);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseSelectMulti;
@@ -1,149 +1,149 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
4
- {{ label
5
- }}
6
- <span v-if="rules && rules['required']" class="d-control-label-required"
7
- >*</span
8
- >
9
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
- </Tooltip>
12
- </div>
13
- <div class="d-control">
14
- <ValidationProvider
15
- :name="label"
16
- v-slot="v"
17
- :rules="rules"
18
- v-if="edit === true"
19
- >
20
- <Select
21
- v-model="currentValue"
22
- :placeholder="placeholder"
23
- mode="multiple"
24
- :size="'small'"
25
- @change="selectChange"
26
- style="width: 100%"
27
- :class="{ 'd-error-input': v.errors.length > 0 }"
28
- >
29
- <SelectOption
30
- v-for="loopSource in dataSource"
31
- :key="loopSource.value"
32
- :value="loopSource.value"
33
- >{{ loopSource.caption }}</SelectOption
34
- >
35
- </Select>
36
- <div class="d-error-msg">
37
- {{ v.errors[0] }}
38
- </div>
39
- </ValidationProvider>
40
- <span v-else>{{
41
- currentValue | displaySelectMultiCaption(dataSource)
42
- }}</span>
43
- </div>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import { Select } from 'ant-design-vue'
49
- import { ValidationProvider } from 'vee-validate'
50
- import { displaySelectMultiCaption } from '../../utils/filters'
51
- import { Tooltip } from 'ant-design-vue'
52
-
53
- export default {
54
- name: 'BaseSelectMulti',
55
- filters:{
56
- displaySelectMultiCaption:displaySelectMultiCaption
57
- },
58
- components:{
59
- Select,
60
- SelectOption:Select.Option,
61
- ValidationProvider,
62
- Tooltip,
63
-
64
- },
65
- data() {
66
- return {
67
- filterCols: [],
68
- gridLoading: false,
69
- gridPagerConfig: {
70
- total: 0,
71
- currentPage: 1,
72
- pageSize: 10
73
- }
74
- }
75
- },
76
- computed: {
77
- currentValue: {
78
- // 动态计算currentValue的值
79
- get: function() {
80
- return this.value // 将props中的value赋值给currentValue
81
- },
82
- set: function(val) {
83
- this.$emit('input', val) // 通过$emit触发父组件
84
- }
85
- }
86
- },
87
- props: {
88
- rules: {
89
- type: Object,
90
- default: function() {
91
- return null
92
- }
93
- },
94
- value: {
95
- type: Array,
96
- default: function() {
97
- return []
98
- }
99
- },
100
- dataSource: {
101
- type: Array,
102
- default: function() {
103
- return []
104
- }
105
- },
106
- edit: {
107
- type: Boolean,
108
- default: function() {
109
- return false
110
- }
111
- },
112
- name: {
113
- type: String,
114
- default: function() {
115
- return ''
116
- }
117
- },
118
- label: {
119
- type: String,
120
- default: function() {
121
- return ''
122
- }
123
- },
124
- placeholder: {
125
- type: String,
126
- default: function() {
127
- return ''
128
- }
129
- },
130
- tooltip: {
131
- type: String,
132
- default: function() {
133
- return ''
134
- }
135
- }
136
- },
137
- created() {},
138
- methods: {
139
- selectChange() {
140
- this.$emit('change', null)
141
- }
142
- }
143
- }
144
- </script>
145
-
146
- <style lang="scss" scoped></style>
147
- <style lang="less">
148
- @import '../../styles/default.less';
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
4
+ {{ label
5
+ }}
6
+ <span v-if="rules && rules['required']" class="d-control-label-required"
7
+ >*</span
8
+ >
9
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
+ </Tooltip>
12
+ </div>
13
+ <div class="d-control">
14
+ <ValidationProvider
15
+ :name="label"
16
+ v-slot="v"
17
+ :rules="rules"
18
+ v-if="edit === true"
19
+ >
20
+ <Select
21
+ v-model="currentValue"
22
+ :placeholder="placeholder"
23
+ mode="multiple"
24
+ :size="'small'"
25
+ @change="selectChange"
26
+ style="width: 100%"
27
+ :class="{ 'd-error-input': v.errors.length > 0 }"
28
+ >
29
+ <SelectOption
30
+ v-for="loopSource in dataSource"
31
+ :key="loopSource.value"
32
+ :value="loopSource.value"
33
+ >{{ loopSource.caption }}</SelectOption
34
+ >
35
+ </Select>
36
+ <div class="d-error-msg">
37
+ {{ v.errors[0] }}
38
+ </div>
39
+ </ValidationProvider>
40
+ <span v-else>{{
41
+ currentValue | displaySelectMultiCaption(dataSource)
42
+ }}</span>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { Select } from 'ant-design-vue'
49
+ import { ValidationProvider } from 'vee-validate'
50
+ import { displaySelectMultiCaption } from '../../utils/filters'
51
+ import { Tooltip } from 'ant-design-vue'
52
+
53
+ export default {
54
+ name: 'BaseSelectMulti',
55
+ filters:{
56
+ displaySelectMultiCaption:displaySelectMultiCaption
57
+ },
58
+ components:{
59
+ Select,
60
+ SelectOption:Select.Option,
61
+ ValidationProvider,
62
+ Tooltip,
63
+
64
+ },
65
+ data() {
66
+ return {
67
+ filterCols: [],
68
+ gridLoading: false,
69
+ gridPagerConfig: {
70
+ total: 0,
71
+ currentPage: 1,
72
+ pageSize: 10
73
+ }
74
+ }
75
+ },
76
+ computed: {
77
+ currentValue: {
78
+ // 动态计算currentValue的值
79
+ get: function() {
80
+ return this.value // 将props中的value赋值给currentValue
81
+ },
82
+ set: function(val) {
83
+ this.$emit('input', val) // 通过$emit触发父组件
84
+ }
85
+ }
86
+ },
87
+ props: {
88
+ rules: {
89
+ type: Object,
90
+ default: function() {
91
+ return null
92
+ }
93
+ },
94
+ value: {
95
+ type: Array,
96
+ default: function() {
97
+ return []
98
+ }
99
+ },
100
+ dataSource: {
101
+ type: Array,
102
+ default: function() {
103
+ return []
104
+ }
105
+ },
106
+ edit: {
107
+ type: Boolean,
108
+ default: function() {
109
+ return false
110
+ }
111
+ },
112
+ name: {
113
+ type: String,
114
+ default: function() {
115
+ return ''
116
+ }
117
+ },
118
+ label: {
119
+ type: String,
120
+ default: function() {
121
+ return ''
122
+ }
123
+ },
124
+ placeholder: {
125
+ type: String,
126
+ default: function() {
127
+ return ''
128
+ }
129
+ },
130
+ tooltip: {
131
+ type: String,
132
+ default: function() {
133
+ return ''
134
+ }
135
+ }
136
+ },
137
+ created() {},
138
+ methods: {
139
+ selectChange() {
140
+ this.$emit('change', null)
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+
146
+ <style lang="scss" scoped></style>
147
+ <style lang="less">
148
+ @import '../../styles/default.less';
149
149
  </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseTextArea from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseTextArea.install = function(Vue) {
5
- Vue.component(BaseTextArea.name, BaseTextArea);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseTextArea from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseTextArea.install = function(Vue) {
5
+ Vue.component(BaseTextArea.name, BaseTextArea);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseTextArea;