@kengic/uni 0.6.3-beta.4 → 0.6.3-beta.41

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 (208) hide show
  1. package/{dist/api → api}/WMS/Controllers/CommonController/GetLatestApkVersion.ts +21 -21
  2. package/{dist/api → api}/WMS/Controllers/CommonController/index.ts +1 -1
  3. package/{dist/api → api}/WMS/Controllers/LoginController/GetUserInfo.ts +21 -21
  4. package/{dist/api → api}/WMS/Controllers/LoginController/Logout.ts +21 -21
  5. package/{dist/api → api}/WMS/Controllers/LoginController/index.ts +2 -2
  6. package/{dist/api → api}/WMS/Controllers/WhController/ListVO.ts +88 -88
  7. package/{dist/api → api}/WMS/Controllers/WhController/index.ts +1 -1
  8. package/{dist/api → api}/WMS/Controllers/WorkstationController/List.ts +45 -45
  9. package/{dist/api → api}/WMS/Controllers/WorkstationController/index.ts +1 -1
  10. package/{dist/api → api}/WMS/Controllers/index.ts +4 -4
  11. package/{dist/api → api}/WMS/index.ts +2 -2
  12. package/{dist/api → api}/WMS/models.ts +342 -318
  13. package/{dist/api → api}/api.ts +1 -1
  14. package/{dist/api → api}/def.ts +1 -1
  15. package/{dist/api → api}/index.ts +2 -2
  16. package/{dist/component → component}/KgStation/KgStation.vue +120 -9
  17. package/{dist/component → component}/KgStation/index.hooks.ts +1 -1
  18. package/{dist/component → component}/KgUpdatePopup/KgUpdatePopup.vue +1 -1
  19. package/{dist/component → component}/KgWarehouse/KgWarehouse.vue +1 -1
  20. package/{dist/const → const}/index.vm.ts +10 -0
  21. package/index.css +73 -0
  22. package/lodash-es.ts +1 -0
  23. package/package.json +10 -44
  24. package/{dist/service → service}/http-client.ts +109 -63
  25. package/{dist/store → store}/app.store.ts +12 -0
  26. package/{dist/uni → uni}/uni-ui/uni-data-select/uni-data-select.vue +5 -4
  27. package/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1071 -0
  28. package/{dist/uni → uni}/uni-ui/uni-easyinput/common.js +1 -0
  29. package/{dist/uni → uni}/uni-ui/uni-easyinput/uni-easyinput.vue +23 -70
  30. package/{dist/uni → uni}/uni-ui/uni-pagination/uni-pagination.vue +8 -4
  31. package/{dist/uni → uni}/uni-ui/uni-segmented-control/uni-segmented-control.vue +4 -4
  32. package/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +403 -0
  33. package/{dist/util → util}/kg.ts +62 -14
  34. package/CHANGELOG.md +0 -15
  35. package/README.md +0 -1
  36. package/dist/index.css +0 -28
  37. package/dist/src/index.d.ts +0 -1
  38. package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +0 -1026
  39. package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +0 -347
  40. package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +0 -341
  41. /package/{dist/component → component}/KgNavBar/KgNavBar.vue +0 -0
  42. /package/{dist/component → component}/KgNavBar/index.ts +0 -0
  43. /package/{dist/component → component}/KgStation/index.store.ts +0 -0
  44. /package/{dist/component → component}/KgStation/index.ts +0 -0
  45. /package/{dist/component → component}/KgTabBar/KgTabBar.vue +0 -0
  46. /package/{dist/component → component}/KgTabBar/index.ts +0 -0
  47. /package/{dist/component → component}/KgUpdatePopup/index.ts +0 -0
  48. /package/{dist/component → component}/KgWarehouse/index.hooks.ts +0 -0
  49. /package/{dist/component → component}/KgWarehouse/index.store.ts +0 -0
  50. /package/{dist/component → component}/KgWarehouse/index.ts +0 -0
  51. /package/{dist/component → component}/index.ts +0 -0
  52. /package/{dist/config → config}/index.ts +0 -0
  53. /package/{dist/config → config}/setup.ts +0 -0
  54. /package/{dist/const → const}/index.ts +0 -0
  55. /package/{dist/index.ts → index.ts} +0 -0
  56. /package/{dist/service → service}/index.ts +0 -0
  57. /package/{dist/uni → uni}/index.ts +0 -0
  58. /package/{dist/uni → uni}/uni-ui/README.md +0 -0
  59. /package/{dist/uni → uni}/uni-ui/index.ts +0 -0
  60. /package/{dist/uni → uni}/uni-ui/uni-badge/uni-badge.vue +0 -0
  61. /package/{dist/uni → uni}/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +0 -0
  62. /package/{dist/uni → uni}/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +0 -0
  63. /package/{dist/uni → uni}/uni-ui/uni-calendar/calendar.js +0 -0
  64. /package/{dist/uni → uni}/uni-ui/uni-calendar/i18n/en.json +0 -0
  65. /package/{dist/uni → uni}/uni-ui/uni-calendar/i18n/index.js +0 -0
  66. /package/{dist/uni → uni}/uni-ui/uni-calendar/i18n/zh-Hans.json +0 -0
  67. /package/{dist/uni → uni}/uni-ui/uni-calendar/i18n/zh-Hant.json +0 -0
  68. /package/{dist/uni → uni}/uni-ui/uni-calendar/uni-calendar-item.vue +0 -0
  69. /package/{dist/uni → uni}/uni-ui/uni-calendar/uni-calendar.vue +0 -0
  70. /package/{dist/uni → uni}/uni-ui/uni-calendar/util.js +0 -0
  71. /package/{dist/uni → uni}/uni-ui/uni-card/uni-card.vue +0 -0
  72. /package/{dist/uni → uni}/uni-ui/uni-col/uni-col.vue +0 -0
  73. /package/{dist/uni → uni}/uni-ui/uni-collapse/uni-collapse.vue +0 -0
  74. /package/{dist/uni → uni}/uni-ui/uni-collapse-item/uni-collapse-item.vue +0 -0
  75. /package/{dist/uni → uni}/uni-ui/uni-combox/uni-combox.vue +0 -0
  76. /package/{dist/uni → uni}/uni-ui/uni-countdown/i18n/en.json +0 -0
  77. /package/{dist/uni → uni}/uni-ui/uni-countdown/i18n/index.js +0 -0
  78. /package/{dist/uni → uni}/uni-ui/uni-countdown/i18n/zh-Hans.json +0 -0
  79. /package/{dist/uni → uni}/uni-ui/uni-countdown/i18n/zh-Hant.json +0 -0
  80. /package/{dist/uni → uni}/uni-ui/uni-countdown/uni-countdown.vue +0 -0
  81. /package/{dist/uni → uni}/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +0 -0
  82. /package/{dist/uni → uni}/uni-ui/uni-data-picker/keypress.js +0 -0
  83. /package/{dist/uni → uni}/uni-ui/uni-data-picker/uni-data-picker.vue +0 -0
  84. /package/{dist/uni → uni}/uni-ui/uni-data-pickerview/uni-data-picker.js +0 -0
  85. /package/{dist/uni → uni}/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +0 -0
  86. /package/{dist/uni → uni}/uni-ui/uni-dateformat/date-format.js +0 -0
  87. /package/{dist/uni → uni}/uni-ui/uni-dateformat/uni-dateformat.vue +0 -0
  88. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/calendar-item.vue +0 -0
  89. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/calendar.vue +0 -0
  90. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/i18n/en.json +0 -0
  91. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/i18n/index.js +0 -0
  92. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +0 -0
  93. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +0 -0
  94. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/time-picker.vue +0 -0
  95. /package/{dist/uni → uni}/uni-ui/uni-datetime-picker/util.js +0 -0
  96. /package/{dist/uni → uni}/uni-ui/uni-drawer/keypress.js +0 -0
  97. /package/{dist/uni → uni}/uni-ui/uni-drawer/uni-drawer.vue +0 -0
  98. /package/{dist/uni → uni}/uni-ui/uni-fab/uni-fab.vue +0 -0
  99. /package/{dist/uni → uni}/uni-ui/uni-fav/i18n/en.json +0 -0
  100. /package/{dist/uni → uni}/uni-ui/uni-fav/i18n/index.js +0 -0
  101. /package/{dist/uni → uni}/uni-ui/uni-fav/i18n/zh-Hans.json +0 -0
  102. /package/{dist/uni → uni}/uni-ui/uni-fav/i18n/zh-Hant.json +0 -0
  103. /package/{dist/uni → uni}/uni-ui/uni-fav/uni-fav.vue +0 -0
  104. /package/{dist/uni → uni}/uni-ui/uni-file-picker/choose-and-upload-file.js +0 -0
  105. /package/{dist/uni → uni}/uni-ui/uni-file-picker/uni-file-picker.vue +0 -0
  106. /package/{dist/uni → uni}/uni-ui/uni-file-picker/upload-file.vue +0 -0
  107. /package/{dist/uni → uni}/uni-ui/uni-file-picker/upload-image.vue +0 -0
  108. /package/{dist/uni → uni}/uni-ui/uni-file-picker/utils.js +0 -0
  109. /package/{dist/uni → uni}/uni-ui/uni-forms/uni-forms.vue +0 -0
  110. /package/{dist/uni → uni}/uni-ui/uni-forms/utils.js +0 -0
  111. /package/{dist/uni → uni}/uni-ui/uni-forms/validate.js +0 -0
  112. /package/{dist/uni → uni}/uni-ui/uni-forms-item/uni-forms-item.vue +0 -0
  113. /package/{dist/uni → uni}/uni-ui/uni-goods-nav/i18n/en.json +0 -0
  114. /package/{dist/uni → uni}/uni-ui/uni-goods-nav/i18n/index.js +0 -0
  115. /package/{dist/uni → uni}/uni-ui/uni-goods-nav/i18n/zh-Hans.json +0 -0
  116. /package/{dist/uni → uni}/uni-ui/uni-goods-nav/i18n/zh-Hant.json +0 -0
  117. /package/{dist/uni → uni}/uni-ui/uni-goods-nav/uni-goods-nav.vue +0 -0
  118. /package/{dist/uni → uni}/uni-ui/uni-grid/uni-grid.vue +0 -0
  119. /package/{dist/uni → uni}/uni-ui/uni-grid-item/uni-grid-item.vue +0 -0
  120. /package/{dist/uni → uni}/uni-ui/uni-group/uni-group.vue +0 -0
  121. /package/{dist/uni → uni}/uni-ui/uni-icons/icons.js +0 -0
  122. /package/{dist/uni → uni}/uni-ui/uni-icons/uni-icons.vue +0 -0
  123. /package/{dist/uni → uni}/uni-ui/uni-icons/uniicons.css +0 -0
  124. /package/{dist/uni → uni}/uni-ui/uni-icons/uniicons.ttf +0 -0
  125. /package/{dist/uni → uni}/uni-ui/uni-icons/uniicons_file.ts +0 -0
  126. /package/{dist/uni → uni}/uni-ui/uni-icons/uniicons_file_vue.js +0 -0
  127. /package/{dist/uni → uni}/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +0 -0
  128. /package/{dist/uni → uni}/uni-ui/uni-indexed-list/uni-indexed-list.vue +0 -0
  129. /package/{dist/uni → uni}/uni-ui/uni-link/uni-link.vue +0 -0
  130. /package/{dist/uni → uni}/uni-ui/uni-list/uni-list.vue +0 -0
  131. /package/{dist/uni → uni}/uni-ui/uni-list/uni-refresh.vue +0 -0
  132. /package/{dist/uni → uni}/uni-ui/uni-list/uni-refresh.wxs +0 -0
  133. /package/{dist/uni → uni}/uni-ui/uni-list-ad/uni-list-ad.vue +0 -0
  134. /package/{dist/uni → uni}/uni-ui/uni-list-chat/uni-list-chat.scss +0 -0
  135. /package/{dist/uni → uni}/uni-ui/uni-list-chat/uni-list-chat.vue +0 -0
  136. /package/{dist/uni → uni}/uni-ui/uni-list-item/uni-list-item.vue +0 -0
  137. /package/{dist/uni → uni}/uni-ui/uni-load-more/i18n/en.json +0 -0
  138. /package/{dist/uni → uni}/uni-ui/uni-load-more/i18n/index.js +0 -0
  139. /package/{dist/uni → uni}/uni-ui/uni-load-more/i18n/zh-Hans.json +0 -0
  140. /package/{dist/uni → uni}/uni-ui/uni-load-more/i18n/zh-Hant.json +0 -0
  141. /package/{dist/uni → uni}/uni-ui/uni-load-more/uni-load-more.vue +0 -0
  142. /package/{dist/uni → uni}/uni-ui/uni-nav-bar/uni-nav-bar.vue +0 -0
  143. /package/{dist/uni → uni}/uni-ui/uni-nav-bar/uni-status-bar.vue +0 -0
  144. /package/{dist/uni → uni}/uni-ui/uni-notice-bar/uni-notice-bar.vue +0 -0
  145. /package/{dist/uni → uni}/uni-ui/uni-number-box/uni-number-box.vue +0 -0
  146. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/en.json +0 -0
  147. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/es.json +0 -0
  148. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/fr.json +0 -0
  149. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/index.js +0 -0
  150. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/zh-Hans.json +0 -0
  151. /package/{dist/uni → uni}/uni-ui/uni-pagination/i18n/zh-Hant.json +0 -0
  152. /package/{dist/uni → uni}/uni-ui/uni-popup/i18n/en.json +0 -0
  153. /package/{dist/uni → uni}/uni-ui/uni-popup/i18n/index.js +0 -0
  154. /package/{dist/uni → uni}/uni-ui/uni-popup/i18n/zh-Hans.json +0 -0
  155. /package/{dist/uni → uni}/uni-ui/uni-popup/i18n/zh-Hant.json +0 -0
  156. /package/{dist/uni → uni}/uni-ui/uni-popup/keypress.js +0 -0
  157. /package/{dist/uni → uni}/uni-ui/uni-popup/popup.js +0 -0
  158. /package/{dist/uni → uni}/uni-ui/uni-popup/uni-popup.vue +0 -0
  159. /package/{dist/uni → uni}/uni-ui/uni-popup-dialog/keypress.js +0 -0
  160. /package/{dist/uni → uni}/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +0 -0
  161. /package/{dist/uni → uni}/uni-ui/uni-popup-message/uni-popup-message.vue +0 -0
  162. /package/{dist/uni → uni}/uni-ui/uni-popup-share/uni-popup-share.vue +0 -0
  163. /package/{dist/uni → uni}/uni-ui/uni-rate/uni-rate.vue +0 -0
  164. /package/{dist/uni → uni}/uni-ui/uni-row/uni-row.vue +0 -0
  165. /package/{dist/uni → uni}/uni-ui/uni-scss/changelog.md +0 -0
  166. /package/{dist/uni → uni}/uni-ui/uni-scss/index.scss +0 -0
  167. /package/{dist/uni → uni}/uni-ui/uni-scss/package.json +0 -0
  168. /package/{dist/uni → uni}/uni-ui/uni-scss/readme.md +0 -0
  169. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/index.scss +0 -0
  170. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_border.scss +0 -0
  171. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_color.scss +0 -0
  172. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_radius.scss +0 -0
  173. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_space.scss +0 -0
  174. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_styles.scss +0 -0
  175. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_text.scss +0 -0
  176. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/setting/_variables.scss +0 -0
  177. /package/{dist/uni → uni}/uni-ui/uni-scss/styles/tools/functions.scss +0 -0
  178. /package/{dist/uni → uni}/uni-ui/uni-scss/theme.scss +0 -0
  179. /package/{dist/uni → uni}/uni-ui/uni-scss/variables.scss +0 -0
  180. /package/{dist/uni → uni}/uni-ui/uni-search-bar/i18n/en.json +0 -0
  181. /package/{dist/uni → uni}/uni-ui/uni-search-bar/i18n/index.js +0 -0
  182. /package/{dist/uni → uni}/uni-ui/uni-search-bar/i18n/zh-Hans.json +0 -0
  183. /package/{dist/uni → uni}/uni-ui/uni-search-bar/i18n/zh-Hant.json +0 -0
  184. /package/{dist/uni → uni}/uni-ui/uni-search-bar/uni-search-bar.vue +0 -0
  185. /package/{dist/uni → uni}/uni-ui/uni-section/uni-section.vue +0 -0
  186. /package/{dist/uni → uni}/uni-ui/uni-steps/uni-steps.vue +0 -0
  187. /package/{dist/uni → uni}/uni-ui/uni-swipe-action/uni-swipe-action.vue +0 -0
  188. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/bindingx.js +0 -0
  189. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/isPC.js +0 -0
  190. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/mpalipay.js +0 -0
  191. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/mpother.js +0 -0
  192. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/mpwxs.js +0 -0
  193. /package/{dist/uni → uni}/uni-ui/uni-swipe-action-item/render.js +0 -0
  194. /package/{dist/uni → uni}/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +0 -0
  195. /package/{dist/uni → uni}/uni-ui/uni-table/uni-table.vue +0 -0
  196. /package/{dist/uni → uni}/uni-ui/uni-tag/uni-tag.vue +0 -0
  197. /package/{dist/uni → uni}/uni-ui/uni-tbody/uni-tbody.vue +0 -0
  198. /package/{dist/uni → uni}/uni-ui/uni-td/uni-td.vue +0 -0
  199. /package/{dist/uni → uni}/uni-ui/uni-th/filter-dropdown.vue +0 -0
  200. /package/{dist/uni → uni}/uni-ui/uni-th/uni-th.vue +0 -0
  201. /package/{dist/uni → uni}/uni-ui/uni-thead/uni-thead.vue +0 -0
  202. /package/{dist/uni → uni}/uni-ui/uni-title/uni-title.vue +0 -0
  203. /package/{dist/uni → uni}/uni-ui/uni-tooltip/uni-tooltip.vue +0 -0
  204. /package/{dist/uni → uni}/uni-ui/uni-tr/table-checkbox.vue +0 -0
  205. /package/{dist/uni → uni}/uni-ui/uni-tr/uni-tr.vue +0 -0
  206. /package/{dist/uni → uni}/uni-ui/uni-transition/createAnimation.js +0 -0
  207. /package/{dist/uni → uni}/uni-ui/uni-transition/uni-transition.vue +0 -0
  208. /package/{dist/util → util}/index.ts +0 -0
