@panpanzhao/component-ui 1.24.1217 → 1.24.1218

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.
@@ -2150,6 +2150,7 @@ var SelectTree_component = normalizeComponent(
2150
2150
  }
2151
2151
  return Object.assign({
2152
2152
  clearable: true,
2153
+ filterable: true,
2153
2154
  placeholder: "请选择"
2154
2155
  }, this.$attrs, {
2155
2156
  value: _value
@@ -4397,6 +4398,14 @@ var form_input_default = /*#__PURE__*/__webpack_require__.n(form_input_);
4397
4398
  }
4398
4399
  var rulesList = Array.isArray(this.rules) ? this.rules : [this.rules];
4399
4400
  return rulesList.filter(function (item) {
4401
+ if (typeof item.disabled === "function") {
4402
+ return item.disabled.call(_this, {
4403
+ trigger: _this.form,
4404
+ triggerConfig: _this.form.formItemLayout[_this.prop],
4405
+ triggerForm: _this.form.formModel,
4406
+ triggerFormConfig: _this.form.formItemLayout
4407
+ });
4408
+ }
4400
4409
  return item.disabled !== true;
4401
4410
  }).map(function (item) {
4402
4411
  if (typeof item.validator === "function") {
@@ -272,17 +272,17 @@ module.exports = require("element-ui/lib/cascader");
272
272
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return uploadFile; });
273
273
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return mergeChunk; });
274
274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return checkFile; });
275
- /**
276
- * [uploadFile] - 上传切片参数
277
- * @param fileHash 文件hash,String
278
- * @param fileSize 文件大小,Number
279
- * @param fileName 文件名称,String
280
- * @param index 多文件上传中的所在index,number
281
- * @param chunkFile 切片文件本身,File || Blob || void
282
- * @param chunkHash 切片文件hash,String
283
- * @param chunkSize 分片大小,Number
284
- * @param chunkNumber 切片总数量,Number
285
- * @param finish 是否上传完成,可选参数,Boolean
275
+ /**
276
+ * [uploadFile] - 上传切片参数
277
+ * @param fileHash 文件hash,String
278
+ * @param fileSize 文件大小,Number
279
+ * @param fileName 文件名称,String
280
+ * @param index 多文件上传中的所在index,number
281
+ * @param chunkFile 切片文件本身,File || Blob || void
282
+ * @param chunkHash 切片文件hash,String
283
+ * @param chunkSize 分片大小,Number
284
+ * @param chunkNumber 切片总数量,Number
285
+ * @param finish 是否上传完成,可选参数,Boolean
286
286
  */
287
287
 
288
288
  // 上传单个切片
@@ -314,11 +314,11 @@ function uploadFile(data, _ref) {
314
314
  return request;
315
315
  }
316
316
 
317
- /**
318
- * [mergeChunk] - 合并切片
319
- * @param chunkSize 分片大小,Number
320
- * @param fileName 文件名称,String
321
- * @param fileSize 文件大小,Number
317
+ /**
318
+ * [mergeChunk] - 合并切片
319
+ * @param chunkSize 分片大小,Number
320
+ * @param fileName 文件名称,String
321
+ * @param fileSize 文件大小,Number
322
322
  */
323
323
 
324
324
  // 合并所有切片
@@ -337,10 +337,10 @@ function mergeChunk(data, _ref2) {
337
337
  });
338
338
  }
339
339
 
340
- /**
341
- * [checkFile] - 检查文件是否存在
342
- * @param fileHash 文件hash,String
343
- * @param fileName 文件名称,String
340
+ /**
341
+ * [checkFile] - 检查文件是否存在
342
+ * @param fileHash 文件hash,String
343
+ * @param fileName 文件名称,String
344
344
  */
345
345
 
346
346
  // 检查文件是否存在
@@ -1643,6 +1643,7 @@ var formula_ = __webpack_require__(3);
1643
1643
  }
1644
1644
  return Object.assign({
1645
1645
  clearable: true,
1646
+ filterable: true,
1646
1647
  placeholder: "请选择"
1647
1648
  }, this.$attrs, {
1648
1649
  value: _value
@@ -3364,31 +3365,31 @@ var large_upload = __webpack_require__(51);
3364
3365
  },
3365
3366
  data: function data() {
3366
3367
  return {
3367
- /**
3368
- * {
3369
- * id: 唯一编码
3370
- * name: 文件名称
3371
- * state: 0待上传 100上传中 200上传成功 500上传失败
3372
- * 大文件特有状态 10文件处理中,30是暂停,50上传中断
3373
- * percentage: 上传进度 数字 100表示100%
3374
- * errorMsg: 错误信息
3375
- * size: 文件大小
3376
- * file: 源文件 name percentage raw size status uid
3377
- * ...
3378
- * fileId: 数据库id
3379
- * fileUrl: 文件地址 上传成功后地址
3380
- * }
3368
+ /**
3369
+ * {
3370
+ * id: 唯一编码
3371
+ * name: 文件名称
3372
+ * state: 0待上传 100上传中 200上传成功 500上传失败
3373
+ * 大文件特有状态 10文件处理中,30是暂停,50上传中断
3374
+ * percentage: 上传进度 数字 100表示100%
3375
+ * errorMsg: 错误信息
3376
+ * size: 文件大小
3377
+ * file: 源文件 name percentage raw size status uid
3378
+ * ...
3379
+ * fileId: 数据库id
3380
+ * fileUrl: 文件地址 上传成功后地址
3381
+ * }
3381
3382
  */
3382
3383
  fileList: [],
3383
3384
  //已处理
3384
3385
  pendingFileList: [],
3385
3386
  //待处理
3386
- /**
3387
- * {
3388
- * id: 文件id
3389
- * name: 文件名称
3390
- * url: 文件地址
3391
- * }
3387
+ /**
3388
+ * {
3389
+ * id: 文件id
3390
+ * name: 文件名称
3391
+ * url: 文件地址
3392
+ * }
3392
3393
  */
3393
3394
  fileValue: []
3394
3395
  };
@@ -217,6 +217,14 @@ var external_lodash_ = __webpack_require__(2);
217
217
  }
218
218
  var rulesList = Array.isArray(this.rules) ? this.rules : [this.rules];
219
219
  return rulesList.filter(function (item) {
220
+ if (typeof item.disabled === "function") {
221
+ return item.disabled.call(_this, {
222
+ trigger: _this.form,
223
+ triggerConfig: _this.form.formItemLayout[_this.prop],
224
+ triggerForm: _this.form.formModel,
225
+ triggerFormConfig: _this.form.formItemLayout
226
+ });
227
+ }
220
228
  return item.disabled !== true;
221
229
  }).map(function (item) {
222
230
  if (typeof item.validator === "function") {