cnhis-design-vue 3.1.31-beta.1 → 3.1.31-beta.11
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 +123 -123
- package/es/components/big-table/index.js +1 -1
- package/es/components/big-table/src/{BigTable.js → BigTable.vue.js} +1 -1
- package/es/components/big-table/src/{BigTable.vue_vue_type_script_setup_true_lang.js → BigTable.vue2.js} +6 -6
- package/es/components/{scale-view/src/components/NoData.js → big-table/src/components/NoData.vue.js} +4 -4
- package/es/components/big-table/src/components/edit-form/{edit-separate.js → edit-separate.vue.js} +1 -1
- package/es/components/big-table/src/components/{input-button.js → input-button.vue.js} +0 -0
- package/es/components/big-table/src/components/{separate.js → separate.vue.js} +0 -0
- package/es/components/big-table/src/hooks/useEdit.js +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/index.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/{BpmnWorkflow.js → BpmnWorkflow.vue.js} +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +65 -45
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +65 -45
- package/es/components/button-print/src/{ButtonPrint.js → ButtonPrint.vue.js} +1 -1
- package/es/components/button-print/src/{ButtonPrint.vue_vue_type_script_setup_true_lang.js → ButtonPrint.vue2.js} +1 -1
- package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +66 -46
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +65 -45
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +9 -6
- package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
- package/es/components/button-print/src/components/Preview.vue.js +6 -0
- package/es/components/button-print/src/components/Preview.vue2.js +67 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +1 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -2
- package/es/components/button-print/src/utils/dialog.d.ts +5 -1
- package/es/components/button-print/src/utils/dialog.js +65 -23
- package/es/components/button-print/src/utils/print.d.ts +4 -1
- package/es/components/button-print/src/utils/print.js +13 -3
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/drag-layout/index.js +1 -1
- package/es/components/drag-layout/src/{DragFormLeftItem.js → DragFormLeftItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragFormRightItem.js → DragFormRightItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragLayout.js → DragLayout.vue.js} +2 -2
- package/es/components/fabric-chart/index.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -4
- package/es/components/fabric-chart/src/{FabricChart.js → FabricChart.vue.js} +1 -1
- package/es/components/fabric-chart/src/components/{PopupTip.js → PopupTip.vue.js} +0 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -6
- package/es/components/fabric-chart/src/hooks/useGrid.js +3 -3
- package/es/components/fabric-chart/src/interface.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/fabric-chart/src/utils/index.js +0 -1
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/{FieldSet.js → FieldSet.vue.js} +0 -0
- package/es/components/form-config/index.js +1 -1
- package/es/components/form-config/src/{FormConfig.js → FormConfig.vue.js} +3 -3
- package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigDragDisplay.js → FormConfigDragDisplay.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js} +0 -0
- package/es/components/form-config/src/components/index.js +6 -6
- package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js} +0 -0
- package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js} +2 -2
- package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js} +1 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -3
- package/es/components/form-config/src/hooks/usePresetRenderer.js +2 -2
- package/es/components/form-render/index.js +2 -2
- package/es/components/form-render/src/{FormRender.js → FormRender.vue.js} +0 -0
- package/es/components/form-render/src/{FormRenderWrapper.js → FormRenderWrapper.vue.js} +1 -1
- package/es/components/form-render/src/components/renderer/checkbox.js +3 -5
- package/es/components/form-render/src/components/renderer/index.js +2 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/{FormCollapse.js → FormCollapse.vue.js} +0 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -1
- package/es/components/form-render/src/components/renderer/recommendSelect.d.ts +131 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.js +213 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +0 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -5
- package/es/components/form-render/src/hooks/useAsyncQueue.js +2 -1
- package/es/components/form-render/src/hooks/useAutographOptions.js +5 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +7 -0
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +8 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +24 -1
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +124 -66
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +124 -66
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +2 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +14 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +64 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.js +17 -9
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -3
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +3 -2
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +14 -12
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +32 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/{editDate.js → editDate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +10 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +11 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +17 -24
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +11 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +9 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +13 -17
- package/es/components/iho-table/src/types/index.d.ts +6 -6
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
- package/es/components/iho-table/src/utils/index.d.ts +12 -2
- package/es/components/iho-table/src/utils/index.js +33 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +5 -2
- package/es/components/info-header/index.js +1 -1
- package/es/components/info-header/src/{HiddenContent.js → HiddenContent.vue.js} +1 -1
- package/es/components/info-header/src/{InfoEllipsis.js → InfoEllipsis.vue.js} +0 -0
- package/es/components/info-header/src/{InfoHeader.js → InfoHeader.vue.js} +2 -2
- package/es/components/keyboard/index.d.ts +146 -78
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +155 -78
- package/es/components/keyboard/src/Keyboard.vue.js +149 -0
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +206 -0
- package/es/components/map/index.js +1 -1
- package/es/components/map/src/{Map.js → Map.vue.js} +0 -0
- package/es/components/recommend-search/index.d.ts +813 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +815 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +62 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +119 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +148 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +303 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +103 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +63 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +104 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +350 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +156 -0
- package/es/components/recommend-search/src/constant/index.d.ts +4 -0
- package/es/components/recommend-search/src/constant/index.js +7 -0
- package/es/components/recommend-search/src/types/index.d.ts +9 -0
- package/es/components/recommend-search/src/types/index.js +1 -0
- package/es/components/recommend-search/style/index.css +1 -0
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/{ScaleView.js → ScaleView.vue.js} +5 -5
- package/es/components/scale-view/src/components/{AnswerParse.js → AnswerParse.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluatePage.js → EvaluatePage.vue.js} +0 -0
- package/es/components/scale-view/src/components/{LoadingCom.js → LoadingCom.vue.js} +0 -0
- package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js} +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.js +1 -1
- package/es/components/search-cascader/index.js +1 -1
- package/es/components/search-cascader/src/{SearchCascader.js → SearchCascader.vue.js} +0 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +3 -3
- package/es/components/select-label/index.js +2 -2
- package/es/components/select-label/src/{LabelFormContent.js → LabelFormContent.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.js → SelectLabel.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.vue_vue_type_script_setup_true_lang.js → SelectLabel.vue2.js} +2 -2
- package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js} +0 -0
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/{SelectPerson.js → SelectPerson.vue.js} +1 -1
- package/es/components/select-person/src/{SelectPerson.vue_vue_type_script_setup_true_lang.js → SelectPerson.vue2.js} +0 -0
- package/es/components/shortcut-provider/index.js +1 -1
- package/es/components/shortcut-provider/src/{ShortcutProvider.js → ShortcutProvider.vue.js} +0 -0
- package/es/components/shortcut-setter/index.js +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetter.js → ShortcutSetter.vue.js} +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js} +0 -0
- package/es/components/steps-wheel/index.d.ts +3 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +38 -9
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -1
- package/es/components/time-line/src/{TimeLine.js → TimeLine.vue.js} +0 -0
- package/es/components/vod-chunk-upload/index.js +1 -1
- package/es/components/vod-chunk-upload/src/{chunk-upload-new.js → chunk-upload-new.vue.js} +0 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/{vod-chunk-upload.js → vod-chunk-upload.vue.js} +3 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/assets/img/failure.js +1 -3
- package/es/shared/assets/img/failure.png.js +3 -0
- 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 -3
- package/es/shared/assets/img/no-permission.png.js +3 -0
- package/es/shared/assets/img/nodata.js +1 -3
- package/es/shared/assets/img/nodata.png.js +3 -0
- package/es/shared/assets/img/notfound.js +1 -3
- package/es/shared/assets/img/notfound.png.js +3 -0
- package/es/shared/assets/img/qr.js +1 -3
- package/es/shared/assets/img/qr.png.js +3 -0
- package/es/shared/assets/img/success.js +1 -3
- package/es/shared/assets/img/success.png.js +3 -0
- package/es/shared/assets/img/video.js +1 -3
- package/es/shared/assets/img/video.png.js +3 -0
- package/es/shared/assets/img/video_default_cover.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +3 -0
- 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 -3
- package/es/shared/assets/img/xb_big.png.js +3 -0
- package/es/shared/assets/img/xb_small.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +3 -0
- package/es/shared/components/SelectPage/{SelectPage.js → SelectPage.vue.js} +0 -0
- package/es/shared/components/SelectPage/index.js +2 -2
- package/es/shared/components/SvgIcon/{SvgIcon.js → SvgIcon.vue.js} +0 -0
- package/es/shared/components/SvgIcon/index.js +2 -2
- package/es/shared/components/TextOverTooltip/{TextOverTooltip.js → TextOverTooltip.vue.js} +0 -0
- package/es/shared/components/TextOverTooltip/index.js +2 -2
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/components/no-data/{NoData.js → NoData.vue.js} +4 -4
- package/es/shared/components/no-data/index.js +2 -2
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +3 -3
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/button-print/src/components/edit.js +0 -152
- package/es/components/keyboard/src/Keyboard.js +0 -285
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, unref, openBlock, createBlock, withCtx, createVNode, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { NPopover, NInputNumber, NSpace, NIcon } from 'naive-ui';
|
|
3
|
+
import { Close, GitCompareOutline, ArrowUndoSharp } from '@vicons/ionicons5';
|
|
4
|
+
import NumberPanel from './components/NumberPanel.vue.js';
|
|
5
|
+
import { useDraggable } from '@vueuse/core';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "\u952E\u76D8", -1);
|
|
9
|
+
const _hoisted_2 = { class: "keys" };
|
|
10
|
+
const _hoisted_3 = ["onClick"];
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "Keyboard",
|
|
13
|
+
props: {
|
|
14
|
+
mode: { type: String, default: "english" },
|
|
15
|
+
drag: { type: Boolean, default: false },
|
|
16
|
+
positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
|
|
17
|
+
defaultValue: { type: Number },
|
|
18
|
+
panel: { type: Boolean, default: true },
|
|
19
|
+
moveOffset: { type: Object, default: () => ({ x: 0, y: 0 }) }
|
|
20
|
+
},
|
|
21
|
+
emits: [
|
|
22
|
+
"change",
|
|
23
|
+
"keydown"
|
|
24
|
+
],
|
|
25
|
+
setup(__props, { emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const ENGLISHKEY = "QWERTYUIOPASDFGHJKLZXCVBNM.";
|
|
28
|
+
const ENGLISHOTHERKEY = ["Switch", " ", "Undo", "Enter"];
|
|
29
|
+
const ENGLISHKEYS = ENGLISHKEY.split("").concat(ENGLISHOTHERKEY);
|
|
30
|
+
const ENGLISHKEYS_ = ENGLISHKEY.split(".")[0].split("").sort().concat(["."], ENGLISHOTHERKEY);
|
|
31
|
+
const isDefault = computed(() => props.mode === "english");
|
|
32
|
+
const englishKeys = ref(ENGLISHKEYS.slice());
|
|
33
|
+
const popoverRef = ref(null);
|
|
34
|
+
const englishKeyboardRef = ref(null);
|
|
35
|
+
const keyboardDragRef = ref(null);
|
|
36
|
+
const currentValue = ref();
|
|
37
|
+
const style = init();
|
|
38
|
+
function init() {
|
|
39
|
+
if (props.defaultValue) {
|
|
40
|
+
currentValue.value = props.defaultValue;
|
|
41
|
+
}
|
|
42
|
+
if (isDefault.value && props.drag) {
|
|
43
|
+
const { x, y, style: style2 } = useDraggable(englishKeyboardRef, {
|
|
44
|
+
initialValue: props.positionInitialValue,
|
|
45
|
+
preventDefault: true,
|
|
46
|
+
handle: keyboardDragRef,
|
|
47
|
+
onMove: (position, event) => {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
|
50
|
+
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return style2;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function keydown(key) {
|
|
57
|
+
if (key !== "Switch") {
|
|
58
|
+
emit("keydown", key);
|
|
59
|
+
} else {
|
|
60
|
+
englishKeys.value = englishKeys.value[0] === "Q" ? ENGLISHKEYS_.slice() : ENGLISHKEYS.slice();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function onchange(value) {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
(_b = (_a = popoverRef.value) == null ? void 0 : _a.setShow) == null ? void 0 : _b.call(_a, false);
|
|
66
|
+
currentValue.value = value;
|
|
67
|
+
emit("change", value);
|
|
68
|
+
}
|
|
69
|
+
return (_ctx, _cache) => {
|
|
70
|
+
return !unref(isDefault) && !__props.panel ? (openBlock(), createBlock(unref(NPopover), {
|
|
71
|
+
key: 0,
|
|
72
|
+
ref_key: "popoverRef",
|
|
73
|
+
ref: popoverRef,
|
|
74
|
+
trigger: "click",
|
|
75
|
+
"show-arrow": false,
|
|
76
|
+
placement: "bottom-start",
|
|
77
|
+
style: { "padding": "0" },
|
|
78
|
+
"display-directive": "show"
|
|
79
|
+
}, {
|
|
80
|
+
trigger: withCtx(() => [
|
|
81
|
+
createVNode(unref(NInputNumber), {
|
|
82
|
+
value: currentValue.value,
|
|
83
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => currentValue.value = $event),
|
|
84
|
+
"show-button": false
|
|
85
|
+
}, null, 8, ["value"])
|
|
86
|
+
]),
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(NumberPanel, {
|
|
89
|
+
mode: __props.mode,
|
|
90
|
+
defaultValue: __props.defaultValue,
|
|
91
|
+
onChange: onchange
|
|
92
|
+
}, null, 8, ["mode", "defaultValue"])
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 512)) : !unref(isDefault) && __props.panel ? (openBlock(), createBlock(NumberPanel, {
|
|
96
|
+
key: 1,
|
|
97
|
+
mode: __props.mode,
|
|
98
|
+
defaultValue: __props.defaultValue,
|
|
99
|
+
onChange: onchange
|
|
100
|
+
}, null, 8, ["mode", "defaultValue"])) : (openBlock(), createElementBlock("div", {
|
|
101
|
+
key: 2,
|
|
102
|
+
class: normalizeClass(["c-keyboard-english", { isFixed: __props.drag }]),
|
|
103
|
+
ref_key: "englishKeyboardRef",
|
|
104
|
+
ref: englishKeyboardRef,
|
|
105
|
+
style: normalizeStyle(unref(style))
|
|
106
|
+
}, [
|
|
107
|
+
createVNode(unref(NSpace), {
|
|
108
|
+
"wrap-item": false,
|
|
109
|
+
align: "center",
|
|
110
|
+
justify: "space-between",
|
|
111
|
+
ref_key: "keyboardDragRef",
|
|
112
|
+
ref: keyboardDragRef,
|
|
113
|
+
style: normalizeStyle({ cursor: __props.drag ? "move" : "default" })
|
|
114
|
+
}, {
|
|
115
|
+
default: withCtx(() => [
|
|
116
|
+
_hoisted_1,
|
|
117
|
+
createVNode(unref(NIcon), {
|
|
118
|
+
onClick: _cache[1] || (_cache[1] = ($event) => keydown("close")),
|
|
119
|
+
component: unref(Close)
|
|
120
|
+
}, null, 8, ["component"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["style"]),
|
|
124
|
+
createElementVNode("div", _hoisted_2, [
|
|
125
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(englishKeys.value, (key, index) => {
|
|
126
|
+
return openBlock(), createElementBlock("span", {
|
|
127
|
+
key,
|
|
128
|
+
class: normalizeClass(["key" + index]),
|
|
129
|
+
onClick: ($event) => keydown(key)
|
|
130
|
+
}, [
|
|
131
|
+
key === "Switch" ? (openBlock(), createBlock(unref(NIcon), {
|
|
132
|
+
key: 0,
|
|
133
|
+
component: unref(GitCompareOutline)
|
|
134
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true),
|
|
135
|
+
key === "Undo" ? (openBlock(), createBlock(unref(NIcon), {
|
|
136
|
+
key: 1,
|
|
137
|
+
component: unref(ArrowUndoSharp)
|
|
138
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true),
|
|
139
|
+
createTextVNode(" " + toDisplayString(!ENGLISHOTHERKEY.includes(key) || key === "Enter" ? key : key === "" ? "\u7A7A\u683C" : ""), 1)
|
|
140
|
+
], 10, _hoisted_3);
|
|
141
|
+
}), 128))
|
|
142
|
+
])
|
|
143
|
+
], 6));
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Keyboard.vue"]]);
|
|
148
|
+
|
|
149
|
+
export { script as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormValidationStatus } from 'naive-ui/es/form/src/interface';
|
|
1
3
|
declare const _default: import("vue").DefineComponent<{
|
|
2
4
|
modelValue: {
|
|
3
5
|
type: StringConstructor;
|
|
@@ -8,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
10
|
default: boolean;
|
|
9
11
|
};
|
|
10
12
|
status: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<FormValidationStatus>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
}, {
|
|
@@ -22,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
24
|
default: boolean;
|
|
23
25
|
};
|
|
24
26
|
status: {
|
|
25
|
-
type:
|
|
27
|
+
type: PropType<FormValidationStatus>;
|
|
26
28
|
default: string;
|
|
27
29
|
};
|
|
28
30
|
}>> & {
|
|
@@ -48,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
50
|
default: boolean;
|
|
49
51
|
};
|
|
50
52
|
status: {
|
|
51
|
-
type:
|
|
53
|
+
type: PropType<FormValidationStatus>;
|
|
52
54
|
default: string;
|
|
53
55
|
};
|
|
54
56
|
}>> & {
|
|
@@ -56,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
58
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
57
59
|
}, {
|
|
58
60
|
modelValue: string;
|
|
59
|
-
status:
|
|
61
|
+
status: FormValidationStatus;
|
|
60
62
|
integer: boolean;
|
|
61
63
|
}>;
|
|
62
64
|
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FormValidationStatus } from 'naive-ui/es/form/src/interface';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
defaultValue: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
};
|
|
7
|
+
mode: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
NUMBERKEYS: string;
|
|
12
|
+
DAYS: number[];
|
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
mode: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
emit: (event: "change", ...args: any[]) => void;
|
|
24
|
+
isDay: import("vue").ComputedRef<boolean>;
|
|
25
|
+
isDose: import("vue").ComputedRef<boolean>;
|
|
26
|
+
numberKeys: Ref<string[]>;
|
|
27
|
+
days: Ref<number[]>;
|
|
28
|
+
doses: Ref<number[]>;
|
|
29
|
+
inputValue: Ref<string>;
|
|
30
|
+
integerValue: Ref<any>;
|
|
31
|
+
numeratorValue: Ref<any>;
|
|
32
|
+
denominatorValue: Ref<any>;
|
|
33
|
+
inputValueStatus: Ref<FormValidationStatus>;
|
|
34
|
+
numeratorValueStatus: Ref<FormValidationStatus>;
|
|
35
|
+
denominatorValueStatus: Ref<FormValidationStatus>;
|
|
36
|
+
history: Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
|
|
37
|
+
undo: () => void;
|
|
38
|
+
redo: () => void;
|
|
39
|
+
keydown: (key: string | number) => void;
|
|
40
|
+
updateFraction: (value: number) => void;
|
|
41
|
+
calculateFraction: () => void;
|
|
42
|
+
setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
|
|
43
|
+
setInputValueStatus: () => void;
|
|
44
|
+
NIcon: any;
|
|
45
|
+
NSpace: any;
|
|
46
|
+
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
47
|
+
InputNumber: import("vue").DefineComponent<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
integer: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
status: {
|
|
57
|
+
type: import("vue").PropType<FormValidationStatus>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
modelValue: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
integer: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
status: {
|
|
71
|
+
type: import("vue").PropType<FormValidationStatus>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}>>;
|
|
78
|
+
emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
|
|
79
|
+
update: (value: string | [string, string]) => void;
|
|
80
|
+
validator: (value: string) => boolean;
|
|
81
|
+
calculate: (type: string) => void;
|
|
82
|
+
NInput: any;
|
|
83
|
+
NIcon: any;
|
|
84
|
+
NSpace: any;
|
|
85
|
+
CaretDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
86
|
+
CaretUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
87
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
|
+
modelValue: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
integer: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
status: {
|
|
97
|
+
type: import("vue").PropType<FormValidationStatus>;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
}>> & {
|
|
101
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
modelValue: string;
|
|
105
|
+
status: FormValidationStatus;
|
|
106
|
+
integer: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
+
defaultValue: {
|
|
110
|
+
type: NumberConstructor;
|
|
111
|
+
};
|
|
112
|
+
mode: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
};
|
|
115
|
+
}>> & {
|
|
116
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
}, {}>;
|
|
118
|
+
export default _default;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, normalizeClass, toDisplayString, createBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import { NSpace, NIcon } from 'naive-ui';
|
|
3
|
+
import { ArrowUndoSharp } from '@vicons/ionicons5';
|
|
4
|
+
import InputNumber from './InputNumber.vue.js';
|
|
5
|
+
import { useRefHistory } from '@vueuse/core';
|
|
6
|
+
import { getNumber } from '../utils/index.js';
|
|
7
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { class: "c-keyboard" };
|
|
10
|
+
const _hoisted_2 = { class: "left" };
|
|
11
|
+
const _hoisted_3 = { class: "keys" };
|
|
12
|
+
const _hoisted_4 = ["onClick"];
|
|
13
|
+
const _hoisted_5 = ["onClick"];
|
|
14
|
+
const _hoisted_6 = { class: "btns" };
|
|
15
|
+
const _hoisted_7 = ["onClick"];
|
|
16
|
+
const _hoisted_8 = { class: "inputs" };
|
|
17
|
+
const _hoisted_9 = { class: "inputs-right" };
|
|
18
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "NumberPanel",
|
|
21
|
+
props: {
|
|
22
|
+
defaultValue: { type: Number },
|
|
23
|
+
mode: { type: String }
|
|
24
|
+
},
|
|
25
|
+
emits: ["change"],
|
|
26
|
+
setup(__props, { emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const NUMBERKEYS = "1234567890.";
|
|
29
|
+
const DAYS = [3, 7, 14, 30];
|
|
30
|
+
const isDay = computed(() => props.mode === "day");
|
|
31
|
+
const isDose = computed(() => props.mode === "dose");
|
|
32
|
+
const numberKeys = ref(NUMBERKEYS.split(""));
|
|
33
|
+
const days = ref(DAYS);
|
|
34
|
+
const doses = ref([2, 3, 4, 5, 6, 7, 8]);
|
|
35
|
+
const inputValue = ref("");
|
|
36
|
+
const integerValue = ref();
|
|
37
|
+
const numeratorValue = ref();
|
|
38
|
+
const denominatorValue = ref();
|
|
39
|
+
const inputValueStatus = ref("success");
|
|
40
|
+
const numeratorValueStatus = ref("success");
|
|
41
|
+
const denominatorValueStatus = ref("success");
|
|
42
|
+
if (props.defaultValue) {
|
|
43
|
+
inputValue.value = props.defaultValue.toString();
|
|
44
|
+
}
|
|
45
|
+
const { history, undo, redo } = useRefHistory(inputValue);
|
|
46
|
+
function keydown(key) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
switch (key) {
|
|
49
|
+
case "Undo": {
|
|
50
|
+
undo();
|
|
51
|
+
setInputValueStatus();
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
case "Enter":
|
|
55
|
+
emit("change", +inputValue.value);
|
|
56
|
+
break;
|
|
57
|
+
default:
|
|
58
|
+
if (typeof key === "number") {
|
|
59
|
+
inputValue.value = key.toString();
|
|
60
|
+
} else {
|
|
61
|
+
inputValue.value = (((_b = (_a = inputValue.value) == null ? void 0 : _a.toString) == null ? void 0 : _b.call(_a)) || "") + key;
|
|
62
|
+
}
|
|
63
|
+
setInputValueStatus();
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function updateFraction(value) {
|
|
68
|
+
if (!setInputStatus(inputValue, inputValueStatus))
|
|
69
|
+
return;
|
|
70
|
+
inputValue.value = (Math.round(+inputValue.value * (1 / value) * 100) / 100).toString();
|
|
71
|
+
setInputValueStatus();
|
|
72
|
+
}
|
|
73
|
+
function calculateFraction() {
|
|
74
|
+
if (!setInputStatus(inputValue, inputValueStatus) || !setInputStatus(numeratorValue, numeratorValueStatus, true) || !setInputStatus(denominatorValue, denominatorValueStatus, true))
|
|
75
|
+
return;
|
|
76
|
+
const value = getNumber(integerValue.value) + getNumber(numeratorValue.value) / getNumber(denominatorValue.value);
|
|
77
|
+
inputValue.value = (Math.round(+inputValue.value * value * 100) / 100).toString();
|
|
78
|
+
setInputValueStatus();
|
|
79
|
+
}
|
|
80
|
+
function setInputStatus(valueRef, statusRef, isInteger) {
|
|
81
|
+
if (!isInteger && (!valueRef.value || valueRef.value === ".") || isInteger && !valueRef.value) {
|
|
82
|
+
statusRef.value = "error";
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
function setInputValueStatus() {
|
|
88
|
+
inputValueStatus.value = !inputValue.value ? "error" : "success";
|
|
89
|
+
}
|
|
90
|
+
return (_ctx, _cache) => {
|
|
91
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
92
|
+
createElementVNode("div", _hoisted_2, [
|
|
93
|
+
createVNode(InputNumber, {
|
|
94
|
+
modelValue: inputValue.value,
|
|
95
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
96
|
+
status: inputValueStatus.value,
|
|
97
|
+
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
|
|
98
|
+
}, null, 8, ["modelValue", "status"]),
|
|
99
|
+
createElementVNode("div", _hoisted_3, [
|
|
100
|
+
createVNode(unref(NSpace), null, {
|
|
101
|
+
default: withCtx(() => [
|
|
102
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(numberKeys.value, (key) => {
|
|
103
|
+
return openBlock(), createElementBlock("span", {
|
|
104
|
+
key,
|
|
105
|
+
class: normalizeClass(key === "0" ? "is-0" : ""),
|
|
106
|
+
onClick: ($event) => keydown(key)
|
|
107
|
+
}, toDisplayString(key), 11, _hoisted_4);
|
|
108
|
+
}), 128))
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
createVNode(unref(NSpace), null, {
|
|
113
|
+
default: withCtx(() => [
|
|
114
|
+
createElementVNode("span", {
|
|
115
|
+
class: "opt",
|
|
116
|
+
onClick: _cache[2] || (_cache[2] = ($event) => keydown("Undo"))
|
|
117
|
+
}, [
|
|
118
|
+
createVNode(unref(NIcon), { component: unref(ArrowUndoSharp) }, null, 8, ["component"])
|
|
119
|
+
]),
|
|
120
|
+
createElementVNode("span", {
|
|
121
|
+
class: "opt",
|
|
122
|
+
onClick: _cache[3] || (_cache[3] = ($event) => keydown("Enter"))
|
|
123
|
+
}, "\u786E\u5B9A")
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
unref(isDay) ? (openBlock(), createBlock(unref(NSpace), {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "right-days",
|
|
132
|
+
justify: "center",
|
|
133
|
+
vertical: ""
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => [
|
|
136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day) => {
|
|
137
|
+
return openBlock(), createElementBlock("span", {
|
|
138
|
+
class: "btn",
|
|
139
|
+
key: day,
|
|
140
|
+
onClick: ($event) => keydown(day)
|
|
141
|
+
}, toDisplayString(day) + "\u5929", 9, _hoisted_5);
|
|
142
|
+
}), 128))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})) : createCommentVNode("v-if", true),
|
|
146
|
+
unref(isDose) ? (openBlock(), createBlock(unref(NSpace), {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "right-dose",
|
|
149
|
+
"wrap-item": false
|
|
150
|
+
}, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
createElementVNode("div", _hoisted_6, [
|
|
153
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
|
|
154
|
+
return openBlock(), createElementBlock("span", {
|
|
155
|
+
class: "btn",
|
|
156
|
+
key: dose,
|
|
157
|
+
onClick: ($event) => updateFraction(dose)
|
|
158
|
+
}, "1/" + toDisplayString(dose), 9, _hoisted_7);
|
|
159
|
+
}), 128))
|
|
160
|
+
]),
|
|
161
|
+
createVNode(unref(NSpace), {
|
|
162
|
+
justify: "center",
|
|
163
|
+
vertical: ""
|
|
164
|
+
}, {
|
|
165
|
+
default: withCtx(() => [
|
|
166
|
+
createElementVNode("div", _hoisted_8, [
|
|
167
|
+
createVNode(InputNumber, {
|
|
168
|
+
integer: "",
|
|
169
|
+
modelValue: integerValue.value,
|
|
170
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
|
|
171
|
+
}, null, 8, ["modelValue"]),
|
|
172
|
+
createElementVNode("div", _hoisted_9, [
|
|
173
|
+
createVNode(InputNumber, {
|
|
174
|
+
integer: "",
|
|
175
|
+
modelValue: numeratorValue.value,
|
|
176
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => numeratorValue.value = $event),
|
|
177
|
+
status: numeratorValueStatus.value,
|
|
178
|
+
"onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
|
|
179
|
+
}, null, 8, ["modelValue", "status"]),
|
|
180
|
+
_hoisted_10,
|
|
181
|
+
createVNode(InputNumber, {
|
|
182
|
+
integer: "",
|
|
183
|
+
modelValue: denominatorValue.value,
|
|
184
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => denominatorValue.value = $event),
|
|
185
|
+
status: denominatorValueStatus.value,
|
|
186
|
+
"onUpdate:status": _cache[8] || (_cache[8] = ($event) => denominatorValueStatus.value = $event)
|
|
187
|
+
}, null, 8, ["modelValue", "status"])
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
createElementVNode("span", {
|
|
191
|
+
class: "btn",
|
|
192
|
+
onClick: calculateFraction
|
|
193
|
+
}, "\u5206\u5B50\u5F0F\u5242\u91CF")
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})) : createCommentVNode("v-if", true)
|
|
200
|
+
]);
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
var NumberPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NumberPanel.vue"]]);
|
|
205
|
+
|
|
206
|
+
export { NumberPanel as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/Map.js';
|
|
3
|
+
import script from './src/Map.vue.js';
|
|
4
4
|
|
|
5
5
|
const Map = script;
|
|
6
6
|
Map.install = function(app) {
|
|
File without changes
|