wl-design-mobile 0.0.4 → 0.0.6

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.
@@ -1,53 +0,0 @@
1
- <template>
2
- <div>
3
- <LamboBigButton :disabled="false" :position="position" :text="text" :type="type" icon="arrow-down"
4
- @click="onClick"></LamboBigButton>
5
- <ul v-show="show">
6
- <LamboBigButton :disabled="false" :type="type" text="编辑" @click="onClick1"></LamboBigButton>
7
- <LamboBigButton :disabled="false" :type="type" text="删除" @click="onClick2"></LamboBigButton>
8
- </ul>
9
- </div>
10
- </template>
11
- <script>
12
-
13
- import LamboBigButton from "@/components/lambo/btn/lambo-big-button.vue";
14
-
15
- export default {
16
- name: 'LamboSmallButtonSelect',
17
- components: {LamboBigButton},
18
- props: {
19
- text: {
20
- type: String,
21
- default: '更多'
22
- },
23
- },
24
- data() {
25
- return {
26
- type: 'default',
27
- position: 'right',
28
- show: false,
29
- }
30
- },
31
- methods: {
32
- onClick() {
33
- this.show = !this.show;
34
- },
35
- onClick1() {
36
- console.log('path', 'onClick1')
37
- },
38
- onClick2() {
39
- console.log('path', 'onClick2')
40
- },
41
- },
42
- created() {
43
-
44
- },
45
- mounted() {
46
-
47
- }
48
- }
49
- </script>
50
- <style scoped>
51
- @import "../styles/index.less";
52
-
53
- </style>
@@ -1,123 +0,0 @@
1
- <template>
2
- <div class="btns">
3
- <ul class="small-button-ul">
4
- <van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading" :plain="plain"
5
- :type="type" class="small-button" size="small" @click="handleClick"> {{ text }}
6
- </van-button>
7
- </ul>
8
- </div>
9
- </template>
10
- <script>
11
-
12
- export default {
13
- name: 'LamboSmallButton',
14
- components: {},
15
- props: {
16
- /**
17
- * 填充类型按钮 plain传false type传primary
18
- * 线框类型按钮 plain传true type传info
19
- * 无框类型按钮 plain传false type传default
20
- */
21
- type: {
22
- type: String,
23
- default: 'primary'
24
- },
25
- plain: {
26
- type: Boolean,
27
- default: false
28
- },
29
- text: {
30
- type: String,
31
- default: '小号按钮'
32
- },
33
- position: {
34
- type: String,
35
- default: 'left'
36
- },
37
- disabled: {
38
- type: Boolean,
39
- default: false
40
- },
41
- icon: {
42
- type: String,
43
- default: null
44
- },
45
- loading: {
46
- type: Boolean,
47
- default: false
48
- }
49
- },
50
- data() {
51
- return {}
52
- },
53
- methods: {
54
- handleClick(event) {
55
- this.$emit('click', event);
56
- }
57
- },
58
- created() {
59
-
60
- },
61
- mounted() {
62
-
63
- }
64
- }
65
- </script>
66
- <style scoped>
67
- @import "../styles/index.less";
68
-
69
- .small-button {
70
- height: 27px;
71
- border-radius: 3px;
72
- }
73
-
74
- /*填充按钮primary类型按钮样式 */
75
- /deep/ .small-button-ul .van-button--primary {
76
- background: var(--scl-blue);
77
- border: 1px solid var(--scl-blue);
78
- }
79
-
80
- /*填充按钮primary类型不可用按钮样式 */
81
- /deep/ .small-button-ul .van-button--disabled {
82
- cursor: not-allowed;
83
- opacity: 1;
84
- background-color: var(--scl-gray-6);
85
- color: #000000;
86
- border: 0px solid var(--scl-gray-6);
87
- }
88
-
89
- /*按钮文字样式*/
90
- /deep/ .small-button-ul .van-button__text {
91
- font-size: 11px;
92
- padding: 10px 0px;
93
- font-family: 微软雅黑, serif Regular;
94
- }
95
-
96
- /*线框按钮按钮样式*/
97
- /deep/ .small-button-ul .van-button--plain.van-button--info {
98
- color: var(--scl-blue);
99
- border: 1px solid var(--scl-blue);
100
- }
101
-
102
- /*线框按钮不可用按钮样式*/
103
- /deep/ .small-button-ul .van-button--plain.van-button--info.van-button--disabled {
104
- color: #000000;
105
- border: 1px solid var(--scl-gray-6);
106
- background-color: #ffffff;
107
- }
108
-
109
- /*无框类型按钮样式 */
110
- /deep/ .small-button-ul .van-button--default {
111
- background: var(--scl-white-1);
112
- border: 1px solid var(--scl-white-1);
113
- color: var(--scl-blue);
114
- }
115
-
116
- /*无框按钮不可用按钮样式*/
117
- /deep/ .small-button-ul .van-button--default.van-button--disabled {
118
- color: #000000;
119
- border: 1px solid var(--scl-white-1);
120
- background-color: var(--scl-white-1);
121
- }
122
-
123
- </style>
@@ -1,123 +0,0 @@
1
- <template>
2
- <div>
3
- <div class="opt-btn">
4
- <div>
5
- <slot name="optBtn"></slot>
6
- </div>
7
- <div v-if="showFilter">
8
- <lambo-icon-button :icon="'order.png'" @click="showOrderPop"></lambo-icon-button>
9
- <lambo-icon-button :icon="'filter.png'" @click="showFilterPop"></lambo-icon-button>
10
- </div>
11
- </div>
12
- <div v-if="showFilter">
13
- <filtrate-row :name="'降序'"></filtrate-row>
14
- <filtrate-row :name="'筛选范围'"></filtrate-row>
15
- </div>
16
- <van-popup
17
- ref="orderPopup"
18
- v-model="orderPop"
19
- position="bottom"
20
- round
21
- @close="closeOrderPop"
22
- class="van-popup">
23
- <template v-slot:default>
24
- <van-checkbox-group class="popup-item" v-model="orderChecked" shape="square">
25
- <div class="opt-btn" v-for="(item) in orderColumns" :key="item.K">
26
- <van-checkbox :name="item.K">{{item.V}}</van-checkbox>
27
- <van-radio-group v-model="item.type" direction="horizontal">
28
- <van-radio name="asc">升序</van-radio>
29
- <van-radio name="desc">降序</van-radio>
30
- </van-radio-group>
31
- </div>
32
- </van-checkbox-group>
33
- </template>
34
- </van-popup>
35
- <van-popup
36
- ref="filterPopup"
37
- v-model="filterPop"
38
- position="bottom"
39
- round
40
- @close="closeFilterPop"
41
- class="van-popup">
42
- <div class="popup-item">
43
- <slot name="filter" ></slot>
44
- </div>
45
- </van-popup>
46
- </div>
47
- </template>
48
- <script>
49
- import LamboIconButton from "@/components/lambo/btn/lambo-icon-button.vue";
50
- import FiltrateRow from "@/components/lambo/card-item/filtrate-row.vue";
51
-
52
- export default {
53
- name: "LamboListFilter",
54
- components: {
55
- FiltrateRow,
56
- LamboIconButton
57
- },
58
- props: {
59
- showFilter: {
60
- type: [Boolean, String],
61
- default: true
62
- },
63
- orderColumns: {
64
- type: Array,
65
- default: () => ([
66
- {
67
- K: 'a',
68
- V: '复选框 a'
69
- },
70
- {
71
- K: 'b',
72
- V: '复选框 b'
73
- }
74
- ])
75
- }
76
- },
77
- data() {
78
- return {
79
- orderPop: false,
80
- filterPop: false,
81
- orderChecked: [],
82
- orderData: []
83
- }
84
- },
85
- methods: {
86
- showOrderPop() {
87
- this.orderPop = true
88
- },
89
- showFilterPop() {
90
- this.filterPop = true
91
- },
92
- closeOrderPop() {
93
- this.orderData = []
94
- this.orderChecked.forEach((key) => {
95
- const order = this.orderColumns.find(item => item.K === key)
96
- const data = {
97
- K: order.K,
98
- type: order.type
99
- }
100
- this.orderData.push(data)
101
- })
102
- this.$emit('order-on-ok', this.orderData)
103
- },
104
- closeFilterPop() {
105
- }
106
- }
107
- }
108
- </script>
109
- <style scoped>
110
- .opt-btn {
111
- display: flex;
112
- justify-content: space-between;
113
- margin-bottom: 10px;
114
- }
115
- .popup-item {
116
- margin-top: 20px;
117
- padding: 0 15px;
118
- }
119
- .van-popup {
120
- min-height: 25%;
121
- height: auto;
122
- }
123
- </style>