wl-design-mobile 0.8.19 → 0.8.21

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 (101) hide show
  1. package/README.md +6 -6
  2. package/api/doc.js +25 -25
  3. package/api/x1.js +56 -56
  4. package/btn/components/lambo-info-btn.vue +123 -123
  5. package/btn/components/lambo-primary-btn.vue +117 -117
  6. package/btn/components/lambo-text-btn.vue +116 -116
  7. package/btn/lambo-btn-divide.vue +35 -120
  8. package/btn/lambo-btn-group.vue +46 -46
  9. package/btn/lambo-btn-split-line.vue +41 -41
  10. package/btn/lambo-btn.vue +68 -68
  11. package/btn/lambo-extend-btn.vue +121 -121
  12. package/btn/lambo-icon-btn.vue +82 -82
  13. package/card-item/card-row-icon.vue +71 -71
  14. package/card-item/filtrate-row.vue +73 -73
  15. package/card-item/lambo-card-footer.vue +40 -40
  16. package/card-item/lambo-card-head.vue +66 -66
  17. package/card-item/lambo-card-row.vue +59 -59
  18. package/collapse/lambo-collapse.vue +93 -93
  19. package/config/config.js +14 -14
  20. package/detail/lambo-detail-grid.vue +58 -58
  21. package/detail/lambo-detail-row.vue +59 -59
  22. package/doc/file/compoents/lambo-file-list.vue +42 -42
  23. package/doc/file/compoents/lambo-file-row.vue +77 -77
  24. package/doc/file/lambo-file-upload-collapse.vue +107 -107
  25. package/doc/file-type/file-type.js +286 -286
  26. package/doc/img/comonents/lambo-img-grid.vue +109 -109
  27. package/doc/img/lambo-img-upload-collapse.vue +107 -107
  28. package/doc/img/styles/css/index.css +3 -3
  29. package/edit/list/Lambo-edit-list.vue +87 -87
  30. package/edit/list/lambo-edit-card-group.vue +100 -100
  31. package/edit/list/styles/css/index.css +39 -39
  32. package/edit/select/lambo-edit-date-range.vue +147 -147
  33. package/edit/select/lambo-edit-date-time.vue +122 -122
  34. package/edit/select/lambo-edit-date.vue +120 -120
  35. package/edit/select/lambo-edit-input-textarea.vue +91 -91
  36. package/edit/select/lambo-edit-input.vue +91 -91
  37. package/edit/select/lambo-edit-multi-select.vue +168 -168
  38. package/edit/select/lambo-edit-search-single-select.vue +186 -186
  39. package/edit/select/lambo-edit-single-select.vue +162 -162
  40. package/edit/select/styles/css/index.css +133 -133
  41. package/flow/approval/flow-approval.vue +552 -552
  42. package/flow/comps/flow-attachment-list.vue +230 -230
  43. package/flow/comps/flow-attachment-modal.vue +194 -194
  44. package/flow/comps/flow-copy-users.vue +358 -358
  45. package/flow/comps/flow-node-card.vue +150 -150
  46. package/flow/comps/flow-node-header.vue +172 -172
  47. package/flow/comps/flow-util.js +156 -156
  48. package/flow/comps/icons/approved.svg +11 -11
  49. package/flow/comps/icons/canceled.svg +11 -11
  50. package/flow/comps/icons/rejected.svg +11 -11
  51. package/flow/comps/icons/underway.svg +11 -11
  52. package/flow/detail/flow-detail.vue +467 -467
  53. package/flow/index.js +51 -51
  54. package/flow/lambo-flow-detail.vue +912 -912
  55. package/flow/lambo-flow-edit.vue +15 -15
  56. package/flow/submit/flow-submit.vue +383 -383
  57. package/icon/lambo-required-red-star.vue +47 -47
  58. package/icon/lambo-vector-icon.vue +71 -71
  59. package/list/lambo-list.vue +412 -413
  60. package/nav/lambo-top-nav.vue +81 -81
  61. package/order/comps/icons/approved.svg +10 -10
  62. package/order/comps/icons/underway.svg +10 -10
  63. package/order/comps/order-attachment-list.vue +228 -228
  64. package/order/comps/order-attachment-modal.vue +194 -194
  65. package/order/comps/order-node-card.vue +126 -126
  66. package/order/comps/order-node-header.vue +133 -133
  67. package/order/comps/order-util.js +132 -132
  68. package/order/detail/order-detail.vue +432 -432
  69. package/order/handle/order-handle.vue +517 -517
  70. package/order/index.js +33 -33
  71. package/package.json +38 -37
  72. package/search/lambo-date-range-page.vue +196 -196
  73. package/search/lambo-date-range.vue +111 -111
  74. package/search/lambo-date.vue +105 -105
  75. package/search/lambo-input.vue +74 -74
  76. package/search/lambo-multi-select.vue +129 -129
  77. package/search/lambo-org-select-page.vue +109 -109
  78. package/search/lambo-search-box.vue +61 -61
  79. package/search/lambo-search-single-select.vue +152 -152
  80. package/search/lambo-single-select.vue +123 -123
  81. package/search/lambo-week-date-select.vue +521 -521
  82. package/search/styles/css/index.css +138 -138
  83. package/styles/base.less +77 -77
  84. package/styles/components/btn.less +7 -7
  85. package/styles/components/search.less +33 -33
  86. package/styles/components/tag.less +181 -181
  87. package/styles/index.less +4 -4
  88. package/table/lambo-ag-table.vue +227 -227
  89. package/tag/lambo-tag.vue +23 -23
  90. package/title/lambo-title1.vue +151 -151
  91. package/title/lambo-title2.vue +37 -37
  92. package/title/lambo-title3.vue +77 -77
  93. package/util/assist.js +43 -43
  94. package/util/axios/cacheconf.js +19 -19
  95. package/util/axios/index.js +11 -11
  96. package/util/axios/interceptors.js +101 -101
  97. package/util/bus.js +4 -4
  98. package/util/jssdk-sczy.js +104 -104
  99. package/util/jssdk.js +608 -565
  100. package/util/math.js +76 -76
  101. package/util/token.js +36 -36