@@ -23,6 +23,7 @@ export const debounce = function (func, wait = 1000, immediate = true) {
23
23
  }
24
24
  };
25
25
  };
26
+
26
27
  /**
27
28
  * @desc 函数节流
28
29
  * @param func 函数
@@ -3,54 +3,6 @@
3
3
  <view class="uni-easyinput__content" :class="inputContentClass" :style="inputContentStyle">
4
4
  <uni-icons v-if="prefixIcon" class="content-clear-icon" :type="prefixIcon" color="#c0c4cc" @click="onClickIcon('prefix')" size="16"></uni-icons>
5
5
  <slot name="left"></slot>
6
- <!-- #ifdef MP-ALIPAY -->
7
- <textarea
8
- :enableNative="enableNative"
9
- v-if="type === 'textarea'"
10
- class="uni-easyinput__content-textarea"
11
- :class="{ 'input-padding': inputBorder }"
12
- :name="name"
13
- :value="val"
14
- :placeholder="placeholder"
15
- :placeholderStyle="placeholderStyle"
16
- :disabled="disabled"
17
- placeholder-class="uni-easyinput__placeholder-class"
18
- :maxlength="inputMaxlength"
19
- :focus="focused"
20
- :autoHeight="autoHeight"
21
- :cursor-spacing="cursorSpacing"
22
- :adjust-position="adjustPosition"
23
- @input="onInput"
24
- @blur="_Blur"
25
- @focus="_Focus"
26
- @confirm="onConfirm"
27
- @keyboardheightchange="onkeyboardheightchange"
28
- ></textarea>
29
- <input
30
- :enableNative="enableNative"
31
- v-else
32
- :type="type === 'password' ? 'text' : type"
33
- class="uni-easyinput__content-input"
34
- :style="inputStyle"
35
- :name="name"
36
- :value="val"
37
- :password="!showPassword && type === 'password'"
38
- :placeholder="placeholder"
39
- :placeholderStyle="placeholderStyle"
40
- placeholder-class="uni-easyinput__placeholder-class"
41
- :disabled="disabled"
42
- :maxlength="inputMaxlength"
43
- :focus="focused"
44
- :confirmType="confirmType"
45
- :cursor-spacing="cursorSpacing"
46
- :adjust-position="adjustPosition"
47
- @focus="_Focus"
48
- @blur="_Blur"
49
- @input="onInput"
50
- @confirm="onConfirm"
51
- @keyboardheightchange="onkeyboardheightchange"
52
- />
53
- <!-- #endif -->
54
6
  <!-- #ifndef MP-ALIPAY -->
55
7
  <textarea
56
8
  v-if="type === 'textarea'"
@@ -60,7 +12,7 @@
60
12
  :value="val"
61
13
  :placeholder="placeholder"
62
14
  :placeholderStyle="placeholderStyle"
63
- :disabled="disabled"
15
+ :disabled="disabled || readonly"
64
16
  placeholder-class="uni-easyinput__placeholder-class"
65
17
  :maxlength="inputMaxlength"
66
18
  :focus="focused"
@@ -84,7 +36,7 @@
84
36
  :placeholder="placeholder"
85
37
  :placeholderStyle="placeholderStyle"
86
38
  placeholder-class="uni-easyinput__placeholder-class"
87
- :disabled="disabled"
39
+ :disabled="disabled || readonly"
88
40
  :maxlength="inputMaxlength"
89
41
  :focus="focused"
90
42
  :confirmType="confirmType"
@@ -98,8 +50,8 @@
98
50
  />
99
51
  <!-- #endif -->
100
52
 
53
+ <!-- 开启密码时显示小眼睛 -->
101
54
  <template v-if="type === 'password' && passwordIcon">
102
- <!-- 开启密码时显示小眼睛 -->
103
55
  <uni-icons
104
56
  v-if="isVal"
105
57
  class="content-clear-icon"
@@ -196,7 +148,7 @@
196
148
 
197
149
  export default {
198
150
  name: 'UniEasyinput',
199
- emits: ['click', 'iconClick', 'update:modelValue', 'input', 'focus', 'blur', 'confirm', 'clear', 'eyes', 'change', 'keyboardheightchange'],
151
+ emits: ['click', 'iconClick', 'update:modelValue', 'focus', 'blur', 'confirm', 'clear', 'eyes', 'change', 'keyboardheightchange'],
200
152
  model: {
201
153
  prop: 'modelValue',
202
154
  event: 'update:modelValue',
@@ -248,6 +200,14 @@
248
200
  type: Boolean,
249
201
  default: false,
250
202
  },
203
+
204
+ /**
205
+ * <p>是否只读, 跟 disabled 的区别是: 会显示清空图标.</p>
206
+ */
207
+ readonly: {
208
+ type: Boolean,
209
+ default: false,
210
+ },
251
211
  maxlength: {
252
212
  type: [Number, String],
253
213
  default: 140,
@@ -362,7 +322,7 @@
362
322
  'is-input-border': this.inputBorder,
363
323
  'is-input-error-border': this.inputBorder && this.msg,
364
324
  'is-textarea': this.type === 'textarea',
365
- 'is-disabled': this.disabled,
325
+ 'is-disabled': this.disabled || this.readonly,
366
326
  'is-focused': this.focusShow,
367
327
  });
