hy-app 0.1.1

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 (206) hide show
  1. package/README.md +42 -0
  2. package/api/http.ts +138 -0
  3. package/api/index.ts +1 -0
  4. package/common/index.ts +1 -0
  5. package/common/versionControl.ts +102 -0
  6. package/components/dialog/TheDialog.vue +128 -0
  7. package/components/dialog/index.ts +38 -0
  8. package/components/hy-address-picker/hy-address-picker.vue +262 -0
  9. package/components/hy-address-picker/props.ts +27 -0
  10. package/components/hy-address-picker/typing.d.ts +98 -0
  11. package/components/hy-avatar/hy-avatar.vue +217 -0
  12. package/components/hy-avatar/props.ts +20 -0
  13. package/components/hy-avatar/typing.d.ts +64 -0
  14. package/components/hy-back-top/hy-back-top.vue +71 -0
  15. package/components/hy-back-top/props.ts +23 -0
  16. package/components/hy-back-top/typing.d.ts +49 -0
  17. package/components/hy-badge/hy-badge.vue +155 -0
  18. package/components/hy-badge/props.ts +19 -0
  19. package/components/hy-badge/typing.d.ts +60 -0
  20. package/components/hy-button/hy-button.vue +394 -0
  21. package/components/hy-button/props.ts +36 -0
  22. package/components/hy-button/typing.d.ts +125 -0
  23. package/components/hy-card/hy-card.vue +198 -0
  24. package/components/hy-card/props.ts +29 -0
  25. package/components/hy-card/typing.d.ts +112 -0
  26. package/components/hy-cell/hy-cell.vue +268 -0
  27. package/components/hy-cell/props.ts +20 -0
  28. package/components/hy-cell/typing.d.ts +98 -0
  29. package/components/hy-check-button/hy-check-button.vue +71 -0
  30. package/components/hy-check-button/props.ts +20 -0
  31. package/components/hy-check-button/typing.d.ts +79 -0
  32. package/components/hy-checkbox/hy-checkbox.vue +299 -0
  33. package/components/hy-checkbox/props.ts +28 -0
  34. package/components/hy-checkbox/typing.d.ts +77 -0
  35. package/components/hy-datetime-picker/hy-datetime-picker.vue +584 -0
  36. package/components/hy-datetime-picker/props.ts +36 -0
  37. package/components/hy-datetime-picker/typing.d.ts +135 -0
  38. package/components/hy-divider/hy-divider.vue +164 -0
  39. package/components/hy-divider/props.ts +21 -0
  40. package/components/hy-divider/typing.d.ts +64 -0
  41. package/components/hy-empty/hy-empty.vue +122 -0
  42. package/components/hy-empty/props.ts +21 -0
  43. package/components/hy-empty/typing.d.ts +68 -0
  44. package/components/hy-folding-panel/hy-folding-panel.vue +94 -0
  45. package/components/hy-folding-panel/props.ts +17 -0
  46. package/components/hy-folding-panel/typing.d.ts +59 -0
  47. package/components/hy-form/hy-form.vue +372 -0
  48. package/components/hy-form/props.ts +15 -0
  49. package/components/hy-form/typing.d.ts +51 -0
  50. package/components/hy-grid/hy-grid.vue +126 -0
  51. package/components/hy-grid/props.ts +16 -0
  52. package/components/hy-grid/typing.d.ts +62 -0
  53. package/components/hy-icon/hy-icon.vue +207 -0
  54. package/components/hy-icon/props.ts +24 -0
  55. package/components/hy-icon/typing.d.ts +80 -0
  56. package/components/hy-input/hy-input.vue +402 -0
  57. package/components/hy-input/props.ts +41 -0
  58. package/components/hy-input/typing.d.ts +148 -0
  59. package/components/hy-line/hy-line.vue +44 -0
  60. package/components/hy-line/props.ts +12 -0
  61. package/components/hy-line/typing.d.ts +32 -0
  62. package/components/hy-line-progress/hy-line-progress.vue +118 -0
  63. package/components/hy-line-progress/props.ts +12 -0
  64. package/components/hy-line-progress/typing.d.ts +28 -0
  65. package/components/hy-list/hy-list.vue +250 -0
  66. package/components/hy-list/props.ts +18 -0
  67. package/components/hy-list/typing.d.ts +50 -0
  68. package/components/hy-login/ThePhoneLogin.vue +106 -0
  69. package/components/hy-login/TheUserLogin.vue +391 -0
  70. package/components/hy-login/hy-login.vue +283 -0
  71. package/components/hy-login/props.ts +32 -0
  72. package/components/hy-login/typing.d.ts +60 -0
  73. package/components/hy-modal/hy-modal.vue +240 -0
  74. package/components/hy-modal/props.ts +24 -0
  75. package/components/hy-modal/typing.d.ts +70 -0
  76. package/components/hy-navbar/hy-navbar.vue +194 -0
  77. package/components/hy-navbar/props.ts +24 -0
  78. package/components/hy-navbar/typing.d.ts +81 -0
  79. package/components/hy-notice-bar/hy-column-notice.vue +130 -0
  80. package/components/hy-notice-bar/hy-notice-bar.vue +82 -0
  81. package/components/hy-notice-bar/hy-row-notice.vue +182 -0
  82. package/components/hy-notice-bar/props.ts +19 -0
  83. package/components/hy-notice-bar/typing.d.ts +56 -0
  84. package/components/hy-number-step/hy-number-step.vue +428 -0
  85. package/components/hy-number-step/props.ts +29 -0
  86. package/components/hy-number-step/typing.d.ts +104 -0
  87. package/components/hy-overlay/hy-overlay.vue +54 -0
  88. package/components/hy-overlay/props.ts +10 -0
  89. package/components/hy-overlay/typing.d.ts +24 -0
  90. package/components/hy-picker/hy-picker.vue +499 -0
  91. package/components/hy-picker/props.ts +30 -0
  92. package/components/hy-picker/typing.d.ts +115 -0
  93. package/components/hy-popup/hy-popup.vue +269 -0
  94. package/components/hy-popup/props.ts +21 -0
  95. package/components/hy-popup/typing.d.ts +68 -0
  96. package/components/hy-price/hy-price.vue +86 -0
  97. package/components/hy-price/props.ts +13 -0
  98. package/components/hy-price/typing.d.ts +36 -0
  99. package/components/hy-qrcode/hy-qrcode.vue +153 -0
  100. package/components/hy-qrcode/props.ts +20 -0
  101. package/components/hy-qrcode/qrcode.js +1364 -0
  102. package/components/hy-qrcode/typing.d.ts +64 -0
  103. package/components/hy-radio/hy-radio.vue +319 -0
  104. package/components/hy-radio/props.ts +28 -0
  105. package/components/hy-radio/typing.d.ts +85 -0
  106. package/components/hy-rate/hy-rate.vue +261 -0
  107. package/components/hy-rate/props.ts +18 -0
  108. package/components/hy-rate/typing.d.ts +60 -0
  109. package/components/hy-read-more/hy-read-more.vue +134 -0
  110. package/components/hy-read-more/props.ts +20 -0
  111. package/components/hy-read-more/typing.d.ts +44 -0
  112. package/components/hy-safe-bottom/hy-safe-bottom.vue +64 -0
  113. package/components/hy-scroll-list/hy-scroll-list.vue +146 -0
  114. package/components/hy-scroll-list/props.ts +12 -0
  115. package/components/hy-scroll-list/typing.d.ts +28 -0
  116. package/components/hy-search/hy-search.vue +294 -0
  117. package/components/hy-search/props.ts +29 -0
  118. package/components/hy-search/typing.d.ts +109 -0
  119. package/components/hy-slider/hy-slider.vue +511 -0
  120. package/components/hy-slider/props.ts +21 -0
  121. package/components/hy-slider/typing.d.ts +68 -0
  122. package/components/hy-steps/hy-steps.vue +352 -0
  123. package/components/hy-steps/props.ts +15 -0
  124. package/components/hy-steps/typing.d.ts +58 -0
  125. package/components/hy-subsection/hy-subsection.vue +272 -0
  126. package/components/hy-subsection/props.ts +16 -0
  127. package/components/hy-subsection/typing.d.ts +44 -0
  128. package/components/hy-swiper/hy-swiper-indicator.vue +105 -0
  129. package/components/hy-swiper/hy-swiper.vue +242 -0
  130. package/components/hy-swiper/props.ts +30 -0
  131. package/components/hy-swiper/typing.d.ts +107 -0
  132. package/components/hy-switch/hy-switch.vue +168 -0
  133. package/components/hy-switch/props.ts +16 -0
  134. package/components/hy-switch/typing.d.ts +48 -0
  135. package/components/hy-tabs/hy-tabs.vue +416 -0
  136. package/components/hy-tabs/props.ts +26 -0
  137. package/components/hy-tabs/typing.d.ts +86 -0
  138. package/components/hy-tag/hy-tag.vue +374 -0
  139. package/components/hy-tag/props.ts +22 -0
  140. package/components/hy-tag/typing.d.ts +76 -0
  141. package/components/hy-textarea/hy-textarea.vue +229 -0
  142. package/components/hy-textarea/props.ts +26 -0
  143. package/components/hy-textarea/typing.d.ts +27 -0
  144. package/components/hy-tooltip/hy-tooltip.vue +332 -0
  145. package/components/hy-tooltip/props.ts +17 -0
  146. package/components/hy-tooltip/typing.d.ts +52 -0
  147. package/components/hy-transition/hy-transition.vue +150 -0
  148. package/components/hy-transition/index.scss +113 -0
  149. package/components/hy-transition/props.ts +10 -0
  150. package/components/hy-transition/typing.d.ts +36 -0
  151. package/components/hy-upload/hy-upload.vue +557 -0
  152. package/components/hy-upload/props.ts +29 -0
  153. package/components/hy-upload/typing.d.ts +147 -0
  154. package/components/hy-warn/hy-warn.vue +228 -0
  155. package/components/hy-warn/props.ts +14 -0
  156. package/components/hy-warn/typing.d.ts +40 -0
  157. package/components/hy-waterfall/hy-waterfall.vue +51 -0
  158. package/components/hy-waterfall/props.ts +10 -0
  159. package/components/hy-waterfall/typing.d.ts +20 -0
  160. package/components/index.ts +162 -0
  161. package/components/message/TheMessage.vue +169 -0
  162. package/components/message/index.ts +54 -0
  163. package/components/u-form/form.js +22 -0
  164. package/components/u-form/hy-form.vue +324 -0
  165. package/components/u-form/props.js +49 -0
  166. package/components/u-form/schema.js +1451 -0
  167. package/components/u-form/u-form.vue +267 -0
  168. package/components/u-form/utils.js +65 -0
  169. package/components/u-form-item/formItem.js +24 -0
  170. package/components/u-form-item/hy-form-item.vue +360 -0
  171. package/components/u-form-item/props.js +57 -0
  172. package/components/u-form-item/u-form-item.vue +294 -0
  173. package/components/yk-dialog/yk-dialog.vue +129 -0
  174. package/components/yk-tabbar/props.ts +49 -0
  175. package/components/yk-tabbar/yk-tabbar.vue +224 -0
  176. package/config/color.ts +6 -0
  177. package/config/icon.ts +366 -0
  178. package/config/index.ts +2 -0
  179. package/global/index.ts +6 -0
  180. package/global/register-properties.ts +37 -0
  181. package/index.ts +8 -0
  182. package/libs/css/common.scss +0 -0
  183. package/libs/css/iconfont.css +379 -0
  184. package/libs/css/iconfont.ttf +0 -0
  185. package/libs/css/mixin.scss +15 -0
  186. package/package.json +42 -0
  187. package/public/icons/error.png +0 -0
  188. package/public/icons/success.png +0 -0
  189. package/public/icons/warning.png +0 -0
  190. package/store/index.ts +1 -0
  191. package/store/userInfo.ts +25 -0
  192. package/theme.scss +94 -0
  193. package/typing/index.ts +7 -0
  194. package/typing/modules/common.d.ts +50 -0
  195. package/typing/modules/dialog.ts +17 -0
  196. package/typing/modules/enum.ts +67 -0
  197. package/typing/modules/form.ts +161 -0
  198. package/typing/modules/http.ts +68 -0
  199. package/typing/modules/icon.d.ts +366 -0
  200. package/typing/modules/img.ts +15 -0
  201. package/typing/modules/rect.ts +10 -0
  202. package/utils/address.json +5890 -0
  203. package/utils/base64.ts +119 -0
  204. package/utils/index.ts +3 -0
  205. package/utils/inside.ts +310 -0
  206. package/utils/utils.ts +446 -0