@@ -1,162 +1,162 @@
1
- <template>
2
- <div>
3
- <div class="edit-box" @click="onOpen">
4
- <div class="edit-left-box">
5
- <div class="edit-left-top">
6
- <div v-if="required" class="edit-red-icon">
7
- <lambo-required-red-star :required="required"></lambo-required-red-star>
8
- </div>
9
- <div class="edit-title">{{ title }}</div>
10
- </div>
11
- <van-field v-model="valName" :placeholder="placeholder" :readonly="true"
12
- class="edit-lambo-input" clear-trigger="focus"></van-field>
13
- </div>
14
- <div v-if="icon" class="edit-right-icon">
15
- <lambo-vector-icon :icon="icon"></lambo-vector-icon>
16
- </div>
17
- </div>
18
- <div>
19
- <van-popup v-model:show="showBottom" :style="{ height: '33%' }" position="bottom">
20
- <van-radio-group v-model="selectItem.K">
21
- <div class="bottom-div">
22
- <div class="edit-top-div">
23
- <van-button class="edit-cancel-btn" size="normal" @click="cancel">取消</van-button>
24
- <span class="edit-select-title">请选择</span>
25
- <van-button class="edit-confirm-btn" size="normal" @click="onConfirm">确认</van-button>
26
- </div>
27
- <div class="cell-group-div">
28
- <van-cell-group>
29
- <van-cell v-for="(c, index) in data" :key="index" :title="`${c.V}`" clickable @click="radioClick(c)">
30
- <template #right-icon>
31
- <van-radio :name="c.K" checked-color="#0070D2"/>
32
- </template>
33
- </van-cell>
34
- </van-cell-group>
35
- </div>
36
- </div>
37
- </van-radio-group>
38
- </van-popup>
39
- </div>
40
- </div>
41
- </template>
42
- <script>
43
- import requiredIcon from '../../assets/icon/required.png'
44
- import LamboVectorIcon from '../../icon/lambo-vector-icon.vue'
45
- import {Toast} from 'vant'
46
- import LamboRequiredRedStar from '../../icon/lambo-required-red-star.vue'
47
-
48
- export default {
49
- name: 'LamboEditSingleSelect',
50
- components: {LamboRequiredRedStar, LamboVectorIcon},
51
- props: {
52
- title: {
53
- type: String,
54
- default: '',
55
- },
56
- placeholder: {
57
- type: String,
58
- default: '请选择',
59
- },
60
- required: {
61
- type: Boolean,
62
- default: false,
63
- },
64
- icon: {
65
- type: String,
66
- default: 'arrow-right-big.png',
67
- },
68
- data: {
69
- type: Array,
70
- default: () => ([]),
71
- },
72
- defaultItem: {
73
- type: Object,
74
- },
75
- },
76
- data() {
77
- return {
78
- iconSrc: requiredIcon,
79
- showBottom: false,
80
- val: '',
81
- valName: '',
82
- selectItem: {
83
- K: '',
84
- V: '',
85
- },
86
- firstLoad: true,
87
- }
88
- },
89
- watch: {
90
- defaultItem: {
91
- handler: function (val, oldVal) {
92
- console.log('lambo-select -- defaultItem -- val,oldVal,firstLoad:', {
93
- val,
94
- oldVal,
95
- 'firstLoad': this.firstLoad,
96
- })
97
- if (this.defaultItem && ((this.defaultItem.K && this.firstLoad === true) || !this.firstLoad) ) {
98
- this.val = this.defaultItem.K || ''
99
- this.valName = this.defaultItem.V || ''
100
- this.$set(this.selectItem, 'K', this.defaultItem.K)
101
- this.$set(this.selectItem, 'V', this.defaultItem.V)
102
- this.firstLoad = false
103
- this.$emit('on-ok', this.defaultItem)
104
- }
105
- },
106
- deep: true,
107
- immediate: true,
108
- },
109
- },
110
- methods: {
111
- onOpen() {
112
- console.log('this.data:', this.data)
113
- this.showBottom = true
114
- },
115
- cancel() {
116
- this.showBottom = false
117
- },
118
- onConfirm() {
119
- if (this.selectItem && this.selectItem.K) {
120
- this.val = this.selectItem.K
121
- this.valName = this.selectItem.V
122
- this.$emit('on-ok', this.selectItem)
123
- } else {
124
- // Toast.fail('请选择内容')
125
- console.error('lambo-select -- 条件选择失败,this.selectItem:', this.selectItem)
126
- this.val = ''
127
- this.valName = ''
128
- this.$emit('on-ok', {K: '', V: ''})
129
- }
130
- this.showBottom = false
131
- },
132
- radioClick(data) {
133
- if (data && data.K) {
134
- this.selectItem.K = data.K
135
- this.selectItem.V = data.V
136
- }
137
- },
138
- changeColor() {
139
- let searchRows = document.querySelectorAll('.edit-box')
140
- Array.from(searchRows).forEach(function (row, index) {
141
- row.addEventListener('click', function () {
142
- Array.from(searchRows).forEach(function (row) {
143
- row.style.borderBottom = '1px solid var(--scl-white-2)'
144
- })
145
- row.style.borderBottom = '1px solid var(--scl-blue)'
146
- })
147
- })
148
- },
149
- },
150
- created() {
151
-
152
- },
153
- }
154
- </script>
155
- <style scoped>
156
- @import "../../styles/index.less";
157
- @import "./styles/css/index.css";
158
-
159
- /deep/ .edit-left-box .van-cell {
160
- padding: 0px 0px;
161
- }
162
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="edit-box" @click="onOpen">
4
+ <div class="edit-left-box">
5
+ <div class="edit-left-top">
6
+ <div v-if="required" class="edit-red-icon">
7
+ <lambo-required-red-star :required="required"></lambo-required-red-star>
8
+ </div>
9
+ <div class="edit-title">{{ title }}</div>
10
+ </div>
11
+ <van-field v-model="valName" :placeholder="placeholder" :readonly="true"
12
+ class="edit-lambo-input" clear-trigger="focus"></van-field>
13
+ </div>
14
+ <div v-if="icon" class="edit-right-icon">
15
+ <lambo-vector-icon :icon="icon"></lambo-vector-icon>
16
+ </div>
17
+ </div>
18
+ <div>
19
+ <van-popup v-model:show="showBottom" :style="{ height: '33%' }" position="bottom">
20
+ <van-radio-group v-model="selectItem.K">
21
+ <div class="bottom-div">
22
+ <div class="edit-top-div">
23
+ <van-button class="edit-cancel-btn" size="normal" @click="cancel">取消</van-button>
24
+ <span class="edit-select-title">请选择</span>
25
+ <van-button class="edit-confirm-btn" size="normal" @click="onConfirm">确认</van-button>
26
+ </div>
27
+ <div class="cell-group-div">
28
+ <van-cell-group>
29
+ <van-cell v-for="(c, index) in data" :key="index" :title="`${c.V}`" clickable @click="radioClick(c)">
30
+ <template #right-icon>
31
+ <van-radio :name="c.K" checked-color="#0070D2"/>
32
+ </template>
33
+ </van-cell>
34
+ </van-cell-group>
35
+ </div>
36
+ </div>
37
+ </van-radio-group>
38
+ </van-popup>
39
+ </div>
40
+ </div>
41
+ </template>
42
+ <script>
43
+ import requiredIcon from '../../assets/icon/required.png'
44
+ import LamboVectorIcon from '../../icon/lambo-vector-icon.vue'
45
+ import {Toast} from 'vant'
46
+ import LamboRequiredRedStar from '../../icon/lambo-required-red-star.vue'
47
+
48
+ export default {
49
+ name: 'LamboEditSingleSelect',
50
+ components: {LamboRequiredRedStar, LamboVectorIcon},
51
+ props: {
52
+ title: {
53
+ type: String,
54
+ default: '',
55
+ },
56
+ placeholder: {
57
+ type: String,
58
+ default: '请选择',
59
+ },
60
+ required: {
61
+ type: Boolean,
62
+ default: false,
63
+ },
64
+ icon: {
65
+ type: String,
66
+ default: 'arrow-right-big.png',
67
+ },
68
+ data: {
69
+ type: Array,
70
+ default: () => ([]),
71
+ },
72
+ defaultItem: {
73
+ type: Object,
74
+ },
75
+ },
76
+ data() {
77
+ return {
78
+ iconSrc: requiredIcon,
79
+ showBottom: false,
80
+ val: '',
81
+ valName: '',
82
+ selectItem: {
83
+ K: '',
84
+ V: '',
85
+ },
86
+ firstLoad: true,
87
+ }
88
+ },
89
+ watch: {
90
+ defaultItem: {
91
+ handler: function (val, oldVal) {
92
+ console.log('lambo-select -- defaultItem -- val,oldVal,firstLoad:', {
93
+ val,
94
+ oldVal,
95
+ 'firstLoad': this.firstLoad,
96
+ })
97
+ if (this.defaultItem && ((this.defaultItem.K && this.firstLoad === true) || !this.firstLoad) ) {
98
+ this.val = this.defaultItem.K || ''
99
+ this.valName = this.defaultItem.V || ''
100
+ this.$set(this.selectItem, 'K', this.defaultItem.K)
101
+ this.$set(this.selectItem, 'V', this.defaultItem.V)
102
+ this.firstLoad = false
103
+ this.$emit('on-ok', this.defaultItem)
104
+ }
105
+ },
106
+ deep: true,
107
+ immediate: true,
108
+ },
109
+ },
110
+ methods: {
111
+ onOpen() {
112
+ console.log('this.data:', this.data)
113
+ this.showBottom = true
114
+ },
115
+ cancel() {
116
+ this.showBottom = false
117
+ },
118
+ onConfirm() {
119
+ if (this.selectItem && this.selectItem.K) {
120
+ this.val = this.selectItem.K
121
+ this.valName = this.selectItem.V
122
+ this.$emit('on-ok', this.selectItem)
123
+ } else {
124
+ // Toast.fail('请选择内容')
125
+ console.error('lambo-select -- 条件选择失败,this.selectItem:', this.selectItem)
126
+ this.val = ''
127
+ this.valName = ''
128
+ this.$emit('on-ok', {K: '', V: ''})
129
+ }
130
+ this.showBottom = false
131
+ },
132
+ radioClick(data) {
133
+ if (data && data.K) {
134
+ this.selectItem.K = data.K
135
+ this.selectItem.V = data.V
136
+ }
137
+ },
138
+ changeColor() {
139
+ let searchRows = document.querySelectorAll('.edit-box')
140
+ Array.from(searchRows).forEach(function (row, index) {
141
+ row.addEventListener('click', function () {
142
+ Array.from(searchRows).forEach(function (row) {
143
+ row.style.borderBottom = '1px solid var(--scl-white-2)'
144
+ })
145
+ row.style.borderBottom = '1px solid var(--scl-blue)'
146
+ })
147
+ })
148
+ },
149
+ },
150
+ created() {
151
+
152
+ },
153
+ }
154
+ </script>
155
+ <style scoped>
156
+ @import "../../styles/index.less";
157
+ @import "./styles/css/index.css";
158
+
159
+ /deep/ .edit-left-box .van-cell {
160
+ padding: 0px 0px;
161
+ }
162
+ </style>
@@ -1,133 +1,133 @@
1
- .edit-box {
2
- min-height: 50px;
3
- height: auto;
4
- display: flex;
5
- justify-content: space-between;
6
- padding: 12px 0;
7
- border-bottom: 1px solid var(--scl-white-2);
8
- background-color: var(--scl-white-1);
9
- }
10
-
11
- .edit-left-box {
12
- width: 100%;
13
- padding: 0px 0px 0px 14px;
14
- }
15
-
16
- .edit-left-top {
17
- display: flex;
18
- align-items: center;
19
- height: 16px;
20
- margin-bottom: 10px
21
- }
22
-
23
- .edit-red-icon {
24
- margin-right: 4px
25
- }
26
-
27
- .edit-title {
28
- font-size: 0.9rem;
29
- font-family: Regular;
30
- color: var(--scl-gray-2)
31
- }
32
-
33
- .edit-lambo-input {
34
- border: none;
35
- outline: none;
36
- background: none;
37
- height: 1.1rem;
38
- font-size: 1rem;
39
- color: var(--scl-gray-5);
40
- display: flex;
41
- justify-content: flex-start;
42
- align-items: center;
43
- flex: 1;
44
- }
45
-
46
- .edit-lambo-input-textarea {
47
- border: none;
48
- outline: none;
49
- background: none;
50
- font-size: 16px;
51
- color: var(--scl-gray-5);
52
- display: flex;
53
- justify-content: flex-start;
54
- align-items: center;
55
- flex: 1;
56
- }
57
-
58
- .edit-right-icon {
59
- display: flex;
60
- align-items: center;
61
- margin-right: 14px;
62
- }
63
-
64
- .edit-top-div {
65
- display: flex;
66
- justify-content: space-between;
67
- height: 44px;
68
- line-height: 44px;
69
- background-color: rgb(255, 255, 255, 1);
70
- width: 100%;
71
- position: fixed;
72
- z-index: 1;
73
- box-shadow: 0 2px 10px rgba(125, 126, 128, .16);
74
- }
75
-
76
- .edit-cancel-btn {
77
- border: none;
78
- color: var(--scl-gray-3);
79
- }
80
-
81
- .edit-confirm-btn {
82
- border: none;
83
- color: var(--scl-blue);
84
- }
85
-
86
- .edit-select-title {
87
- font-size: 16px;
88
- }
89
-
90
- /*修改单选多选的滚动条样式*/
91
- /deep/ .van-radio-group {
92
- position: relative;
93
- }
94
-
95
- /*修改单选多选的滚动条样式*/
96
- /deep/ .van-cell-group {
97
- padding-top: 44px;
98
- }
99
-
100
- /*
101
- !*修改单选多选的滚动条样式*!
102
- /deep/ .van-cell:first-child {
103
- padding-top: 10px;
104
- }
105
- */
106
-
107
- /*滚动条样式*/
108
- /deep/ ::-webkit-scrollbar {
109
- width: 6px;
110
- }
111
-
112
- /*滚动条样式*/
113
- /deep/ ::-webkit-scrollbar-thumb {
114
- border-radius: var(--ind-border-radius-xl);
115
- background: rgba(45, 140, 240, 0.6);
116
- }
117
-
118
- /*滚动条样式*/
119
- /deep/ ::-webkit-scrollbar-track {
120
- -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
121
- border-radius: var(--ind-border-radius-xl);
122
- background: rgba(231, 242, 250, 0.4);
123
- }
124
-
125
- .bottom-div {
126
- display: flex;
127
- flex-direction: column;
128
- }
129
-
130
- .cell-group-div {
131
- flex: 1;
132
- margin-top: 44px;
133
- }
1
+ .edit-box {
2
+ min-height: 50px;
3
+ height: auto;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ padding: 12px 0;
7
+ border-bottom: 1px solid var(--scl-white-2);
8
+ background-color: var(--scl-white-1);
9
+ }
10
+
11
+ .edit-left-box {
12
+ width: 100%;
13
+ padding: 0px 0px 0px 14px;
14
+ }
15
+
16
+ .edit-left-top {
17
+ display: flex;
18
+ align-items: center;
19
+ height: 16px;
20
+ margin-bottom: 10px
21
+ }
22
+
23
+ .edit-red-icon {
24
+ margin-right: 4px
25
+ }
26
+
27
+ .edit-title {
28
+ font-size: 0.9rem;
29
+ font-family: Regular;
30
+ color: var(--scl-gray-2)
31
+ }
32
+
33
+ .edit-lambo-input {
34
+ border: none;
35
+ outline: none;
36
+ background: none;
37
+ height: 1.1rem;
38
+ font-size: 1rem;
39
+ color: var(--scl-gray-5);
40
+ display: flex;
41
+ justify-content: flex-start;
42
+ align-items: center;
43
+ flex: 1;
44
+ }
45
+
46
+ .edit-lambo-input-textarea {
47
+ border: none;
48
+ outline: none;
49
+ background: none;
50
+ font-size: 16px;
51
+ color: var(--scl-gray-5);
52
+ display: flex;
53
+ justify-content: flex-start;
54
+ align-items: center;
55
+ flex: 1;
56
+ }
57
+
58
+ .edit-right-icon {
59
+ display: flex;
60
+ align-items: center;
61
+ margin-right: 14px;
62
+ }
63
+
64
+ .edit-top-div {
65
+ display: flex;
66
+ justify-content: space-between;
67
+ height: 44px;
68
+ line-height: 44px;
69
+ background-color: rgb(255, 255, 255, 1);
70
+ width: 100%;
71
+ position: fixed;
72
+ z-index: 1;
73
+ box-shadow: 0 2px 10px rgba(125, 126, 128, .16);
74
+ }
75
+
76
+ .edit-cancel-btn {
77
+ border: none;
78
+ color: var(--scl-gray-3);
79
+ }
80
+
81
+ .edit-confirm-btn {
82
+ border: none;
83
+ color: var(--scl-blue);
84
+ }
85
+
86
+ .edit-select-title {
87
+ font-size: 16px;
88
+ }
89
+
90
+ /*修改单选多选的滚动条样式*/
91
+ /deep/ .van-radio-group {
92
+ position: relative;
93
+ }
94
+
95
+ /*修改单选多选的滚动条样式*/
96
+ /deep/ .van-cell-group {
97
+ padding-top: 44px;
98
+ }
99
+
100
+ /*
101
+ !*修改单选多选的滚动条样式*!
102
+ /deep/ .van-cell:first-child {
103
+ padding-top: 10px;
104
+ }
105
+ */
106
+
107
+ /*滚动条样式*/
108
+ /deep/ ::-webkit-scrollbar {
109
+ width: 6px;
110
+ }
111
+
112
+ /*滚动条样式*/
113
+ /deep/ ::-webkit-scrollbar-thumb {
114
+ border-radius: var(--ind-border-radius-xl);
115
+ background: rgba(45, 140, 240, 0.6);
116
+ }
117
+
118
+ /*滚动条样式*/
119
+ /deep/ ::-webkit-scrollbar-track {
120
+ -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
121
+ border-radius: var(--ind-border-radius-xl);
122
+ background: rgba(231, 242, 250, 0.4);
123
+ }
124
+
125
+ .bottom-div {
126
+ display: flex;
127
+ flex-direction: column;
128
+ }
129
+
130
+ .cell-group-div {
131
+ flex: 1;
132
+ margin-top: 44px;
133
+ }