368
328
  },
@@ -371,7 +331,7 @@
371
331
  const borderColor = this.inputBorder && this.msg ? '#dd524d' : focusColor;
372
332
  return obj2strStyle({
373
333
  'border-color': borderColor || '#e5e5e5',
374
- 'background-color': this.disabled ? this.styles.disableColor : this.styles.backgroundColor,
334
+ 'background-color': this.disabled || this.readonly ? this.styles.disableColor : this.styles.backgroundColor,
375
335
  });
376
336
  },
377
337
  // input右侧样式
@@ -459,9 +419,6 @@
459
419
  }
460
420
  if (this.errMsg) this.errMsg = '';
461
421
  this.val = value;
462
- // TODO 兼容 vue2
463
- this.$emit('input', value);
464
- // TODO 兼容 vue3
465
422
  this.$emit('update:modelValue', value);
466
423
  },
467
424
 
@@ -527,9 +484,6 @@
527
484
  */
528
485
  onClear(event) {
529
486
  this.val = '';
530
- // TODO 兼容 vue2
531
- this.$emit('input', '');
532
- // TODO 兼容 vue2
533
487
  // TODO 兼容 vue3
534
488
  this.$emit('update:modelValue', '');
535
489
  // 点击叉号触发
@@ -582,7 +536,7 @@
582
536
  position: relative;
583
537
  text-align: left;
584
538
  color: #333;
585
- font-size: 14px;
539
+ font-size: 13px;
586
540
  }
