@kengic/uni 0.3.2-beta.3 → 0.3.2-beta.4

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 (35) hide show
  1. package/dist/kengic-uni.js +182 -26
  2. package/dist/src/components/uni-ui/uni-calendar/calendar.d.ts +1 -1
  3. package/dist/src/components/uni-ui/uni-card/uni-card.vue.d.ts +1 -1
  4. package/dist/src/components/uni-ui/uni-collapse/uni-collapse.vue.d.ts +1 -1
  5. package/dist/src/components/uni-ui/uni-combox/uni-combox.vue.d.ts +1 -1
  6. package/dist/src/components/uni-ui/uni-countdown/uni-countdown.vue.d.ts +1 -1
  7. package/dist/src/components/uni-ui/uni-data-checkbox/uni-data-checkbox.vue.d.ts +4 -4
  8. package/dist/src/components/uni-ui/uni-data-picker/uni-data-picker.vue.d.ts +2 -25
  9. package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-picker.d.ts +0 -43
  10. package/dist/src/components/uni-ui/uni-data-select/uni-data-select.vue.d.ts +2 -2
  11. package/dist/src/components/uni-ui/uni-dateformat/uni-dateformat.vue.d.ts +1 -1
  12. package/dist/src/components/uni-ui/uni-datetime-picker/time-picker.vue.d.ts +1 -1
  13. package/dist/src/components/uni-ui/uni-datetime-picker/uni-datetime-picker.vue.d.ts +2 -2
  14. package/dist/src/components/uni-ui/uni-drawer/keypress.d.ts +0 -1
  15. package/dist/src/components/uni-ui/uni-easyinput/uni-easyinput.vue.d.ts +3 -3
  16. package/dist/src/components/uni-ui/uni-fab/uni-fab.vue.d.ts +1 -1
  17. package/dist/src/components/uni-ui/uni-fav/uni-fav.vue.d.ts +1 -1
  18. package/dist/src/components/uni-ui/uni-file-picker/uni-file-picker.vue.d.ts +1 -1
  19. package/dist/src/components/uni-ui/uni-forms-item/uni-forms-item.vue.d.ts +1 -1
  20. package/dist/src/components/uni-ui/uni-group/uni-group.vue.d.ts +1 -1
  21. package/dist/src/components/uni-ui/uni-link/uni-link.vue.d.ts +1 -1
  22. package/dist/src/components/uni-ui/uni-list-item/uni-list-item.vue.d.ts +1 -1
  23. package/dist/src/components/uni-ui/uni-nav-bar/uni-nav-bar.vue.d.ts +1 -1
  24. package/dist/src/components/uni-ui/uni-notice-bar/uni-notice-bar.vue.d.ts +2 -2
  25. package/dist/src/components/uni-ui/uni-number-box/uni-number-box.vue.d.ts +3 -3
  26. package/dist/src/components/uni-ui/uni-pagination/uni-pagination.vue.d.ts +1 -1
  27. package/dist/src/components/uni-ui/uni-popup/keypress.d.ts +0 -1
  28. package/dist/src/components/uni-ui/uni-popup/popup.d.ts +0 -6
  29. package/dist/src/components/uni-ui/uni-popup-dialog/uni-popup-dialog.vue.d.ts +2 -2
  30. package/dist/src/components/uni-ui/uni-rate/uni-rate.vue.d.ts +1 -1
  31. package/dist/src/components/uni-ui/uni-search-bar/uni-search-bar.vue.d.ts +5 -5
  32. package/dist/src/components/uni-ui/uni-td/uni-td.vue.d.ts +1 -1
  33. package/dist/src/components/uni-ui/uni-th/uni-th.vue.d.ts +1 -1
  34. package/dist/src/components/uni-ui/uni-tr/table-checkbox.vue.d.ts +1 -1
  35. package/package.json +10 -10
