mali-applet-ui 0.0.12 → 0.0.13

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.
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <picker :value="value" class="ml-month-picker" :class="{'is-border': border}" mode="date" fields="month" @change="changeEvent">
3
+ <view class="picker-warpper">
4
+ <view class="picker-text">{{ value || '请选择' }}</view>
5
+ <ml-icon class="picker-icon" name="arrow-down"></ml-icon>
6
+ </view>
7
+ </picker>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'ml-month-picker',
13
+ props: {
14
+ value: String,
15
+ border: Boolean
16
+ },
17
+ methods: {
18
+ changeEvent (e) {
19
+ const value = e.detail.value
20
+ this.$emit('input', value)
21
+ this.$emit('change', { value })
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <style lang="scss" scoped>
28
+ .ml-month-picker {
29
+ font-size: 14px;
30
+ box-sizing: border-box;
31
+ border-radius: 4px;
32
+ padding: 0 5px;
33
+ padding-left: 10px;
34
+ position: relative;
35
+ display: flex;
36
+ user-select: none;
37
+ flex-direction: row;
38
+ align-items: center;
39
+ height: 35px;
40
+ width: 240rpx;
41
+ color: #6a6a6a;
42
+ &.is-border {
43
+ border: 1px solid #e5e5e5;
44
+ }
45
+ .picker-warpper {
46
+ position: relative;
47
+ display: flex;
48
+ flex-direction: row;
49
+ align-items: center;
50
+ width: 194rpx;
51
+ }
52
+ .picker-text {
53
+ flex-grow: 1;
54
+ }
55
+ .picker-icon {
56
+ color: #6a6a6a;
57
+ }
58
+ }
59
+ </style>
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <picker :value="value" class="ml-year-picker" :class="{'is-border': border}" mode="date" fields="year" @change="changeEvent">
3
+ <view class="picker-warpper">
4
+ <view class="picker-text">{{ value || '请选择' }}</view>
5
+ <ml-icon class="picker-icon" name="arrow-down"></ml-icon>
6
+ </view>
7
+ </picker>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'ml-year-picker',
13
+ props: {
14
+ value: String,
15
+ border: Boolean
16
+ },
17
+ methods: {
18
+ changeEvent (e) {
19
+ const value = e.detail.value
20
+ this.$emit('input', value)
21
+ this.$emit('change', { value })
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <style lang="scss" scoped>
28
+ .ml-year-picker {
29
+ font-size: 14px;
30
+ box-sizing: border-box;
31
+ border-radius: 4px;
32
+ padding: 0 5px;
33
+ padding-left: 10px;
34
+ position: relative;
35
+ display: flex;
36
+ user-select: none;
37
+ flex-direction: row;
38
+ align-items: center;
39
+ height: 35px;
40
+ width: 240rpx;
41
+ color: #6a6a6a;
42
+ &.is-border {
43
+ border: 1px solid #e5e5e5;
44
+ }
45
+ .picker-warpper {
46
+ position: relative;
47
+ display: flex;
48
+ flex-direction: row;
49
+ align-items: center;
50
+ width: 194rpx;
51
+ }
52
+ .picker-text {
53
+ flex-grow: 1;
54
+ }
55
+ .picker-icon {
56
+ color: #6a6a6a;
57
+ }
58
+ }
59
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",