wl-design-mobile 0.0.1 → 0.0.2

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 (53) hide show
  1. package/api/doc.js +25 -0
  2. package/api/x1.js +56 -0
  3. package/btn/lambo-big-button.vue +125 -121
  4. package/btn/lambo-button-group.vue +47 -47
  5. package/btn/lambo-medium-button.vue +123 -121
  6. package/btn/lambo-small-button-group.vue +31 -31
  7. package/btn/lambo-small-button-select.vue +53 -53
  8. package/btn/lambo-small-button.vue +123 -121
  9. package/card-item/card-row-icon.vue +0 -1
  10. package/card-item/filtrate-row.vue +1 -0
  11. package/collapse/lambo-collapse.vue +80 -80
  12. package/config/config.js +14 -0
  13. package/detail/lambo-detail-grid.vue +87 -57
  14. package/detail/lambo-detail-row.vue +59 -59
  15. package/doc/file/lambo-file-upload.vue +176 -179
  16. package/doc/file/styles/css/index.css +118 -118
  17. package/doc/img/lambo-img-upload.vue +109 -109
  18. package/edit/list/Lambo-edit-list.vue +90 -90
  19. package/edit/list/lambo-edit-card-group.vue +103 -103
  20. package/edit/select/lambo-edit-date-range.vue +135 -135
  21. package/edit/select/lambo-edit-date-time.vue +105 -0
  22. package/edit/select/lambo-edit-date.vue +108 -108
  23. package/edit/select/lambo-edit-input-textarea.vue +92 -92
  24. package/edit/select/lambo-edit-input.vue +92 -92
  25. package/edit/select/lambo-edit-multi-select.vue +160 -160
  26. package/edit/select/lambo-edit-single-select.vue +153 -153
  27. package/flow/lambo-flow-detail.vue +30 -30
  28. package/flow/lambo-flow-edit.vue +30 -30
  29. package/icon/lambo-required-red-star.vue +47 -47
  30. package/list/lambo-list.vue +1 -1
  31. package/nav/lambo-top-nav.vue +89 -89
  32. package/package.json +4 -2
  33. package/search/lambo-date-range-page.vue +191 -191
  34. package/search/lambo-date-range.vue +107 -107
  35. package/search/lambo-input.vue +74 -74
  36. package/search/lambo-multi-select.vue +125 -125
  37. package/search/lambo-org-select-page.vue +109 -109
  38. package/search/lambo-search-box.vue +55 -55
  39. package/search/lambo-single-select.vue +119 -119
  40. package/styles/base.less +75 -75
  41. package/styles/components/btn.less +7 -7
  42. package/styles/components/search.less +33 -33
  43. package/styles/components/tag.less +181 -181
  44. package/styles/index.less +4 -4
  45. package/tag/lambo-tag.vue +25 -0
  46. package/title/lambo-title1.vue +129 -129
  47. package/title/lambo-title2.vue +37 -37
  48. package/util/assist.js +43 -0
  49. package/util/axios/cacheconf.js +19 -0
  50. package/util/axios/index.js +11 -0
  51. package/util/axios/interceptors.js +101 -0
  52. package/util/bus.js +4 -0
  53. package/util/token.js +36 -0