587
541
 
588
542
  .uni-easyinput__content {
@@ -609,7 +563,7 @@
609
563
  overflow: hidden;
610
564
  flex: 1;
611
565
  line-height: 1;
612
- font-size: 14px;
566
+ font-size: 13px;
613
567
  height: 24px;
614
568
  // min-height: 36px;
615
569
 
@@ -621,17 +575,16 @@
621
575
  & ::-ms-clear {
622
576
  display: none;
623
577
  }
624
-
625
- & ::-o-clear {
626
- display: none;
627
- }
628
-
629
578
  /*endif*/
630
579
  }
631
580
 
581
+ :deep(.uni-easyinput__content-input) .uni-input-input {
582
+ padding-bottom: 1px;
583
+ }
584
+
632
585
  .uni-easyinput__placeholder-class {
633
586
  color: #999;
634
- font-size: 12px;
587
+ font-size: 13px;
635
588
  // font-weight: 200;
636
589
  }
637
590
 
@@ -648,7 +601,7 @@
648
601
  overflow: hidden;
649
602
  flex: 1;
650
603
  line-height: 1.5;
651
- font-size: 14px;
604
+ font-size: 13px;
652
605
  margin: 6px;
653
606
  margin-left: 0;
654
607
  height: 80px;
@@ -737,7 +690,7 @@
737
690
 
