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,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,120 +1,35 @@
1
- <template>
2
- <div class="lambo-btn-divide" :style="holderStyle">
3
- <div ref="bar"
4
- class="container-divide"
5
- :class="{'container-divide--fixed': fixed, 'container-divide--safe': fixed && safeArea}"
6
- :style="barStyle">
7
- <slot></slot>
8
- </div>
9
- </div>
10
- </template>
11
- <script>
12
- export default {
13
- name: "LamboBtnDivide",
14
- props: {
15
- // 是否固定在页面底部,常用于修改、新增等表单页面,避免滚动到底部才能操作
16
- fixed: {
17
- type: Boolean,
18
- default: false
19
- },
20
- // 固定时是否适配 iPhone 底部安全区(Home 指示条)
21
- safeArea: {
22
- type: Boolean,
23
- default: true
24
- },
25
- // 固定时的层级,默认与顶部导航栏一致;vant 弹层默认 2000+,会自然覆盖在底栏之上
26
- zIndex: {
27
- type: [Number, String],
28
- default: 100
29
- }
30
- },
31
- data() {
32
- return {
33
- barHeight: 0
34
- }
35
- },
36
- computed: {
37
- holderStyle() {
38
- // 固定时底栏脱离文档流,外层生成等高占位,避免页面内容被遮挡
39
- return this.fixed && this.barHeight > 0 ? {height: this.barHeight + 'px'} : {};
40
- },
41
- barStyle() {
42
- return this.fixed ? {zIndex: this.zIndex} : {};
43
- }
44
- },
45
- watch: {
46
- fixed(val) {
47
- if (val) {
48
- this.$nextTick(this.updateHeight);
49
- } else {
50
- this.barHeight = 0;
51
- }
52
- },
53
- safeArea() {
54
- if (this.fixed) {
55
- this.$nextTick(this.updateHeight);
56
- }
57
- }
58
- },
59
- mounted() {
60
- if (!this.fixed) {
61
- return;
62
- }
63
- this.$nextTick(this.updateHeight);
64
- window.addEventListener('resize', this.updateHeight);
65
- window.addEventListener('orientationchange', this.updateHeight);
66
- // 按钮内容(字体、图标)变化导致高度变化时同步占位高度
67
- if (typeof ResizeObserver !== 'undefined' && this.$refs.bar) {
68
- this.resizeObserver = new ResizeObserver(this.updateHeight);
69
- this.resizeObserver.observe(this.$refs.bar);
70
- }
71
- },
72
- beforeDestroy() {
73
- window.removeEventListener('resize', this.updateHeight);
74
- window.removeEventListener('orientationchange', this.updateHeight);
75
- if (this.resizeObserver) {
76
- this.resizeObserver.disconnect();
77
- this.resizeObserver = null;
78
- }
79
- },
80
- methods: {
81
- updateHeight() {
82
- if (this.fixed && this.$refs.bar) {
83
- this.barHeight = this.$refs.bar.offsetHeight;
84
- }
85
- }
86
- }
87
- }
88
- </script>
89
- <style scoped>
90
- .container-divide {
91
- display: flex;
92
- flex-wrap: wrap;
93
- align-items: flex-end;
94
- flex-direction: row;
95
- gap: 6px;
96
- }
97
-
98
- .container-divide /deep/ .btn-sel {
99
- flex: 1;
100
- }
101
-
102
- /* 固定底部模式:白底 + 顶部分隔线 + 轻微阴影,与页面内容区分 */
103
- .container-divide--fixed {
104
- position: fixed;
105
- right: 0;
106
- bottom: 0;
107
- left: 0;
108
- box-sizing: border-box;
109
- padding: 8px 14px;
110
- background-color: var(--scl-white-1, #FFFFFF);
111
- border-top: 1px solid var(--scl-white-3, #EBEDF0);
112
- box-shadow: 0 -2px 8px rgba(51, 51, 51, 0.06);
113
- }
114
-
115
- /* iPhone 底部安全区适配 */
116
- .container-divide--safe {
117
- padding-bottom: calc(8px + constant(safe-area-inset-bottom));
118
- padding-bottom: calc(8px + env(safe-area-inset-bottom));
119
- }
120
- </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>