hrsass-components 1.7.61 → 1.7.63

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "1.7.61";
68
+ var version = "1.7.62";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -4189,7 +4189,8 @@ var HrDynamic = {
4189
4189
  fileTypes: VuePropTypes.string,
4190
4190
  customBeforeUpload: VuePropTypes.func,
4191
4191
  richInit: VuePropTypes.object,
4192
- maxLength: VuePropTypes.number
4192
+ maxLength: VuePropTypes.number,
4193
+ extraAttrs: VuePropTypes.object
4193
4194
  }, {
4194
4195
  prefixCls: "hr-dynamic"
4195
4196
  }),
@@ -4231,7 +4232,9 @@ var HrDynamic = {
4231
4232
  fileTypes = _getOptionProps.fileTypes,
4232
4233
  customBeforeUpload = _getOptionProps.customBeforeUpload,
4233
4234
  richInit = _getOptionProps.richInit,
4234
- maxLength = _getOptionProps.maxLength;
4235
+ maxLength = _getOptionProps.maxLength,
4236
+ _getOptionProps$extra = _getOptionProps.extraAttrs,
4237
+ extraAttrs = _getOptionProps$extra === void 0 ? {} : _getOptionProps$extra;
4235
4238
  var hrDynamicProps = {
4236
4239
  "class": classNames(prefixCls, cls, _defineProperty({}, "".concat(prefixCls, "-read-only"), !isEncrypt && readOnly)),
4237
4240
  style: {
@@ -4253,19 +4256,19 @@ var HrDynamic = {
4253
4256
  // }
4254
4257
  }
4255
4258
  return h("div", hrDynamicProps, [(name === "TEXT" || name == "SELECTCITYAREA") && h(antDesignVue.Input, {
4256
- attrs: {
4259
+ attrs: _objectSpread$9({
4257
4260
  value: value,
4258
4261
  size: size,
4259
4262
  allowClear: allowClear,
4260
4263
  disabled: disabled,
4261
4264
  readOnly: readOnly,
4262
4265
  placeholder: placeHolderVal
4263
- },
4266
+ }, extraAttrs),
4264
4267
  on: {
4265
- "pressEnter": function pressEnter(e) {
4268
+ pressEnter: function pressEnter(e) {
4266
4269
  _this.$emit("search", e);
4267
4270
  },
4268
- "change": function change(e) {
4271
+ change: function change(e) {
4269
4272
  _this.$emit("change", e.target.value, _this);
4270
4273
  if (e.target.value === "" && !e.inputType) {
4271
4274
  //清空
@@ -4286,7 +4289,7 @@ var HrDynamic = {
4286
4289
  },
4287
4290
  style: "color: rgba(0,0,0,.25)"
4288
4291
  })]), name === "TEXTAREA" && h(antDesignVue.Input.TextArea, {
4289
- attrs: {
4292
+ attrs: _objectSpread$9({
4290
4293
  value: value,
4291
4294
  size: size,
4292
4295
  disabled: disabled,
@@ -4296,54 +4299,54 @@ var HrDynamic = {
4296
4299
  minRows: rows,
4297
4300
  maxRows: 8
4298
4301
  }
4299
- },
4302
+ }, extraAttrs),
4300
4303
  on: {
4301
- "change": function change(e) {
4304
+ change: function change(e) {
4302
4305
  _this.$emit("change", e.target.value);
4303
4306
  }
4304
4307
  }
4305
4308
  }), name === "NUMBER" && h(antDesignVue.InputNumber, {
4306
- attrs: {
4309
+ attrs: _objectSpread$9({
4307
4310
  value: value,
4308
4311
  size: size,
4309
4312
  disabled: disabled || readOnly,
4310
4313
  readOnly: readOnly,
4311
4314
  placeholder: placeHolderVal
4312
- },
4315
+ }, extraAttrs),
4313
4316
  on: {
4314
- "change": function change(val) {
4317
+ change: function change(val) {
4315
4318
  _this.$emit("change", val);
4316
4319
  }
4317
4320
  }
4318
4321
  }), name === "DATE" && h(antDesignVue.DatePicker, {
4319
- attrs: {
4322
+ attrs: _objectSpread$9({
4320
4323
  value: value ? moment__default(value) : null,
4321
4324
  size: size,
4322
- disabled: disabled || readOnly,
4323
4325
  readOnly: readOnly,
4326
+ disabled: disabled || readOnly,
4324
4327
  placeholder: placeHolderVal
4325
- },
4328
+ }, extraAttrs),
4326
4329
  on: {
4327
- "change": function change(date, strDate) {
4330
+ change: function change(date, strDate) {
4328
4331
  _this.$emit("change", strDate);
4329
4332
  }
4330
4333
  }
4331
4334
  }), name === "DATE_TIME" && h(antDesignVue.DatePicker, {
4332
- attrs: {
4335
+ attrs: _objectSpread$9({
4333
4336
  value: value ? moment__default(value) : null,
4334
4337
  size: size,
4335
4338
  readOnly: readOnly,
4336
4339
  disabled: disabled || readOnly,
4337
4340
  format: "YYYY-MM-DD HH:mm:ss",
4338
4341
  placeholder: placeHolderVal
4339
- },
4342
+ }, extraAttrs),
4340
4343
  on: {
4341
- "change": function change(date, strDate) {
4344
+ change: function change(date, strDate) {
4342
4345
  _this.$emit("change", strDate);
4343
4346
  }
4344
4347
  }
4345
4348
  }), name === "TIME" && h(antDesignVue.DatePicker, {
4346
- attrs: {
4349
+ attrs: _objectSpread$9({
4347
4350
  value: value ? moment__default(value) : null,
4348
4351
  size: size,
4349
4352
  showTime: true,
@@ -4351,59 +4354,59 @@ var HrDynamic = {
4351
4354
  disabled: disabled || readOnly,
4352
4355
  format: "YYYY-MM-DD HH:mm:ss",
4353
4356
  placeholder: placeHolderVal
4354
- },
4357
+ }, extraAttrs),
4355
4358
  on: {
4356
- "change": function change(date, strDate) {
4359
+ change: function change(date, strDate) {
4357
4360
  _this.$emit("change", strDate);
4358
4361
  }
4359
4362
  }
4360
4363
  }), name === "TIMEPICKERHRS" && h(antDesignVue.TimePicker, {
4361
- attrs: {
4364
+ attrs: _objectSpread$9({
4362
4365
  value: value ? moment__default("".concat(moment__default().format("YYYY-MM-DD"), " ").concat(value)) : null,
4363
4366
  size: size,
4364
- allowClear: true,
4367
+ allowClear: allowClear,
4365
4368
  readOnly: readOnly,
4366
4369
  disabled: disabled || readOnly,
4367
4370
  format: "HH:mm:ss",
4368
4371
  placeholder: placeHolderVal
4369
- },
4372
+ }, extraAttrs),
4370
4373
  on: {
4371
- "change": function change(date, strTime) {
4374
+ change: function change(date, strTime) {
4372
4375
  _this.$emit("change", strTime);
4373
4376
  }
4374
4377
  }
4375
4378
  }), name === "TIMEPICKERHR" && h(antDesignVue.TimePicker, {
4376
- attrs: {
4379
+ attrs: _objectSpread$9({
4377
4380
  value: value ? moment__default("".concat(moment__default().format("YYYY-MM-DD"), " ").concat(value)) : null,
4378
4381
  size: size,
4379
- allowClear: true,
4382
+ allowClear: allowClear,
4380
4383
  readOnly: readOnly,
4381
4384
  disabled: disabled || readOnly,
4382
4385
  format: "HH:mm",
4383
4386
  placeholder: placeHolderVal
4384
- },
4387
+ }, extraAttrs),
4385
4388
  on: {
4386
- "change": function change(date, strTime) {
4389
+ change: function change(date, strTime) {
4387
4390
  _this.$emit("change", strTime);
4388
4391
  }
4389
4392
  }
4390
4393
  }), name === "YEARMONTH" && h(antDesignVue.DatePicker.MonthPicker, {
4391
- attrs: {
4394
+ attrs: _objectSpread$9({
4392
4395
  value: value ? moment__default(value) : null,
4393
4396
  size: size,
4394
4397
  readOnly: readOnly,
4395
4398
  disabled: disabled || readOnly,
4396
4399
  format: "YYYY-MM",
4397
4400
  placeholder: placeHolderVal
4398
- },
4401
+ }, extraAttrs),
4399
4402
  on: {
4400
- "change": function change(date, strDate) {
4403
+ change: function change(date, strDate) {
4401
4404
  _this.$emit("change", strDate ? "".concat(strDate, "-01") : "");
4402
4405
  }
4403
4406
  }
4404
4407
  }), name === "YEAR" && h(antDesignVue.DatePicker, {
4405
4408
  ref: "yearPicker",
4406
- attrs: {
4409
+ attrs: _objectSpread$9({
4407
4410
  value: value ? moment__default(value) : null,
4408
4411
  size: size,
4409
4412
  disabled: disabled || readOnly,
@@ -4411,19 +4414,19 @@ var HrDynamic = {
4411
4414
  placeholder: placeHolderVal,
4412
4415
  mode: "year",
4413
4416
  format: "YYYY"
4414
- },
4417
+ }, extraAttrs),
4415
4418
  on: {
4416
- "change": function change(date) {
4419
+ change: function change(date) {
4417
4420
  _this.$emit("change", date && date.format("YYYY"));
4418
4421
  },
4419
- "panelChange": function panelChange(date) {
4422
+ panelChange: function panelChange(date) {
4420
4423
  _this.$refs.yearPicker.$refs.picker.$children[0].setOpen(false);
4421
4424
  _this.$emit("change", date && date.format("YYYY"));
4422
4425
  }
4423
4426
  }
4424
4427
  }), name === "MONTH" && h(antDesignVue.DatePicker, {
4425
4428
  ref: "monthPicker",
4426
- attrs: {
4429
+ attrs: _objectSpread$9({
4427
4430
  value: value ? moment__default("".concat(new Date().getFullYear(), "-").concat(value)) : null,
4428
4431
  size: size,
4429
4432
  disabled: disabled || readOnly,
@@ -4431,9 +4434,9 @@ var HrDynamic = {
4431
4434
  placeholder: placeHolderVal,
4432
4435
  mode: "month",
4433
4436
  format: "MM"
4434
- },
4437
+ }, extraAttrs),
4435
4438
  on: {
4436
- "panelChange": function panelChange(date) {
4439
+ panelChange: function panelChange(date) {
4437
4440
  _this.$refs.monthPicker.$refs.picker.$children[0].setOpen(false);
4438
4441
  _this.$emit("change", date && date.format("MM"));
4439
4442
  }
@@ -4585,35 +4588,35 @@ var HrDynamic = {
4585
4588
  }
4586
4589
  }
4587
4590
  }), name === "RADIO" && h(antDesignVue.Radio, {
4588
- attrs: {
4591
+ attrs: _objectSpread$9({
4589
4592
  value: value,
4590
4593
  disabled: disabled,
4591
4594
  readOnly: readOnly
4592
- },
4595
+ }, extraAttrs),
4593
4596
  on: {
4594
- "change": function change(e) {
4597
+ change: function change(e) {
4595
4598
  _this.$emit("change", e.target.checked);
4596
4599
  }
4597
4600
  }
4598
4601
  }), name === "CHECKBOX" && h(antDesignVue.Checkbox, {
4599
- attrs: {
4602
+ attrs: _objectSpread$9({
4600
4603
  checked: value,
4601
4604
  disabled: disabled || readOnly,
4602
4605
  readOnly: readOnly
4603
- },
4606
+ }, extraAttrs),
4604
4607
  on: {
4605
- "change": function change(e) {
4608
+ change: function change(e) {
4606
4609
  _this.$emit("change", e.target.checked);
4607
4610
  }
4608
4611
  }
4609
4612
  }), name === "SWITCH" && h(antDesignVue.Switch, {
4610
- attrs: {
4613
+ attrs: _objectSpread$9({
4611
4614
  checked: value,
4612
4615
  disabled: disabled || readOnly,
4613
4616
  readOnly: readOnly
4614
- },
4617
+ }, extraAttrs),
4615
4618
  on: {
4616
- "change": function change(val) {
4619
+ change: function change(val) {
4617
4620
  _this.$emit("change", val);
4618
4621
  }
4619
4622
  }