@@ -156,10 +156,12 @@ const U = M({
156
156
  default: ""
157
157
  },
158
158
  isFull: {
159
+ // 内容区域是否通栏
159
160
  type: Boolean,
160
161
  default: !1
161
162
  },
162
163
  isShadow: {
164
+ // 是否开启阴影
163
165
  type: Boolean,
164
166
  default: !0
165
167
  },
@@ -380,9 +382,11 @@ const te = M({
380
382
  focusShow: !1,
381
383
  localMsg: "",
382
384
  isEnter: !1
385
+ // 用于判断当前是否是使用回车操作
383
386
  };
384
387
  },
385
388
  computed: {
389
+ // 输入框内是否有值
386
390
  isVal() {
387
391
  const e = this.val;
388
392
  return !!(e || e === 0);
@@ -390,12 +394,15 @@ const te = M({
390
394
  msg() {
391
395
  return this.localMsg || this.errorMessage;
392
396
  },
397
+ // 因为uniapp的input组件的maxlength组件必须要数值,这里转为数值,用户可以传入字符串数值
393
398
  inputMaxlength() {
394
399
  return Number(this.maxlength);
395
400
  },
401
+ // 处理外层样式的style
396
402
  boxStyle() {
397
403
  return `color:${this.inputBorder && this.msg ? "#e43d33" : this.styles.color};`;
398
404
  },
405
+ // input 内容的类和样式处理
399
406
  inputContentClass() {
400
407
  return ee({
401
408
  "is-input-border": this.inputBorder,
@@ -412,6 +419,7 @@ const te = M({
412
419
  "background-color": this.disabled ? this.styles.disableColor : this.styles.backgroundColor
413
420
  });
414
421
  },
422
+ // input右侧样式
415
423
  inputStyle() {
416
424
  const e = this.type === "password" || this.clearable || this.prefixIcon ? "" : "10px";
417
425
  return I({
@@ -444,19 +452,38 @@ const te = M({
444
452
  });
445
453
  },
446
454
  methods: {
455
+ /**
456
+ * 初始化变量值
457
+ */
447
458
  init() {
448
459
  this.value || this.value === 0 ? this.val = this.value : this.modelValue || this.modelValue === 0 || this.modelValue === "" ? this.val = this.modelValue : this.val = null;
449
460
  },
461
+ /**
462
+ * 点击图标时触发
463
+ * @param {Object} type
464
+ */
450
465
  onClickIcon(e) {
451
466
  this.$emit("iconClick", e);
452
467
  },
468
+ /**
469
+ * 显示隐藏内容,密码框时生效
470
+ */
453
471
  onEyes() {
454
472
  this.showPassword = !this.showPassword, this.$emit("eyes", this.showPassword);
455
473
  },
474
+ /**
475
+ * 输入时触发
476
+ * @param {Object} event
477
+ */
456
478
  onInput(e) {
457
479
  let t = e.detail.value;
458
480
  this.trim && (typeof this.trim == "boolean" && this.trim && (t = this.trimStr(t)), typeof this.trim == "string" && (t = this.trimStr(t, this.trim))), this.errMsg && (this.errMsg = ""), this.val = t, this.$emit("input", t), this.$emit("update:modelValue", t);
459
481
  },
482
+ /**
483
+ * 外部调用方法
484
+ * 获取焦点时触发
485
+ * @param {Object} event
486
+ */
460
487
  onFocus() {
461
488
  this.$nextTick(() => {
462
489
  this.focused = !0;
@@ -465,6 +492,11 @@ const te = M({
465
492
  _Focus(e) {
466
493
  this.focusShow = !0, this.$emit("focus", e);
467
494
  },
495
+ /**
496
+ * 外部调用方法
497
+ * 失去焦点时触发
498
+ * @param {Object} event
499
+ */
468
500
  onBlur() {
469
501
  this.focused = !1, this.$emit("focus", null);
470
502
  },
@@ -474,17 +506,33 @@ const te = M({
474
506
  t === "blur" && this.formItem.onFieldChange();
475
507
  }
476
508
  },
509
+ /**
510
+ * 按下键盘的发送键
511
+ * @param {Object} e
512
+ */
477
513
  onConfirm(e) {
478
514
  this.$emit("confirm", this.val), this.isEnter = !0, this.$emit("change", this.val), this.$nextTick(() => {
479
515
  this.isEnter = !1;
480
516
  });
481
517
  },
518
+ /**
519
+ * 清理内容
520
+ * @param {Object} event
521
+ */
482
522
  onClear(e) {
483
523
  this.val = "", this.$emit("input", ""), this.$emit("update:modelValue", ""), this.$emit("clear");
484
524
  },
525
+ /**
526
+ * 键盘高度发生变化的时候触发此事件
527
+ * 兼容性:微信小程序2.7.0+、App 3.1.0+
528
+ * @param {Object} event
529
+ */
485
530
  onkeyboardheightchange(e) {
486
531
  this.$emit("keyboardheightchange", e);
487
532
  },
533
+ /**
534
+ * 去除空格
535
+ */
488
536
  trimStr(e, t = "both") {
489
537
  return t === "both" ? e.trim() : t === "left" ? e.trimLeft() : t === "right" ? e.trimRight() : t === "start" ? e.trimStart() : t === "end" ? e.trimEnd() : t === "all" ? e.replace(/\s+/g, "") : e;
490
538
  }
@@ -595,6 +643,7 @@ const R = {
595
643
  double: "number",
596
644
  long: "number",
597
645
  password: "string"
646
+ // "fileurls": 'array'
598
647
  };
599
648
  function g(e, t = "") {
600
649
  var r = ["label"];
@@ -834,33 +883,33 @@ class C extends ae {
834
883
  function le() {
835
884
  return {
836
885
  TAG: "",
837
- default: "\u9A8C\u8BC1\u9519\u8BEF",
838
- defaultInvalid: "\u63D0\u4EA4\u7684\u5B57\u6BB5{field}\u5728\u6570\u636E\u5E93\u4E2D\u5E76\u4E0D\u5B58\u5728",
839
- validateFunction: "\u9A8C\u8BC1\u65E0\u6548",
840
- required: "{label}\u5FC5\u586B",
841
- enum: "{label}\u8D85\u51FA\u8303\u56F4",
842
- timestamp: "{label}\u683C\u5F0F\u65E0\u6548",
843
- whitespace: "{label}\u4E0D\u80FD\u4E3A\u7A7A",
844
- typeError: "{label}\u7C7B\u578B\u65E0\u6548",
886
+ default: "验证错误",
887
+ defaultInvalid: "提交的字段{field}在数据库中并不存在",
888
+ validateFunction: "验证无效",
889
+ required: "{label}必填",
890
+ enum: "{label}超出范围",
891
+ timestamp: "{label}格式无效",
892
+ whitespace: "{label}不能为空",
893
+ typeError: "{label}类型无效",
845
894
  date: {
846
- format: "{label}\u65E5\u671F{value}\u683C\u5F0F\u65E0\u6548",
847
- parse: "{label}\u65E5\u671F\u65E0\u6CD5\u89E3\u6790,{value}\u65E0\u6548",
848
- invalid: "{label}\u65E5\u671F{value}\u65E0\u6548"
895
+ format: "{label}日期{value}格式无效",
896
+ parse: "{label}日期无法解析,{value}无效",
897
+ invalid: "{label}日期{value}无效"
849
898
  },
850
899
  length: {
851
- minLength: "{label}\u957F\u5EA6\u4E0D\u80FD\u5C11\u4E8E{minLength}",
852
- maxLength: "{label}\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7{maxLength}",
853
- range: "{label}\u5FC5\u987B\u4ECB\u4E8E{minLength}\u548C{maxLength}\u4E4B\u95F4"
900
+ minLength: "{label}长度不能少于{minLength}",
901
+ maxLength: "{label}长度不能超过{maxLength}",
902
+ range: "{label}必须介于{minLength}{maxLength}之间"
854
903
  },
855
904
  number: {
856
- minimum: "{label}\u4E0D\u80FD\u5C0F\u4E8E{minimum}",
857
- maximum: "{label}\u4E0D\u80FD\u5927\u4E8E{maximum}",
858
- exclusiveMinimum: "{label}\u4E0D\u80FD\u5C0F\u4E8E\u7B49\u4E8E{minimum}",
859
- exclusiveMaximum: "{label}\u4E0D\u80FD\u5927\u4E8E\u7B49\u4E8E{maximum}",
860
- range: "{label}\u5FC5\u987B\u4ECB\u4E8E{minimum}and{maximum}\u4E4B\u95F4"
905
+ minimum: "{label}不能小于{minimum}",
906
+ maximum: "{label}不能大于{maximum}",
907
+ exclusiveMinimum: "{label}不能小于等于{minimum}",
908
+ exclusiveMaximum: "{label}不能大于等于{maximum}",
909
+ range: "{label}必须介于{minimum}and{maximum}之间"
861
910
  },
862
911
  pattern: {
863
- mismatch: "{label}\u683C\u5F0F\u4E0D\u5339\u914D"
912
+ mismatch: "{label}格式不匹配"
864
913
  }
865
914
  };
866
915
  }
@@ -941,7 +990,7 @@ O.prototype.binddata = function(e, t, r) {
941
990
  }
942
991
  }
943
992
  if (!i)
944
- return console.error("\u5F53\u524D uni-froms \u7EC4\u4EF6\u7F3A\u5C11 ref \u5C5E\u6027");
993
+ return console.error("当前 uni-froms 组件缺少 ref 属性");
945
994
  i.setValue(e, t);
946
995
  }
947
996
  };
@@ -952,46 +1001,55 @@ const ve = M({
952
1001
  virtualHost: !0
953
1002
  },
954
1003
  props: {
1004
+ // 即将弃用
955
1005
  value: {
956
1006
  type: Object,
957
1007
  default() {
958
1008
  return null;
959
1009
  }
960
1010
  },
1011
+ // vue3 替换 value 属性
961
1012
  modelValue: {
962
1013
  type: Object,
963
1014
  default() {
964
1015
  return null;
965
1016
  }
966
1017
  },
1018
+ // 1.4.0 开始将不支持 v-model ,且废弃 value 和 modelValue
967
1019
  model: {
968
1020
  type: Object,
969
1021
  default() {
970
1022
  return null;
971
1023
  }
972
1024
  },
1025
+ // 表单校验规则
973
1026
  rules: {
974
1027
  type: Object,
975
1028
  default() {
976
1029
  return {};
977
1030
  }
978
1031
  },
1032
+ //校验错误信息提示方式 默认 undertext 取值 [undertext|toast|modal]
979
1033
  errShowType: {
980
1034
  type: String,
981
1035
  default: "undertext"
982
1036
  },
1037
+ // 校验触发器方式 默认 bind 取值 [bind|submit]
983
1038
  validateTrigger: {
984
1039
  type: String,
985
1040
  default: "submit"
986
1041
  },
1042
+ // label 位置,默认 left 取值 top/left
987
1043
  labelPosition: {
988
1044
  type: String,
989
1045
  default: "left"
990
1046
  },
1047
+ // label 宽度
991
1048
  labelWidth: {
992
1049
  type: [String, Number],
993
1050
  default: ""
994
1051
  },
1052
+ // label 居中方式,默认 left 取值 left/center/right
995
1053
  labelAlign: {
996
1054
  type: String,
997
1055
  default: "left"
@@ -1008,17 +1066,22 @@ const ve = M({
1008
1066
  },
1009
1067
  data() {
1010
1068
  return {
1069
+ // 表单本地值的记录,不应该与传如的值进行关联
1011
1070
  formData: {},
1012
1071
  formRules: {}
1013
1072
  };
1014
1073
  },
1015
1074
  computed: {
1075
+ // 计算数据源变化的
1016
1076
  localData() {
1017
1077
  const e = this.model || this.modelValue || this.value;
1018
1078
  return e ? oe(e) : {};
1019
1079
  }
1020
1080
  },
1021
1081
  watch: {
1082
+ // 监听数据变化 ,暂时不使用,需要单独赋值
1083
+ // localData: {},
1084
+ // 监听规则变化
1022
1085
  rules: {
1023
1086
  handler: function(e, t) {
1024
1087
  this.setRules(e);
@@ -1041,22 +1104,46 @@ const ve = M({
1041
1104
  }
1042
1105
  }
1043
1106
  if (!s)
1044
- return console.error("\u5F53\u524D uni-froms \u7EC4\u4EF6\u7F3A\u5C11 ref \u5C5E\u6027");
1107
+ return console.error("当前 uni-froms 组件缺少 ref 属性");
1045
1108
  s.setValue(t, r);
1046
1109
  }
1047
1110
  }), this.childrens = [], this.inputChildrens = [], this.setRules(this.rules);
1048
1111
  },
1049
1112
  methods: {
1113
+ /**
1114
+ * 外部调用方法
1115
+ * 设置规则 ,主要用于小程序自定义检验规则
1116
+ * @param {Array} rules 规则源数据
1117
+ */
1050
1118
  setRules(e) {
1051
1119
  this.formRules = Object.assign({}, this.formRules, e), this.validator = new C(e);
1052
1120
  },
1121
+ /**
1122
+ * 外部调用方法
1123
+ * 设置数据,用于设置表单数据,公开给用户使用 , 不支持在动态表单中使用
1124
+ * @param {Object} key
1125
+ * @param {Object} value
1126
+ */
1053
1127
  setValue(e, t) {
1054
1128
  let r = this.childrens.find((i) => i.name === e);
1055
1129
  return r ? (this.formData[e] = D(e, t, this.formRules[e] && this.formRules[e].rules || []), r.onFieldChange(this.formData[e])) : null;
1056
1130
  },
1131
+ /**
1132
+ * 外部调用方法
1133
+ * 手动提交校验表单
1134
+ * 对整个表单进行校验的方法,参数为一个回调函数。
1135
+ * @param {Array} keepitem 保留不参与校验的字段
1136
+ * @param {type} callback 方法回调
1137
+ */
1057
1138
  validate(e, t) {
1058
1139
  return this.checkAll(this.formData, e, t);
1059
1140
  },
1141
+ /**
1142
+ * 外部调用方法
1143
+ * 部分表单校验
1144
+ * @param {Array|String} props 需要校验的字段
1145
+ * @param {Function} 回调函数
1146
+ */
1060
1147
  validateField(e = [], t) {
1061
1148
  e = [].concat(e);
1062
1149
  let r = {};
@@ -1067,6 +1154,11 @@ const ve = M({
1067
1154
  }));
1068
1155
  }), this.checkAll(r, [], t);
1069
1156
  },
1157
+ /**
1158
+ * 外部调用方法
1159
+ * 移除表单项的校验结果。传入待移除的表单项的 prop 属性或者 prop 组成的数组,如不传则移除整个表单的校验结果
1160
+ * @param {Array|String} props 需要移除校验的字段 ,不填为所有
1161
+ */
1070
1162
  clearValidate(e = []) {
1071
1163
  e = [].concat(e), this.childrens.forEach((t) => {
1072
1164
  if (e.length === 0)
@@ -1077,11 +1169,19 @@ const ve = M({
1077
1169
  }
1078
1170
  });
1079
1171
  },
1172
+ /**
1173
+ * 外部调用方法 ,即将废弃
1174
+ * 手动提交校验表单
1175
+ * 对整个表单进行校验的方法,参数为一个回调函数。
1176
+ * @param {Array} keepitem 保留不参与校验的字段
1177
+ * @param {type} callback 方法回调
1178
+ */
1080
1179
  submit(e, t, r) {
1081
1180
  for (let i in this.dataValue)
1082
1181
  this.childrens.find((n) => n.name === i) && this.formData[i] === void 0 && (this.formData[i] = this._getValue(i, this.dataValue[i]));
1083
- return r || console.warn("submit \u65B9\u6CD5\u5373\u5C06\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528validate\u65B9\u6CD5\u4EE3\u66FF\uFF01"), this.checkAll(this.formData, e, t, "submit");
1182
+ return r || console.warn("submit 方法即将废弃,请使用validate方法代替!"), this.checkAll(this.formData, e, t, "submit");
1084
1183
  },
1184
+ // 校验所有
1085
1185
  async checkAll(e, t, r, i) {
1086
1186
  if (!this.validator)
1087
1187
  return;
@@ -1117,6 +1217,10 @@ const ve = M({
1117
1217
  let u = {};
1118
1218
  return u = he(l, this.name), r && typeof r == "function" && r(a, u), n && r ? n : null;
1119
1219
  },
1220
+ /**
1221
+ * 返回validate事件
1222
+ * @param {Object} result
1223
+ */
1120
1224
  validateCheck(e) {
1121
1225
  this.$emit("validate", e);
1122
1226
  },
@@ -1154,12 +1258,14 @@ const $e = M({
1154
1258
  }
1155
1259
  },
1156
1260
  props: {
1261
+ // 表单校验规则
1157
1262
  rules: {
1158
1263
  type: Array,
1159
1264
  default() {
1160
1265
  return null;
1161
1266
  }
1162
1267
  },
1268
+ // 表单域的属性名,在使用校验规则时必填
1163
1269
  name: {
1164
1270
  type: [String, Array],
1165
1271
  default: ""
@@ -1172,18 +1278,32 @@ const $e = M({
1172
1278
  type: String,
1173
1279
  default: ""
1174
1280
  },
1281
+ // label的宽度 ,默认 80
1175
1282
  labelWidth: {
1176
1283
  type: [String, Number],
1177
1284
  default: ""
1178
1285
  },
1286
+ // label 居中方式,默认 left 取值 left/center/right
1179
1287
  labelAlign: {
1180
1288
  type: String,
1181
1289
  default: ""
1182
1290
  },
1291
+ // 强制显示错误信息
1183
1292
  errorMessage: {
1184
1293
  type: [String, Boolean],
1185
1294
  default: ""
1186
1295
  },
1296
+ // 1.4.0 弃用,统一使用 form 的校验时机
1297
+ // validateTrigger: {
1298
+ // type: String,
1299
+ // default: ''
1300
+ // },
1301
+ // 1.4.0 弃用,统一使用 form 的label 位置
1302
+ // labelPosition: {
1303
+ // type: String,
1304
+ // default: ''
1305
+ // },
1306
+ // 1.4.0 以下属性已经废弃,请使用 #label 插槽代替
1187
1307
  leftIcon: String,
1188
1308
  iconColor: {
1189
1309
  type: String,
@@ -1202,11 +1322,13 @@ const $e = M({
1202
1322
  };
1203
1323
  },
1204
1324
  computed: {
1325
+ // 处理错误信息
1205
1326
  msg() {
1206
1327
  return this.errorMessage || this.errMsg;
1207
1328
  }
1208
1329
  },
1209
1330
  watch: {
1331
+ // 规则发生变化通知子组件更新
1210
1332
  "form.formRules"(e) {
1211
1333
  this.init();
1212
1334
  },
@@ -1235,18 +1357,35 @@ const $e = M({
1235
1357
  }
1236
1358
  ));
1237
1359
  },
1360
+ // #ifndef VUE3
1238
1361
  destroyed() {
1239
1362
  this.__isUnmounted || this.unInit();
1240
1363
  },
1364
+ // #endif
1365
+ // #ifdef VUE3
1241
1366
  unmounted() {
1242
1367
  this.__isUnmounted = !0, this.unInit();
1243
1368
  },
1369
+ // #endif
1244
1370
  methods: {
1371
+ /**
1372
+ * 外部调用方法
1373
+ * 设置规则 ,主要用于小程序自定义检验规则
1374
+ * @param {Array} rules 规则源数据
1375
+ */
1245
1376
  setRules(e = null) {
1246
1377
  this.userRules = e, this.init(!1);
1247
1378
  },
1379
+ // 兼容老版本表单组件
1248
1380
  setValue() {
1249
1381
  },
1382
+ /**
1383
+ * 外部调用方法
1384
+ * 校验数据
1385
+ * @param {any} value 需要校验的数据
1386
+ * @param {boolean} 是否立即校验
1387
+ * @return {Array|null} 校验内容
1388
+ */
1250
1389
  async onFieldChange(e, t = !0) {
1251
1390
  const { formData: r, localData: i, errShowType: s, validateCheck: n, validateTrigger: a, _isRequiredField: l, _realName: u } = this.form, c = u(this.name);
1252
1391
  e || (e = this.form.formData[c]);
@@ -1261,13 +1400,16 @@ const $e = M({
1261
1400
  },
1262
1401
  r
1263
1402
  ), !o && (e === void 0 || e === "") && (f = null), f && f.errorMessage ? (s === "undertext" && (this.errMsg = f ? f.errorMessage : ""), s === "toast" && uni.showToast({
1264
- title: f.errorMessage || "\u6821\u9A8C\u9519\u8BEF",
1403
+ title: f.errorMessage || "校验错误",
1265
1404
  icon: "none"
1266
1405
  }), s === "modal" && uni.showModal({
1267
- title: "\u63D0\u793A",
1268
- content: f.errorMessage || "\u6821\u9A8C\u9519\u8BEF"
1406
+ title: "提示",
1407
+ content: f.errorMessage || "校验错误"
1269
1408
  })) : this.errMsg = "", n(f || null)) : this.errMsg = "", f || null;
1270
1409
  },
1410
+ /**
1411
+ * 初始组件数据
1412
+ */
1271
1413
  init(e = !1) {
1272
1414
  const { validator: t, formRules: r, childrens: i, formData: s, localData: n, _realName: a, labelWidth: l, _getDataValue: u, _setDataValue: c } = this.form || {};
1273
1415
  if (this.localLabelAlign = this._justifyContent(), this.localLabelWidth = this._labelWidthUnit(l), this.localLabelPos = this._labelPosition(), this.form && e && i.push(this), !t || !r)
@@ -1288,16 +1430,22 @@ const $e = M({
1288
1430
  });
1289
1431
  }
1290
1432
  },
1433
+ // 设置item 的值
1291
1434
  itemSetValue(e) {
1292
1435
  const t = this.form._realName(this.name), r = this.itemRules.rules || [], i = this.form._getValue(t, e, r);
1293
1436
  return this.form._setDataValue(t, this.form.formData, i), i;
1294
1437
  },
1438
+ /**
1439
+ * 移除该表单项的校验结果
1440
+ */
1295
1441
  clearValidate() {
1296
1442
  this.errMsg = "";
1297
1443
  },
1444
+ // 是否显示星号
1298
1445
  _isRequired() {
1299
1446
  return this.required;
1300
1447
  },
1448
+ // 处理对齐方式
1301
1449
  _justifyContent() {
1302
1450
  if (this.form) {
1303
1451
  const { labelAlign: e } = this.form;
@@ -1311,12 +1459,20 @@ const $e = M({
1311
1459
  }
1312
1460
  return "flex-start";
1313
1461
  },
1462
+ // 处理 label宽度单位 ,继承父元素的值
1314
1463
  _labelWidthUnit(e) {
1315
1464
  return this.num2px(this.labelWidth ? this.labelWidth : e || (this.label ? 65 : "auto"));
1316
1465
  },
1466
+ // 处理 label 位置
1317
1467
  _labelPosition() {
1318
1468
  return this.form && this.form.labelPosition || "left";
1319
1469
  },
1470
+ /**
1471
+ * 触发时机
1472
+ * @param {Object} rule 当前规则内时机
1473
+ * @param {Object} itemRlue 当前组件时机
1474
+ * @param {Object} parentRule 父组件时机
1475
+ */
1320
1476
  isTrigger(e, t, r) {
1321
1477
  return e === "submit" || !e ? e === void 0 ? t !== "bind" ? t ? "submit" : r === "" ? "bind" : "submit" : "bind" : "submit" : "bind";
1322
1478
  },
@@ -13,7 +13,7 @@ declare namespace calendar {
13
13
  function lYearDays(y: any): number;
14
14
  function leapMonth(y: any): number;
15
15
  function leapDays(y: any): 0 | 30 | 29;
16
- function monthDays(y: any, m: any): 30 | 29 | -1;
16
+ function monthDays(y: any, m: any): -1 | 30 | 29;
17
17
  function solarDays(y: any, m: any): number;
18
18
  function toGanZhiYear(lYear: any): string;
19
19
  function toAstro(cMonth: any, cDay: any): string;
@@ -102,11 +102,11 @@ declare const _default: import("vue").DefineComponent<{
102
102
  onClick?: ((...args: any[]) => any) | undefined;
103
103
  }, {
104
104
  title: string;
105
+ spacing: string;
105
106
  border: boolean;
106
107
  margin: string;
107
108
  padding: string;
108
109
  subTitle: string;
109
- spacing: string;
110
110
  extra: string;
111
111
  cover: string;
112
112
  thumbnail: string;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  resize(): void;
20
20
  onChange(isOpen: any, self: any): void;
21
21
  emit(val: any): void;
22
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "activeItem" | "input" | "update:modelValue")[], "input" | "change" | "activeItem" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "activeItem" | "update:modelValue")[], "input" | "change" | "activeItem" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  value: {
24
24
  type: (StringConstructor | ArrayConstructor)[];
25
25
  default: string;
@@ -86,9 +86,9 @@ declare const _default: import("vue").DefineComponent<{
86
86
  value: string | number;
87
87
  label: string;
88
88
  border: boolean;
89
+ placeholder: string;
89
90
  modelValue: string | number;
90
91
  labelWidth: string;
91
- placeholder: string;
92
92
  candidates: unknown[];
93
93
  emptyTips: string;
94
94
  }>;
@@ -141,8 +141,8 @@ declare const _default: import("vue").DefineComponent<{
141
141
  }>> & {
142
142
  onTimeup?: ((...args: any[]) => any) | undefined;
143
143
  }, {
144
- backgroundColor: string;
145
144
  color: string;
145
+ backgroundColor: string;
146
146
  fontSize: number;
147
147
  day: number;
148
148
  start: boolean;
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
109
109
  setStyleIcon(item: any): string;
110
110
  setStyleIconText(item: any): string;
111
111
  setStyleRightIcon(item: any): string;
112
- }, any, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue")[], "input" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
112
+ }, any, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue")[], "input" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
113
113
  mode: {
114
114
  type: StringConstructor;
115
115
  default: string;
@@ -176,13 +176,13 @@ declare const _default: import("vue").DefineComponent<{
176
176
  }, {
177
177
  map: Record<string, any>;
178
178
  value: string | number | unknown[];
179
+ max: string | number;
180
+ min: string | number;
179
181
  mode: string;
180
182
  modelValue: string | number | unknown[];
181
183
  disabled: boolean;
182
- localdata: unknown[];
183
184
  multiple: boolean;
184
- min: string | number;
185
- max: string | number;
185
+ localdata: unknown[];
186
186
  wrap: boolean;
187
187
  icon: string;
188
188
  selectedColor: string;
@@ -59,29 +59,6 @@ declare const _default: import("vue").DefineComponent<{
59
59
  default(): never[];
60
60
  };
61
61
  spaceInfo: {
62
- /**
63
- * DataPicker 级联选择
64
- * @description 支持单列、和多列级联选择。列数没有限制,如果屏幕显示不全,顶部tab区域会左右滚动。
65
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3796
66
- * @property {String} popup-title 弹出窗口标题
67
- * @property {Array} localdata 本地数据,参考
68
- * @property {Boolean} border = [true|false] 是否有边框
69
- * @property {Boolean} readonly = [true|false] 是否仅读
70
- * @property {Boolean} preload = [true|false] 是否预加载数据
71
- * @value true 开启预加载数据,点击弹出窗口后显示已加载数据
72
- * @value false 关闭预加载数据,点击弹出窗口后开始加载数据
73
- * @property {Boolean} step-searh = [true|false] 是否分布查询
74
- * @value true 启用分布查询,仅查询当前选中节点
75
- * @value false 关闭分布查询,一次查询出所有数据
76
- * @property {String|DBFieldString} self-field 分布查询当前字段名称
77
- * @property {String|DBFieldString} parent-field 分布查询父字段名称
78
- * @property {String|DBCollectionString} collection 表名
79
- * @property {String|DBFieldString} field 查询字段,多个字段用 `,` 分割
80
- * @property {String} orderby 排序字段及正序倒叙设置
81
- * @property {String|JQLString} where 查询条件
82
- * @event {Function} popupshow 弹出的选择窗口打开时触发此事件
83
- * @event {Function} popuphide 弹出的选择窗口关闭时触发此事件
84
- */
85
62
  type: ObjectConstructor;
86
63
  default(): {};
87
64
  };
@@ -208,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
208
185
  _extractTreePath(nodes: any, result: any): void;
209
186
  _findNodePath(key: any, nodes: any, path?: any[]): any;
210
187
  };
211
- }, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue" | "nodeclick" | "popupopened" | "popupclosed" | "inputclick")[], "input" | "change" | "update:modelValue" | "nodeclick" | "popupopened" | "popupclosed" | "inputclick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
+ }, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue" | "nodeclick" | "popupopened" | "popupclosed" | "inputclick")[], "input" | "change" | "update:modelValue" | "nodeclick" | "popupopened" | "popupclosed" | "inputclick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
212
189
  options: {
213
190
  type: (ArrayConstructor | ObjectConstructor)[];
214
191
  default(): {};
@@ -258,10 +235,10 @@ declare const _default: import("vue").DefineComponent<{
258
235
  border: boolean;
259
236
  options: unknown[] | Record<string, any>;
260
237
  placeholder: string;
238
+ readonly: boolean;
261
239
  ellipsis: boolean;
262
240
  popupTitle: string;
263
241
  heightMobile: string;
264
- readonly: boolean;
265
242
  clearIcon: boolean;
266
243
  }>;
267
244
  export default _default;
@@ -3,14 +3,12 @@ declare namespace _default {
3
3
  namespace localdata {
4
4
  export const type: (ArrayConstructor | ObjectConstructor)[];
5
5
  function _default(): never[];
6
- function _default(): never[];
7
6
  export { _default as default };
8
7
  }
9
8
  namespace spaceInfo {
10
9
  const type_1: ObjectConstructor;
11
10
  export { type_1 as type };
12
11
  function _default(): {};
13
- function _default(): {};
14
12
  export { _default as default };
15
13
  }
16
14
  namespace collection {
@@ -89,14 +87,12 @@ declare namespace _default {
89
87
  const type_14: (StringConstructor | NumberConstructor | ArrayConstructor)[];
90
88
  export { type_14 as type };
91
89
  function _default(): never[];
92
- function _default(): never[];
93
90
  export { _default as default };
94
91
  }
95
92
  namespace modelValue {
96
93
  const type_15: (StringConstructor | NumberConstructor | ArrayConstructor)[];
97
94
  export { type_15 as type };
98
95
  function _default(): never[];
99
- function _default(): never[];
100
96
  export { _default as default };
101
97
  }
102
98
  namespace preload {
@@ -136,85 +132,46 @@ declare namespace _default {
136
132
  text: string;
137
133
  value: string;
138
134
  };
139
- function _default(): {
140
- text: string;
141
- value: string;
142
- };
143
135
  export { _default as default };
144
136
  }
145
137
  }
146
138
  function data(): any;
147
- function data(): any;
148
139
  namespace computed {
149
140
  function isLocalData(): any;
150
- function isLocalData(): any;
151
- function isCloudData(): any;
152
141
  function isCloudData(): any;
153
142
  function isCloudDataList(): any;
154
- function isCloudDataList(): any;
155
- function isCloudDataTree(): any;
156
143
  function isCloudDataTree(): any;
157
144
  function dataValue(): any;
158
- function dataValue(): any;
159
- function hasValue(): boolean;
160
145
  function hasValue(): boolean;
161
146
  }
162
147
  function created(): void;
163
- function created(): void;
164
148
  namespace methods {
165
- function onPropsChange(): void;
166
149
  function onPropsChange(): void;
167
150
  function loadData(): Promise<void>;
168
- function loadData(): Promise<void>;
169
- function loadLocalData(): Promise<void>;
170
151
  function loadLocalData(): Promise<void>;
171
152
  function loadCloudDataList(): Promise<void>;
172
- function loadCloudDataList(): Promise<void>;
173
153
  function loadCloudDataTree(): Promise<void>;
174
- function loadCloudDataTree(): Promise<void>;
175
- function loadCloudDataNode(callback: any): Promise<void>;
176
154
  function loadCloudDataNode(callback: any): Promise<void>;
177
155
  function getCloudDataValue(): any;
178
- function getCloudDataValue(): any;
179
- function getCloudDataListValue(): any;
180
156
  function getCloudDataListValue(): any;
181
157
  function getCloudDataTreeValue(): any;
182
- function getCloudDataTreeValue(): any;
183
158
  function getCommand(options?: {}): UniCloud.Database;
184
- function getCommand(options?: {}): UniCloud.Database;
185
- function _cloudDataPostField(): string;
186
159
  function _cloudDataPostField(): string;
187
160
  function _cloudDataTreeWhere(): string;
188
- function _cloudDataTreeWhere(): string;
189
161
  function _cloudDataNodeWhere(): string | any[];
190
- function _cloudDataNodeWhere(): string | any[];
191
- function _getWhereByForeignKey(): string;
192
162
  function _getWhereByForeignKey(): string;
193
163
  function _getForeignKeyByField(): any;
194
- function _getForeignKeyByField(): any;
195
164
  function _updateBindData(node: any): {
196
165
  isleaf: boolean;
197
166
  hasNodes: boolean;
198
167
  };
199
- function _updateBindData(node: any): {
200
- isleaf: boolean;
201
- hasNodes: boolean;
202
- };
203
- function _updateSelected(): void;
204
168
  function _updateSelected(): void;
205
169
  function _filterData(data: any, paths: any): {
206
170
  dataList: any[];
207
171
  hasNodes: boolean;
208
172
  };
209
- function _filterData(data: any, paths: any): {
210
- dataList: any[];
211
- hasNodes: boolean;
212
- };
213
- function _extractTree(nodes: any, result: any, parent_value: any): void;
214
173
  function _extractTree(nodes: any, result: any, parent_value: any): void;
215
174
  function _extractTreePath(nodes: any, result: any): void;
216
- function _extractTreePath(nodes: any, result: any): void;
217
- function _findNodePath(key: any, nodes: any, path?: any[]): any;
218
175
  function _findNodePath(key: any, nodes: any, path?: any[]): any;
219
176
  }
220
177
  }
@@ -113,13 +113,13 @@ declare const _default: import("vue").DefineComponent<{
113
113
  }>>, {
114
114
  value: string | number;
115
115
  label: string;
116
+ format: string;
116
117
  clear: boolean;
118
+ placeholder: string;
117
119
  modelValue: string | number;
118
120
  disabled: boolean;
119
- placeholder: string;
120
121
  emptyTips: string;
121
122
  localdata: unknown[];
122
123
  defItem: number;
123
- format: string;
124
124
  }>;
125
125
  export default _default;
@@ -48,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
48
48
  default: number;
49
49
  };
50
50
  }>>, {
51
- date: string | number | Record<string, any>;
52
51
  format: string;
52
+ date: string | number | Record<string, any>;
53
53
  locale: string;
54
54
  threshold: unknown[];
55
55
  refreshRate: string | number;
@@ -214,11 +214,11 @@ declare const _default: import("vue").DefineComponent<{
214
214
  }>>, {
215
215
  type: string;
216
216
  value: string | number;
217
+ end: string | number;
217
218
  border: string | boolean;
218
219
  modelValue: string | number;
219
220
  disabled: string | boolean;
220
221
  start: string | number;
221
- end: string | number;
222
222
  returnType: string;
223
223
  hideSecond: string | boolean;
224
224
  }>;
@@ -219,13 +219,13 @@ declare const _default: import("vue").DefineComponent<{
219
219
  }>>, {
220
220
  type: string;
221
221
  value: string | number | unknown[] | Date;
222
+ end: string | number;
222
223
  border: boolean;
224
+ placeholder: string;
223
225
  modelValue: string | number | unknown[] | Date;
224
226
  disabled: boolean;
225
- placeholder: string;
226
227
  start: string | number;
227
228
  clearIcon: boolean;
228
- end: string | number;
229
229
  returnType: string;
230
230
  hideSecond: boolean;
231
231
  startPlaceholder: string;
@@ -8,7 +8,6 @@ declare namespace _default {
8
8
  }
9
9
  }
10
10
  function mounted(): void;
11
- function mounted(): void;
12
11
  function render(): void;
13
12
  }
14
13
  export default _default;
@@ -152,7 +152,7 @@ declare const _default: import("vue").DefineComponent<{
152
152
  * 去除空格
153
153
  */
154
154
  trimStr(str: any, pos?: string): any;
155
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "confirm" | "input" | "update:modelValue" | "focus" | "blur" | "clear" | "iconClick" | "eyes" | "keyboardheightchange")[], "click" | "input" | "clear" | "change" | "confirm" | "update:modelValue" | "focus" | "blur" | "iconClick" | "eyes" | "keyboardheightchange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
155
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "input" | "clear" | "change" | "confirm" | "update:modelValue" | "focus" | "blur" | "iconClick" | "eyes" | "keyboardheightchange")[], "click" | "input" | "clear" | "change" | "confirm" | "update:modelValue" | "focus" | "blur" | "iconClick" | "eyes" | "keyboardheightchange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
156
156
  name: StringConstructor;
157
157
  value: (StringConstructor | NumberConstructor)[];
158
158
  modelValue: (StringConstructor | NumberConstructor)[];
@@ -249,14 +249,14 @@ declare const _default: import("vue").DefineComponent<{
249
249
  }, {
250
250
  type: string;
251
251
  trim: string | boolean;
252
- disabled: boolean;
253
252
  placeholder: string;
253
+ disabled: boolean;
254
+ maxlength: string | number;
254
255
  focus: boolean;
255
256
  styles: Record<string, any>;
256
257
  errorMessage: string | boolean;
257
258
  clearable: boolean;
258
259
  autoHeight: boolean;
259
- maxlength: string | number;
260
260
  confirmType: string;
261
261
  clearSize: string | number;
262
262
  inputBorder: boolean;
@@ -99,8 +99,8 @@ declare const _default: import("vue").DefineComponent<{
99
99
  onTrigger?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
101
  pattern: Record<string, any>;
102
- content: unknown[];
103
102
  direction: string;
103
+ content: unknown[];
104
104
  show: boolean;
105
105
  horizontal: string;
106
106
  vertical: string;
@@ -87,8 +87,8 @@ declare const _default: import("vue").DefineComponent<{
87
87
  onClick?: ((...args: any[]) => any) | undefined;
88
88
  }, {
89
89
  circle: string | boolean;
90
- contentText: Record<string, any>;
91
90
  checked: boolean;
91
+ contentText: Record<string, any>;
92
92
  star: string | boolean;
93
93
  bgColor: string;
94
94
  fgColor: string;
@@ -148,7 +148,7 @@ declare const _default: import("vue").DefineComponent<{
148
148
  * 获取父元素实例
149
149
  */
150
150
  getForm(name?: string): false | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
151
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "progress" | "select" | "success" | "fail" | "delete")[], "input" | "progress" | "select" | "update:modelValue" | "success" | "fail" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
151
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "progress" | "select" | "update:modelValue" | "success" | "fail" | "delete")[], "input" | "progress" | "select" | "update:modelValue" | "success" | "fail" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
152
152
  modelValue: {
153
153
  type: (ArrayConstructor | ObjectConstructor)[];
154
154
  default(): never[];
@@ -116,9 +116,9 @@ declare const _default: import("vue").DefineComponent<{
116
116
  };
117
117
  }>>, {
118
118
  name: string | unknown[];
119
- required: boolean;
120
119
  label: string;
121
120
  labelWidth: string | number;
121
+ required: boolean;
122
122
  errorMessage: string | boolean;
123
123
  iconColor: string;
124
124
  rules: unknown[];
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<{
45
45
  onClick?: ((...args: any[]) => any) | undefined;
46
46
  }, {
47
47
  title: string;
48
- top: string | number;
49
48
  mode: string;
49
+ top: string | number;
50
50
  stat: boolean;
51
51
  }>;
52
52
  export default _default;
@@ -66,9 +66,9 @@ declare const _default: import("vue").DefineComponent<{
66
66
  }>>, {
67
67
  text: string;
68
68
  color: string;
69
+ href: string;
69
70
  fontSize: string | number;
70
71
  download: string;
71
- href: string;
72
72
  showUnderLine: string | boolean;
73
73
  copyTips: string;
74
74
  }>;
@@ -225,8 +225,8 @@ declare const _default: import("vue").DefineComponent<{
225
225
  link: string | boolean;
226
226
  title: string;
227
227
  direction: string;
228
- border: boolean;
229
228
  to: string;
229
+ border: boolean;
230
230
  disabled: string | boolean;
231
231
  thumb: string;
232
232
  showArrow: string | boolean;
@@ -145,9 +145,9 @@ declare const _default: import("vue").DefineComponent<{
145
145
  }, {
146
146
  fixed: string | boolean;
147
147
  title: string;
148
- backgroundColor: string;
149
148
  color: string;
150
149
  height: string | number;
150
+ backgroundColor: string;
151
151
  border: string | boolean;
152
152
  shadow: string | boolean;
153
153
  stat: string | boolean;
@@ -123,12 +123,12 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onGetmore?: ((...args: any[]) => any) | undefined;
124
124
  }, {
125
125
  text: string;
126
- backgroundColor: string;
127
126
  color: string;
127
+ speed: number;
128
+ backgroundColor: string;
128
129
  fontSize: number;
129
130
  showIcon: string | boolean;
130
131
  moreText: string;
131
- speed: number;
132
132
  moreColor: string;
133
133
  single: string | boolean;
134
134
  scrollable: string | boolean;
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
38
38
  _getDecimalScale(): number;
39
39
  _onBlur(event: any): void;
40
40
  _onFocus(event: any): void;
41
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue" | "focus" | "blur")[], "input" | "change" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue" | "focus" | "blur")[], "input" | "change" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
42
  value: {
43
43
  type: (StringConstructor | NumberConstructor)[];
44
44
  default: number;
@@ -80,11 +80,11 @@ declare const _default: import("vue").DefineComponent<{
80
80
  }, {
81
81
  value: string | number;
82
82
  color: string;
83
+ max: number;
84
+ min: number;
83
85
  background: string;
84
86
  modelValue: string | number;
85
87
  disabled: boolean;
86
- min: number;
87
- max: number;
88
88
  step: number;
89
89
  }>;
90
90
  export default _default;
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
62
62
  clickLeft(): void;
63
63
  clickRight(): void;
64
64
  change(e: any): void;
65
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue" | "pageSizeChange")[], "input" | "change" | "update:modelValue" | "pageSizeChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue" | "pageSizeChange")[], "input" | "change" | "update:modelValue" | "pageSizeChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
66
66
  value: {
67
67
  type: (StringConstructor | NumberConstructor)[];
68
68
  default: number;
@@ -8,7 +8,6 @@ declare namespace _default {
8
8
  }
9
9
  }
10
10
  function mounted(): void;
11
- function mounted(): void;
12
11
  function render(): void;
13
12
  }
14
13
  export default _default;
@@ -1,17 +1,11 @@
1
1
  declare namespace _default {
2
2
  function data(): {};
3
- function data(): {};
4
- function created(): void;
5
3
  function created(): void;
6
4
  namespace methods {
7
5
  /**
8
6
  * 获取父元素实例
9
7
  */
10
8
  function getParent(name?: string): any;
11
- /**
12
- * 获取父元素实例
13
- */
14
- function getParent(name?: string): any;
15
9
  }
16
10
  }
17
11
  export default _default;
@@ -112,10 +112,10 @@ declare const _default: import("vue").DefineComponent<{
112
112
  type: string;
113
113
  value: string | number;
114
114
  title: string;
115
- content: string;
116
115
  mode: string;
117
- cancelText: string;
116
+ content: string;
118
117
  placeholder: string | number;
118
+ cancelText: string;
119
119
  confirmText: string;
120
120
  inputType: string;
121
121
  beforeClose: boolean;
@@ -140,10 +140,10 @@ declare const _default: import("vue").DefineComponent<{
140
140
  size: string | number;
141
141
  value: string | number;
142
142
  color: string;
143
+ max: string | number;
143
144
  margin: string | number;
144
145
  modelValue: string | number;
145
146
  disabled: string | boolean;
146
- max: string | number;
147
147
  readonly: string | boolean;
148
148
  isFill: string | boolean;
149
149
  activeColor: string;
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
57
57
  confirm(): void;
58
58
  blur(): void;
59
59
  emitFocus(e: any): void;
60
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "input" | "update:modelValue" | "focus" | "blur" | "clear")[], "input" | "clear" | "cancel" | "confirm" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "clear" | "cancel" | "confirm" | "update:modelValue" | "focus" | "blur")[], "input" | "clear" | "cancel" | "confirm" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
61
  placeholder: {
62
62
  type: StringConstructor;
63
63
  default: string;
@@ -112,14 +112,14 @@ declare const _default: import("vue").DefineComponent<{
112
112
  onCancel?: ((...args: any[]) => any) | undefined;
113
113
  }, {
114
114
  value: string | number;
115
+ radius: string | number;
116
+ placeholder: string;
115
117
  cancelText: string;
116
118
  modelValue: string | number;
117
- placeholder: string;
118
- focus: boolean;
119
- readonly: boolean;
120
119
  maxlength: string | number;
120
+ readonly: boolean;
121
+ focus: boolean;
121
122
  bgColor: string;
122
- radius: string | number;
123
123
  clearButton: string;
124
124
  cancelButton: string;
125
125
  }>;
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  }>>, {
43
43
  width: string | number;
44
44
  align: string;
45
- rowspan: string | number;
46
45
  colspan: string | number;
46
+ rowspan: string | number;
47
47
  }>;
48
48
  export default _default;
@@ -87,8 +87,8 @@ declare const _default: import("vue").DefineComponent<{
87
87
  }, {
88
88
  width: string | number;
89
89
  align: string;
90
- rowspan: string | number;
91
90
  colspan: string | number;
91
+ rowspan: string | number;
92
92
  filterData: unknown[];
93
93
  filterType: string;
94
94
  filterDefaultValue: string | unknown[];
@@ -50,9 +50,9 @@ declare const _default: import("vue").DefineComponent<{
50
50
  onCheckboxSelected?: ((...args: any[]) => any) | undefined;
51
51
  }, {
52
52
  disabled: boolean;
53
- index: number;
54
53
  checked: string | boolean;
55
54
  indeterminate: boolean;
55
+ index: number;
56
56
  cellData: Record<string, any>;
57
57
  }>;
58
58
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.3.2-beta.3",
3
+ "version": "0.3.2-beta.4",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -26,7 +26,7 @@
26
26
  "publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
27
27
  },
28
28
  "peerDependencies": {
29
- "vue": "3.2.43"
29
+ "vue": "3.2.47"
30
30
  },
31
31
  "dependencies": {
32
32
  "@ant-design/icons-vue": "6.1.0",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/core": "8.9.4",
36
36
  "@vueuse/shared": "8.9.4",
37
37
  "lodash-es": "4.17.21",
38
- "pinia": "2.0.12"
38
+ "pinia": "2.0.35"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@dcloudio/types": "3.3.3",
@@ -43,8 +43,8 @@
43
43
  "@types/lodash-es": "~4.17.7",
44
44
  "@types/node": "~18.14.6",
45
45
  "@types/semver": "~7.3.13",
46
- "@vitejs/plugin-vue": "~3.2.0",
47
- "@vitejs/plugin-vue-jsx": "~1.3.10",
46
+ "@vitejs/plugin-vue": "4.2.1",
47
+ "@vitejs/plugin-vue-jsx": "3.0.1",
48
48
  "chalk": "~4.1.2",
49
49
  "less": "~4.1.3",
50
50
  "prettier": "~2.8.4",
@@ -53,11 +53,11 @@
53
53
  "sass": "1.62.1",
54
54
  "sass-loader": "10.4.1",
55
55
  "semver": "~7.3.8",
56
- "tsx": "~3.12.3",
57
- "typescript": "~4.8.4",
58
- "vite": "~3.2.5",
59
- "vue": "~3.2.45",
60
- "vue-tsc": "~1.2.0"
56
+ "tsx": "3.12.7",
57
+ "typescript": "4.9.5",
58
+ "vite": "4.3.4",
59
+ "vue": "3.2.47",
60
+ "vue-tsc": "1.6.4"
61
61
  },
62
62
  "main": "./dist/kengic-uni.js",
63
63
  "module": "./dist/kengic-uni.js",