@zscreate/form-component 1.1.197 → 1.1.199

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.
@@ -107530,7 +107530,7 @@ function getQueryParam(name, url = window.location.href) {
107530
107530
 
107531
107531
  /***/ }),
107532
107532
 
107533
- /***/ 3454:
107533
+ /***/ 2206:
107534
107534
  /***/ (function(module, exports) {
107535
107535
 
107536
107536
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {
@@ -107608,7 +107608,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
107608
107608
  /*采用配置项替换默认值,作用类似jquery.extend*/
107609
107609
  if (arguments.length === 1 && typeof arguments[0] === "object") {
107610
107610
  var src = arguments[0] || {};
107611
- for (key in src) {
107611
+ for (var key in src) {
107612
107612
  if (src[key] && defaultSettings[key] && src[key] === defaultSettings[key]) continue;
107613
107613
  /*veronic: resolution of watermark_angle=0 not in force*/else if (src[key] || src[key] === 0) defaultSettings[key] = src[key];
107614
107614
  }
@@ -107654,7 +107654,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
107654
107654
  otdiv = document.createElement('div');
107655
107655
  /*创建shadow dom*/
107656
107656
  otdiv.id = defaultSettings.watermark_id;
107657
- otdiv.setAttribute('style', 'pointer-events: none !important; display: block !important');
107657
+ otdiv.setAttribute('style', 'pointer-events: none !important; display: block !important; position: fixed ; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999999;');
107658
107658
  /*判断浏览器是否支持attachShadow方法*/
107659
107659
  if (typeof otdiv.attachShadow === 'function') {
107660
107660
  /* createShadowRoot Deprecated. Not for use in new websites. Use attachShadow*/
@@ -107752,7 +107752,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
107752
107752
  /*采用配置项替换默认值,作用类似jquery.extend*/
107753
107753
  if (arguments.length === 1 && typeof arguments[0] === "object") {
107754
107754
  var src = arguments[0] || {};
107755
- for (key in src) {
107755
+ for (var key in src) {
107756
107756
  if (src[key] && defaultSettings[key] && src[key] === defaultSettings[key]) continue;
107757
107757
  /*veronic: resolution of watermark_angle=0 not in force*/else if (src[key] || src[key] === 0) defaultSettings[key] = src[key];
107758
107758
  }
@@ -128867,7 +128867,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
128867
128867
  /***/ ((module) => {
128868
128868
 
128869
128869
  "use strict";
128870
- module.exports = {"i8":"1.1.197"};
128870
+ module.exports = {"i8":"1.1.199"};
128871
128871
 
128872
128872
  /***/ })
128873
128873
 
@@ -137885,6 +137885,21 @@ function useSsoStatus(options) {
137885
137885
  }
137886
137886
  };
137887
137887
  }
137888
+ ;// CONCATENATED MODULE: ./src/utils/watermark/index.js
137889
+ const watermark = __webpack_require__(2206);
137890
+ /* harmony default export */ const utils_watermark = ({
137891
+ install(Vue) {
137892
+ Vue.prototype.$watermark_v1 = function (userInfo, config = {}) {
137893
+ if (!userInfo) return;
137894
+ const func = config['watermark_func'];
137895
+ watermark.init({
137896
+ watermark_txt: func ? func(userInfo) : `${userInfo ? userInfo.realname || userInfo.realName : ''}\n${new Date().toLocaleString()}`,
137897
+ watermark_alpha: config['watermark_alpha'] || 0.005,
137898
+ ...config
137899
+ });
137900
+ };
137901
+ }
137902
+ });
137888
137903
  ;// CONCATENATED MODULE: ./src/main.js
137889
137904
 
137890
137905
 
@@ -137902,17 +137917,17 @@ console.log("version:", version);
137902
137917
 
137903
137918
 
137904
137919
 
137905
- const watermark = __webpack_require__(3454);
137920
+
137906
137921
  const main_components = [layoutForPaper, Container, layoutItem["default"], FilePreview/* default */.Z];
137907
137922
  const install = function (Vue, opts = {}, router = undefined) {
137908
137923
  __webpack_require__.g.Vue = Vue;
137909
137924
  opts.common_encrypt = encryption;
137910
137925
  Vue.prototype = Object.assign(Vue.prototype, opts);
137911
137926
  (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype = Object.assign((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype, opts);
137912
- Vue.prototype.$watermark = watermark;
137913
137927
  main_components.forEach(component => {
137914
137928
  Vue.component(component.name, component);
137915
137929
  });
137930
+ Vue.use(utils_watermark);
137916
137931
  Vue.component('virtual-list', components_VirtualList);
137917
137932
  if (router) {
137918
137933
  router.addRoutes([{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.197",
3
+ "version": "1.1.199",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",