@v2coding/ui 0.1.53 → 0.1.55

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.
@@ -3179,17 +3179,11 @@ var __vue_render__$A = function __vue_render__() {
3179
3179
  on: {
3180
3180
  "change": _vm.onCheckAllChange
3181
3181
  }
3182
- }, [_vm._v("全选")])], 1), _vm._ssrNode(" "), _c('el-divider', {
3183
- directives: [{
3184
- name: "show",
3185
- rawName: "v-show",
3186
- value: _vm.all && _vm.realData.length,
3187
- expression: "all && realData.length"
3188
- }],
3182
+ }, [_vm._v("全选")])], 1), _vm._ssrNode(" "), _vm.all && _vm.realData.length ? _c('el-divider', {
3189
3183
  attrs: {
3190
3184
  "direction": "vertical"
3191
3185
  }
3192
- }), _vm._ssrNode(" "), _c('el-checkbox-group', _vm._b({
3186
+ }) : _vm._e(), _vm._ssrNode(" "), _c('el-checkbox-group', _vm._b({
3193
3187
  staticClass: "options",
3194
3188
  attrs: {
3195
3189
  "value": _vm.pickerValue
@@ -3210,7 +3204,7 @@ var __vue_render__$A = function __vue_render__() {
3210
3204
  "false-label": item.falseLabel
3211
3205
  }
3212
3206
  }, [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
3213
- }), 1), _vm._ssrNode(" "), _vm.isEmpty ? _vm._ssrNode("<div class=\"empty\" data-v-fe03ce2a>", "</div>", [_vm._ssrNode("暂无数据! "), _c('el-button', {
3207
+ }), 1), _vm._ssrNode(" "), _vm.isEmpty ? _vm._ssrNode("<div class=\"empty\" data-v-ae8f026a>", "</div>", [_vm._ssrNode("暂无数据! "), _c('el-button', {
3214
3208
  directives: [{
3215
3209
  name: "show",
3216
3210
  rawName: "v-show",
@@ -3231,8 +3225,8 @@ var __vue_staticRenderFns__$A = [];
3231
3225
 
3232
3226
  var __vue_inject_styles__$B = function __vue_inject_styles__(inject) {
3233
3227
  if (!inject) return;
3234
- inject("data-v-fe03ce2a_0", {
3235
- source: ".ui-field-checkbox .all[data-v-fe03ce2a]{display:flex}.ui-field-checkbox .all>.el-checkbox[data-v-fe03ce2a]{margin-right:0}.ui-field-checkbox .options[data-v-fe03ce2a]{display:flex;flex-direction:row;align-items:center}.ui-field-checkbox .empty[data-v-fe03ce2a]{display:inline-flex;align-items:center;font-size:12px;color:#909399}.ui-field-checkbox[data-v-fe03ce2a] .el-checkbox{margin:0 8px 0 0}.ui-field-checkbox[data-v-fe03ce2a] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.ui-field-checkbox[data-v-fe03ce2a] .el-divider{margin:0 10px}[data-v-fe03ce2a] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
3228
+ inject("data-v-ae8f026a_0", {
3229
+ source: ".ui-field-checkbox .all[data-v-ae8f026a]{display:flex}.ui-field-checkbox .all>.el-checkbox[data-v-ae8f026a]{margin-right:0}.ui-field-checkbox .options[data-v-ae8f026a]{display:flex;flex-direction:row;align-items:center}.ui-field-checkbox .empty[data-v-ae8f026a]{display:inline-flex;align-items:center;font-size:12px;color:#909399}.ui-field-checkbox[data-v-ae8f026a] .el-checkbox{margin:0 8px 0 0}.ui-field-checkbox[data-v-ae8f026a] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.ui-field-checkbox[data-v-ae8f026a] .el-divider{margin:0 10px}[data-v-ae8f026a] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
3236
3230
  map: undefined,
3237
3231
  media: undefined
3238
3232
  });
@@ -3240,10 +3234,10 @@ var __vue_inject_styles__$B = function __vue_inject_styles__(inject) {
3240
3234
  /* scoped */
3241
3235
 
3242
3236
 
3243
- var __vue_scope_id__$B = "data-v-fe03ce2a";
3237
+ var __vue_scope_id__$B = "data-v-ae8f026a";
3244
3238
  /* module identifier */
3245
3239
 
3246
- var __vue_module_identifier__$B = "data-v-fe03ce2a";
3240
+ var __vue_module_identifier__$B = "data-v-ae8f026a";
3247
3241
  /* functional template */
3248
3242
 
3249
3243
  var __vue_is_functional_template__$B = false;
@@ -7755,30 +7749,50 @@ var script$g = {
7755
7749
  * (函数节流. 600ms内只执行一次, 防止 form 表单多次提交)
7756
7750
  * @private
7757
7751
  */
7758
- onSubmit: lodash.throttle(function () {
7752
+ onSubmit: lodash.throttle( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7759
7753
  var _this = this;
7760
7754
 
7761
- var formData = this.getValues();
7762
- var allow = this.beforeSubmit(formData);
7755
+ var formData, allow;
7756
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
7757
+ while (1) {
7758
+ switch (_context.prev = _context.next) {
7759
+ case 0:
7760
+ formData = this.getValues();
7761
+ _context.next = 3;
7762
+ return this.beforeSubmit(formData);
7763
7763
 
7764
- if (typeof allow === 'boolean' && allow === false) {
7765
- return;
7766
- }
7764
+ case 3:
7765
+ allow = _context.sent;
7767
7766
 
7768
- if (_typeof(allow) === 'object') {
7769
- formData = allow;
7770
- }
7767
+ if (!(typeof allow === 'boolean' && allow === false)) {
7768
+ _context.next = 6;
7769
+ break;
7770
+ }
7771
7771
 
7772
- this.validate(function (valid) {
7773
- if (!valid) {
7774
- return;
7775
- }
7772
+ return _context.abrupt("return");
7776
7773
 
7777
- _this.$emit('submit', formData);
7774
+ case 6:
7775
+ if (_typeof(allow) === 'object') {
7776
+ formData = allow;
7777
+ }
7778
7778
 
7779
- _this.doAction(formData);
7780
- });
7781
- }, 600, {
7779
+ this.validate(function (valid) {
7780
+ if (!valid) {
7781
+ return;
7782
+ }
7783
+
7784
+ _this.$emit('submit', formData);
7785
+
7786
+ _this.doAction(formData);
7787
+ });
7788
+
7789
+ case 8:
7790
+ case "end":
7791
+ return _context.stop();
7792
+ }
7793
+ }
7794
+ }, _callee, this);
7795
+ })), 600, {
7782
7796
  trailing: false
7783
7797
  }),
7784
7798
  doAction: function doAction(data) {
@@ -7968,8 +7982,8 @@ var __vue_staticRenderFns__$f = [];
7968
7982
 
7969
7983
  var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
7970
7984
  if (!inject) return;
7971
- inject("data-v-a797a0b6_0", {
7972
- source: ".el-form--inline[data-v-a797a0b6] .el-form-item{display:inline-flex}",
7985
+ inject("data-v-3dfdaaf7_0", {
7986
+ source: ".el-form--inline[data-v-3dfdaaf7] .el-form-item{display:inline-flex}",
7973
7987
  map: undefined,
7974
7988
  media: undefined
7975
7989
  });
@@ -7977,10 +7991,10 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
7977
7991
  /* scoped */
7978
7992
 
7979
7993
 
7980
- var __vue_scope_id__$g = "data-v-a797a0b6";
7994
+ var __vue_scope_id__$g = "data-v-3dfdaaf7";
7981
7995
  /* module identifier */
7982
7996
 
7983
- var __vue_module_identifier__$g = "data-v-a797a0b6";
7997
+ var __vue_module_identifier__$g = "data-v-3dfdaaf7";
7984
7998
  /* functional template */
7985
7999
 
7986
8000
  var __vue_is_functional_template__$g = false;
@@ -8181,48 +8195,78 @@ var script$f = {
8181
8195
  onSubmit: function onSubmit(formData) {
8182
8196
  var _this2 = this;
8183
8197
 
8184
- if (!this.ready) {
8185
- return;
8186
- }
8198
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
8199
+ var allow, def;
8200
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8201
+ while (1) {
8202
+ switch (_context2.prev = _context2.next) {
8203
+ case 0:
8204
+ if (_this2.ready) {
8205
+ _context2.next = 2;
8206
+ break;
8207
+ }
8187
8208
 
8188
- this.$emit('submit', _objectSpread2({}, formData));
8189
- var allow = this.beforeSubmit(formData);
8209
+ return _context2.abrupt("return");
8190
8210
 
8191
- if (typeof allow === 'boolean' && allow === false) {
8192
- return;
8193
- }
8211
+ case 2:
8212
+ _this2.$emit('submit', _objectSpread2({}, formData));
8194
8213
 
8195
- if (_typeof(allow) === 'object') {
8196
- formData = allow;
8197
- }
8214
+ _context2.next = 5;
8215
+ return _this2.beforeSubmit(formData);
8198
8216
 
8199
- if (!this.url) {
8200
- return;
8201
- }
8217
+ case 5:
8218
+ allow = _context2.sent;
8202
8219
 
8203
- var def;
8204
- this.submitting = true;
8220
+ if (!(typeof allow === 'boolean' && allow === false)) {
8221
+ _context2.next = 8;
8222
+ break;
8223
+ }
8205
8224
 
8206
- if (this.method === 'get') {
8207
- def = this.getWithMessage(this.url, {
8208
- params: formData
8209
- });
8210
- } else {
8211
- def = this.postWithMessage(this.url, formData);
8212
- }
8225
+ return _context2.abrupt("return");
8213
8226
 
8214
- def.then(function () {
8215
- _this2.submitting = false;
8227
+ case 8:
8228
+ if (_typeof(allow) === 'object') {
8229
+ formData = allow;
8230
+ }
8216
8231
 
8217
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8218
- args[_key] = arguments[_key];
8219
- }
8232
+ if (_this2.url) {
8233
+ _context2.next = 11;
8234
+ break;
8235
+ }
8220
8236
 
8221
- _this2.$emit.apply(_this2, ['after-submit'].concat(args));
8222
- }).catch(function () {
8223
- _this2.submitting = false;
8224
- return Promise.reject.apply(Promise, arguments);
8225
- });
8237
+ return _context2.abrupt("return");
8238
+
8239
+ case 11:
8240
+ _this2.submitting = true;
8241
+
8242
+ if (_this2.method === 'get') {
8243
+ def = _this2.getWithMessage(_this2.url, {
8244
+ params: formData
8245
+ });
8246
+ } else {
8247
+ def = _this2.postWithMessage(_this2.url, formData);
8248
+ }
8249
+
8250
+ def.then(function () {
8251
+ _this2.submitting = false;
8252
+
8253
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8254
+ args[_key] = arguments[_key];
8255
+ }
8256
+
8257
+ _this2.$emit.apply(_this2, ['after-submit'].concat(args));
8258
+ }).catch(function () {
8259
+ _this2.submitting = false;
8260
+ return Promise.reject.apply(Promise, arguments);
8261
+ });
8262
+
8263
+ case 14:
8264
+ case "end":
8265
+ return _context2.stop();
8266
+ }
8267
+ }
8268
+ }, _callee2);
8269
+ }))();
8226
8270
  },
8227
8271
  onOpen: function onOpen() {},
8228
8272
  onOpened: function onOpened() {},
@@ -8296,8 +8340,8 @@ var __vue_staticRenderFns__$e = [];
8296
8340
 
8297
8341
  var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
8298
8342
  if (!inject) return;
8299
- inject("data-v-fd63290a_0", {
8300
- source: ".action-button[data-v-fd63290a]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
8343
+ inject("data-v-42a629ae_0", {
8344
+ source: ".action-button[data-v-42a629ae]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
8301
8345
  map: undefined,
8302
8346
  media: undefined
8303
8347
  });
@@ -8305,10 +8349,10 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
8305
8349
  /* scoped */
8306
8350
 
8307
8351
 
8308
- var __vue_scope_id__$f = "data-v-fd63290a";
8352
+ var __vue_scope_id__$f = "data-v-42a629ae";
8309
8353
  /* module identifier */
8310
8354
 
8311
- var __vue_module_identifier__$f = "data-v-fd63290a";
8355
+ var __vue_module_identifier__$f = "data-v-42a629ae";
8312
8356
  /* functional template */
8313
8357
 
8314
8358
  var __vue_is_functional_template__$f = false;
@@ -8623,47 +8667,73 @@ var script$d = {
8623
8667
  onSubmit: function onSubmit(formData) {
8624
8668
  var _this2 = this;
8625
8669
 
8626
- // if (!this.ready) {
8627
- // return;
8628
- // }
8629
- this.$emit('submit', _objectSpread2({}, formData));
8630
- var allow = this.beforeSubmit(formData);
8670
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
8671
+ var allow, def;
8672
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8673
+ while (1) {
8674
+ switch (_context2.prev = _context2.next) {
8675
+ case 0:
8676
+ // if (!this.ready) {
8677
+ // return;
8678
+ // }
8679
+ _this2.$emit('submit', _objectSpread2({}, formData));
8631
8680
 
8632
- if (typeof allow === 'boolean' && allow === false) {
8633
- return;
8634
- }
8681
+ _context2.next = 3;
8682
+ return _this2.beforeSubmit(formData);
8635
8683
 
8636
- if (_typeof(allow) === 'object') {
8637
- formData = allow;
8638
- }
8684
+ case 3:
8685
+ allow = _context2.sent;
8639
8686
 
8640
- if (!this.url) {
8641
- return;
8642
- }
8687
+ if (!(typeof allow === 'boolean' && allow === false)) {
8688
+ _context2.next = 6;
8689
+ break;
8690
+ }
8643
8691
 
8644
- var def;
8645
- this.submitting = true;
8692
+ return _context2.abrupt("return");
8646
8693
 
8647
- if (this.method === 'get') {
8648
- def = this.getWithMessage(this.url, {
8649
- params: formData
8650
- });
8651
- } else {
8652
- def = this.postWithMessage(this.url, formData);
8653
- }
8694
+ case 6:
8695
+ if (_typeof(allow) === 'object') {
8696
+ formData = allow;
8697
+ }
8654
8698
 
8655
- def.then(function () {
8656
- _this2.submitting = false;
8699
+ if (_this2.url) {
8700
+ _context2.next = 9;
8701
+ break;
8702
+ }
8657
8703
 
8658
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8659
- args[_key] = arguments[_key];
8660
- }
8704
+ return _context2.abrupt("return");
8661
8705
 
8662
- _this2.$emit.apply(_this2, ['after-submit'].concat(args));
8663
- }).catch(function () {
8664
- _this2.submitting = false;
8665
- return Promise.reject.apply(Promise, arguments);
8666
- });
8706
+ case 9:
8707
+ _this2.submitting = true;
8708
+
8709
+ if (_this2.method === 'get') {
8710
+ def = _this2.getWithMessage(_this2.url, {
8711
+ params: formData
8712
+ });
8713
+ } else {
8714
+ def = _this2.postWithMessage(_this2.url, formData);
8715
+ }
8716
+
8717
+ def.then(function () {
8718
+ _this2.submitting = false;
8719
+
8720
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8721
+ args[_key] = arguments[_key];
8722
+ }
8723
+
8724
+ _this2.$emit.apply(_this2, ['after-submit'].concat(args));
8725
+ }).catch(function () {
8726
+ _this2.submitting = false;
8727
+ return Promise.reject.apply(Promise, arguments);
8728
+ });
8729
+
8730
+ case 12:
8731
+ case "end":
8732
+ return _context2.stop();
8733
+ }
8734
+ }
8735
+ }, _callee2);
8736
+ }))();
8667
8737
  }
8668
8738
  }
8669
8739
  };/* script */
@@ -8734,7 +8804,7 @@ var __vue_staticRenderFns__$c = [];
8734
8804
 
8735
8805
  var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
8736
8806
  if (!inject) return;
8737
- inject("data-v-35f09272_0", {
8807
+ inject("data-v-0dd33ec0_0", {
8738
8808
  source: ".ui-form-drawer{display:flex;flex-direction:column;padding:0;outline:0}.ui-form-drawer .el-drawer-body{flex:1;padding:0;overflow:hidden;display:flex;flex-direction:column}.ui-form-drawer .el-drawer-body>.el-form{flex:1;overflow:auto}.ui-form-drawer .el-drawer-body>.action-button{flex:none}.ui-form-drawer .ui-form-drawer-wrapper{flex:1;overflow:hidden}.ui-form-drawer .ui-form-drawer-wrapper .el-form{width:100%;height:100%;overflow:auto;padding:16px;box-sizing:border-box}.ui-form-drawer .action-button{flex:none;padding:16px;border-top:1px solid #e8eaec;display:flex;flex-direction:row-reverse}.ui-form-drawer .action-button button+button{margin-right:16px}.ui-form-drawer .action-button::after{content:'';clear:both}",
8739
8809
  map: undefined,
8740
8810
  media: undefined
@@ -8746,7 +8816,7 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
8746
8816
  var __vue_scope_id__$d = undefined;
8747
8817
  /* module identifier */
8748
8818
 
8749
- var __vue_module_identifier__$d = "data-v-35f09272";
8819
+ var __vue_module_identifier__$d = "data-v-0dd33ec0";
8750
8820
  /* functional template */
8751
8821
 
8752
8822
  var __vue_is_functional_template__$d = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v2coding/ui",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "",
5
5
 
6
6
  "main": "dist/v2coding-ui.ssr.js",