738
691
  .uni-easyinput__placeholder-class {
739
692
  color: #d5d5d5;
740
- font-size: 12px;
693
+ font-size: 13px;
741
694
  }
742
695
  }
743
696
  </style>
@@ -26,8 +26,8 @@
26
26
  </view>
27
27
  <view class="uni-pagination__num uni-pagination__num-flex-none">
28
28
  <view class="uni-pagination__num-current">
29
- <text class="uni-pagination__num-current-text is-pc-hide current-index-text">{{ currentIndex }}</text>
30
- <text class="uni-pagination__num-current-text is-pc-hide">/{{ maxPage || 0 }}</text>
29
+ <text class="uni-pagination__num-current-text is-pc-hide current-index-text">{{ currentIndex }}&nbsp;</text>
30
+ <text class="uni-pagination__num-current-text is-pc-hide">/&nbsp;{{ maxPage || 0 }}</text>
31
31
  <!-- #ifndef APP-NVUE -->
32
32
  <view v-for="(item, index) in paper" :key="index" :class="{ 'page--active': item === currentIndex }"
33
33
  class="uni-pagination__num-tag tag--active is-phone-hide" @click.top="selectPage(item, index)">
@@ -341,10 +341,14 @@
341
341
  justify-content: center;
342
342
  align-items: center;
