@zscreate/form-component 1.1.197 → 1.1.198
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.
- package/dist/form-component.umd.js +20 -5
- package/package.json +1 -1
|
@@ -107530,7 +107530,7 @@ function getQueryParam(name, url = window.location.href) {
|
|
|
107530
107530
|
|
|
107531
107531
|
/***/ }),
|
|
107532
107532
|
|
|
107533
|
-
/***/
|
|
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) {
|
|
@@ -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*/
|
|
@@ -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.
|
|
128870
|
+
module.exports = {"i8":"1.1.198"};
|
|
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
|
-
|
|
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([{
|