@@ -1,30 +1,30 @@
1
- <template>
2
- <div>
3
-
4
- </div>
5
- </template>
6
- <script>
7
-
8
- export default {
9
- name: 'LamboFlowDetail',
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
- </style>
1
+ <template>
2
+ <div>
3
+
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ export default {
9
+ name: 'LamboFlowDetail',
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
+ </style>
@@ -1,30 +1,30 @@
1
- <template>
2
- <div>
3
-
4
- </div>
5
- </template>
6
- <script>
7
-
8
- export default {
9
- name: 'LamboFlowEdit',
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
- </style>
1
+ <template>
2
+ <div>
3
+
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ export default {
9
+ name: 'LamboFlowEdit',
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
+ </style>
@@ -1,47 +1,47 @@
1
- <template>
2
- <div v-if="required === true" class="area-div">
3
- <img :src="requiredReadIcon" class="icon-ep"/>
4
- </div>
5
-
6
- <div v-else class="area"/>
7
-
8
- </template>
9
- <script>
10
- import redIcon from '../assets/icon/required.png'
11
-
12
- export default {
13
- name: 'LamboRequiredRedStar',
14
- props: {
15
- required: {
16
- type: Boolean,
17
- default: false,
18
- },
19
- },
20
- data() {
21
- return {
22
- requiredReadIcon: redIcon,
23
- }
24
- },
25
- methods: {}
26
- }
27
- </script>
28
- <style scoped>
29
- @import "../styles/index.less";
30
-
31
- .area-div {
32
- height: 16px;
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
- }
37
-
38
- .icon-ep {
39
- width: 8px;
40
- height: 8px;
41
- }
42
-
43
- .area {
44
- width: 8px;
45
- height: 16px;
46
- }
47
- </style>
1
+ <template>
2
+ <div v-if="required === true" class="area-div">
3
+ <img :src="requiredReadIcon" class="icon-ep"/>
4
+ </div>
5
+
6
+ <div v-else class="area"/>
7
+
8
+ </template>
9
+ <script>
10
+ import redIcon from '../assets/icon/required.png'
11
+
12
+ export default {
13
+ name: 'LamboRequiredRedStar',
14
+ props: {
15
+ required: {
16
+ type: Boolean,
17
+ default: false,
18
+ },
19
+ },
20
+ data() {
21
+ return {
22
+ requiredReadIcon: redIcon,
23
+ }
24
+ },
25
+ methods: {}
26
+ }
27
+ </script>
28
+ <style scoped>
29
+ @import "../styles/index.less";
30
+
31
+ .area-div {
32
+ height: 16px;
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ }
37
+
38
+ .icon-ep {
39
+ width: 8px;
40
+ height: 8px;
41
+ }
42
+
43
+ .area {
44
+ width: 8px;
45
+ height: 16px;
46
+ }
47
+ </style>
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
  </template>
31
31
  <script>
32
- import {axios} from "@indfnd/utils"
32
+ import {axios} from "../util/axios/index"
33
33
  import {Toast} from "vant"
34
34
 
35
35
  export default {
@@ -1,89 +1,89 @@
1
- <template>
2
- <van-sticky>
3
- <van-nav-bar :title="title">
4
- <template #left>
5
- <div class="arrow-left" @click="back"></div>
6
- </template>
7
- <template v-if="hasExtend" #right>
8
- <div :style="{backgroundImage: `../assets/icon/search-right.png`}" class="arrow-right" @click="more"></div>
9
- </template>
10
- </van-nav-bar>
11
- </van-sticky>
12
- </template>
13
- <script>
14
-
15
- export default {
16
- name: 'LamboNavBar',
17
- props: {
18
- title: String,
19
- icon: String,
20
- hasExtend: {
21
- type: Boolean,
22
- default: false
23
- },
24
- },
25
- data() {
26
- return {}
27
- },
28
- methods: {
29
- back() {
30
- this.$emit("on-back")
31
- },
32
- more() {
33
- this.$emit("on-extend")
34
- }
35
- },
36
- // computed: {
37
- // loadIcon() {
38
- // if (!this.icon) {
39
- // return url("../assets/icon/search-right.png");
40
- //
41
- // } else {
42
- // return new URL('../assets/icon/' + this.icon, import.meta.url).href
43
- // }
44
- // }
45
- // }
46
- }
47
- </script>
48
- <style scoped>
49
- @import "../styles/index.less";
50
-
51
- .arrow-left {
52
- width: 14px;
53
- height: 14px;
54
- line-height: 48px;
55
- background-image: url("../assets/icon/arrow-left.png");
56
- background-repeat: no-repeat;
57
- background-size: 100% auto;
58
- }
59
-
60
- .arrow-right {
61
- width: 14px;
62
- height: 14px;
63
- line-height: 48px;
64
- background-repeat: no-repeat;
65
- background-size: 100% auto;
66
- }
67
-
68
- .van-nav-bar {
69
- background-color: #0070D2;
70
- height: 48px;
71
- }
72
-
73
- ::v-deep .van-nav-bar__left {
74
- padding: 0px 8px 0px 14px;
75
- }
76
-
77
- ::v-deep .van-nav-bar__right {
78
- padding: 0px 14px 0px 8px;
79
- }
80
-
81
- ::v-deep .van-nav-bar__title {
82
- color: #fff;
83
- font-size: 16px;
84
- }
85
-
86
- ::v-deep .van-ellipsis {
87
- color: #fff;
88
- }
89
- </style>
1
+ <template>
2
+ <van-sticky>
3
+ <van-nav-bar :title="title">
4
+ <template #left>
5
+ <div class="arrow-left" @click="back"></div>
6
+ </template>
7
+ <template v-if="hasExtend" #right>
8
+ <div :style="{backgroundImage: `../assets/icon/search-right.png`}" class="arrow-right" @click="more"></div>
9
+ </template>
10
+ </van-nav-bar>
11
+ </van-sticky>
12
+ </template>
13
+ <script>
14
+
15
+ export default {
16
+ name: 'LamboNavBar',
17
+ props: {
18
+ title: String,
19
+ icon: String,
20
+ hasExtend: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ },
25
+ data() {
26
+ return {}
27
+ },
28
+ methods: {
29
+ back() {
30
+ this.$emit("on-back")
31
+ },
32
+ more() {
33
+ this.$emit("on-extend")
34
+ }
35
+ },
36
+ // computed: {
37
+ // loadIcon() {
38
+ // if (!this.icon) {
39
+ // return url("../assets/icon/search-right.png");
40
+ //
41
+ // } else {
42
+ // return new URL('../assets/icon/' + this.icon, import.meta.url).href
43
+ // }
44
+ // }
45
+ // }
46
+ }
47
+ </script>
48
+ <style scoped>
49
+ @import "../styles/index.less";
50
+
51
+ .arrow-left {
52
+ width: 14px;
53
+ height: 14px;
54
+ line-height: 48px;
55
+ background-image: url("../assets/icon/arrow-left.png");
56
+ background-repeat: no-repeat;
57
+ background-size: 100% auto;
58
+ }
59
+
60
+ .arrow-right {
61
+ width: 14px;
62
+ height: 14px;
63
+ line-height: 48px;
64
+ background-repeat: no-repeat;
65
+ background-size: 100% auto;
66
+ }
67
+
68
+ .van-nav-bar {
69
+ background-color: #0070D2;
70
+ height: 48px;
71
+ }
72
+
73
+ ::v-deep .van-nav-bar__left {
74
+ padding: 0px 8px 0px 14px;
75
+ }
76
+
77
+ ::v-deep .van-nav-bar__right {
78
+ padding: 0px 14px 0px 8px;
79
+ }
80
+
81
+ ::v-deep .van-nav-bar__title {
82
+ color: #fff;
83
+ font-size: 16px;
84
+ }
85
+
86
+ ::v-deep .van-ellipsis {
87
+ color: #fff;
88
+ }
89
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wl-design-mobile",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "finch",
@@ -17,7 +17,9 @@
17
17
  "dependencies": {
18
18
  "core-js": "^3.8.3",
19
19
  "vant": "^2.13.2",
20
- "vue-router": "^3.0.5"
20
+ "vue-router": "^3.0.5",
21
+ "moment": "^2.30.1",
22
+ "axios": "^1.7.2"
21
23
  },
22
24
  "devDependencies": {
23
25
  "vue": "^2.6.14"