343
343
  text-align: center;
344
- border-radius: 5px;
344
+ border-radius: 3px;
345
345
  // border-width: 1px;
346
346
  // border-style: solid;
347
347
  // border-color: $uni-border-color;
348
+ border: 1px solid #ececec !important;
349
+ border-radius: 3px !important;
350
+ border-bottom: 1px solid #d3d3d3 !important;
351
+ background: #fefefe !important;
348
352
  }
349
353
 
350
354
  .uni-pagination__child-btn {
@@ -387,7 +391,7 @@
387
391
  line-height: 30px;
388
392
  // border: 1px red solid;
389
393
  color: #999;
390
- border-radius: 4px;
394
+ border-radius: 3px;
391
395
  // border-width: 1px;
392
396
  // border-style: solid;
393
397
  // border-color: $uni-border-color;
@@ -122,13 +122,13 @@
122
122
 
123
123
  .segmented-control__item--button--first {
124
124
  border-left-width: 1px;
125
- border-top-left-radius: 5px;
126
- border-bottom-left-radius: 5px;
125
+ border-top-left-radius: 3px;
126
+ border-bottom-left-radius: 3px;
127
127
  }
128
128
 
129
129
  .segmented-control__item--button--last {
130
- border-top-right-radius: 5px;
131
- border-bottom-right-radius: 5px;
130
+ border-top-right-radius: 3px;
131
+ border-bottom-right-radius: 3px;
132
132
  }
133
133
 
134
134
  .segmented-control__item--text {
@@ -0,0 +1,403 @@
1
+ <template>
2
+ <!-- 在微信小程序 app vue端 h5 使用wxs 实现-->
3
+ <!-- #ifdef APP-VUE || MP-WEIXIN || H5 -->
4
+ <view class="uni-swipe">
5
+ <!-- #ifdef MP-WEIXIN || VUE3 -->
6
+ <view
7
+ class="uni-swipe_box"
8
+ :change:prop="wxsswipe.showWatch"
9
+ :prop="is_show"
10
+ :data-threshold="threshold"
11
+ :data-disabled="disabled"
12
+ @touchstart="wxsswipe.touchstart"
13
+ @touchmove="wxsswipe.touchmove"
14
+ @touchend="wxsswipe.touchend"
15
+ >
16
+ <!-- #endif -->
17
+ <!-- #ifndef MP-WEIXIN || VUE3 -->
18
+ <view
19
+ class="uni-swipe_box"
20
+ :change:prop="renderswipe.showWatch"
21
+ :prop="is_show"
22
+ :data-threshold="threshold"
23
+ :data-disabled="disabled + ''"
24
+ @touchstart="renderswipe.touchstart"
25
+ @touchmove="renderswipe.touchmove"
26
+ @touchend="renderswipe.touchend"
27
+ >
28
+ <!-- #endif -->
29
+ <!-- 在微信小程序 app vue端 h5 使用wxs 实现-->
30
+ <view class="uni-swipe_button-group button-group--left">
31
+ <slot name="left">
32
+ <view
33
+ v-for="(item, index) in leftOptions"
34
+ :key="index"
35
+ :style="{
36
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
37
+ }"
38
+ class="uni-swipe_button button-hock"
39
+ @touchstart="appTouchStart"
40
+ @touchend="appTouchEnd($event, index, item, 'left')"
41
+ @click.stop="onClickForPC(index, item, 'left')"
42
+ >
43
+ <text
44
+ class="uni-swipe_button-text"
45
+ :style="{
46
+ color: item.style && item.style.color ? item.style.color : '#FFFFFF',
47
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
48
+ }"
49
+ >{{ item.text }}</text
50
+ >
51
+ </view>
52
+ </slot>
53
+ </view>
54
+ <view class="uni-swipe_text--center">
55
+ <slot></slot>
56
+ </view>
57
+ <view class="uni-swipe_button-group button-group--right">
58
+ <slot name="right">
59
+ <view
60
+ v-for="(item, index) in rightOptions"
61
+ :key="index"
62
+ :style="{
63
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
64
+ }"
65
+ class="uni-swipe_button button-hock"
66
+ @touchstart="appTouchStart"
67
+ @touchend="appTouchEnd($event, index, item, 'right')"
68
+ @click.stop="onClickForPC(index, item, 'right')"
69
+ ><text
70
+ class="uni-swipe_button-text"
71
+ :style="{
72
+ color: item.style && item.style.color ? item.style.color : '#FFFFFF',
73
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
74
+ }"
75
+ >{{ item.text }}</text
76
+ >
77
+ </view>
78
+ </slot>
79
+ </view>
80
+ </view>
81
+ </view>
82
+ <!-- #endif -->
83
+ <!-- app nvue端 使用 bindingx -->
84
+ <!-- #ifdef APP-NVUE -->
85
+ <view ref="selector-box--hock" class="uni-swipe" @horizontalpan="touchstart" @touchend="touchend">
86
+ <view ref="selector-left-button--hock" class="uni-swipe_button-group button-group--left">
87
+ <slot name="left">
88
+ <view
89
+ v-for="(item, index) in leftOptions"
90
+ :key="index"
91
+ :style="{
92
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
93
+ }"
94
+ class="uni-swipe_button button-hock"
95
+ @click.stop="onClick(index, item, 'left')"
96
+ ><text
97
+ class="uni-swipe_button-text"
98
+ :style="{
99
+ color: item.style && item.style.color ? item.style.color : '#FFFFFF',
100
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
101
+ }"
102
+ >{{ item.text }}</text
103
+ >
104
+ </view>
105
+ </slot>
106
+ </view>
107
+ <view ref="selector-right-button--hock" class="uni-swipe_button-group button-group--right">
108
+ <slot name="right">
109
+ <view
110
+ v-for="(item, index) in rightOptions"
111
+ :key="index"
112
+ :style="{
113
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
114
+ }"
115
+ class="uni-swipe_button button-hock"
116
+ @click.stop="onClick(index, item, 'right')"
117
+ ><text
118
+ class="uni-swipe_button-text"
119
+ :style="{
120
+ color: item.style && item.style.color ? item.style.color : '#FFFFFF',
121
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
122
+ }"
123
+ >{{ item.text }}</text
124
+ >
125
+ </view>
126
+ </slot>
127
+ </view>
128
+ <view ref="selector-content--hock" class="uni-swipe_box">
129
+ <slot></slot>
130
+ </view>
131
+ </view>
132
+ <!-- #endif -->
133
+ <!-- 其他平台使用 js ,长列表性能可能会有影响-->
134
+ <!-- #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || MP-QQ -->
135
+ <view class="uni-swipe">
136
+ <view
137
+ class="uni-swipe_box"
138
+ @touchstart="touchstart"
139
+ @touchmove="touchmove"
140
+ @touchend="touchend"
141
+ :style="{ transform: moveLeft }"
142
+ :class="{ ani: ani }"
143
+ >
144
+ <view class="uni-swipe_button-group button-group--left" :class="[elClass]">
145
+ <slot name="left">
146
+ <view
147
+ v-for="(item, index) in leftOptions"
148
+ :key="index"
149
+ :style="{
150
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
151
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
152
+ }"
153
+ class="uni-swipe_button button-hock"
154
+ @touchstart="appTouchStart"
155
+ @touchend="appTouchEnd($event, index, item, 'left')"
156
+ ><text class="uni-swipe_button-text" :style="{ color: item.style && item.style.color ? item.style.color : '#FFFFFF' }">{{
157
+ item.text
158
+ }}</text>
159
+ </view>
160
+ </slot>
161
+ </view>
162
+ <slot></slot>
163
+ <view class="uni-swipe_button-group button-group--right" :class="[elClass]">
164
+ <slot name="right">
165
+ <view
166
+ v-for="(item, index) in rightOptions"
167
+ :key="index"
168
+ :style="{
169
+ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
170
+ fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px',
171
+ }"
172
+ @touchstart="appTouchStart"
173
+ @touchend="appTouchEnd($event, index, item, 'right')"
174
+ class="uni-swipe_button button-hock"
175
+ ><text class="uni-swipe_button-text" :style="{ color: item.style && item.style.color ? item.style.color : '#FFFFFF' }">{{
176
+ item.text
177
+ }}</text>
178
+ </view>
179
+ </slot>
180
+ </view>
181
+ </view>
182
+ </view>
183
+ </view>
184
+ <!-- #endif -->
185
+ </template>
186
+
187
+ <script>
188
+ import mpwxs from './mpwxs';
189
+ import bindingx from './bindingx.js';
190
+ import mpother from './mpother';
191
+
192
+ /**
193
+ * SwipeActionItem 滑动操作子组件
194
+ * @description 通过滑动触发选项的容器
195
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=181
196
+ * @property {Boolean} show = [left|right|none] 开启关闭组件,auto-close = false 时生效
197
+ * @property {Boolean} disabled = [true|false] 是否禁止滑动
198
+ * @property {Boolean} autoClose = [true|false] 滑动打开当前组件,是否关闭其他组件
199
+ * @property {Number} threshold 滑动缺省值
200
+ * @property {Array} leftOptions 左侧选项内容及样式
201
+ * @property {Array} rgihtOptions 右侧选项内容及样式
202
+ * @event {Function} click 点击选项按钮时触发事件,e = {content,index} ,content(点击内容)、index(下标)
203
+ * @event {Function} change 组件打开或关闭时触发,left\right\none
204
+ */
205
+
206
+ export default {
207
+ mixins: [mpwxs, bindingx, mpother],
208
+ emits: ['click', 'change'],
209
+ props: {
210
+ // 控制开关
211
+ show: {
212
+ type: String,
213
+ default: 'none',
214
+ },
215
+
216
+ // 禁用
217
+ disabled: {
218
+ type: Boolean,
219
+ default: false,
220
+ },
221
+
222
+ // 是否自动关闭
223
+ autoClose: {
224
+ type: Boolean,
225
+ default: true,
226
+ },
227
+
228
+ // 滑动缺省距离
229
+ threshold: {
230
+ type: Number,
231
+ default: 20,
232
+ },
233
+
234
+ // 左侧按钮内容
235
+ leftOptions: {
236
+ type: Array,
237
+ default() {
238
+ return [];
239
+ },
240
+ },
241
+
242
+ // 右侧按钮内容
243
+ rightOptions: {
244
+ type: Array,
245
+ default() {
246
+ return [];
247
+ },
248
+ },
249
+ },
250
+ // #ifndef VUE3
251
+ // TODO vue2
252
+ destroyed() {
253
+ if (this.__isUnmounted) return;
254
+ this.uninstall();
255
+ },
256
+ // #endif
257
+ // #ifdef VUE3
258
+ // TODO vue3
259
+ unmounted() {
260
+ this.__isUnmounted = true;
261
+ this.uninstall();
262
+ },
263
+ // #endif
264
+
265
+ methods: {
266
+ uninstall() {
267
+ if (this.swipeaction) {
268
+ this.swipeaction.children.forEach((item, index) => {
269
+ if (item === this) {
270
+ this.swipeaction.children.splice(index, 1);
271
+ }
272
+ });
273
+ }
274
+ },
275
+ /**
276
+ * 获取父元素实例
277
+ */
278
+ getSwipeAction(name = 'uniSwipeAction') {
279
+ let parent = this.$parent;
280
+ let parentName = parent.$options.name;
281
+ while (parentName !== name) {
282
+ parent = parent.$parent;
283
+ if (!parent) return false;
284
+ parentName = parent.$options.name;
285
+ }
286
+ return parent;
287
+ },
288
+ },
289
+ };
290
+ </script>
291
+ <style lang="scss">
292
+ .uni-swipe {
293
+ position: relative;
294
+ /* #ifndef APP-NVUE */
295
+ overflow: hidden;
296
+ /* #endif */
297
+ }
298
+
299
+ .uni-swipe_box {
300
+ /* #ifndef APP-NVUE */
301
+ display: flex;
302
+ flex-shrink: 0;
303
+ // touch-action: none;
304
+ /* #endif */
305
+ position: relative;
306
+ }
307
+
308
+ .uni-swipe_content {
309
+ // border: 1px red solid;
310
+ }
311
+
312
+ .uni-swipe_text--center {
313
+ width: 100%;
314
+ /* #ifndef APP-NVUE */
315
+ cursor: grab;
316
+ /* #endif */
317
+ }
318
+
319
+ .uni-swipe_button-group {
320
+ /* #ifndef APP-NVUE */
321
+ box-sizing: border-box;
322
+ display: flex;
323
+ /* #endif */
324
+ flex-direction: row;
325
+ position: absolute;
326
+ top: 0;
327
+ bottom: 0;
328
+ /* #ifdef H5 */
329
+ cursor: pointer;
330
+ /* #endif */
331
+ }
332
+
333
+ .button-group--left {
334
+ left: 0;
335
+ transform: translateX(-100%);
336
+ }
337
+
338
+ .button-group--right {
339
+ right: 0;
340
+ transform: translateX(100%);
341
+ }
342
+
343
+ .uni-swipe_button {
344
+ /* #ifdef APP-NVUE */
345
+ flex: 1;
346
+ /* #endif */
347
+ /* #ifndef APP-NVUE */
348
+ display: flex;
349
+ /* #endif */
350
+ flex-direction: row;
351
+ justify-content: center;
352
+ align-items: center;
353
+ padding: 0 20px;
354
+ }
355
+
356
+ .uni-swipe_button-text {
357
+ /* #ifndef APP-NVUE */
358
+ flex-shrink: 0;
359
+ /* #endif */
360
+ font-size: 14px;
361
+ }
362
+
363
+ .ani {
364
+ transition-property: transform;
365
+ transition-duration: 0.3s;
366
+ transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
367
+ }
368
+
369
+ /* #ifdef MP-ALIPAY */
370
+ .movable-area {
371
+ /* width: 100%; */
372
+ height: 45px;
373
+ }
374
+
375
+ .movable-view {
376
+ display: flex;
377
+ /* justify-content: center; */
378
+ position: relative;
379
+ flex: 1;
380
+ height: 45px;
381
+ z-index: 2;
382
+ }
383
+
384
+ .movable-view-button {
385
+ display: flex;
386
+ flex-shrink: 0;
387
+ flex-direction: row;
388
+ height: 100%;
389
+ background: #c0c0c0;
390
+ }
391
+
392
+ /* .transition {
393
+ transition: all 0.3s;
394
+ } */
395
+
396
+ .movable-view-box {
397
+ flex-shrink: 0;
398
+ height: 100%;
399
+ background-color: #fff;
400
+ }
401
+
402
+ /* #endif */
403
+ </style>