iov-pro-components 0.0.105 → 0.0.107

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.
@@ -1869,7 +1869,7 @@ var componentConfig = {};
1869
1869
  */
1870
1870
  var init$1 = function init(vue, config) {
1871
1871
  Vue = vue;
1872
- componentConfig = config;
1872
+ componentConfig = config || {};
1873
1873
  };
1874
1874
 
1875
1875
  /**
@@ -2070,6 +2070,16 @@ var getFilteredDataType = function getFilteredDataType(tagName, propKey) {
2070
2070
  }
2071
2071
  };
2072
2072
 
2073
+ function _typeof$1(o) {
2074
+ "@babel/helpers - typeof";
2075
+
2076
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2077
+ return typeof o;
2078
+ } : function (o) {
2079
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2080
+ }, _typeof$1(o);
2081
+ }
2082
+
2073
2083
  var now_1;
2074
2084
  var hasRequiredNow;
2075
2085
 
@@ -2543,8 +2553,20 @@ var script$A = {
2543
2553
  },
2544
2554
  // 设置需要监听其滚动事件的元素
2545
2555
  target: {
2546
- type: [Function, HTMLElement],
2547
- default: null
2556
+ default: null,
2557
+ // 自定义验证函数
2558
+ validator: function validator(value) {
2559
+ // 1. 允许为 null,表示未设置
2560
+ if (value === null) return true;
2561
+ // 2. 允许传入一个函数
2562
+ if (typeof value === 'function') return true;
2563
+ // 3. 检查是否为DOM元素:确保在客户端环境下,并且对象具有DOM元素的基本特征
2564
+ if (typeof window !== 'undefined' && value && _typeof$1(value) === 'object' && value.nodeType === 1) {
2565
+ return true;
2566
+ }
2567
+ // 如果以上都不是,则校验不通过
2568
+ return false;
2569
+ }
2548
2570
  }
2549
2571
  },
2550
2572
  data: function data() {
@@ -2862,16 +2884,6 @@ __vue_component__$z.install = function (Vue) {
2862
2884
  Vue.component(__vue_component__$z.name, __vue_component__$z);
2863
2885
  };
2864
2886
 
2865
- function _typeof$1(o) {
2866
- "@babel/helpers - typeof";
2867
-
2868
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2869
- return typeof o;
2870
- } : function (o) {
2871
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2872
- }, _typeof$1(o);
2873
- }
2874
-
2875
2887
  function toPrimitive(t, r) {
2876
2888
  if ("object" != _typeof$1(t) || !t) return t;
2877
2889
  var e = t[Symbol.toPrimitive];
@@ -22227,9 +22239,9 @@ var script$4 = {
22227
22239
  // 获取提交按钮模块配置
22228
22240
  var config = getComponentConfig('submit-module');
22229
22241
  // 左侧距离
22230
- var left = [null, undefined, ''].includes(this.left) ? config.left || 252 : this.left;
22242
+ var left = [null, undefined, ''].includes(this.left) ? (config === null || config === void 0 ? void 0 : config.left) || 252 : this.left;
22231
22243
  // 距离右侧距离
22232
- var right = [null, undefined, ''].includes(this.right) ? config.right || 16 : this.right;
22244
+ var right = [null, undefined, ''].includes(this.right) ? (config === null || config === void 0 ? void 0 : config.right) || 16 : this.right;
22233
22245
  // 返回配置
22234
22246
  return {
22235
22247
  left: left + 'px',
@@ -23670,7 +23682,7 @@ var install = function install(Vue, componentConfig) {
23670
23682
  };
23671
23683
  var index = {
23672
23684
  install: install,
23673
- version: '0.0.105',
23685
+ version: '0.0.107',
23674
23686
  BackTop: __vue_component__$A,
23675
23687
  ColumnTooltip: __vue_component__$z,
23676
23688
  Description: __vue_component__$w,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iov-pro-components",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "IOV Pro Components for Vue.js",
5
5
  "main": "lib/iov-pro-components.min.js",
6
6
  "files": [