@uxda/appkit 4.0.3 → 4.0.14

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 (116) hide show
  1. package/.eslintrc.mjs +7 -7
  2. package/README.md +187 -187
  3. package/babel.config.js +12 -12
  4. package/package.json +75 -80
  5. package/project.config.json +15 -15
  6. package/project.tt.json +13 -13
  7. package/rollup.config.mjs +56 -56
  8. package/src/Appkit.ts +65 -65
  9. package/src/balance/api/endpoints.ts +126 -126
  10. package/src/balance/api/index.ts +82 -82
  11. package/src/balance/components/AccountView.vue +748 -748
  12. package/src/balance/components/BalanceCard.vue +205 -209
  13. package/src/balance/components/BalanceReminder.vue +85 -85
  14. package/src/balance/components/ConsumptionFilter.vue +218 -218
  15. package/src/balance/components/ConsumptionRules.vue +68 -68
  16. package/src/balance/components/DateFilter.vue +227 -226
  17. package/src/balance/components/DateRange.vue +78 -0
  18. package/src/balance/components/ListFilter.vue +64 -0
  19. package/src/balance/components/ListFilterPicker.vue +187 -0
  20. package/src/balance/components/SecondBalance.vue +71 -71
  21. package/src/balance/components/Tip.vue +45 -45
  22. package/src/balance/components/index.ts +13 -9
  23. package/src/balance/types.ts +91 -90
  24. package/src/components/bt-cropper/index.vue +774 -774
  25. package/src/components/bt-cropper/utils/calcCropper.js +42 -42
  26. package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
  27. package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
  28. package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
  29. package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
  30. package/src/components/bt-cropper/utils/ratio.js +3 -3
  31. package/src/components/bt-cropper/utils/tools.js +25 -25
  32. package/src/components/dd-area/index.vue +225 -225
  33. package/src/components/dd-icon/doc.md +21 -21
  34. package/src/components/dd-icon/index.vue +23 -23
  35. package/src/components/dd-notice-bar/index.vue +78 -78
  36. package/src/components/dd-search/doc.md +34 -34
  37. package/src/components/dd-search/index.vue +168 -168
  38. package/src/components/dd-selector/index.vue +124 -124
  39. package/src/components/dd-skeleton/doc.md +19 -19
  40. package/src/components/dd-skeleton/index.vue +36 -36
  41. package/src/components/ocr-id/index.vue +114 -114
  42. package/src/components/ocr-id/types.d.ts +12 -12
  43. package/src/global.ts +6 -6
  44. package/src/index.ts +89 -89
  45. package/src/main.scss +1 -1
  46. package/src/notice/api/endpoints.ts +17 -17
  47. package/src/notice/api/index.ts +82 -82
  48. package/src/notice/components/NoticeBanner.vue +243 -243
  49. package/src/notice/components/NoticeEntry.vue +99 -99
  50. package/src/notice/components/NoticeList.vue +315 -315
  51. package/src/notice/components/NoticePopup.vue +161 -161
  52. package/src/notice/components/index.ts +5 -5
  53. package/src/notice/components/useCommonList.ts +86 -86
  54. package/src/notice/components/useNotice.ts +35 -35
  55. package/src/notice/index.ts +1 -1
  56. package/src/notice/types.ts +25 -25
  57. package/src/payment/api/config.ts +7 -7
  58. package/src/payment/api/endpoints.ts +103 -103
  59. package/src/payment/api/index.ts +71 -71
  60. package/src/payment/components/AmountPicker.vue +93 -93
  61. package/src/payment/components/RechargeResult.vue +69 -69
  62. package/src/payment/components/RechargeView.vue +154 -154
  63. package/src/payment/components/RightsPicker.vue +105 -105
  64. package/src/payment/components/TradeView.vue +298 -298
  65. package/src/payment/components/UserAgreement.vue +234 -234
  66. package/src/payment/components/index.ts +22 -22
  67. package/src/payment/index.ts +5 -5
  68. package/src/payment/services/index.ts +16 -16
  69. package/src/payment/services/invoke-recharge.ts +25 -25
  70. package/src/payment/services/request-payment.ts +58 -58
  71. package/src/payment/types.ts +28 -28
  72. package/src/register/components/SelfRegistration.vue +254 -254
  73. package/src/register/components/index.ts +2 -2
  74. package/src/shared/components/AppDrawer.vue +58 -58
  75. package/src/shared/components/AppVerify.vue +98 -0
  76. package/src/shared/components/DeviceVersion.vue +68 -68
  77. package/src/shared/components/EmptyView.vue +33 -33
  78. package/src/shared/components/OcrIcon.vue +119 -0
  79. package/src/shared/components/PageHeader.vue +79 -79
  80. package/src/shared/components/index.ts +7 -5
  81. package/src/shared/composables/index.ts +7 -5
  82. package/src/shared/composables/useCountdown.ts +46 -46
  83. package/src/shared/composables/useCrypto.ts +76 -0
  84. package/src/shared/composables/useDragBox.ts +97 -97
  85. package/src/shared/composables/useEncode.ts +43 -43
  86. package/src/shared/composables/useSafeArea.ts +46 -46
  87. package/src/shared/composables/useTabbar.ts +24 -24
  88. package/src/shared/composables/useUpload.ts +55 -0
  89. package/src/shared/composables/useValidator.ts +31 -31
  90. package/src/shared/http/Http.ts +136 -136
  91. package/src/shared/http/index.ts +1 -1
  92. package/src/shared/http/types.ts +157 -157
  93. package/src/shared/index.ts +3 -3
  94. package/src/shared/weixin/payment.ts +38 -38
  95. package/src/styles/fonts.scss +2 -2
  96. package/src/styles/vars.scss +3 -3
  97. package/src/user/api/endpoints.ts +17 -17
  98. package/src/user/api/index.ts +87 -87
  99. package/src/user/components/LoginSetting.vue +114 -114
  100. package/src/user/components/UserBinding.vue +307 -307
  101. package/src/user/components/UserBindingSuccess.vue +80 -80
  102. package/src/user/components/UserEntry.vue +137 -142
  103. package/src/user/components/UserFeedback.vue +440 -440
  104. package/src/user/components/UserFeedbackEntry.vue +192 -192
  105. package/src/user/components/UserHeadCrop.vue +65 -65
  106. package/src/user/components/UserInfo.vue +632 -632
  107. package/src/user/components/UserResourceEmpty.vue +75 -75
  108. package/src/user/components/index.ts +21 -21
  109. package/src/user/index.ts +1 -1
  110. package/tsconfig.json +30 -30
  111. package/types/global.d.ts +21 -21
  112. package/types/vue.d.ts +10 -10
  113. package/dist/appkit.css +0 -2331
  114. package/dist/assets/asset-3B_CoPto +0 -1
  115. package/dist/assets/asset-DcH8Kg-2 +0 -1
  116. package/dist/index.js +0 -7176