@@ -0,0 +1,267 @@
1
+ <template>
2
+ <view class="u-form">
3
+ <slot />
4
+ </view>
5
+ </template>
6
+
7
+ <script>
8
+ import { props } from "./props.js";
9
+ import Schema from "./schema";
10
+ import { getProperty, setProperty } from "./utils";
11
+ import { deepClone, error } from "../../utils";
12
+ // 去除警告信息
13
+ Schema.warning = function () {};
14
+ /**
15
+ * Form 表单
16
+ * @description 此组件一般用于表单场景,可以配置Input输入框,Select弹出框,进行表单验证等。
17
+ * @tutorial https://ijry.github.io/uview-plus/components/form.html
18
+ * @property {Object} model 当前form的需要验证字段的集合
19
+ * @property {Object | Function | Array} rules 验证规则
20
+ * @property {String} errorType 错误的提示方式,见上方说明 ( 默认 message )
21
+ * @property {Boolean} borderBottom 是否显示表单域的下划线边框 ( 默认 true )
22
+ * @property {String} labelPosition 表单域提示文字的位置,left-左侧,top-上方 ( 默认 'left' )
23
+ * @property {String | Number} labelWidth 提示文字的宽度,单位px ( 默认 45 )
24
+ * @property {String} labelAlign lable字体的对齐方式 ( 默认 ‘left' )
25
+ * @property {Object} labelStyle lable的样式,对象形式
26
+ * @example <up-formlabelPosition="left" :model="model1" :rules="rules" ref="form1"></up-form>
27
+ */
28
+ export default {
29
+ name: "u-form",
30
+ mixins: [props],
31
+ provide() {
32
+ return {
33
+ uForm: this.validateField
34
+ };
35
+ },
36
+ data() {
37
+ return {
38
+ formRules: {},
39
+ // 规则校验器
40
+ validator: {},
41
+ // 原始的model快照,用于resetFields方法重置表单时使用
42
+ originalModel: null
43
+ };
44
+ },
45
+ watch: {
46
+ // 监听规则的变化
47
+ rules: {
48
+ immediate: true,
49
+ handler(n) {
50
+ this.setRules(n);
51
+ }
52
+ },
53
+ // 监听属性的变化,通知子组件u-form-item重新获取信息
54
+ propsChange(n) {
55
+ if (this.children?.length) {
56
+ this.children.map((child) => {
57
+ // 判断子组件(u-form-item)如果有updateParentData方法的话,就就执行(执行的结果是子组件重新从父组件拉取了最新的值)
58
+ typeof child.updateParentData == "function" &&
59
+ child.updateParentData();
60
+ });
61
+ }
62
+ },
63
+ // 监听model的初始值作为重置表单的快照
64
+ model: {
65
+ immediate: true,
66
+ handler(n) {
67
+ if (!this.originalModel) {
68
+ this.originalModel = deepClone(n);
69
+ }
70
+ }
71
+ }
72
+ },
73
+ computed: {
74
+ propsChange() {
75
+ return [
76
+ this.errorType,
77
+ this.borderBottom,
78
+ this.labelPosition,
79
+ this.labelWidth,
80
+ this.labelAlign,
81
+ this.labelStyle
82
+ ];
83
+ }
84
+ },
85
+ created() {
86
+ // 存储当前form下的所有u-form-item的实例
87
+ // 不能定义在data中,否则微信小程序会造成循环引用而报错
88
+ this.children = [];
89
+ },
90
+ methods: {
91
+ // 手动设置校验的规则,如果规则中有函数的话,微信小程序中会过滤掉,所以只能手动调用设置规则
92
+ setRules(rules) {
93
+ // 判断是否有规则
94
+ if (Object.keys(rules).length === 0) return;
95
+ if (
96
+ process.env.NODE_ENV === "development" &&
97
+ Object.keys(this.model).length === 0
98
+ ) {
99
+ error("设置rules,model必须设置!如果已经设置,请刷新页面。");
100
+ return;
101
+ }
102
+ this.formRules = rules;
103
+ // 重新将规则赋予Validator
104
+ this.validator = new Schema(rules);
105
+ },
106
+ // 清空所有u-form-item组件的内容,本质上是调用了u-form-item组件中的resetField()方法
107
+ resetFields() {
108
+ this.resetModel();
109
+ },
110
+ // 重置model为初始值的快照
111
+ resetModel(obj) {
112
+ // 历遍所有u-form-item,根据其prop属性,还原model的原始快照
113
+ this.children.map((child) => {
114
+ const prop = child?.prop;
115
+ const value = getProperty(this.originalModel, prop);
116
+ setProperty(this.model, prop, value);
117
+ });
118
+ },
119
+ // 清空校验结果
120
+ clearValidate(props) {
121
+ props = [].concat(props);
122
+ this.children.map((child) => {
123
+ // 如果u-form-item的prop在props数组中,则清除对应的校验结果信息
124
+ if (props[0] === undefined || props.includes(child.prop)) {
125
+ child.message = null;
126
+ }
127
+ });
128
+ },
129
+ // 对部分表单字段进行校验
130
+ async validateField(value, callback, event = null, options) {
131
+ // $nextTick是必须的,否则model的变更,可能会延后于此方法的执行
132
+ this.$nextTick(() => {
133
+ debugger;
134
+ // 校验错误信息,返回给回调方法,用于存放所有form-item的错误信息
135
+ const errorsRes = [];
136
+ // 如果为字符串,转为数组
137
+ value = [].concat(value);
138
+ // 历遍children所有子form-item
139
+ let promises = this.children.map((child) => {
140
+ return new Promise((resolve, reject) => {
141
+ // 用于存放form-item的错误信息
142
+ const childErrors = [];
143
+ if (value.includes(child.prop)) {
144
+ // 获取对应的属性,通过类似'a.b.c'的形式
145
+ const propertyVal = getProperty(this.model, child.prop);
146
+ // 属性链数组
147
+ const propertyChain = child.prop.split(".");
148
+ const propertyName = propertyChain[propertyChain.length - 1];
149
+
150
+ let rule = [];
151
+ if (child.itemRules && child.itemRules.length > 0) {
152
+ rule = child.itemRules;
153
+ } else {
154
+ rule = this.formRules[child.prop];
155
+ }
156
+ // 如果不存在对应的规则,直接返回,否则校验器会报错
157
+ if (!rule) {
158
+ resolve();
159
+ return;
160
+ }
161
+ // rule规则可为数组形式,也可为对象形式,此处拼接成为数组
162
+ const rules = [].concat(rule);
163
+
164
+ // 对rules数组进行校验
165
+ if (!rules.length) {
166
+ resolve();
167
+ }
168
+ for (let i = 0; i < rules.length; i++) {
169
+ const ruleItem = rules[i];
170
+ // 将u-form-item的触发器转为数组形式
171
+ const trigger = [].concat(ruleItem?.trigger);
172
+ // 如果是有传入触发事件,但是此form-item却没有配置此触发器的话,不执行校验操作
173
+ if (event && !trigger.includes(event)) {
174
+ resolve();
175
+ continue;
176
+ }
177
+ // 实例化校验对象,传入构造规则
178
+ const validator = new Schema({
179
+ [propertyName]: ruleItem
180
+ });
181
+ validator.validate(
182
+ {
183
+ [propertyName]: propertyVal
184
+ },
185
+ (errors, fields) => {
186
+ if (Array.isArray(errors)) {
187
+ errors.forEach((element) => {
188
+ element.prop = child.prop;
189
+ });
190
+ errorsRes.push(...errors);
191
+ childErrors.push(...errors);
192
+ }
193
+ //没有配置,或者配置了showErrorMsg为true时候,才修改子组件message,默认没有配置
194
+ if (!options || options?.showErrorMsg == true) {
195
+ child.message = childErrors[0]?.message
196
+ ? childErrors[0].message
197
+ : null;
198
+ }
199
+ if (i == rules.length - 1) {
200
+ resolve(errorsRes);
201
+ }
202
+ }
203
+ );
204
+ }
205
+ } else {
206
+ resolve({});
207
+ }
208
+ });
209
+ });
210
+
211
+ // 使用Promise.all来等待所有Promise完成
212
+ Promise.all(promises)
213
+ .then((results) => {
214
+ // 执行回调函数
215
+ typeof callback === "function" && callback(errorsRes);
216
+ })
217
+ .catch((error) => {
218
+ console.error("An error occurred:", error);
219
+ });
220
+ });
221
+ },
222
+ /**
223
+ * 校验全部数据
224
+ * @param {Object} options
225
+ * @param {Boolean} options.showErrorMsg -是否显示校验信息,
226
+ */
227
+ validate(options) {
228
+ // 开发环境才提示,生产环境不会提示
229
+ if (
230
+ process.env.NODE_ENV === "development" &&
231
+ Object.keys(this.formRules).length === 0
232
+ ) {
233
+ error("未设置rules,请看文档说明!如果已经设置,请刷新页面。");
234
+ return;
235
+ }
236
+ return new Promise((resolve, reject) => {
237
+ // $nextTick是必须的,否则model的变更,可能会延后于validate方法
238
+ this.$nextTick(() => {
239
+ // 获取所有form-item的prop,交给validateField方法进行校验
240
+ const formItemProps = this.children.map((item) => item.prop);
241
+ // console.log(formItemProps)
242
+ this.validateField(
243
+ formItemProps,
244
+ (errors) => {
245
+ if (errors.length) {
246
+ // 如果错误提示方式为toast,则进行提示
247
+ this.errorType === "toast" &&
248
+ uni.showToast({
249
+ title: String(errors[0].message),
250
+ icon: "none"
251
+ });
252
+ reject(errors);
253
+ } else {
254
+ resolve(true);
255
+ }
256
+ },
257
+ null,
258
+ options
259
+ );
260
+ });
261
+ });
262
+ }
263
+ }
264
+ };
265
+ </script>
266
+
267
+ <style lang="scss" scoped></style>
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
3
+ * @param {object} obj 对象
4
+ * @param {string} key 需要获取的属性字段
5
+ * @returns {*}
6
+ */
7
+ export function getProperty(obj, key) {
8
+ if (typeof obj !== "object" || null == obj) {
9
+ return "";
10
+ }
11
+ if (typeof key !== "string" || key === "") {
12
+ return "";
13
+ }
14
+ if (key.indexOf(".") !== -1) {
15
+ const keys = key.split(".");
16
+ let firstObj = obj[keys[0]] || {};
17
+
18
+ for (let i = 1; i < keys.length; i++) {
19
+ if (firstObj) {
20
+ firstObj = firstObj[keys[i]];
21
+ }
22
+ }
23
+ return firstObj;
24
+ }
25
+ return obj[key];
26
+ }
27
+
28
+ /**
29
+ * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
30
+ * @param {object} obj 对象
31
+ * @param {string} key 需要设置的属性
32
+ * @param {string} value 设置的值
33
+ */
34
+ export function setProperty(obj, key, value) {
35
+ if (typeof obj !== "object" || null == obj) {
36
+ return;
37
+ }
38
+ // 递归赋值
39
+ const inFn = function (_obj, keys, v) {
40
+ // 最后一个属性key
41
+ if (keys.length === 1) {
42
+ _obj[keys[0]] = v;
43
+ return;
44
+ }
45
+ // 0~length-1个key
46
+ while (keys.length > 1) {
47
+ const k = keys[0];
48
+ if (!_obj[k] || typeof _obj[k] !== "object") {
49
+ _obj[k] = {};
50
+ }
51
+ const key = keys.shift();
52
+ // 自调用判断是否存在属性,不存在则自动创建对象
53
+ inFn(_obj[k], keys, v);
54
+ }
55
+ };
56
+
57
+ if (typeof key !== "string" || key === "") {
58
+ } else if (key.indexOf(".") !== -1) {
59
+ // 支持多层级赋值操作
60
+ const keys = key.split(".");
61
+ inFn(obj, keys, value);
62
+ } else {
63
+ obj[key] = value;
64
+ }
65
+ }
@@ -0,0 +1,24 @@
1
+ /*
2
+ * @Author : LQ
3
+ * @Description :
4
+ * @version : 1.0
5
+ * @Date : 2021-08-20 16:44:21
6
+ * @LastAuthor : LQ
7
+ * @lastTime : 2021-08-20 17:04:32
8
+ * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
9
+ */
10
+ export default {
11
+ // formItem 组件
12
+ formItem: {
13
+ label: '',
14
+ prop: '',
15
+ rules: [],
16
+ borderBottom: '',
17
+ labelPosition: '',
18
+ labelWidth: '',
19
+ rightIcon: '',
20
+ leftIcon: '',
21
+ required: false,
22
+ leftIconStyle: '',
23
+ }
24
+ }