@zscreate/form-component 1.1.226 → 1.1.228
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 +37 -3
- package/package.json +1 -1
|
@@ -138865,7 +138865,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
138865
138865
|
/***/ ((module) => {
|
|
138866
138866
|
|
|
138867
138867
|
"use strict";
|
|
138868
|
-
module.exports = {"i8":"1.1.
|
|
138868
|
+
module.exports = {"i8":"1.1.228"};
|
|
138869
138869
|
|
|
138870
138870
|
/***/ })
|
|
138871
138871
|
|
|
@@ -139123,7 +139123,7 @@ const basicComponents = [{
|
|
|
139123
139123
|
dataType: 'string',
|
|
139124
139124
|
pattern: '',
|
|
139125
139125
|
enableSpecialCharsRules: true,
|
|
139126
|
-
specialCharsRules: '/^(?!.*[#$|<]).*$/',
|
|
139126
|
+
specialCharsRules: '/^(?!.*[#$|<]).*$/s',
|
|
139127
139127
|
specialCharsMessage: '您输入的表单项中含有非法字符,请修正后提交!',
|
|
139128
139128
|
labelWidth: '',
|
|
139129
139129
|
placeholder: '请输入单行文本',
|
|
@@ -139151,7 +139151,7 @@ const basicComponents = [{
|
|
|
139151
139151
|
disabled: false,
|
|
139152
139152
|
pattern: '',
|
|
139153
139153
|
enableSpecialCharsRules: true,
|
|
139154
|
-
specialCharsRules: '/^(?!.*[#$|<]).*$/',
|
|
139154
|
+
specialCharsRules: '/^(?!.*[#$|<]).*$/s',
|
|
139155
139155
|
specialCharsMessage: '您输入的表单项中含有非法字符,请修正后提交!',
|
|
139156
139156
|
placeholder: '请输入多行文本',
|
|
139157
139157
|
confiOptions: [{
|
|
@@ -148049,6 +148049,38 @@ const watermark = __webpack_require__(2206);
|
|
|
148049
148049
|
};
|
|
148050
148050
|
}
|
|
148051
148051
|
});
|
|
148052
|
+
;// CONCATENATED MODULE: ./src/utils/checkSsoStatusV2.js
|
|
148053
|
+
|
|
148054
|
+
function useSsoStatusV2(options) {
|
|
148055
|
+
const {
|
|
148056
|
+
casUrl,
|
|
148057
|
+
casCheckUrl,
|
|
148058
|
+
refreshTicket,
|
|
148059
|
+
logout
|
|
148060
|
+
} = options;
|
|
148061
|
+
return {
|
|
148062
|
+
check() {
|
|
148063
|
+
// 创建iframe元素
|
|
148064
|
+
const iframe = document.createElement('iframe');
|
|
148065
|
+
iframe.src = casUrl + '/login?service=' + casCheckUrl;
|
|
148066
|
+
iframe.width = '0px';
|
|
148067
|
+
iframe.height = '0px';
|
|
148068
|
+
iframe.onload = () => {
|
|
148069
|
+
try {
|
|
148070
|
+
const document = iframe.contentWindow.document;
|
|
148071
|
+
console.log("iframe onload", iframe.contentWindow, iframe);
|
|
148072
|
+
const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', iframe.contentWindow.location.href);
|
|
148073
|
+
return refreshTicket(ticket); // 重新获取用户信息
|
|
148074
|
+
} catch (e) {
|
|
148075
|
+
return logout(); // 退出登录
|
|
148076
|
+
} finally {
|
|
148077
|
+
document.body.removeChild(iframe);
|
|
148078
|
+
}
|
|
148079
|
+
};
|
|
148080
|
+
document.body.appendChild(iframe);
|
|
148081
|
+
}
|
|
148082
|
+
};
|
|
148083
|
+
}
|
|
148052
148084
|
;// CONCATENATED MODULE: ./src/main.js
|
|
148053
148085
|
|
|
148054
148086
|
|
|
@@ -148067,6 +148099,7 @@ console.log("version:", version);
|
|
|
148067
148099
|
|
|
148068
148100
|
|
|
148069
148101
|
|
|
148102
|
+
|
|
148070
148103
|
const main_components = [layoutForPaper, Container, layoutItem["default"], FilePreview/* default */.Z];
|
|
148071
148104
|
const install = function (Vue, opts = {}, router = undefined) {
|
|
148072
148105
|
__webpack_require__.g.Vue = Vue;
|
|
@@ -148095,6 +148128,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
148095
148128
|
...components/* default */.Z.componentList,
|
|
148096
148129
|
MessageBox: components_MessageBox,
|
|
148097
148130
|
useSsoStatus: useSsoStatus,
|
|
148131
|
+
useSsoStatusV2: useSsoStatusV2,
|
|
148098
148132
|
encrypt: encryption
|
|
148099
148133
|
});
|
|
148100
148134
|
;// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@5.0.8@@vue/cli-service/lib/commands/build/entry-lib.js
|