@@ -1,226 +1,227 @@
1
- <template>
2
- <div class="consumption-date-filter">
3
- <div class="date-filter-header">日期选择</div>
4
- <div class="content">
5
- <div class="title">自定义</div>
6
- <div class="time">
7
- <div
8
- class="item"
9
- :class="focused === 'from' ? 'current' : ''"
10
- @click="switchDateInput('from')"
11
- >
12
- {{ formatDate(result.from) }}
13
- </div>
14
- <div class="line">-</div>
15
- <div class="item" :class="focused === 'to' ? 'current' : ''" @click="switchDateInput('to')">
16
- {{ formatDate(result.to) }}
17
- </div>
18
- </div>
19
- </div>
20
- <div class="buttons spa-between">
21
- <div class="btn" @click="reset">重置</div>
22
- <div class="btn confirm" @click="onOkClick">确定</div>
23
- </div>
24
- <div class="bottom"></div>
25
- </div>
26
- <nut-popup v-model:visible="datePickerOpen" position="bottom">
27
- <nut-date-picker
28
- v-model="focusedDate"
29
- :min-date="minDate"
30
- :max-date="maxDate"
31
- :is-show-chinese="false"
32
- :three-dimensional="false"
33
- @cancel="datePickerOpen = false"
34
- @confirm="onDatePickerComplete"
35
- ></nut-date-picker>
36
- </nut-popup>
37
- </template>
38
-
39
- <script lang="ts" setup>
40
- import { reactive, ref, watch } from 'vue'
41
-
42
- type DateFilterProps = {
43
- from: string
44
- to: string
45
- }
46
-
47
- const props = defineProps<DateFilterProps>()
48
-
49
- const emit = defineEmits(['complete', 'reset'])
50
-
51
- watch(
52
- () => `${props.from}${props.to}`,
53
- () => {
54
- result.from = props.from
55
- result.to = props.to
56
- }
57
- )
58
-
59
- /**
60
- * 日期范围结果
61
- */
62
- const result = reactive<DateFilterProps>({ ...props })
63
-
64
- /**
65
- * 目前激活的日期输入框
66
- */
67
- const focused = ref<string>('from')
68
- const focusedDate = ref<any>(props.from)
69
-
70
- const minDate = ref<any>()
71
- const maxDate = ref<Date>(new Date())
72
- const datePickerOpen = ref<boolean>(false)
73
-
74
- /**
75
- * 日期重置
76
- */
77
- function reset() {
78
- emit('reset')
79
- }
80
-
81
- /**
82
- * 确认,提交新时间
83
- */
84
- function onOkClick() {
85
- emit('complete', result)
86
- }
87
-
88
- function formatDate(date: string) {
89
- const [year, month, day] = date.split('-')
90
- return year + '年' + month + '月' + day + '日'
91
- }
92
-
93
- function onDatePickerComplete({ selectedValue, selectedOptions }) {
94
- let time = selectedOptions.map((val: any) => val.text).join('-')
95
- if (focused.value === 'from') {
96
- // 如果选择的时间比结束时间大,结束时间改为开始时间
97
- result.from = new Date(time) > new Date(result.to) ? result.to : time
98
- } else {
99
- result.to = time
100
- }
101
- datePickerOpen.value = false
102
- }
103
-
104
- /**
105
- * 切换时间逻辑:初始化时有时间,默认聚焦开始时间
106
- * 当选择开始时间大于结束时间,结束时间改为开始时间
107
- * 时间选择器都要小于当前时间,结束时间的时间选择器要以开始时间为最小值,
108
- */
109
- function switchDateInput(shift: string) {
110
- // 要设置一下结束时间的起始值 开始时间往前倒5年
111
- if (shift === 'from') {
112
- let time = result.from.split('-').map(Number)
113
- minDate.value = new Date(time[0] - 5, 1, 1)
114
- } else {
115
- let time = result.from.split('-').map(Number)
116
- minDate.value = new Date(time[0], time[1] - 1, time[2])
117
- }
118
- focusedDate.value = new Date(result[shift])
119
- focused.value = shift
120
- datePickerOpen.value = true
121
- }
122
- </script>
123
- <style lang="scss">
124
- .consumption-date-filter {
125
- height: 100%;
126
- display: flex;
127
- flex-direction: column;
128
- width: 100%;
129
- .date-filter-header {
130
- text-align: center;
131
- height: 44px;
132
- line-height: 44px;
133
- color: #353535;
134
- font-size: 17px;
135
- background-color: #f5f5f5;
136
- }
137
- .content {
138
- flex: 1;
139
- margin: 15px;
140
- overflow-y: scroll;
141
- color: #353535;
142
- font-size: 13px;
143
- .title {
144
- opacity: 0.6;
145
- line-height: 18px;
146
- }
147
- .info {
148
- display: grid;
149
- grid-template-columns: 1fr 1fr 1fr;
150
- grid-gap: 10px;
151
- margin: 10px 0;
152
- .item {
153
- height: 30px;
154
- line-height: 30px;
155
- border: 1px solid #ccc;
156
- border-radius: 6px;
157
- text-align: center;
158
- }
159
- .current {
160
- border: 1px solid;
161
- border-image-source: linear-gradient(
162
- 180deg,
163
- rgba(239, 208, 130, 0.8) 0%,
164
- rgba(255, 185, 120, 0.8) 100%
165
- );
166
- background: linear-gradient(
167
- 180deg,
168
- rgba(239, 208, 130, 0.8) 0%,
169
- rgba(255, 185, 120, 0.8) 100%
170
- ),
171
- linear-gradient(180deg, #fff7e3 0%, #fefde6 100%);
172
- }
173
- }
174
- }
175
- .buttons {
176
- margin: 0 15px;
177
- display: flex;
178
- justify-content: space-between;
179
- align-items: center;
180
- .btn {
181
- flex: 1;
182
- height: 40px;
183
- line-height: 40px;
184
- text-align: center;
185
- border: 1px solid #ccc;
186
- box-sizing: border-box;
187
- color: #666;
188
- font-size: 16px;
189
- border-radius: 6px;
190
- }
191
- .confirm {
192
- margin-left: 11px;
193
- color: #000;
194
- border: none;
195
- background: linear-gradient(90deg, #ffebc1 0%, #ffd7a7 52.29%, #ffb875 100%);
196
- }
197
- }
198
- .time {
199
- display: flex;
200
- justify-content: flex-start;
201
- align-items: center;
202
- margin: 10px 0 30px 0;
203
- .line {
204
- margin: 0 8px;
205
- }
206
- .item {
207
- height: 30px;
208
- line-height: 30px;
209
- padding: 0 15px;
210
- font-size: 13px;
211
- color: #353535;
212
- border: 1px solid transparent;
213
- box-sizing: border-box;
214
- background: rgba(#f5f5f5, 0.8);
215
- border-radius: 6px;
216
- }
217
- .current {
218
- border: 1px solid #353535;
219
- }
220
- }
221
- .bottom {
222
- height: 32px;
223
- background: #fff;
224
- }
225
- }
226
- </style>
1
+ <template>
2
+ <div class="consumption-date-filter">
3
+ <div class="date-filter-header">日期选择</div>
4
+ <div class="content">
5
+ <div class="title">自定义</div>
6
+ <div class="time">
7
+ <div
8
+ class="item"
9
+ :class="focused === 'from' ? 'current' : ''"
10
+ @click="switchDateInput('from')"
11
+ >
12
+ {{ formatDate(result.from) }}
13
+ </div>
14
+ <div class="line">-</div>
15
+ <div class="item" :class="focused === 'to' ? 'current' : ''" @click="switchDateInput('to')">
16
+ {{ formatDate(result.to) }}
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <div class="buttons spa-between">
21
+ <div class="btn" @click="reset">重置</div>
22
+ <div class="btn confirm" @click="onOkClick">确定</div>
23
+ </div>
24
+ <div class="bottom"></div>
25
+ <nut-popup v-model:visible="datePickerOpen" position="bottom">
26
+ <nut-date-picker
27
+ v-model="focusedDate"
28
+ :min-date="minDate"
29
+ :max-date="maxDate"
30
+ :is-show-chinese="false"
31
+ :three-dimensional="false"
32
+ @cancel="datePickerOpen = false"
33
+ @confirm="onDatePickerComplete"
34
+ ></nut-date-picker>
35
+ </nut-popup>
36
+ </div>
37
+ </template>
38
+
39
+ <script lang="ts" setup>
40
+ import { reactive, ref, watch } from 'vue'
41
+
42
+ type DateFilterProps = {
43
+ from: string
44
+ to: string
45
+ }
46
+
47
+ const props = defineProps<DateFilterProps>()
48
+
49
+ const emit = defineEmits(['complete', 'reset'])
50
+
51
+ watch(
52
+ () => `${props.from}${props.to}`,
53
+ () => {
54
+ result.from = props.from
55
+ result.to = props.to
56
+ }
57
+ )
58
+
59
+ /**
60
+ * 日期范围结果
61
+ */
62
+ const result = reactive<DateFilterProps>({ ...props })
63
+
64
+ /**
65
+ * 目前激活的日期输入框
66
+ */
67
+ const focused = ref<string>('from')
68
+ const focusedDate = ref<any>(props.from)
69
+
70
+ const minDate = ref<any>()
71
+ const maxDate = ref<Date>(new Date())
72
+ const datePickerOpen = ref<boolean>(false)
73
+
74
+ /**
75
+ * 日期重置
76
+ */
77
+ function reset() {
78
+ emit('reset')
79
+ }
80
+
81
+ /**
82
+ * 确认,提交新时间
83
+ */
84
+ function onOkClick() {
85
+ emit('complete', result)
86
+ }
87
+
88
+ function formatDate(date: string) {
89
+ const [year, month, day] = date.split('-')
90
+ return year + '年' + month + '月' + day + '日'
91
+ }
92
+
93
+ function onDatePickerComplete({ selectedValue, selectedOptions }) {
94
+ let time = selectedOptions.map((val: any) => val.text).join('-')
95
+ if (focused.value === 'from') {
96
+ // 如果选择的时间比结束时间大,结束时间改为开始时间
97
+ result.from = new Date(time) > new Date(result.to) ? result.to : time
98
+ } else {
99
+ result.to = time
100
+ }
101
+ datePickerOpen.value = false
102
+ }
103
+
104
+ /**
105
+ * 切换时间逻辑:初始化时有时间,默认聚焦开始时间
106
+ * 当选择开始时间大于结束时间,结束时间改为开始时间
107
+ * 时间选择器都要小于当前时间,结束时间的时间选择器要以开始时间为最小值,
108
+ */
109
+ function switchDateInput(shift: string) {
110
+ // 要设置一下结束时间的起始值 开始时间往前倒5年
111
+ if (shift === 'from') {
112
+ let time = result.from.split('-').map(Number)
113
+ minDate.value = new Date(time[0] - 5, 1, 1)
114
+ } else {
115
+ let time = result.from.split('-').map(Number)
116
+ minDate.value = new Date(time[0], time[1] - 1, time[2])
117
+ }
118
+ focusedDate.value = new Date(result[shift])
119
+ focused.value = shift
120
+ datePickerOpen.value = true
121
+ }
122
+ </script>
123
+ <style lang="scss">
124
+ .consumption-date-filter {
125
+ height: 100%;
126
+ display: flex;
127
+ flex-direction: column;
128
+ width: 100%;
129
+ position: relative;
130
+ .date-filter-header {
131
+ text-align: center;
132
+ height: 44px;
133
+ line-height: 44px;
134
+ color: #353535;
135
+ font-size: 17px;
136
+ background-color: #f5f5f5;
137
+ }
138
+ .content {
139
+ flex: 1;
140
+ margin: 15px;
141
+ overflow-y: scroll;
142
+ color: #353535;
143
+ font-size: 13px;
144
+ .title {
145
+ opacity: 0.6;
146
+ line-height: 18px;
147
+ }
148
+ .info {
149
+ display: grid;
150
+ grid-template-columns: 1fr 1fr 1fr;
151
+ grid-gap: 10px;
152
+ margin: 10px 0;
153
+ .item {
154
+ height: 30px;
155
+ line-height: 30px;
156
+ border: 1px solid #ccc;
157
+ border-radius: 6px;
158
+ text-align: center;
159
+ }
160
+ .current {
161
+ border: 1px solid;
162
+ border-image-source: linear-gradient(
163
+ 180deg,
164
+ rgba(239, 208, 130, 0.8) 0%,
165
+ rgba(255, 185, 120, 0.8) 100%
166
+ );
167
+ background: linear-gradient(
168
+ 180deg,
169
+ rgba(239, 208, 130, 0.8) 0%,
170
+ rgba(255, 185, 120, 0.8) 100%
171
+ ),
172
+ linear-gradient(180deg, #fff7e3 0%, #fefde6 100%);
173
+ }
174
+ }
175
+ }
176
+ .buttons {
177
+ margin: 0 15px;
178
+ display: flex;
179
+ justify-content: space-between;
180
+ align-items: center;
181
+ .btn {
182
+ flex: 1;
183
+ height: 40px;
184
+ line-height: 40px;
185
+ text-align: center;
186
+ border: 1px solid #ccc;
187
+ box-sizing: border-box;
188
+ color: #666;
189
+ font-size: 16px;
190
+ border-radius: 6px;
191
+ }
192
+ .confirm {
193
+ margin-left: 11px;
194
+ color: #000;
195
+ border: none;
196
+ background: linear-gradient(90deg, #ffebc1 0%, #ffd7a7 52.29%, #ffb875 100%);
197
+ }
198
+ }
199
+ .time {
200
+ display: flex;
201
+ justify-content: flex-start;
202
+ align-items: center;
203
+ margin: 10px 0 30px 0;
204
+ .line {
205
+ margin: 0 8px;
206
+ }
207
+ .item {
208
+ height: 30px;
209
+ line-height: 30px;
210
+ padding: 0 15px;
211
+ font-size: 13px;
212
+ color: #353535;
213
+ border: 1px solid transparent;
214
+ box-sizing: border-box;
215
+ background: rgba(#f5f5f5, 0.8);
216
+ border-radius: 6px;
217
+ }
218
+ .current {
219
+ border: 1px solid #353535;
220
+ }
221
+ }
222
+ .bottom {
223
+ height: 32px;
224
+ background: #fff;
225
+ }
226
+ }
227
+ </style>
@@ -0,0 +1,78 @@
1
+ <template>
2
+ <div class="date-range" @click="openDateRangePicker">
3
+ <div class="text number">{{ dateRangeDisplay }}</div>
4
+ <img
5
+ style="margin-top: -2px"
6
+ class="time-icon"
7
+ src="https://cdn.ddjf.com/static/images/bpms-workBench/clound-bean-down.png"
8
+ />
9
+ </div>
10
+ </template>
11
+
12
+ <script lang="ts" setup>
13
+ import { computed, PropType, reactive } from 'vue'
14
+ import { useNutshell } from '@uxda/nutshell/taro'
15
+ import DateFilter from './DateFilter.vue'
16
+ import dayjs from 'dayjs'
17
+
18
+ const $n = useNutshell()
19
+
20
+ export type DateRangeModel = {
21
+ from: string,
22
+ to: string
23
+ }
24
+
25
+ const model = defineModel({
26
+ type: Object as PropType<DateRangeModel>,
27
+ required: false,
28
+ default: {
29
+ from: dayjs().add(-1, 'M').format('YYYY-MM-DD'),
30
+ to: dayjs().format('YYYY-MM-DD')
31
+ }
32
+ })
33
+
34
+ const openDateRangePicker = () => {
35
+ $n.sheet({
36
+ component: DateFilter,
37
+ props: {
38
+ from: model.value.from,
39
+ to: model.value.to,
40
+ },
41
+ onComplete (result: any) {
42
+ console.log('===openDateFilter complete', result)
43
+ model.value = {
44
+ from: result.from,
45
+ to: result.to
46
+ }
47
+ }
48
+ })
49
+ }
50
+
51
+ const dateRangeDisplay = computed(() => {
52
+ let startTime = (model.value.from || '').replace(/-/g, '.').substring(2)
53
+ let endTime = (model.value.to || '').replace(/-/g, '.').substring(2)
54
+ return startTime + ' - ' + endTime
55
+ })
56
+
57
+ </script>
58
+
59
+ <style lang="scss">
60
+ .date-range {
61
+ height: 22px;
62
+ padding-right: 5px;
63
+ flex: 1;
64
+ display: flex;
65
+ align-items: center;
66
+ .text {
67
+ width: fit-content;
68
+ white-space: nowrap;
69
+ }
70
+ .time-icon {
71
+ display: block;
72
+ font-size: 0;
73
+ width: 12px;
74
+ height: 12px;
75
+ margin-left: 4px;
76
+ }
77
+ }
78
+ </style>
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <div class="list-filter" @click="openPicker">
3
+ <span class="text">筛选</span>
4
+ <img
5
+ class="icon"
6
+ src="https://cdn.ddjf.com/static/images/bpms-workBench/clound-bean-select-icon.png"
7
+ />
8
+ </div>
9
+ </template>
10
+
11
+ <script lang="ts" setup>
12
+ import { computed, PropType, reactive } from 'vue'
13
+ import { useNutshell } from '@uxda/nutshell/taro'
14
+ import ListFilterPicker from './ListFilterPicker.vue'
15
+
16
+ const $n = useNutshell()
17
+
18
+ export type ListFilterValue = {
19
+ type: string,
20
+ }
21
+
22
+ const model = defineModel({
23
+ type: Object as PropType<ListFilterValue>,
24
+ default: {
25
+ type: ''
26
+ },
27
+ required: false,
28
+ })
29
+
30
+ const emit = defineEmits<{
31
+ (e: 'update:modelValue', v: ListFilterValue): void,
32
+ (e: 'change'): void,
33
+ }>()
34
+
35
+ const openPicker = () => {
36
+ $n.sheet({
37
+ component: ListFilterPicker,
38
+ props: {
39
+ modelValue: model,
40
+ onComplete: (result) => {
41
+ emit('update:modelValue', {
42
+ type: result[0]
43
+ })
44
+ }
45
+ }
46
+ })
47
+ }
48
+ </script>
49
+
50
+ <style lang="scss">
51
+ .list-filter {
52
+ display: flex;
53
+ align-items: center;
54
+ height: 22px;
55
+ padding-left: 5px;
56
+ .icon {
57
+ display: block;
58
+ font-size: 0;
59
+ width: 12px;
60
+ height: 12px;
61
+ margin-left: 4px;
62
+ }
63
+ }
64
+ </style>