cnhis-design-vue 3.1.12-beta.1 → 3.1.12-beta.4
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/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +33 -0
- package/es/node_modules/date-fns/esm/differenceInYears/index.js +43 -0
- package/es/packages/big-table/index.d.ts +1 -0
- package/es/packages/big-table/src/BigTable.vue.d.ts +2 -4
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -6
- package/es/packages/big-table/src/bigTableEmits.js +2 -1
- package/es/packages/form-render/index.d.ts +60 -51
- package/es/packages/form-render/src/FormRender.vue.d.ts +61 -52
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/packages/form-render/src/components/renderer/cascader.js +4 -3
- package/es/packages/form-render/src/components/renderer/radio.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/radio.js +5 -4
- package/es/packages/form-render/src/constants/index.d.ts +9 -0
- package/es/packages/form-render/src/constants/index.js +11 -1
- package/es/packages/form-render/src/hooks/useAnchor.js +2 -2
- package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +7 -2
- package/es/packages/form-render/src/hooks/useBusinessBinding.js +40 -13
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +17 -6
- package/es/packages/form-render/src/hooks/useFormContext.js +3 -2
- package/es/packages/form-render/src/hooks/useFormValidator.js +1 -7
- package/es/packages/form-render/src/hooks/useInitialData.js +1 -1
- package/es/packages/form-render/src/hooks/usePresetScope.d.ts +6 -0
- package/es/packages/form-render/src/hooks/usePresetScope.js +21 -0
- package/es/packages/form-render/src/hooks/useTypeNormalize.js +4 -1
- package/es/packages/form-render/src/types/fieldItem.d.ts +2 -2
- package/es/packages/form-render/src/types/index.d.ts +9 -1
- package/es/packages/form-render/src/utils/index.d.ts +3 -1
- package/es/packages/form-render/src/utils/index.js +16 -4
- package/es/packages/index.css +11 -0
- package/es/packages/scale-view/index.d.ts +4 -0
- package/es/packages/scale-view/src/ScaleView.vue.d.ts +4 -0
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +11 -10
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue.d.ts +4 -0
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/packages/scale-view/src/components/formitem/r-input.js +0 -2
- package/es/packages/scale-view/src/components/formitem/r-select.js +56 -2
- package/es/packages/scale-view/src/hooks/scaleview-computed.js +16 -9
- package/es/packages/scale-view/src/hooks/scaleview-init.js +8 -2
- package/es/packages/scale-view/src/utils/judge-types.js +2 -1
- package/es/packages/scale-view/style/index.css +11 -0
- package/package.json +3 -3
|
@@ -10,7 +10,12 @@ import { useDialog } from 'naive-ui';
|
|
|
10
10
|
const ScaleViewInit = (props, state, emit, config) => {
|
|
11
11
|
const dialog = useDialog();
|
|
12
12
|
const { setNoData } = useNoData();
|
|
13
|
-
const {
|
|
13
|
+
const {
|
|
14
|
+
hasEvaluateResultSetting,
|
|
15
|
+
hasparamsEvaluate,
|
|
16
|
+
hasDefault,
|
|
17
|
+
formKey
|
|
18
|
+
} = ScaleViewComputed(props, state, config);
|
|
14
19
|
const { formatRules } = ScaleViewValidate(props, state, config);
|
|
15
20
|
const { nextLogicEvent } = useEvent(props, state);
|
|
16
21
|
const setEvaluateStartTime = (evaluateResultSetting) => {
|
|
@@ -189,6 +194,7 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
189
194
|
item.relationLogic = relationLogicObj;
|
|
190
195
|
};
|
|
191
196
|
const handleFrontAddress = (list) => {
|
|
197
|
+
var _a, _b;
|
|
192
198
|
if (!list || !list.length)
|
|
193
199
|
return;
|
|
194
200
|
let matchItem = list.find((item) => item.type === "FRONT_ADDRESS");
|
|
@@ -201,7 +207,7 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
201
207
|
if (!setting || !Object.keys(setting).length)
|
|
202
208
|
return;
|
|
203
209
|
let query = handleQueryParams();
|
|
204
|
-
if ((query == null ? void 0 : query.redirect) == 1)
|
|
210
|
+
if ((query == null ? void 0 : query.redirect) == 1 || ((_a = props.params) == null ? void 0 : _a.redirect) == 1 || query.isEdit == 3 || ((_b = props.params) == null ? void 0 : _b.isEdit) == 3)
|
|
205
211
|
return;
|
|
206
212
|
let { frontAddress } = setting;
|
|
207
213
|
if (frontAddress) {
|
|
@@ -12,9 +12,10 @@ const isEvaluation = (e) => {
|
|
|
12
12
|
};
|
|
13
13
|
const handleQueryParams = () => {
|
|
14
14
|
let params = {};
|
|
15
|
-
let hash = window.location.
|
|
15
|
+
let hash = window.location.search.split("?")[1];
|
|
16
16
|
if (!hash)
|
|
17
17
|
return {};
|
|
18
|
+
hash = hash.replace(/\+/g, "%20");
|
|
18
19
|
for (let [key, value] of new URLSearchParams(hash).entries()) {
|
|
19
20
|
params[key] = decodeURIComponent(value);
|
|
20
21
|
}
|
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
cursor: pointer;
|
|
167
167
|
}
|
|
168
168
|
.c-scale .linebar-div {
|
|
169
|
+
width: 100%;
|
|
169
170
|
text-align: center;
|
|
170
171
|
margin-top: 24px;
|
|
171
172
|
}
|
|
@@ -184,6 +185,12 @@
|
|
|
184
185
|
.main {
|
|
185
186
|
box-sizing: border-box;
|
|
186
187
|
}
|
|
188
|
+
.main .n-form-item.n-form-item--top-labelled .n-form-item-label {
|
|
189
|
+
display: block;
|
|
190
|
+
}
|
|
191
|
+
.main .n-form-item .n-form-item-blank {
|
|
192
|
+
display: block;
|
|
193
|
+
}
|
|
187
194
|
.main .scale-label-required {
|
|
188
195
|
font-weight: 700;
|
|
189
196
|
}
|
|
@@ -191,6 +198,9 @@
|
|
|
191
198
|
color: #e02828;
|
|
192
199
|
font-weight: 700;
|
|
193
200
|
}
|
|
201
|
+
.main .score-i {
|
|
202
|
+
word-break: keep-all;
|
|
203
|
+
}
|
|
194
204
|
.main .evalute-label {
|
|
195
205
|
display: inline-block;
|
|
196
206
|
height: 20px;
|
|
@@ -610,6 +620,7 @@
|
|
|
610
620
|
.c-scale-collection.prompt-message .prompt-message-content {
|
|
611
621
|
line-height: 16px;
|
|
612
622
|
font-size: 14px;
|
|
623
|
+
word-break: break-all;
|
|
613
624
|
}
|
|
614
625
|
.c-time-range {
|
|
615
626
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.1.12-beta.
|
|
4
|
+
"version": "3.1.12-beta.4",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"module": "es/packages/index.js",
|
|
7
7
|
"main": "es/packages/index.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"vue": "^3.2.0",
|
|
60
60
|
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
61
61
|
"vuedraggable": "4.1.0",
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
"vxe-table": "^4.2.5",
|
|
63
|
+
"xe-utils": "^3.5.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@babel/cli": "^7.17.10",
|