wl-design-mobile 0.8.13 → 0.8.15

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 -35
  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 -109
  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 -294
  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 +1 -1
  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 +228 -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 +565 -565
  100. package/util/math.js +76 -76
  101. package/util/token.js +36 -36
@@ -1,116 +1,116 @@
1
- <template>
2
- <div>
3
- <div class="text-btn-div">
4
- <van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading"
5
- :type="'default'" :class="dynamicClass" size="normal" @click="handleClick"> {{ text }}
6
- <slot name="extend"></slot>
7
- </van-button>
8
- </div>
9
- </div>
10
- </template>
11
- <script>
12
-
13
- export default {
14
- name: 'LamboTextBtn',
15
- components: {},
16
- props: {
17
- text: {
18
- type: String,
19
- default: '中号按钮'
20
- },
21
- position: {
22
- type: String,
23
- default: 'left'
24
- },
25
- disabled: {
26
- type: Boolean,
27
- default: false
28
- },
29
- icon: {
30
- type: String,
31
- default: null
32
- },
33
- loading: {
34
- type: Boolean,
35
- default: false
36
- },
37
- size: {
38
- type: String,
39
- default: "normal"
40
- }
41
- },
42
- data() {
43
- return {}
44
- },
45
- methods: {
46
- handleClick(event) {
47
- this.$emit('click', event);
48
- }
49
- },
50
- computed: {
51
- dynamicClass() {
52
- if (this.size === 'big') {
53
- return {
54
- "big-btn": true
55
- }
56
- } else if (this.size === 'small') {
57
- return {
58
- "small-btn": true
59
- }
60
- } else {
61
- return {
62
- "normal-btn": true
63
- }
64
- }
65
- }
66
- },
67
- created() {
68
-
69
- },
70
- mounted() {
71
-
72
- }
73
- }
74
- </script>
75
- <style scoped>
76
- @import "../../styles/index.less";
77
-
78
- .big-btn {
79
- border: none;
80
- width: 100%;
81
- height: 38px;
82
- font-size: 14px;
83
- border-radius: 3px;
84
- }
85
-
86
- .normal-btn {
87
- border: none;
88
- min-width: 60px;
89
- height: 30px;
90
- font-size: 12px;
91
- border-radius: 3px;
92
- }
93
-
94
- .small-btn {
95
- border: none;
96
- min-width: 60px;
97
- height: 27px;
98
- font-size: 11px;
99
- border-radius: 3px;
100
- }
101
-
102
- /*无框类型按钮样式 */
103
- /deep/ .text-btn-div .van-button--default {
104
- background: var(--scl-white-1);
105
- border: none;
106
- color: var(--scl-blue);
107
- }
108
-
109
- /*无框按钮不可用按钮样式*/
110
- /deep/ .text-btn-div .van-button--disabled {
111
- opacity: 1;
112
- color: #000000;
113
- border: none;
114
- background-color: var(--scl-white-1);
115
- }
116
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="text-btn-div">
4
+ <van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading"
5
+ :type="'default'" :class="dynamicClass" size="normal" @click="handleClick"> {{ text }}
6
+ <slot name="extend"></slot>
7
+ </van-button>
8
+ </div>
9
+ </div>
10
+ </template>
11
+ <script>
12
+
13
+ export default {
14
+ name: 'LamboTextBtn',
15
+ components: {},
16
+ props: {
17
+ text: {
18
+ type: String,
19
+ default: '中号按钮'
20
+ },
21
+ position: {
22
+ type: String,
23
+ default: 'left'
24
+ },
25
+ disabled: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ icon: {
30
+ type: String,
31
+ default: null
32
+ },
33
+ loading: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ size: {
38
+ type: String,
39
+ default: "normal"
40
+ }
41
+ },
42
+ data() {
43
+ return {}
44
+ },
45
+ methods: {
46
+ handleClick(event) {
47
+ this.$emit('click', event);
48
+ }
49
+ },
50
+ computed: {
51
+ dynamicClass() {
52
+ if (this.size === 'big') {
53
+ return {
54
+ "big-btn": true
55
+ }
56
+ } else if (this.size === 'small') {
57
+ return {
58
+ "small-btn": true
59
+ }
60
+ } else {
61
+ return {
62
+ "normal-btn": true
63
+ }
64
+ }
65
+ }
66
+ },
67
+ created() {
68
+
69
+ },
70
+ mounted() {
71
+
72
+ }
73
+ }
74
+ </script>
75
+ <style scoped>
76
+ @import "../../styles/index.less";
77
+
78
+ .big-btn {
79
+ border: none;
80
+ width: 100%;
81
+ height: 38px;
82
+ font-size: 14px;
83
+ border-radius: 3px;
84
+ }
85
+
86
+ .normal-btn {
87
+ border: none;
88
+ min-width: 60px;
89
+ height: 30px;
90
+ font-size: 12px;
91
+ border-radius: 3px;
92
+ }
93
+
94
+ .small-btn {
95
+ border: none;
96
+ min-width: 60px;
97
+ height: 27px;
98
+ font-size: 11px;
99
+ border-radius: 3px;
100
+ }
101
+
102
+ /*无框类型按钮样式 */
103
+ /deep/ .text-btn-div .van-button--default {
104
+ background: var(--scl-white-1);
105
+ border: none;
106
+ color: var(--scl-blue);
107
+ }
108
+
109
+ /*无框按钮不可用按钮样式*/
110
+ /deep/ .text-btn-div .van-button--disabled {
111
+ opacity: 1;
112
+ color: #000000;
113
+ border: none;
114
+ background-color: var(--scl-white-1);
115
+ }
116
+ </style>
@@ -1,35 +1,35 @@
1
- <template>
2
- <div class="container-divide">
3
- <slot></slot>
4
- </div>
5
- </template>
6
- <script>
7
- import LamboBtn from "../btn/lambo-btn.vue";
8
-
9
- export default {
10
- name: "LamboBtnDivide",
11
- components: {LamboBtn},
12
- props: {},
13
- data() {
14
- return {
15
-
16
- }
17
- },
18
- methods: {
19
-
20
- }
21
- }
22
- </script>
23
- <style scoped>
24
- .container-divide {
25
- display: flex;
26
- flex-wrap: wrap;
27
- align-items: flex-end;
28
- flex-direction: row;
29
- gap: 6px;
30
- }
31
-
32
- .container-divide /deep/ .btn-sel {
33
- flex: 1;
34
- }
35
- </style>
1
+ <template>
2
+ <div class="container-divide">
3
+ <slot></slot>
4
+ </div>
5
+ </template>
6
+ <script>
7
+ import LamboBtn from "../btn/lambo-btn.vue";
8
+
9
+ export default {
10
+ name: "LamboBtnDivide",
11
+ components: {LamboBtn},
12
+ props: {},
13
+ data() {
14
+ return {
15
+
16
+ }
17
+ },
18
+ methods: {
19
+
20
+ }
21
+ }
22
+ </script>
23
+ <style scoped>
24
+ .container-divide {
25
+ display: flex;
26
+ flex-wrap: wrap;
27
+ align-items: flex-end;
28
+ flex-direction: row;
29
+ gap: 6px;
30
+ }
31
+
32
+ .container-divide /deep/ .btn-sel {
33
+ flex: 1;
34
+ }
35
+ </style>
@@ -1,46 +1,46 @@
1
- <template>
2
- <div class="button-group">
3
- <slot></slot>
4
- </div>
5
- </template>
6
- <script>
7
-
8
- export default {
9
- name: 'LamboBtnGroup',
10
- components: {},
11
- props: {},
12
- data() {
13
- return {
14
-
15
- }
16
- },
17
- methods: {
18
-
19
- },
20
- created() {
21
-
22
- },
23
- mounted() {
24
-
25
- }
26
- }
27
- </script>
28
- <style scoped>
29
- @import "../styles/index.less";
30
-
31
- .button-group {
32
- display: flex;
33
- padding: 0 14px;
34
- background-color: var(--scl-white-1);
35
- border-bottom: 1px var(--scl-white-2);
36
- }
37
-
38
- .button-group /deep/ .btn-sel {
39
- flex: 1;
40
- text-align: center;
41
- }
42
-
43
- /*.button-group /deep/ .btn-sel:nth-child(n+2) {
44
- border-left: 1px solid var(--scl-white-2);
45
- }*/
46
- </style>
1
+ <template>
2
+ <div class="button-group">
3
+ <slot></slot>
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ export default {
9
+ name: 'LamboBtnGroup',
10
+ components: {},
11
+ props: {},
12
+ data() {
13
+ return {
14
+
15
+ }
16
+ },
17
+ methods: {
18
+
19
+ },
20
+ created() {
21
+
22
+ },
23
+ mounted() {
24
+
25
+ }
26
+ }
27
+ </script>
28
+ <style scoped>
29
+ @import "../styles/index.less";
30
+
31
+ .button-group {
32
+ display: flex;
33
+ padding: 0 14px;
34
+ background-color: var(--scl-white-1);
35
+ border-bottom: 1px var(--scl-white-2);
36
+ }
37
+
38
+ .button-group /deep/ .btn-sel {
39
+ flex: 1;
40
+ text-align: center;
41
+ }
42
+
43
+ /*.button-group /deep/ .btn-sel:nth-child(n+2) {
44
+ border-left: 1px solid var(--scl-white-2);
45
+ }*/
46
+ </style>
@@ -1,41 +1,41 @@
1
- <template>
2
- <div class="line-parent-div">
3
- <div class="line-div"></div>
4
- </div>
5
- </template>
6
- <script>
7
-
8
- export default {
9
- components: {},
10
- props: {
11
- // 后期竖线长度和居中水平,根据插槽元素调整,目前只实现normal大小的。
12
- // size: {
13
- // type: String,
14
- // default: 'normal',
15
- // }
16
- },
17
- data() {
18
- return {
19
-
20
- }
21
- },
22
- methods: {
23
-
24
- }
25
- }
26
- </script>
27
- <style scoped>
28
- .line-parent-div {
29
- height: 27px;
30
- width: 1px;
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- }
35
-
36
- .line-div {
37
- height: 12px;
38
- width: 1px;
39
- background-color: var(--scl-white-2);
40
- }
41
- </style>
1
+ <template>
2
+ <div class="line-parent-div">
3
+ <div class="line-div"></div>
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ export default {
9
+ components: {},
10
+ props: {
11
+ // 后期竖线长度和居中水平,根据插槽元素调整,目前只实现normal大小的。
12
+ // size: {
13
+ // type: String,
14
+ // default: 'normal',
15
+ // }
16
+ },
17
+ data() {
18
+ return {
19
+
20
+ }
21
+ },
22
+ methods: {
23
+
24
+ }
25
+ }
26
+ </script>
27
+ <style scoped>
28
+ .line-parent-div {
29
+ height: 27px;
30
+ width: 1px;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ }
35
+
36
+ .line-div {
37
+ height: 12px;
38
+ width: 1px;
39
+ background-color: var(--scl-white-2);
40
+ }
41
+ </style>
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>