cnhis-design-vue 3.1.40-beta.0 → 3.1.40-beta.10
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/README.md +12 -48
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.js +6 -1
- package/es/components/form-config/index.d.ts +66 -148
- package/es/components/form-config/src/FormConfig.vue.d.ts +66 -148
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +33 -74
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -74
- package/es/components/form-render/index.d.ts +33 -74
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +33 -74
- package/es/components/form-render/src/FormRender.vue.js +37 -20
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +33 -74
- package/es/components/form-render/src/components/renderer/searchCascade.js +2 -0
- package/es/components/form-render/src/components/renderer/select.js +5 -2
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +6 -3
- package/es/components/form-render/src/hooks/useAnchor.js +26 -26
- package/es/components/form-render/src/hooks/useAutoHidden.d.ts +4 -0
- package/es/components/form-render/src/hooks/useAutoHidden.js +43 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +7 -10
- package/es/components/form-render/src/hooks/useBusinessBinding.js +38 -36
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +2 -6
- package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -2
- package/es/components/form-render/src/hooks/useFormContext.js +2 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +25 -21
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/form-render/test/basic-config.spec.d.ts +1 -0
- package/es/components/form-render/test/renderer.spec.d.ts +1 -0
- package/es/components/iho-table/index.d.ts +121 -121
- package/es/components/iho-table/src/IhoTable.vue.d.ts +121 -121
- package/es/components/iho-table/src/IhoTable.vue.js +2 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +59 -59
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +7 -1
- package/es/components/info-header/index.d.ts +18 -3
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +18 -3
- package/es/components/info-header/src/InfoHeader.vue.js +40 -19
- package/es/components/keyboard/index.d.ts +20 -2
- package/es/components/keyboard/src/Keyboard.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +19 -2
- package/es/components/keyboard/src/components/InputNumber.vue.js +15 -5
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/NumberPanel.vue.js +14 -10
- package/es/components/recommend-search/index.d.ts +14 -14
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +14 -14
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +5 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -2
- package/es/components/scale-view/src/ScaleView.vue.js +4 -3
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +76 -31
- package/es/components/scale-view/src/hooks/use-evaluate.js +13 -13
- package/es/components/shortcut-provider/index.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +8 -2
- package/es/components/shortcut-setter/index.d.ts +33 -74
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -74
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +8933 -0
- package/es/components/table-filter/index.js +21 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3841 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +2272 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +3198 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1315 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +71 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.js +195 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +1119 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +594 -0
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +119 -0
- package/es/components/table-filter/src/components/age-com/index.vue.js +185 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +199 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +86 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +2 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +30 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +90 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +253 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +112 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +114 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +4 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +14 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +20 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +87 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +59 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +147 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +278 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +304 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +113 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +153 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +266 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +310 -0
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +248 -0
- package/es/components/table-filter/src/components/range-age/index.vue.js +137 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +64 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +34 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +45 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -0
- package/es/components/table-filter/src/components/render-widget/components/index.js +2 -0
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +25 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +70 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +32 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.js +107 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +199 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +152 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +789 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1520 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +18 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +171 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +1217 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +199 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +1624 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +241 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.d.ts +292 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +526 -0
- package/es/components/table-filter/src/const/dataOptions.d.ts +36 -0
- package/es/components/table-filter/src/const/dataOptions.js +107 -0
- package/es/components/table-filter/src/const/index.d.ts +5 -0
- package/es/components/table-filter/src/const/index.js +5 -0
- package/es/components/table-filter/src/directive/flexibleResize.d.ts +28 -0
- package/es/components/table-filter/src/directive/flexibleResize.js +157 -0
- package/es/components/table-filter/src/directive/preventReClick.d.ts +4 -0
- package/es/components/table-filter/src/directive/preventReClick.js +14 -0
- package/es/components/table-filter/src/directive/resize.d.ts +4 -0
- package/es/components/table-filter/src/directive/resize.js +12 -0
- package/es/components/table-filter/src/hooks/export.d.ts +1 -0
- package/es/components/table-filter/src/hooks/export.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +28 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +64 -0
- package/es/components/table-filter/src/hooks/useMixins.d.ts +60 -0
- package/es/components/table-filter/src/hooks/useMixins.js +532 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +15 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.js +94 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +8 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +131 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +12 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.js +91 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +1942 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +2038 -0
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +14 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +65 -0
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +1 -0
- package/es/components/table-filter/src/tool/getWidgetType.js +27 -0
- package/es/components/table-filter/src/tool/options.d.ts +18 -0
- package/es/components/table-filter/src/tool/options.js +200 -0
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +16 -0
- package/es/components/table-filter/src/tool/resizeSensor.js +123 -0
- package/es/components/table-filter/src/tool/time-domain.d.ts +39 -0
- package/es/components/table-filter/src/tool/time-domain.js +100 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +92 -0
- package/es/components/table-filter/src/tool/transformData.js +169 -0
- package/es/components/table-filter/src/tool/utils.d.ts +4 -0
- package/es/components/table-filter/src/tool/utils.js +29 -0
- package/es/components/table-filter/src/types/enums.d.ts +65 -0
- package/es/components/table-filter/src/types/enums.js +67 -0
- package/es/components/table-filter/src/types/index.d.ts +483 -0
- package/es/components/table-filter/src/types/index.js +1 -0
- package/es/components/table-filter/src/types/tool.d.ts +7 -0
- package/es/components/table-filter/src/types/tool.js +1 -0
- package/es/components/table-filter/style/index.css +1 -0
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/utils/utilExpand.js +66 -0
- package/package.json +3 -3
|
@@ -33,7 +33,7 @@ const _hoisted_5 = {
|
|
|
33
33
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
__name: "ScaleView",
|
|
35
35
|
props: ScaleViewProps,
|
|
36
|
-
emits: ["onCloseSetting", "submitNoRequest", "onSubmit"],
|
|
36
|
+
emits: ["onCloseSetting", "submitNoRequest", "onSubmit", "startWriteScale"],
|
|
37
37
|
setup(__props, { expose, emit }) {
|
|
38
38
|
const props = __props;
|
|
39
39
|
const { ScaleViewState } = getScaleViewState();
|
|
@@ -61,6 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
propsConfig,
|
|
62
62
|
evaluatePageProps,
|
|
63
63
|
evaluateCountdownProps,
|
|
64
|
+
skipCover,
|
|
64
65
|
showEvent,
|
|
65
66
|
formKey
|
|
66
67
|
} = ScaleViewComputed(props, state, { query });
|
|
@@ -73,7 +74,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
};
|
|
74
75
|
handleQuery();
|
|
75
76
|
const init = (configData) => {
|
|
76
|
-
console.log("ininin");
|
|
77
77
|
try {
|
|
78
78
|
resetNodata();
|
|
79
79
|
initForm(configData);
|
|
@@ -117,6 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
const writeGuage = (showCountdown) => {
|
|
118
118
|
state.showEvaluateSettingWrap = false;
|
|
119
119
|
state.showEvaluateCountdown = !!showCountdown;
|
|
120
|
+
emit("startWriteScale");
|
|
120
121
|
};
|
|
121
122
|
const closeEvaluateCountdown = () => {
|
|
122
123
|
console.log("----closeEvaluateCountdown");
|
|
@@ -321,7 +322,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
321
322
|
noDataImg: unref(noDataState).noDataImg,
|
|
322
323
|
noDataTip: unref(noDataState).noDataTip
|
|
323
324
|
}, null, 8, ["noDataImg", "noDataTip"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
324
|
-
unref(showEvaluateEntry) ? (openBlock(), createBlock(EvaluatePage, mergeProps({ key: 0 }, unref(evaluatePageProps), { onWriteGuage: writeGuage }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
325
|
+
unref(showEvaluateEntry) && !unref(skipCover) ? (openBlock(), createBlock(EvaluatePage, mergeProps({ key: 0 }, unref(evaluatePageProps), { onWriteGuage: writeGuage }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
325
326
|
unref(showEvaluateCoundownPage) ? (openBlock(), createBlock(EvaluateCountdown, mergeProps({
|
|
326
327
|
key: 0,
|
|
327
328
|
ref_key: "countdownDom",
|
|
@@ -73,8 +73,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
modalWidth: string;
|
|
74
74
|
modalHeight: string;
|
|
75
75
|
title: string | Function;
|
|
76
|
-
changeSize: boolean;
|
|
77
76
|
handleOk: Function;
|
|
77
|
+
changeSize: boolean;
|
|
78
78
|
cancel: Function;
|
|
79
79
|
}>;
|
|
80
80
|
export default _default;
|
|
@@ -5,7 +5,8 @@ import moment from 'moment';
|
|
|
5
5
|
import { componentMapStr } from './use-component.js';
|
|
6
6
|
|
|
7
7
|
const ScaleViewComputed = (props, state, config) => {
|
|
8
|
-
|
|
8
|
+
const { query } = config;
|
|
9
|
+
const cur = new Date().getTime();
|
|
9
10
|
const queryformBoldOpen = computed(() => {
|
|
10
11
|
return (query == null ? void 0 : query.formBoldOpen) == 1;
|
|
11
12
|
});
|
|
@@ -15,8 +16,43 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
15
16
|
return false;
|
|
16
17
|
return (query == null ? void 0 : query.evatip) == 1 || ((_a = props.params) == null ? void 0 : _a.evatip) == 1;
|
|
17
18
|
});
|
|
19
|
+
const evaluateResultSetting = computed(() => {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
|
|
22
|
+
});
|
|
23
|
+
const getEvaluateTime = computed(() => {
|
|
24
|
+
const { evaluateTime } = evaluateResultSetting.value;
|
|
25
|
+
return +evaluateTime;
|
|
26
|
+
});
|
|
27
|
+
const evaluateStartTime = computed(() => {
|
|
28
|
+
var _a;
|
|
29
|
+
return (_a = evaluateResultSetting.value) == null ? void 0 : _a.evaluateStartTime;
|
|
30
|
+
});
|
|
31
|
+
const getEvaluateStartTime = computed(() => {
|
|
32
|
+
const tempSt = new Date(evaluateStartTime.value);
|
|
33
|
+
const isValidDate = XEUtils.isValidDate(tempSt);
|
|
34
|
+
if (!isValidDate)
|
|
35
|
+
return false;
|
|
36
|
+
return tempSt;
|
|
37
|
+
});
|
|
38
|
+
const evaBanEnd = computed(() => {
|
|
39
|
+
if (!evaluateStartTime.value || !getEvaluateTime.value)
|
|
40
|
+
return false;
|
|
41
|
+
const startTime = getEvaluateStartTime.value;
|
|
42
|
+
if (!startTime)
|
|
43
|
+
return false;
|
|
44
|
+
const endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
|
|
45
|
+
return cur >= endTime;
|
|
46
|
+
});
|
|
47
|
+
const evaBanStart = computed(() => {
|
|
48
|
+
const startTime = getEvaluateStartTime.value;
|
|
49
|
+
if (!startTime)
|
|
50
|
+
return false;
|
|
51
|
+
const sT = moment(startTime).valueOf();
|
|
52
|
+
return cur < sT;
|
|
53
|
+
});
|
|
18
54
|
const isFormBoldOpen = computed(() => (item) => {
|
|
19
|
-
|
|
55
|
+
const res = item.required;
|
|
20
56
|
if (!props.styleSetting || !Object.keys(props.styleSetting).length || !("formBoldOpen" in props.styleSetting)) {
|
|
21
57
|
return res && queryformBoldOpen.value;
|
|
22
58
|
}
|
|
@@ -53,15 +89,15 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
53
89
|
});
|
|
54
90
|
const handleShowQuestionNumber = computed(() => (item) => {
|
|
55
91
|
var _a;
|
|
56
|
-
|
|
57
|
-
|
|
92
|
+
const { type } = item || {};
|
|
93
|
+
const tempTile = ((_a = state.config) == null ? void 0 : _a.autoQuestionNumber) === false ? item.showTitle : `${item.softcode}\u3001${item.showTitle}`;
|
|
58
94
|
if (!isEvaluation(type))
|
|
59
95
|
return tempTile;
|
|
60
|
-
|
|
96
|
+
const score = handleEvaluationScore(item);
|
|
61
97
|
return `${tempTile} <span style="color:#2d7aff;" class="score-i">${score}</span>`;
|
|
62
98
|
});
|
|
63
99
|
const hasScore = computed(() => {
|
|
64
|
-
|
|
100
|
+
const { config: config2 } = state;
|
|
65
101
|
if (!config2 || !Object.keys(config2).length)
|
|
66
102
|
return false;
|
|
67
103
|
if ("totalScore" in config2)
|
|
@@ -70,9 +106,17 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
70
106
|
});
|
|
71
107
|
const isPreviewScale = computed(() => {
|
|
72
108
|
var _a;
|
|
73
|
-
|
|
109
|
+
const guage_id = (_a = props.ids) == null ? void 0 : _a.guage_id;
|
|
74
110
|
return guage_id && props.noBtn;
|
|
75
111
|
});
|
|
112
|
+
const skipCover = computed(() => {
|
|
113
|
+
const params = props.params || {};
|
|
114
|
+
if (!("skipCover" in params)) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
const res = params.skipCover && !evaBanStart.value && !evaBanEnd.value;
|
|
118
|
+
return res;
|
|
119
|
+
});
|
|
76
120
|
const showEvaluateEntry = computed(() => {
|
|
77
121
|
return !isPreviewScale.value && state.showEvaluatePage && state.showEvaluateSettingWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
|
|
78
122
|
});
|
|
@@ -80,8 +124,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
80
124
|
return !isPreviewScale.value && !showEvaluateEntry.value && state.showEvaluateCountdownWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
|
|
81
125
|
});
|
|
82
126
|
const hasEvaluateResultSetting = computed(() => {
|
|
83
|
-
|
|
84
|
-
|
|
127
|
+
const { evaluateResultSetting: evaluateResultSetting2 = {} } = state.config;
|
|
128
|
+
const valueArr = Object.values(evaluateResultSetting2).filter((item) => {
|
|
85
129
|
if (item)
|
|
86
130
|
return true;
|
|
87
131
|
}) || [];
|
|
@@ -91,11 +135,11 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
91
135
|
return state.paramsEvaluate && Object.keys(state.paramsEvaluate).length;
|
|
92
136
|
});
|
|
93
137
|
const hasDefault = computed(() => {
|
|
94
|
-
|
|
138
|
+
const hash = window.location.search || window.location.hash;
|
|
95
139
|
if (!hash)
|
|
96
140
|
return;
|
|
97
|
-
|
|
98
|
-
|
|
141
|
+
const defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
|
|
142
|
+
const hasDefaultItem = defaultVariable.find((item) => hash.includes(item));
|
|
99
143
|
return state.paramsEvaluate || hasDefaultItem;
|
|
100
144
|
});
|
|
101
145
|
const showSaveBtn = computed(() => {
|
|
@@ -111,7 +155,7 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
111
155
|
return !!props.hideBtn || !!props.isLock || state.isFinished;
|
|
112
156
|
});
|
|
113
157
|
const showEvaluateLabel = computed(() => (item) => {
|
|
114
|
-
|
|
158
|
+
const obj = {
|
|
115
159
|
EVALUATE_RADIO_BLOCK: "\u5355\u9009\u9898",
|
|
116
160
|
EVALUATE_CHECKBOX_BLOCK: "\u591A\u9009\u9898"
|
|
117
161
|
};
|
|
@@ -119,17 +163,17 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
119
163
|
});
|
|
120
164
|
const showAnswerParse = computed(() => (item) => {
|
|
121
165
|
var _a;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (!
|
|
166
|
+
const { evaluateAnswer, checkAnswerMode, evaluateStartTime: evaluateStartTime2, evaluateTime } = ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
|
|
167
|
+
const arr = ["EVALUATE_RADIO_BLOCK", "EVALUATE_CHECKBOX_BLOCK", "EVALUATE_SELECT", "EVALUATE_INPUT"];
|
|
168
|
+
const maxScore = (item == null ? void 0 : item.scoreConfigs) || 0;
|
|
169
|
+
const isShow = evaluateAnswer && state.isFinished && arr.includes(item.type) && maxScore;
|
|
170
|
+
if (!evaluateStartTime2 || !evaluateTime || checkAnswerMode && checkAnswerMode == 1) {
|
|
127
171
|
return isShow;
|
|
128
172
|
}
|
|
129
|
-
if (!XEUtils.isValidDate(new Date(
|
|
173
|
+
if (!XEUtils.isValidDate(new Date(evaluateStartTime2)))
|
|
130
174
|
return isShow;
|
|
131
|
-
|
|
132
|
-
|
|
175
|
+
const endTime = moment(evaluateStartTime2).add(evaluateTime, "minutes");
|
|
176
|
+
const isRang = endTime.diff(moment(), "seconds", true);
|
|
133
177
|
return isShow && isRang <= 0;
|
|
134
178
|
});
|
|
135
179
|
const tipMsg = computed(() => {
|
|
@@ -184,8 +228,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
184
228
|
const propsConfig = computed(() => (item, index) => {
|
|
185
229
|
var _a;
|
|
186
230
|
const propType = componentMapStr[item.type];
|
|
187
|
-
|
|
188
|
-
|
|
231
|
+
const useProps = comProsMap[propType] || {};
|
|
232
|
+
const propsObj = {
|
|
189
233
|
form: state.form,
|
|
190
234
|
item,
|
|
191
235
|
index,
|
|
@@ -232,8 +276,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
232
276
|
const { relation_logic_is, condition, relation_logic } = relationLogicObj;
|
|
233
277
|
if (relation_logic_is) {
|
|
234
278
|
const results = condition.map((c) => {
|
|
235
|
-
|
|
236
|
-
|
|
279
|
+
const mItem = formArray.filter((f) => f.seq == c.subject_seq)[0];
|
|
280
|
+
const key = formKey(mItem);
|
|
237
281
|
if (XEUtils.isArray(form[key])) {
|
|
238
282
|
return form[key].some((v) => c.value.includes(v));
|
|
239
283
|
} else {
|
|
@@ -254,25 +298,25 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
254
298
|
return item.databaseTitle || item.title;
|
|
255
299
|
};
|
|
256
300
|
const handleEvaluationScore = (ele) => {
|
|
257
|
-
|
|
301
|
+
const { minScore = 0, maxScore = 0, scoreType } = ele.scoreConfigs || {};
|
|
258
302
|
return `(${maxScore}\u5206)`;
|
|
259
303
|
};
|
|
260
304
|
const evaluatePageProps = computed(() => {
|
|
261
|
-
var _a
|
|
305
|
+
var _a;
|
|
262
306
|
return {
|
|
263
307
|
formArray: state.formArray,
|
|
264
308
|
evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
|
|
265
|
-
evaluateResultSetting:
|
|
309
|
+
evaluateResultSetting: evaluateResultSetting.value,
|
|
266
310
|
isFinished: state.isFinished,
|
|
267
311
|
maxScore: state.maxScore
|
|
268
312
|
};
|
|
269
313
|
});
|
|
270
314
|
const evaluateCountdownProps = computed(() => {
|
|
271
|
-
var _a
|
|
315
|
+
var _a;
|
|
272
316
|
return {
|
|
273
317
|
formArray: state.formArray,
|
|
274
318
|
evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
|
|
275
|
-
evaluateResultSetting:
|
|
319
|
+
evaluateResultSetting: evaluateResultSetting.value,
|
|
276
320
|
form: state.form,
|
|
277
321
|
isFinished: state.isFinished,
|
|
278
322
|
currentTime: state.currentTime,
|
|
@@ -302,7 +346,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
|
302
346
|
showEvent,
|
|
303
347
|
formKey,
|
|
304
348
|
evaluatePageProps,
|
|
305
|
-
evaluateCountdownProps
|
|
349
|
+
evaluateCountdownProps,
|
|
350
|
+
skipCover
|
|
306
351
|
};
|
|
307
352
|
};
|
|
308
353
|
|
|
@@ -3,7 +3,7 @@ import moment from 'moment';
|
|
|
3
3
|
import XEUtils from 'xe-utils';
|
|
4
4
|
|
|
5
5
|
const useEvaluate = (props, state, config) => {
|
|
6
|
-
|
|
6
|
+
const { emit } = config;
|
|
7
7
|
const evaluateState = reactive({
|
|
8
8
|
totalLen: 0,
|
|
9
9
|
timer: null,
|
|
@@ -29,22 +29,22 @@ const useEvaluate = (props, state, config) => {
|
|
|
29
29
|
return (_a = props.evaluateResultSetting) == null ? void 0 : _a.evaluateStartTime;
|
|
30
30
|
});
|
|
31
31
|
const getEvaluateStartTime = computed(() => {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const tempSt = new Date(evaluateStartTime.value);
|
|
33
|
+
const isValidDate = XEUtils.isValidDate(tempSt);
|
|
34
34
|
if (!isValidDate)
|
|
35
35
|
return false;
|
|
36
36
|
return tempSt;
|
|
37
37
|
});
|
|
38
38
|
const getEvaluateTime = computed(() => {
|
|
39
|
-
|
|
39
|
+
const { evaluateTime } = props.evaluateResultSetting;
|
|
40
40
|
return +evaluateTime;
|
|
41
41
|
});
|
|
42
42
|
const getEvaluateEnd = computed(() => {
|
|
43
|
-
if (!showRange)
|
|
43
|
+
if (!showRange.value)
|
|
44
44
|
return false;
|
|
45
45
|
if (!getEvaluateTime.value)
|
|
46
46
|
return false;
|
|
47
|
-
|
|
47
|
+
const rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
|
|
48
48
|
if (state.curTime >= rangTime)
|
|
49
49
|
return true;
|
|
50
50
|
return props.isFinished;
|
|
@@ -56,7 +56,7 @@ const useEvaluate = (props, state, config) => {
|
|
|
56
56
|
return "\u5F00\u59CB\u6D4B\u8BC4";
|
|
57
57
|
});
|
|
58
58
|
const disabledEvaluate = computed(() => {
|
|
59
|
-
|
|
59
|
+
const res = getEvaluateStartTime.value && !evaluateState.isTimeOut || getEvaluateEnd.value;
|
|
60
60
|
return res;
|
|
61
61
|
});
|
|
62
62
|
const showRange = computed(() => {
|
|
@@ -71,7 +71,7 @@ const useEvaluate = (props, state, config) => {
|
|
|
71
71
|
return false;
|
|
72
72
|
if (getEvaluateStartTime.value)
|
|
73
73
|
return true;
|
|
74
|
-
|
|
74
|
+
const rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
|
|
75
75
|
return state.curTime < rangTime;
|
|
76
76
|
});
|
|
77
77
|
onMounted(() => {
|
|
@@ -83,23 +83,23 @@ const useEvaluate = (props, state, config) => {
|
|
|
83
83
|
const isBanStart = () => {
|
|
84
84
|
if (!evaluateStartTime.value || !getEvaluateTime.value)
|
|
85
85
|
return false;
|
|
86
|
-
|
|
86
|
+
const startTime = getEvaluateStartTime.value;
|
|
87
87
|
if (!startTime)
|
|
88
88
|
return false;
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
const endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
|
|
90
|
+
const cur = new Date().getTime();
|
|
91
91
|
return cur >= endTime;
|
|
92
92
|
};
|
|
93
93
|
const getTotalLen = () => {
|
|
94
94
|
var _a;
|
|
95
|
-
|
|
95
|
+
const arrList = (_a = props.formArray) == null ? void 0 : _a.filter((item) => !evaluateState.filterArr.includes(item.type) && !item.hide);
|
|
96
96
|
if (!arrList || !arrList.length)
|
|
97
97
|
return;
|
|
98
98
|
evaluateState.totalLen = arrList.length;
|
|
99
99
|
};
|
|
100
100
|
const countdown = (startTime) => {
|
|
101
101
|
clearTimer();
|
|
102
|
-
|
|
102
|
+
const msec = startTime - new Date().getTime();
|
|
103
103
|
if (msec <= 0) {
|
|
104
104
|
evaluateState.countdownStr = "00:00:00";
|
|
105
105
|
evaluateState.isTimeOut = true;
|
|
@@ -5,11 +5,19 @@ declare const ShortcutProvider: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5
5
|
scope: {
|
|
6
6
|
type: (SymbolConstructor | StringConstructor)[];
|
|
7
7
|
};
|
|
8
|
+
autoFocus: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
8
12
|
}, {
|
|
9
13
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
14
|
scope: {
|
|
11
15
|
type: (SymbolConstructor | StringConstructor)[];
|
|
12
16
|
};
|
|
17
|
+
autoFocus: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
13
21
|
}>> & {}>>;
|
|
14
22
|
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
15
23
|
manager: import("./src/hooks").ShortcutManager;
|
|
@@ -17,5 +25,11 @@ declare const ShortcutProvider: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
17
25
|
scope: {
|
|
18
26
|
type: (SymbolConstructor | StringConstructor)[];
|
|
19
27
|
};
|
|
20
|
-
|
|
28
|
+
autoFocus: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
autoFocus: boolean;
|
|
34
|
+
}>>;
|
|
21
35
|
export default ShortcutProvider;
|
|
@@ -3,11 +3,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
scope: {
|
|
4
4
|
type: (SymbolConstructor | StringConstructor)[];
|
|
5
5
|
};
|
|
6
|
+
autoFocus: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
}, {
|
|
7
11
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
12
|
scope: {
|
|
9
13
|
type: (SymbolConstructor | StringConstructor)[];
|
|
10
14
|
};
|
|
15
|
+
autoFocus: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
11
19
|
}>> & {}>>;
|
|
12
20
|
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
13
21
|
manager: ShortcutManager;
|
|
@@ -15,5 +23,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
23
|
scope: {
|
|
16
24
|
type: (SymbolConstructor | StringConstructor)[];
|
|
17
25
|
};
|
|
18
|
-
|
|
26
|
+
autoFocus: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
autoFocus: boolean;
|
|
32
|
+
}>;
|
|
19
33
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, provide, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, ref, provide, onBeforeUnmount, onMounted, openBlock, createElementBlock, createCommentVNode, renderSlot } from 'vue';
|
|
2
2
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
3
|
import { InjectionShortcutManager } from './constants/index.js';
|
|
4
4
|
import '../index.js';
|
|
@@ -8,7 +8,8 @@ import { ShortcutManager } from './hooks/useShortcuts.js';
|
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ShortcutProvider",
|
|
10
10
|
props: {
|
|
11
|
-
scope: { type: [String, Symbol] }
|
|
11
|
+
scope: { type: [String, Symbol] },
|
|
12
|
+
autoFocus: { type: Boolean, default: true }
|
|
12
13
|
},
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
@@ -18,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
onBeforeUnmount(() => {
|
|
19
20
|
manager.destroy();
|
|
20
21
|
});
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = shortcutWrapperRef.value) == null ? void 0 : _a.focus();
|
|
25
|
+
});
|
|
21
26
|
return (_ctx, _cache) => {
|
|
22
27
|
return openBlock(), createElementBlock("section", {
|
|
23
28
|
ref_key: "shortcutWrapperRef",
|
|
@@ -26,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
31
|
class: "shortcut-provider",
|
|
27
32
|
tabindex: -9999
|
|
28
33
|
}, [
|
|
34
|
+
createCommentVNode(" \u9700\u8981\u7ED1\u5B9A\u8BE5\u4F5C\u7528\u57DF\u5FEB\u6377\u952E\u7684\u5185\u5BB9 "),
|
|
29
35
|
renderSlot(_ctx.$slots, "default")
|
|
30
36
|
], 512);
|
|
31
37
|
};
|
|
@@ -1846,6 +1846,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1846
1846
|
lowCodeReactions: {
|
|
1847
1847
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
1848
1848
|
};
|
|
1849
|
+
linebarAutoHidden: {
|
|
1850
|
+
type: BooleanConstructor;
|
|
1851
|
+
};
|
|
1849
1852
|
}, {
|
|
1850
1853
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1851
1854
|
fieldList: {
|
|
@@ -1971,6 +1974,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1971
1974
|
lowCodeReactions: {
|
|
1972
1975
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
1973
1976
|
};
|
|
1977
|
+
linebarAutoHidden: {
|
|
1978
|
+
type: BooleanConstructor;
|
|
1979
|
+
};
|
|
1974
1980
|
}>> & {
|
|
1975
1981
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1976
1982
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -1978,17 +1984,30 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1978
1984
|
}>>;
|
|
1979
1985
|
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
1980
1986
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
}>;
|
|
1984
|
-
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
1985
|
-
triggerAllReactionsHandler: () => void;
|
|
1987
|
+
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
1988
|
+
formHeight: import("vue").ComputedRef<string>;
|
|
1986
1989
|
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
1987
1990
|
businessCollector: import("..").BusinessCollector;
|
|
1988
1991
|
formItemDepsCollector: import("..").FormItemDepsCollector;
|
|
1989
1992
|
changeContextCollector: import("..").ContextCollector;
|
|
1990
1993
|
formUUID: string;
|
|
1991
|
-
|
|
1994
|
+
anchorBarRef: import("vue").Ref<{
|
|
1995
|
+
syncBarPosition: import("../../../es/shared/types").Func<any[], any>;
|
|
1996
|
+
} | undefined>;
|
|
1997
|
+
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
1998
|
+
generateAnchorList: (formModel: import("@formily/core").Form<any>) => Promise<void>;
|
|
1999
|
+
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
2000
|
+
anchorIdList: import("vue").Ref<{
|
|
2001
|
+
name: string;
|
|
2002
|
+
title: string;
|
|
2003
|
+
}[]>;
|
|
2004
|
+
onScroll: (scrollEvent: Event) => void;
|
|
2005
|
+
triggerAutoHidden: (field: import("@formily/core").GeneralField) => Promise<void>;
|
|
2006
|
+
formModel: import("@formily/core").Form<{
|
|
2007
|
+
[x: string]: any;
|
|
2008
|
+
}>;
|
|
2009
|
+
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2010
|
+
triggerAllReactionsHandler: () => void;
|
|
1992
2011
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
1993
2012
|
[key: symbol]: any;
|
|
1994
2013
|
[key: `x-${string}`]: any;
|
|
@@ -2104,70 +2123,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2104
2123
|
"x-read-pretty"?: boolean | undefined;
|
|
2105
2124
|
"x-compile-omitted"?: string[] | undefined;
|
|
2106
2125
|
}>>;
|
|
2107
|
-
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2108
|
-
generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
|
|
2109
|
-
[key: symbol]: any;
|
|
2110
|
-
[key: `x-${string}`]: any;
|
|
2111
|
-
[key: `x-${number}`]: any;
|
|
2112
|
-
version?: string | undefined;
|
|
2113
|
-
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
2114
|
-
title?: any;
|
|
2115
|
-
description?: any;
|
|
2116
|
-
default?: any;
|
|
2117
|
-
readOnly?: boolean | undefined;
|
|
2118
|
-
writeOnly?: boolean | undefined;
|
|
2119
|
-
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
2120
|
-
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
2121
|
-
const?: any;
|
|
2122
|
-
multipleOf?: number | undefined;
|
|
2123
|
-
maximum?: number | undefined;
|
|
2124
|
-
exclusiveMaximum?: number | undefined;
|
|
2125
|
-
minimum?: number | undefined;
|
|
2126
|
-
exclusiveMinimum?: number | undefined;
|
|
2127
|
-
maxLength?: number | undefined;
|
|
2128
|
-
minLength?: number | undefined;
|
|
2129
|
-
pattern?: string | RegExp | undefined;
|
|
2130
|
-
maxItems?: number | undefined;
|
|
2131
|
-
minItems?: number | undefined;
|
|
2132
|
-
uniqueItems?: boolean | undefined;
|
|
2133
|
-
maxProperties?: number | undefined;
|
|
2134
|
-
minProperties?: number | undefined;
|
|
2135
|
-
required?: string | boolean | string[] | undefined;
|
|
2136
|
-
format?: string | undefined;
|
|
2137
|
-
$ref?: string | undefined;
|
|
2138
|
-
$namespace?: string | undefined;
|
|
2139
|
-
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2140
|
-
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2141
|
-
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
2142
|
-
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2143
|
-
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2144
|
-
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2145
|
-
"x-value"?: any;
|
|
2146
|
-
"x-index"?: number | undefined;
|
|
2147
|
-
"x-pattern"?: any;
|
|
2148
|
-
"x-display"?: any;
|
|
2149
|
-
"x-validator"?: any;
|
|
2150
|
-
"x-decorator"?: any;
|
|
2151
|
-
"x-decorator-props"?: any;
|
|
2152
|
-
"x-component"?: any;
|
|
2153
|
-
"x-component-props"?: any;
|
|
2154
|
-
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
2155
|
-
"x-content"?: any;
|
|
2156
|
-
"x-data"?: any;
|
|
2157
|
-
"x-visible"?: boolean | undefined;
|
|
2158
|
-
"x-hidden"?: boolean | undefined;
|
|
2159
|
-
"x-disabled"?: boolean | undefined;
|
|
2160
|
-
"x-editable"?: boolean | undefined;
|
|
2161
|
-
"x-read-only"?: boolean | undefined;
|
|
2162
|
-
"x-read-pretty"?: boolean | undefined;
|
|
2163
|
-
"x-compile-omitted"?: string[] | undefined;
|
|
2164
|
-
}>) => void;
|
|
2165
|
-
anchorIdList: import("vue").Ref<{
|
|
2166
|
-
name: string;
|
|
2167
|
-
title: string;
|
|
2168
|
-
}[]>;
|
|
2169
|
-
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
2170
|
-
onScroll: (scrollEvent: Event) => void;
|
|
2171
2126
|
onKeydown: (event: KeyboardEvent) => void;
|
|
2172
2127
|
clearSpan: (uuid: string) => void;
|
|
2173
2128
|
exposeEvent: {
|
|
@@ -2196,17 +2151,19 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2196
2151
|
content: any;
|
|
2197
2152
|
hidden: boolean;
|
|
2198
2153
|
active: boolean;
|
|
2154
|
+
dataSource: import("@formily/core").FieldDataSource;
|
|
2155
|
+
description: string;
|
|
2156
|
+
display: import("@formily/core").FieldDisplayTypes;
|
|
2199
2157
|
mounted: boolean;
|
|
2200
2158
|
readonly destroyed: boolean;
|
|
2201
2159
|
unmounted: boolean;
|
|
2202
2160
|
componentProps: Record<string, any>;
|
|
2203
2161
|
decoratorProps: Record<string, any>;
|
|
2204
|
-
display: import("@formily/core").FieldDisplayTypes;
|
|
2205
|
-
description: string;
|
|
2206
2162
|
readOnly: boolean;
|
|
2207
2163
|
editable: boolean;
|
|
2208
2164
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
2209
2165
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
2166
|
+
readPretty: boolean;
|
|
2210
2167
|
validating: boolean;
|
|
2211
2168
|
submitting: boolean;
|
|
2212
2169
|
visited: boolean;
|
|
@@ -2214,7 +2171,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2214
2171
|
modified: boolean;
|
|
2215
2172
|
inputValue: string;
|
|
2216
2173
|
inputValues: any[];
|
|
2217
|
-
dataSource: import("@formily/core").FieldDataSource;
|
|
2218
2174
|
feedbacks: import("@formily/core").IFieldFeedback[];
|
|
2219
2175
|
caches: import("@formily/core").IFieldCaches;
|
|
2220
2176
|
selfErrors: import("@formily/core").FeedbackMessage;
|
|
@@ -2250,7 +2206,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2250
2206
|
designable: boolean;
|
|
2251
2207
|
locate: (address: import("@formily/path").Pattern) => void;
|
|
2252
2208
|
readonly parent: import("@formily/core").GeneralField;
|
|
2253
|
-
readPretty: boolean;
|
|
2254
2209
|
setTitle: (title?: string | undefined) => void;
|
|
2255
2210
|
setDescription: (description?: string | undefined) => void;
|
|
2256
2211
|
setDisplay: (type?: import("@formily/core").FieldDisplayTypes | undefined) => void;
|
|
@@ -2458,6 +2413,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2458
2413
|
lowCodeReactions: {
|
|
2459
2414
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2460
2415
|
};
|
|
2416
|
+
linebarAutoHidden: {
|
|
2417
|
+
type: BooleanConstructor;
|
|
2418
|
+
};
|
|
2461
2419
|
}>> & {
|
|
2462
2420
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2463
2421
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2472,6 +2430,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2472
2430
|
scope: import("../../../es/shared/types").AnyObject;
|
|
2473
2431
|
consumer: boolean;
|
|
2474
2432
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2433
|
+
linebarAutoHidden: boolean;
|
|
2475
2434
|
}>;
|
|
2476
2435
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2477
2436
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|