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
package/btn/lambo-btn.vue CHANGED
@@ -1,68 +1,68 @@
1
- <template>
2
- <div class="btn-sel">
3
- <template v-if="type === 'info'">
4
- <lambo-info-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-info-btn>
5
- </template>
6
- <template v-else-if="type === 'text'">
7
- <lambo-text-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-text-btn>
8
- </template>
9
- <template v-else>
10
- <lambo-primary-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-primary-btn>
11
- </template>
12
- </div>
13
- </template>
14
- <script>
15
- import LamboInfoBtn from "./components/lambo-info-btn.vue";
16
- import LamboTextBtn from "./components/lambo-text-btn.vue";
17
- import LamboPrimaryBtn from "./components/lambo-primary-btn.vue";
18
-
19
- export default {
20
- name: "LamboBtn",
21
- components: {LamboPrimaryBtn, LamboTextBtn, LamboInfoBtn},
22
- props: {
23
- type: {
24
- type: String,
25
- default: 'primary'
26
- },
27
- text: {
28
- type: String,
29
- default: '按钮'
30
- },
31
- size: {
32
- type: String,
33
- default: 'normal',
34
- },
35
- position: {
36
- type: String,
37
- default: 'left'
38
- },
39
- disabled: {
40
- type: Boolean,
41
- default: false
42
- },
43
- icon: {
44
- type: String,
45
- default: null
46
- },
47
- loading: {
48
- type: Boolean,
49
- default: false
50
- }
51
- },
52
- data() {
53
- return {
54
-
55
- }
56
- },
57
- methods: {
58
- handleClick(event) {
59
- if (event) {
60
- this.$emit('click', event);
61
- }
62
- }
63
- }
64
- }
65
- </script>
66
- <style scoped>
67
-
68
- </style>
1
+ <template>
2
+ <div class="btn-sel">
3
+ <template v-if="type === 'info'">
4
+ <lambo-info-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-info-btn>
5
+ </template>
6
+ <template v-else-if="type === 'text'">
7
+ <lambo-text-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-text-btn>
8
+ </template>
9
+ <template v-else>
10
+ <lambo-primary-btn :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon" :loading="loading" @click="handleClick"></lambo-primary-btn>
11
+ </template>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import LamboInfoBtn from "./components/lambo-info-btn.vue";
16
+ import LamboTextBtn from "./components/lambo-text-btn.vue";
17
+ import LamboPrimaryBtn from "./components/lambo-primary-btn.vue";
18
+
19
+ export default {
20
+ name: "LamboBtn",
21
+ components: {LamboPrimaryBtn, LamboTextBtn, LamboInfoBtn},
22
+ props: {
23
+ type: {
24
+ type: String,
25
+ default: 'primary'
26
+ },
27
+ text: {
28
+ type: String,
29
+ default: '按钮'
30
+ },
31
+ size: {
32
+ type: String,
33
+ default: 'normal',
34
+ },
35
+ position: {
36
+ type: String,
37
+ default: 'left'
38
+ },
39
+ disabled: {
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ icon: {
44
+ type: String,
45
+ default: null
46
+ },
47
+ loading: {
48
+ type: Boolean,
49
+ default: false
50
+ }
51
+ },
52
+ data() {
53
+ return {
54
+
55
+ }
56
+ },
57
+ methods: {
58
+ handleClick(event) {
59
+ if (event) {
60
+ this.$emit('click', event);
61
+ }
62
+ }
63
+ }
64
+ }
65
+ </script>
66
+ <style scoped>
67
+
68
+ </style>
@@ -1,121 +1,121 @@
1
- <template>
2
- <div class="btn-sel" ref="btnSel">
3
- <lambo-btn :type="type" :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon"
4
- :loading="loading" :class="dynamicClass" @click="onClick"></lambo-btn>
5
- <ul v-show="show" class="extend-ul" @click="toggleClick">
6
- <slot></slot>
7
- </ul>
8
- </div>
9
- </template>
10
- <script>
11
- import LamboBtn from "./lambo-btn.vue";
12
-
13
- export default {
14
- name: 'LamboExtendBtn',
15
- components: {LamboBtn},
16
- props: {
17
- type: {
18
- type: String,
19
- default: 'text'
20
- },
21
- text: {
22
- type: String,
23
- default: '按钮'
24
- },
25
- size: {
26
- type: String,
27
- default: 'normal',
28
- },
29
- position: {
30
- type: String,
31
- default: 'right'
32
- },
33
- disabled: {
34
- type: Boolean,
35
- default: false
36
- },
37
- icon: {
38
- type: String,
39
- default: "arrow-down"
40
- },
41
- loading: {
42
- type: Boolean,
43
- default: false
44
- }
45
- },
46
- data() {
47
- return {
48
- show: false,
49
- }
50
- },
51
- methods: {
52
- onClick() {
53
- this.show = !this.show;
54
- },
55
- handleClickOutside(event) {
56
- const btnSel = this.$refs.btnSel;
57
- if (btnSel && !btnSel.contains(event.target)) {
58
- this.show = false;
59
- }
60
- },
61
- toggleClick() {
62
- this.show = !this.show;
63
- }
64
- },
65
- mounted() {
66
- document.addEventListener('click', this.handleClickOutside);
67
- },
68
- beforeDestroy() {
69
- document.removeEventListener('click', this.handleClickOutside);
70
- },
71
- computed: {
72
- dynamicClass() {
73
- if (this.size === 'big') {
74
- return {
75
- "big-btn": true
76
- }
77
- } else if (this.size === 'small') {
78
- return {
79
- "small-btn": true
80
- }
81
- } else {
82
- return {
83
- "normal-btn": true
84
- }
85
- }
86
- }
87
- },
88
- }
89
- </script>
90
- <style scoped>
91
- @import "../styles/index.less";
92
-
93
- .big-btn {
94
- border: none;
95
- min-width: 60px;
96
- height: 38px;
97
- font-size: 14px;
98
- border-radius: 3px;
99
- }
100
-
101
- .normal-btn {
102
- border: none;
103
- min-width: 60px;
104
- height: 30px;
105
- font-size: 12px;
106
- border-radius: 3px;
107
- }
108
-
109
- .small-btn {
110
- border: none;
111
- min-width: 60px;
112
- height: 27px;
113
- font-size: 11px;
114
- border-radius: 3px;
115
- }
116
-
117
- .extend-ul {
118
- position: absolute;
119
- z-index: 999;
120
- }
121
- </style>
1
+ <template>
2
+ <div class="btn-sel" ref="btnSel">
3
+ <lambo-btn :type="type" :text="text" :size="size" :position="position" :disabled="disabled" :icon="icon"
4
+ :loading="loading" :class="dynamicClass" @click="onClick"></lambo-btn>
5
+ <ul v-show="show" class="extend-ul" @click="toggleClick">
6
+ <slot></slot>
7
+ </ul>
8
+ </div>
9
+ </template>
10
+ <script>
11
+ import LamboBtn from "./lambo-btn.vue";
12
+
13
+ export default {
14
+ name: 'LamboExtendBtn',
15
+ components: {LamboBtn},
16
+ props: {
17
+ type: {
18
+ type: String,
19
+ default: 'text'
20
+ },
21
+ text: {
22
+ type: String,
23
+ default: '按钮'
24
+ },
25
+ size: {
26
+ type: String,
27
+ default: 'normal',
28
+ },
29
+ position: {
30
+ type: String,
31
+ default: 'right'
32
+ },
33
+ disabled: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ icon: {
38
+ type: String,
39
+ default: "arrow-down"
40
+ },
41
+ loading: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ data() {
47
+ return {
48
+ show: false,
49
+ }
50
+ },
51
+ methods: {
52
+ onClick() {
53
+ this.show = !this.show;
54
+ },
55
+ handleClickOutside(event) {
56
+ const btnSel = this.$refs.btnSel;
57
+ if (btnSel && !btnSel.contains(event.target)) {
58
+ this.show = false;
59
+ }
60
+ },
61
+ toggleClick() {
62
+ this.show = !this.show;
63
+ }
64
+ },
65
+ mounted() {
66
+ document.addEventListener('click', this.handleClickOutside);
67
+ },
68
+ beforeDestroy() {
69
+ document.removeEventListener('click', this.handleClickOutside);
70
+ },
71
+ computed: {
72
+ dynamicClass() {
73
+ if (this.size === 'big') {
74
+ return {
75
+ "big-btn": true
76
+ }
77
+ } else if (this.size === 'small') {
78
+ return {
79
+ "small-btn": true
80
+ }
81
+ } else {
82
+ return {
83
+ "normal-btn": true
84
+ }
85
+ }
86
+ }
87
+ },
88
+ }
89
+ </script>
90
+ <style scoped>
91
+ @import "../styles/index.less";
92
+
93
+ .big-btn {
94
+ border: none;
95
+ min-width: 60px;
96
+ height: 38px;
97
+ font-size: 14px;
98
+ border-radius: 3px;
99
+ }
100
+
101
+ .normal-btn {
102
+ border: none;
103
+ min-width: 60px;
104
+ height: 30px;
105
+ font-size: 12px;
106
+ border-radius: 3px;
107
+ }
108
+
109
+ .small-btn {
110
+ border: none;
111
+ min-width: 60px;
112
+ height: 27px;
113
+ font-size: 11px;
114
+ border-radius: 3px;
115
+ }
116
+
117
+ .extend-ul {
118
+ position: absolute;
119
+ z-index: 999;
120
+ }
121
+ </style>
@@ -1,82 +1,82 @@
1
- <template>
2
- <div>
3
- <div class="icon-btn-div">
4
- <van-button :icon="loadIcon" :class="dynamicClass" :loading="loading" :disabled="disabled"
5
- @click="handleClick"></van-button>
6
- </div>
7
- </div>
8
- </template>
9
- <script>
10
-
11
- export default {
12
- name: "LamboIconBtn",
13
- props: {
14
- icon: {
15
- type: String,
16
- required: true
17
- },
18
- loading: {
19
- type: Boolean,
20
- default: false
21
- },
22
- disabled: {
23
- type: Boolean,
24
- default: false
25
- },
26
- border: {
27
- type: Boolean,
28
- default: true
29
- }
30
- },
31
- data() {
32
- return {
33
-
34
- }
35
- },
36
- methods: {
37
- handleClick(event) {
38
- this.$emit('click', event);
39
- }
40
- },
41
- computed: {
42
- loadIcon() {
43
- return require('../assets/icon/' + this.icon)
44
- },
45
- dynamicClass() {
46
- if (this.border === true) {
47
- return {
48
- "btn-icon-border": true
49
- }
50
- } else {
51
- return {
52
- "btn-icon-border0": true
53
- }
54
- }
55
- }
56
- }
57
- }
58
- </script>
59
- <style scoped>
60
- @import "../styles/index.less";
61
-
62
- .btn-icon-border {
63
- border: 1px solid #e5e5e5;
64
- width: 40px;
65
- height: 30px;
66
- background-color: transparent;
67
- font-size: 12px;
68
- border-radius: 3px;
69
- }
70
-
71
- .btn-icon-border0 {
72
- border: none;
73
- width: 40px;
74
- height: 30px;
75
- background-color: transparent;
76
- font-size: 12px;
77
- }
78
-
79
- /deep/ .icon-btn-div .van-icon__image {
80
- width: 1em;
81
- }
82
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="icon-btn-div">
4
+ <van-button :icon="loadIcon" :class="dynamicClass" :loading="loading" :disabled="disabled"
5
+ @click="handleClick"></van-button>
6
+ </div>
7
+ </div>
8
+ </template>
9
+ <script>
10
+
11
+ export default {
12
+ name: "LamboIconBtn",
13
+ props: {
14
+ icon: {
15
+ type: String,
16
+ required: true
17
+ },
18
+ loading: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ border: {
27
+ type: Boolean,
28
+ default: true
29
+ }
30
+ },
31
+ data() {
32
+ return {
33
+
34
+ }
35
+ },
36
+ methods: {
37
+ handleClick(event) {
38
+ this.$emit('click', event);
39
+ }
40
+ },
41
+ computed: {
42
+ loadIcon() {
43
+ return require('../assets/icon/' + this.icon)
44
+ },
45
+ dynamicClass() {
46
+ if (this.border === true) {
47
+ return {
48
+ "btn-icon-border": true
49
+ }
50
+ } else {
51
+ return {
52
+ "btn-icon-border0": true
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ </script>
59
+ <style scoped>
60
+ @import "../styles/index.less";
61
+
62
+ .btn-icon-border {
63
+ border: 1px solid #e5e5e5;
64
+ width: 40px;
65
+ height: 30px;
66
+ background-color: transparent;
67
+ font-size: 12px;
68
+ border-radius: 3px;
69
+ }
70
+
71
+ .btn-icon-border0 {
72
+ border: none;
73
+ width: 40px;
74
+ height: 30px;
75
+ background-color: transparent;
76
+ font-size: 12px;
77
+ }
78
+
79
+ /deep/ .icon-btn-div .van-icon__image {
80
+ width: 1em;
81
+ }
82
+ </style>
@@ -1,71 +1,71 @@
1
- <template>
2
- <div class="titp1" style="line-height: 24px">
3
- {{ name }}:
4
- <p class="p"><img :src="pictureImg">{{ val }}</p>
5
- </div>
6
- </template>
7
- <script>
8
- import picture from '../assets/icon/picture.png'
9
-
10
- export default {
11
- name: "CardRowIcon",
12
- components: {},
13
- props: {
14
- name: {
15
- type: String
16
- },
17
- val: {
18
- type: String
19
- }
20
- },
21
- data() {
22
- return {
23
- pictureImg: picture,
24
- }
25
- },
26
- methods: {},
27
- created() {
28
- console.log("row name:", this.name)
29
- console.log("row val:", this.val)
30
- }
31
- }
32
- </script>
33
- <style scoped>
34
- @import "../styles/index.less";
35
-
36
- .titp1 {
37
- font-size: 12px;
38
- color: #666666;
39
- margin-bottom: 14px;
40
- display: flex;
41
- justify-content: flex-start;
42
- }
43
-
44
- .titp1:last-child {
45
- margin-bottom: 0;
46
- }
47
-
48
- .titp1 span {
49
- font-family: Regular;
50
- color: #333333;
51
- }
52
-
53
- .titp1 .p {
54
- height: 24px;
55
- line-height: 24px;
56
- padding-right: 8px;
57
- background: #F2F3F5;
58
- color: #333333;
59
- border-radius: var(--ind-border-radius-xxl);
60
- display: flex;
61
- justify-content: flex-start;
62
- }
63
-
64
- .titp1 img {
65
- width: 24px;
66
- height: 24px;
67
- display: block;
68
- margin-right: 5px;
69
- border-radius: var(--ind-border-radius-round);
70
- }
71
- </style>
1
+ <template>
2
+ <div class="titp1" style="line-height: 24px">
3
+ {{ name }}:
4
+ <p class="p"><img :src="pictureImg">{{ val }}</p>
5
+ </div>
6
+ </template>
7
+ <script>
8
+ import picture from '../assets/icon/picture.png'
9
+
10
+ export default {
11
+ name: "CardRowIcon",
12
+ components: {},
13
+ props: {
14
+ name: {
15
+ type: String
16
+ },
17
+ val: {
18
+ type: String
19
+ }
20
+ },
21
+ data() {
22
+ return {
23
+ pictureImg: picture,
24
+ }
25
+ },
26
+ methods: {},
27
+ created() {
28
+ console.log("row name:", this.name)
29
+ console.log("row val:", this.val)
30
+ }
31
+ }
32
+ </script>
33
+ <style scoped>
34
+ @import "../styles/index.less";
35
+
36
+ .titp1 {
37
+ font-size: 12px;
38
+ color: #666666;
39
+ margin-bottom: 14px;
40
+ display: flex;
41
+ justify-content: flex-start;
42
+ }
43
+
44
+ .titp1:last-child {
45
+ margin-bottom: 0;
46
+ }
47
+
48
+ .titp1 span {
49
+ font-family: Regular;
50
+ color: #333333;
51
+ }
52
+
53
+ .titp1 .p {
54
+ height: 24px;
55
+ line-height: 24px;
56
+ padding-right: 8px;
57
+ background: #F2F3F5;
58
+ color: #333333;
59
+ border-radius: var(--ind-border-radius-xxl);
60
+ display: flex;
61
+ justify-content: flex-start;
62
+ }
63
+
64
+ .titp1 img {
65
+ width: 24px;
66
+ height: 24px;
67
+ display: block;
68
+ margin-right: 5px;
69
+ border-radius: var(--ind-border-radius-round);
70
+ }
71
+ </style>