@kayak-sj/design 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components-CgiuwHwW.css +1 -0
- package/dist/{components/k-form/formComponent/Editor.vue_vue_type_script_setup_true_lang.js → chunks/Editor-CNxCYFmc.js} +4 -3
- package/dist/chunks/ImageCutter-B4uKMA_8.js +41 -0
- package/dist/chunks/KEditor-C882CuWG.js +331 -0
- package/dist/{_virtual/_plugin-vue_export-helper.js → chunks/_plugin-vue_export-helper-B3ysoDQm.js} +1 -1
- package/dist/chunks/components-Cj9QZ2w0.js +4962 -0
- package/dist/chunks/editorValue-DSKvW8ty.js +65 -0
- package/dist/components/index.js +3 -91
- package/dist/components/k-dialog/KDialog.d.ts +6 -6
- package/dist/components/k-dialog/KDialog.d.ts.map +1 -1
- package/dist/components/k-echarts/KEcharts.d.ts +2 -2
- package/dist/components/k-echarts/index.js +479 -2
- package/dist/components/k-editor/KEditor.d.ts +4 -4
- package/dist/components/k-editor/index.js +3 -3
- package/dist/components/k-form/KForm.d.ts +3 -3
- package/dist/components/k-form/KForm.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts +1 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/Input.d.ts +2 -2
- package/dist/components/k-form/formComponent/Input.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts +1 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts +1 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts.map +1 -1
- package/dist/components/k-link-button/KLinkButton.d.ts +1 -1
- package/dist/components/k-link-button/KLinkButton.d.ts.map +1 -1
- package/dist/components/k-table/KTable.d.ts +1 -1
- package/dist/components/k-upload/KUpload.d.ts +5 -5
- package/dist/index.js +212 -41
- package/package.json +3 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/components/k-button/KButton.js +0 -5
- package/dist/components/k-button/KButton.vue_vue_type_script_setup_true_lang.js +0 -15
- package/dist/components/k-card/KCard.js +0 -5
- package/dist/components/k-card/KCard.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/components/k-dialog/KDialog.js +0 -5
- package/dist/components/k-dialog/KDialog.vue_vue_type_script_setup_true_lang.js +0 -129
- package/dist/components/k-dialog/KDialogHeader.js +0 -5
- package/dist/components/k-dialog/KDialogHeader.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/components/k-echarts/KEcharts.js +0 -7
- package/dist/components/k-echarts/KEcharts.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-echarts/composables/useKEcharts.js +0 -117
- package/dist/components/k-echarts/constants/echartEvents.js +0 -4
- package/dist/components/k-echarts/themes/customed.js +0 -285
- package/dist/components/k-echarts/themes/registerThemes.js +0 -7
- package/dist/components/k-echarts/utils/buildChartOptions.js +0 -23
- package/dist/components/k-echarts/utils/createToggleFeature.js +0 -12
- package/dist/components/k-editor/KEditor.js +0 -7
- package/dist/components/k-editor/KEditor.vue_vue_type_script_setup_true_lang.js +0 -96
- package/dist/components/k-editor/composables/useEditorImageUpload.js +0 -60
- package/dist/components/k-editor/composables/useKEditor.js +0 -98
- package/dist/components/k-editor/composables/useKEditorConfig.js +0 -46
- package/dist/components/k-editor/utils/editorValue.js +0 -37
- package/dist/components/k-editor/utils/registerPreviewMenu.js +0 -38
- package/dist/components/k-editor/utils/sanitizePasteHtml.js +0 -8
- package/dist/components/k-form/KForm.js +0 -5
- package/dist/components/k-form/KForm.vue_vue_type_script_setup_true_lang.js +0 -248
- package/dist/components/k-form/KFormField.js +0 -5
- package/dist/components/k-form/KFormField.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/composables/useFormSchema.js +0 -36
- package/dist/components/k-form/composables/useKFormFields.js +0 -50
- package/dist/components/k-form/composables/useKFormModel.js +0 -194
- package/dist/components/k-form/composables/useKFormTemplateRef.js +0 -7
- package/dist/components/k-form/constants.js +0 -4
- package/dist/components/k-form/formComponent/Cascader.js +0 -7
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_style_index_0_scoped_ed0da536_lang.css +0 -1
- package/dist/components/k-form/formComponent/CheckBox.js +0 -7
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_style_index_0_scoped_fca64c11_lang.css +0 -1
- package/dist/components/k-form/formComponent/DatePicker.js +0 -7
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_script_setup_true_lang.js +0 -144
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_style_index_0_scoped_578e2613_lang.css +0 -1
- package/dist/components/k-form/formComponent/Editor.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/k-form/formComponent/Input.js +0 -5
- package/dist/components/k-form/formComponent/Input.vue_vue_type_script_setup_true_lang.js +0 -93
- package/dist/components/k-form/formComponent/InputMixInput.js +0 -7
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_script_setup_true_lang.js +0 -108
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_style_index_0_scoped_6fdf6265_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.js +0 -7
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js +0 -185
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_style_index_0_scoped_1f46ef39_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputNumber.js +0 -7
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css +0 -1
- package/dist/components/k-form/formComponent/Radio.js +0 -7
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css +0 -1
- package/dist/components/k-form/formComponent/RadioInput.js +0 -7
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_script_setup_true_lang.js +0 -130
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.js +0 -7
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_script_setup_true_lang.js +0 -132
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_style_index_0_scoped_dc0bba37_lang.css +0 -1
- package/dist/components/k-form/formComponent/Select.js +0 -7
- package/dist/components/k-form/formComponent/Select.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/components/k-form/formComponent/Select.vue_vue_type_style_index_0_scoped_20fc23b7_lang.css +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.js +0 -7
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_script_setup_true_lang.js +0 -84
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_style_index_0_scoped_e6ca06e1_lang.css +0 -1
- package/dist/components/k-form/formComponent/Tag.js +0 -7
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_style_index_0_scoped_9961a98a_lang.css +0 -1
- package/dist/components/k-form/formComponent/Text.js +0 -7
- package/dist/components/k-form/formComponent/Text.vue_vue_type_script_setup_true_lang.js +0 -19
- package/dist/components/k-form/formComponent/Text.vue_vue_type_style_index_0_scoped_9dc35114_lang.css +0 -1
- package/dist/components/k-form/formComponent/TimePicker.js +0 -7
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_style_index_0_scoped_8680ec2d_lang.css +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.js +0 -5
- package/dist/components/k-form/formComponent/TreeSelect.vue_vue_type_script_setup_true_lang.js +0 -57
- package/dist/components/k-form/formComponent/Upload.js +0 -5
- package/dist/components/k-form/formComponent/Upload.vue_vue_type_script_setup_true_lang.js +0 -64
- package/dist/components/k-form/formComponent/componentRegistry.js +0 -49
- package/dist/components/k-form/utils/fieldValue.js +0 -83
- package/dist/components/k-form/utils/formRules.js +0 -44
- package/dist/components/k-form/utils/resolveFormFieldComponent.js +0 -13
- package/dist/components/k-handle-page/KHandlePage.js +0 -5
- package/dist/components/k-handle-page/KHandlePage.vue_vue_type_script_setup_true_lang.js +0 -105
- package/dist/components/k-handle-page/useHandlePageInit.js +0 -21
- package/dist/components/k-icon/KIcon.js +0 -7
- package/dist/components/k-icon/KIcon.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/components/k-icon/KIcon.vue_vue_type_style_index_0_scoped_6fd081ab_lang.css +0 -1
- package/dist/components/k-icon/resolveLucideIcon.js +0 -26
- package/dist/components/k-link-button/KLinkButton.js +0 -5
- package/dist/components/k-link-button/KLinkButton.vue_vue_type_script_setup_true_lang.js +0 -58
- package/dist/components/k-long-page/KLongPage.js +0 -7
- package/dist/components/k-long-page/KLongPage.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/components/k-long-page/KLongPage.vue_vue_type_style_index_0_scoped_ac934c5d_lang.css +0 -1
- package/dist/components/k-long-page/KLongPagePanel.js +0 -7
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_style_index_0_scoped_9d6e7832_lang.css +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.js +0 -32
- package/dist/components/k-long-page/icons/icon-base-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-base.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice.js +0 -4
- package/dist/components/k-long-page/icons/icon-price-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-price.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup.js +0 -4
- package/dist/components/k-long-page/navConfigs.js +0 -23
- package/dist/components/k-pagination/KPagination.js +0 -5
- package/dist/components/k-pagination/KPagination.vue_vue_type_script_setup_true_lang.js +0 -36
- package/dist/components/k-panel/KPanel.js +0 -5
- package/dist/components/k-panel/KPanel.vue_vue_type_script_setup_true_lang.js +0 -47
- package/dist/components/k-panel-query/KPanelQuery.js +0 -5
- package/dist/components/k-panel-query/KPanelQuery.vue_vue_type_script_setup_true_lang.js +0 -151
- package/dist/components/k-panel-query/KPanelQueryActions.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryActions.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-panel-query/KPanelQueryForm.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryForm.vue_vue_type_script_setup_true_lang.js +0 -55
- package/dist/components/k-panel-query/KPanelQueryItem.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryItem.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/components/k-table/KTable.js +0 -7
- package/dist/components/k-table/KTable.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/k-table/KTable.vue_vue_type_style_index_0_scoped_9ecd6487_lang.css +0 -1
- package/dist/components/k-table/KTableColumn.js +0 -7
- package/dist/components/k-table/KTableColumn.vue_vue_type_script_setup_true_lang.js +0 -154
- package/dist/components/k-table/KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css +0 -1
- package/dist/components/k-table/KTableColumnSelector.js +0 -7
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_script_setup_true_lang.js +0 -59
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_style_index_0_scoped_e0b3cf31_lang.css +0 -1
- package/dist/components/k-table/KTableToolbar.js +0 -7
- package/dist/components/k-table/KTableToolbar.vue_vue_type_script_setup_true_lang.js +0 -60
- package/dist/components/k-table/KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.js +0 -103
- package/dist/components/k-table/composables/useKTable.js +0 -179
- package/dist/components/k-table/composables/useKTableCrossPageSelection.js +0 -58
- package/dist/components/k-table/composables/useKTableTemplateRef.js +0 -7
- package/dist/components/k-table/composables/useTableColumns.js +0 -61
- package/dist/components/k-table/composables/useTableData.js +0 -47
- package/dist/components/k-table/composables/useTablePagination.js +0 -52
- package/dist/components/k-table/composables/useTableRadio.js +0 -28
- package/dist/components/k-table/composables/useTableRowSort.js +0 -35
- package/dist/components/k-table/composables/useTableTreeLoad.js +0 -32
- package/dist/components/k-table/dictOptions.js +0 -9
- package/dist/components/k-table/kTableProps.js +0 -17
- package/dist/components/k-table/report/convertDownloadCol.js +0 -11
- package/dist/components/k-table/report/exportKTableReport.js +0 -19
- package/dist/components/k-table/report/mergeQueryConfig.js +0 -31
- package/dist/components/k-table/report/pickExportColumns.js +0 -7
- package/dist/components/k-table/report/useExportKTableReport.js +0 -29
- package/dist/components/k-table/types.js +0 -20
- package/dist/components/k-table/utils/columnIdentity.js +0 -6
- package/dist/components/k-table/utils/formatCellValue.js +0 -30
- package/dist/components/k-table/utils/rowKey.js +0 -10
- package/dist/components/k-upload/KUpload.js +0 -7
- package/dist/components/k-upload/KUpload.vue_vue_type_script_setup_true_lang.js +0 -355
- package/dist/components/k-upload/KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css +0 -1
- package/dist/components/k-upload/components/ImageCutter.js +0 -7
- package/dist/components/k-upload/components/ImageCutter.vue_vue_type_script_setup_true_lang.js +0 -40
- package/dist/components/k-upload/components/UploadFileItem.js +0 -7
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_script_setup_true_lang.js +0 -73
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_style_index_0_scoped_01959ada_lang.css +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.js +0 -7
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_script_setup_true_lang.js +0 -39
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_style_index_0_scoped_55d9c320_lang.css +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.js +0 -7
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_style_index_0_scoped_b9720661_lang.css +0 -1
- package/dist/components/k-upload/components/UploadTipArea.js +0 -7
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_script_setup_true_lang.js +0 -26
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_style_index_0_scoped_f2b7df65_lang.css +0 -1
- package/dist/components/k-upload/composables/useImagePreview.js +0 -23
- package/dist/components/k-upload/composables/useMediaPreview.js +0 -20
- package/dist/components/k-upload/composables/useUploadFileList.js +0 -46
- package/dist/components/k-upload/composables/useUploadRequest.js +0 -43
- package/dist/components/k-upload/composables/useUploadValidation.js +0 -22
- package/dist/components/k-upload/resolveUploadAction.js +0 -13
- package/dist/components/k-upload/utils/uploadFileValue.js +0 -44
- package/dist/config/uploadConfig.js +0 -29
- package/dist/theme/index.js +0 -22
- package/dist/utils/createStubComponent.js +0 -43
- package/dist/utils/validators.js +0 -152
- /package/dist/{components/k-upload/components/ImageCutter.vue_vue_type_style_index_0_scoped_900b5e3b_lang.css → assets/ImageCutter-B771uShK.css} +0 -0
- /package/dist/{components/k-editor/KEditor.vue_vue_type_style_index_0_scoped_b9ef08e0_lang.css → assets/KEditor-LzsE5URl.css} +0 -0
- /package/dist/{components/k-echarts/KEcharts.vue_vue_type_style_index_0_scoped_d6da558a_lang.css → assets/index-DMxcQQBQ.css} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toStringValue as t } from "../utils/fieldValue.js";
|
|
2
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createSlots as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
3
|
-
import { ElInput as h } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/Input.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var g = ["type"], _ = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "k-form-input__readonly"
|
|
8
|
-
}, v = /*@__PURE__*/ c({
|
|
9
|
-
name: "KFormInput",
|
|
10
|
-
inheritAttrs: !1,
|
|
11
|
-
__name: "Input",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {},
|
|
14
|
-
options: {},
|
|
15
|
-
readonly: { type: Boolean },
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
placeholder: { default: "请输入" },
|
|
18
|
-
maxlength: { default: void 0 },
|
|
19
|
-
maxLength: { default: void 0 },
|
|
20
|
-
type: { default: "text" },
|
|
21
|
-
leftText: { default: "" },
|
|
22
|
-
rightText: { default: "" },
|
|
23
|
-
prepend: { default: "" },
|
|
24
|
-
append: { default: "" },
|
|
25
|
-
leftClass: { default: "" },
|
|
26
|
-
rightClass: { default: "" },
|
|
27
|
-
leftClick: {
|
|
28
|
-
type: Function,
|
|
29
|
-
default: () => void 0
|
|
30
|
-
},
|
|
31
|
-
rightClick: {
|
|
32
|
-
type: Function,
|
|
33
|
-
default: () => void 0
|
|
34
|
-
},
|
|
35
|
-
componentType: { default: void 0 },
|
|
36
|
-
clearable: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
emits: ["update:modelValue"],
|
|
42
|
-
setup(c, { emit: v }) {
|
|
43
|
-
let y = c, b = v, x = n(() => t(y.modelValue)), S = n(() => y.maxlength ?? y.maxLength), C = n(() => y.type === "textarea"), w = n(() => y.clearable && !C.value), T = n(() => {
|
|
44
|
-
let t = e(x.value);
|
|
45
|
-
return t === "--" ? t : `${y.prepend || ""}${t}${y.append || ""}`;
|
|
46
|
-
});
|
|
47
|
-
function E(e) {
|
|
48
|
-
b("update:modelValue", e);
|
|
49
|
-
}
|
|
50
|
-
return (e, t) => (d(), a("div", {
|
|
51
|
-
class: "k-form-input",
|
|
52
|
-
type: C.value ? "textarea" : void 0
|
|
53
|
-
}, [
|
|
54
|
-
c.leftText ? (d(), a("div", {
|
|
55
|
-
key: 0,
|
|
56
|
-
class: u(["k-form-input__side k-form-input__side--left", c.leftClass]),
|
|
57
|
-
onClick: t[0] ||= (...e) => c.leftClick && c.leftClick(...e)
|
|
58
|
-
}, f(c.leftText), 3)) : i("", !0),
|
|
59
|
-
c.readonly ? (d(), a("div", _, f(T.value), 1)) : (d(), r(p(h), l({ key: 2 }, e.$attrs, {
|
|
60
|
-
"model-value": x.value,
|
|
61
|
-
autocomplete: "off",
|
|
62
|
-
clearable: w.value,
|
|
63
|
-
disabled: c.disabled,
|
|
64
|
-
placeholder: c.placeholder,
|
|
65
|
-
maxlength: S.value,
|
|
66
|
-
type: c.type,
|
|
67
|
-
"onUpdate:modelValue": E
|
|
68
|
-
}), o({ _: 2 }, [c.prepend ? {
|
|
69
|
-
name: "prepend",
|
|
70
|
-
fn: m(() => [s(f(c.prepend), 1)]),
|
|
71
|
-
key: "0"
|
|
72
|
-
} : void 0, c.append ? {
|
|
73
|
-
name: "append",
|
|
74
|
-
fn: m(() => [s(f(c.append), 1)]),
|
|
75
|
-
key: "1"
|
|
76
|
-
} : void 0]), 1040, [
|
|
77
|
-
"model-value",
|
|
78
|
-
"clearable",
|
|
79
|
-
"disabled",
|
|
80
|
-
"placeholder",
|
|
81
|
-
"maxlength",
|
|
82
|
-
"type"
|
|
83
|
-
])),
|
|
84
|
-
c.rightText ? (d(), a("div", {
|
|
85
|
-
key: 3,
|
|
86
|
-
class: u(["k-form-input__side k-form-input__side--right", c.rightClass]),
|
|
87
|
-
onClick: t[1] ||= (...e) => c.rightClick && c.rightClick(...e)
|
|
88
|
-
}, f(c.rightText), 3)) : i("", !0)
|
|
89
|
-
], 8, g));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
//#endregion
|
|
93
|
-
export { v as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./InputMixInput.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './InputMixInput.vue_vue_type_style_index_0_scoped_6fdf6265_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/InputMixInput.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-6fdf6265"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import e from "./Input.js";
|
|
2
|
-
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeProps as s, normalizeClass as c, normalizeStyle as l, openBlock as u, ref as d, watch as f } from "vue";
|
|
3
|
-
//#region src/components/k-form/formComponent/InputMixInput.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var p = ["innerHTML"], m = ["innerHTML"], h = ["innerHTML"], g = /*@__PURE__*/ o({
|
|
5
|
-
name: "KFormInputMixInput",
|
|
6
|
-
__name: "InputMixInput",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: {},
|
|
9
|
-
options: {},
|
|
10
|
-
readonly: { type: Boolean },
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
leftText: { default: "" },
|
|
13
|
-
rightText: { default: "" },
|
|
14
|
-
centerText: { default: "" },
|
|
15
|
-
leftPlaceholder: { default: "" },
|
|
16
|
-
rightPlaceholder: { default: "" },
|
|
17
|
-
leftProps: { default: () => ({}) },
|
|
18
|
-
rightProps: { default: () => ({}) },
|
|
19
|
-
inputWidth: { default: 120 },
|
|
20
|
-
leftWidth: { default: void 0 },
|
|
21
|
-
rightWidth: { default: void 0 },
|
|
22
|
-
clearable: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !0
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:modelValue"],
|
|
28
|
-
setup(o, { emit: g }) {
|
|
29
|
-
let _ = o, v = g, y = d(["", ""]);
|
|
30
|
-
function b(e, t) {
|
|
31
|
-
let n = e ?? t;
|
|
32
|
-
return typeof n == "number" ? `${n}px` : n;
|
|
33
|
-
}
|
|
34
|
-
function x(e) {
|
|
35
|
-
return !!(e?.prepend || e?.append);
|
|
36
|
-
}
|
|
37
|
-
function S(e, t) {
|
|
38
|
-
let n = b(e, _.inputWidth);
|
|
39
|
-
return x(t) ? {
|
|
40
|
-
"--k-mix-input-field-width": n,
|
|
41
|
-
flex: "0 0 auto"
|
|
42
|
-
} : {
|
|
43
|
-
width: n,
|
|
44
|
-
maxWidth: n,
|
|
45
|
-
minWidth: n,
|
|
46
|
-
flex: "0 0 auto"
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
let C = t(() => x(_.leftProps)), w = t(() => x(_.rightProps)), T = t(() => S(_.leftWidth, _.leftProps)), E = t(() => S(_.rightWidth, _.rightProps));
|
|
50
|
-
f(() => _.modelValue, (e) => {
|
|
51
|
-
Array.isArray(e) && (y.value = [String(e[0] ?? ""), String(e[1] ?? "")]);
|
|
52
|
-
}, { immediate: !0 });
|
|
53
|
-
function D(e, t) {
|
|
54
|
-
y.value[e] = t, v("update:modelValue", [...y.value]);
|
|
55
|
-
}
|
|
56
|
-
return (t, d) => (u(), r("div", { class: c(["k-form-input-mix-input", { "k-form-input-mix-input--readonly": o.readonly }]) }, [
|
|
57
|
-
o.leftText ? (u(), r("div", {
|
|
58
|
-
key: 0,
|
|
59
|
-
class: "k-form-input-mix-input__text",
|
|
60
|
-
innerHTML: o.leftText
|
|
61
|
-
}, null, 8, p)) : n("", !0),
|
|
62
|
-
i("div", {
|
|
63
|
-
class: c(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": C.value }]),
|
|
64
|
-
style: l(o.readonly ? void 0 : T.value)
|
|
65
|
-
}, [a(e, s({
|
|
66
|
-
clearable: o.clearable,
|
|
67
|
-
"model-value": y.value[0],
|
|
68
|
-
readonly: o.readonly,
|
|
69
|
-
disabled: o.disabled,
|
|
70
|
-
placeholder: o.leftPlaceholder
|
|
71
|
-
}, o.leftProps, { "onUpdate:modelValue": d[0] ||= (e) => D(0, e) }), null, 16, [
|
|
72
|
-
"clearable",
|
|
73
|
-
"model-value",
|
|
74
|
-
"readonly",
|
|
75
|
-
"disabled",
|
|
76
|
-
"placeholder"
|
|
77
|
-
])], 6),
|
|
78
|
-
o.centerText ? (u(), r("div", {
|
|
79
|
-
key: 1,
|
|
80
|
-
class: "k-form-input-mix-input__text",
|
|
81
|
-
innerHTML: o.centerText
|
|
82
|
-
}, null, 8, m)) : n("", !0),
|
|
83
|
-
i("div", {
|
|
84
|
-
class: c(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": w.value }]),
|
|
85
|
-
style: l(o.readonly ? void 0 : E.value)
|
|
86
|
-
}, [a(e, s({
|
|
87
|
-
"model-value": y.value[1],
|
|
88
|
-
clearable: o.clearable,
|
|
89
|
-
readonly: o.readonly,
|
|
90
|
-
disabled: o.disabled,
|
|
91
|
-
placeholder: o.rightPlaceholder
|
|
92
|
-
}, o.rightProps, { "onUpdate:modelValue": d[1] ||= (e) => D(1, e) }), null, 16, [
|
|
93
|
-
"model-value",
|
|
94
|
-
"clearable",
|
|
95
|
-
"readonly",
|
|
96
|
-
"disabled",
|
|
97
|
-
"placeholder"
|
|
98
|
-
])], 6),
|
|
99
|
-
o.rightText ? (u(), r("div", {
|
|
100
|
-
key: 2,
|
|
101
|
-
class: "k-form-input-mix-input__text",
|
|
102
|
-
innerHTML: o.rightText
|
|
103
|
-
}, null, 8, h)) : n("", !0)
|
|
104
|
-
], 2));
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
//#endregion
|
|
108
|
-
export { g as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-input-mix-input[data-v-6fdf6265]{vertical-align:top;flex-wrap:wrap;align-items:center;gap:8px;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-input__control[data-v-6fdf6265]{flex:none;max-width:100%}.k-form-input-mix-input__control[data-v-6fdf6265] .k-form-input{width:100%!important;max-width:none!important}.k-form-input-mix-input__control[data-v-6fdf6265] .el-input{width:100%}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .k-form-input{width:auto!important}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group .el-input__wrapper{width:var(--k-mix-input-field-width,120px);min-width:var(--k-mix-input-field-width,120px);flex:auto}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__prepend,.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-input__text[data-v-6fdf6265]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex:none}.k-form-input-mix-input--readonly .k-form-input-mix-input__control[data-v-6fdf6265]{width:auto;min-width:0}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./InputMixSelect.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './InputMixSelect.vue_vue_type_style_index_0_scoped_1f46ef39_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/InputMixSelect.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-1f46ef39"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { DICT_KEY as e } from "../../k-table/types.js";
|
|
2
|
-
import t from "./Input.js";
|
|
3
|
-
import n from "./Select.js";
|
|
4
|
-
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, toDisplayString as g, watch as _ } from "vue";
|
|
5
|
-
import { cloneDeep as v } from "lodash-es";
|
|
6
|
-
//#region src/components/k-form/formComponent/InputMixSelect.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var y = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "k-form-input-mix-select__text"
|
|
10
|
-
}, b = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "k-form-input-mix-select__text"
|
|
13
|
-
}, x = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "k-form-input-mix-select__text"
|
|
16
|
-
}, S = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "k-form-input-mix-select__text"
|
|
19
|
-
}, C = /*@__PURE__*/ l({
|
|
20
|
-
name: "KFormInputMixSelect",
|
|
21
|
-
__name: "InputMixSelect",
|
|
22
|
-
props: {
|
|
23
|
-
modelValue: {},
|
|
24
|
-
options: {},
|
|
25
|
-
readonly: { type: Boolean },
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: void 0
|
|
29
|
-
},
|
|
30
|
-
inputBefore: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !0
|
|
33
|
-
},
|
|
34
|
-
leftText: { default: "" },
|
|
35
|
-
rightText: { default: "" },
|
|
36
|
-
centerText: { default: "" },
|
|
37
|
-
selectWidth: { default: 150 },
|
|
38
|
-
inputWidth: { default: 140 },
|
|
39
|
-
itemGap: { default: 8 },
|
|
40
|
-
inputProps: { default: () => ({}) },
|
|
41
|
-
selectProps: { default: () => ({}) },
|
|
42
|
-
inputPlaceholder: { default: "" },
|
|
43
|
-
selectPlaceholder: { default: "请选择" },
|
|
44
|
-
inputHide: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
integrityCheck: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:modelValue"],
|
|
54
|
-
setup(l, { emit: C }) {
|
|
55
|
-
let w = u(e, null), T = l, E = C, D = h({}), O = h(""), k = h(""), A = i(() => T.inputProps.id ?? "input"), j = i(() => T.selectProps.id ?? "select"), M = i(() => {
|
|
56
|
-
let e = v(T.inputProps);
|
|
57
|
-
return delete e.id, e;
|
|
58
|
-
}), N = i(() => {
|
|
59
|
-
let e = v(T.selectProps);
|
|
60
|
-
return delete e.id, e;
|
|
61
|
-
});
|
|
62
|
-
function P(e, t) {
|
|
63
|
-
return e == null || e === "" ? t : typeof e == "number" ? `${e}px` : e;
|
|
64
|
-
}
|
|
65
|
-
function F(e) {
|
|
66
|
-
return !!(e?.prepend || e?.append);
|
|
67
|
-
}
|
|
68
|
-
let I = i(() => ({ gap: P(T.itemGap, "8px") }));
|
|
69
|
-
function L(e, t, n) {
|
|
70
|
-
if (T.readonly) return;
|
|
71
|
-
let r = P(e, t);
|
|
72
|
-
return F(n) ? {
|
|
73
|
-
"--k-mix-select-field-width": r,
|
|
74
|
-
flex: "0 0 auto"
|
|
75
|
-
} : {
|
|
76
|
-
width: r,
|
|
77
|
-
maxWidth: r,
|
|
78
|
-
minWidth: r,
|
|
79
|
-
flex: "0 0 auto"
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
let R = i(() => F(T.inputProps)), z = i(() => F(T.selectProps)), B = i(() => L(T.selectWidth, "150px", T.selectProps)), V = i(() => L(T.inputWidth, "140px", T.inputProps));
|
|
83
|
-
function H(e) {
|
|
84
|
-
let { dict: t, options: n = [] } = e;
|
|
85
|
-
return t && w?.getGroupOptions ? w.getGroupOptions(t) : n.map((e) => ({
|
|
86
|
-
label: String(e.label ?? ""),
|
|
87
|
-
value: e.value,
|
|
88
|
-
disabled: e.disabled
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
let U = i(() => H(T.selectProps));
|
|
92
|
-
function W() {
|
|
93
|
-
let e = D.value[A.value], t = D.value[j.value];
|
|
94
|
-
if (T.integrityCheck) {
|
|
95
|
-
e && t || T.inputHide ? E("update:modelValue", { ...D.value }) : E("update:modelValue", "");
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
E("update:modelValue", { ...D.value });
|
|
99
|
-
}
|
|
100
|
-
function G(e, t) {
|
|
101
|
-
D.value[t] = e, O.value = String(D.value[A.value] ?? ""), k.value = D.value[j.value], W();
|
|
102
|
-
}
|
|
103
|
-
return _(() => T.modelValue, (e) => {
|
|
104
|
-
e && typeof e == "object" && !Array.isArray(e) && (D.value = v(e), O.value = String(D.value[A.value] ?? ""), k.value = D.value[j.value]);
|
|
105
|
-
}, {
|
|
106
|
-
immediate: !0,
|
|
107
|
-
deep: !0
|
|
108
|
-
}), (e, i) => (m(), o("div", { class: f(["k-form-input-mix-select", { "k-form-input-mix-select--readonly": l.readonly }]) }, [s("div", {
|
|
109
|
-
class: "k-form-input-mix-select__row",
|
|
110
|
-
style: p(I.value)
|
|
111
|
-
}, [
|
|
112
|
-
l.leftText ? (m(), o("div", y, g(l.leftText), 1)) : a("", !0),
|
|
113
|
-
l.inputBefore ? (m(), o(r, { key: 1 }, [
|
|
114
|
-
l.inputHide ? a("", !0) : (m(), o("div", {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": R.value }]),
|
|
117
|
-
style: p(V.value)
|
|
118
|
-
}, [c(t, d({
|
|
119
|
-
"model-value": O.value,
|
|
120
|
-
readonly: l.readonly,
|
|
121
|
-
disabled: l.disabled,
|
|
122
|
-
placeholder: l.inputPlaceholder
|
|
123
|
-
}, M.value, { "onUpdate:modelValue": i[0] ||= (e) => G(e, A.value) }), null, 16, [
|
|
124
|
-
"model-value",
|
|
125
|
-
"readonly",
|
|
126
|
-
"disabled",
|
|
127
|
-
"placeholder"
|
|
128
|
-
])], 6)),
|
|
129
|
-
l.centerText ? (m(), o("div", b, g(l.centerText), 1)) : a("", !0),
|
|
130
|
-
s("div", {
|
|
131
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": z.value }]),
|
|
132
|
-
style: p(B.value)
|
|
133
|
-
}, [c(n, d({
|
|
134
|
-
"model-value": k.value,
|
|
135
|
-
readonly: l.readonly,
|
|
136
|
-
disabled: l.disabled,
|
|
137
|
-
options: U.value,
|
|
138
|
-
placeholder: l.selectPlaceholder
|
|
139
|
-
}, N.value, { "onUpdate:modelValue": i[1] ||= (e) => G(e, j.value) }), null, 16, [
|
|
140
|
-
"model-value",
|
|
141
|
-
"readonly",
|
|
142
|
-
"disabled",
|
|
143
|
-
"options",
|
|
144
|
-
"placeholder"
|
|
145
|
-
])], 6)
|
|
146
|
-
], 64)) : (m(), o(r, { key: 2 }, [
|
|
147
|
-
s("div", {
|
|
148
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": z.value }]),
|
|
149
|
-
style: p(B.value)
|
|
150
|
-
}, [c(n, d({
|
|
151
|
-
"model-value": k.value,
|
|
152
|
-
readonly: l.readonly,
|
|
153
|
-
disabled: l.disabled,
|
|
154
|
-
options: U.value,
|
|
155
|
-
placeholder: l.selectPlaceholder
|
|
156
|
-
}, N.value, { "onUpdate:modelValue": i[2] ||= (e) => G(e, j.value) }), null, 16, [
|
|
157
|
-
"model-value",
|
|
158
|
-
"readonly",
|
|
159
|
-
"disabled",
|
|
160
|
-
"options",
|
|
161
|
-
"placeholder"
|
|
162
|
-
])], 6),
|
|
163
|
-
l.centerText ? (m(), o("div", x, g(l.centerText), 1)) : a("", !0),
|
|
164
|
-
l.inputHide ? a("", !0) : (m(), o("div", {
|
|
165
|
-
key: 1,
|
|
166
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": R.value }]),
|
|
167
|
-
style: p(V.value)
|
|
168
|
-
}, [c(t, d({
|
|
169
|
-
"model-value": O.value,
|
|
170
|
-
readonly: l.readonly,
|
|
171
|
-
disabled: l.disabled,
|
|
172
|
-
placeholder: l.inputPlaceholder
|
|
173
|
-
}, M.value, { "onUpdate:modelValue": i[3] ||= (e) => G(e, A.value) }), null, 16, [
|
|
174
|
-
"model-value",
|
|
175
|
-
"readonly",
|
|
176
|
-
"disabled",
|
|
177
|
-
"placeholder"
|
|
178
|
-
])], 6))
|
|
179
|
-
], 64)),
|
|
180
|
-
l.rightText && !l.inputHide ? (m(), o("div", S, g(l.rightText), 1)) : a("", !0)
|
|
181
|
-
], 4)], 2));
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
//#endregion
|
|
185
|
-
export { C as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-input-mix-select[data-v-1f46ef39]{vertical-align:top;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__row[data-v-1f46ef39]{flex-wrap:wrap;align-items:center;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__text[data-v-1f46ef39]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size,12px);white-space:nowrap;flex-shrink:0;line-height:1.4}.k-form-input-mix-select__control[data-v-1f46ef39]{flex:none;max-width:100%}.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-select{min-width:0;width:100%!important;max-width:none!important}.k-form-input-mix-select__control[data-v-1f46ef39] .el-input,.k-form-input-mix-select__control[data-v-1f46ef39] .el-select{width:100%}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-select{width:auto!important}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group .el-input__wrapper{width:var(--k-mix-select-field-width,140px);min-width:var(--k-mix-select-field-width,140px);flex:auto}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__prepend,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-select--readonly .k-form-input-mix-select__control[data-v-1f46ef39]{width:auto;min-width:0}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./InputNumber.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/InputNumber.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-acdc4199"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toNumberValue as t } from "../utils/fieldValue.js";
|
|
2
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, openBlock as s, toDisplayString as c, unref as l } from "vue";
|
|
3
|
-
import { ElInputNumber as u } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/InputNumber.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = { class: "k-form-input-number" }, f = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-form-input-number__side k-form-input-number__side--left"
|
|
8
|
-
}, p = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "k-form-input-number__readonly"
|
|
11
|
-
}, m = {
|
|
12
|
-
key: 3,
|
|
13
|
-
class: "k-form-input-number__side k-form-input-number__side--right"
|
|
14
|
-
}, h = /*@__PURE__*/ o({
|
|
15
|
-
name: "KFormInputNumber",
|
|
16
|
-
__name: "InputNumber",
|
|
17
|
-
props: {
|
|
18
|
-
modelValue: {},
|
|
19
|
-
options: {},
|
|
20
|
-
readonly: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
leftText: { default: "" },
|
|
23
|
-
rightText: { default: "" },
|
|
24
|
-
min: { default: void 0 },
|
|
25
|
-
max: { default: void 0 },
|
|
26
|
-
maxlength: { default: 1e3 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:modelValue"],
|
|
29
|
-
setup(o, { emit: h }) {
|
|
30
|
-
let g = o, _ = h, v = n(() => t(g.modelValue));
|
|
31
|
-
function y(e) {
|
|
32
|
-
if (e === void 0) {
|
|
33
|
-
_("update:modelValue", g.min ?? 0);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
let t = String(e);
|
|
37
|
-
if (t.length > g.maxlength) {
|
|
38
|
-
_("update:modelValue", Number(t.slice(0, g.maxlength)));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
_("update:modelValue", e);
|
|
42
|
-
}
|
|
43
|
-
return (t, n) => (s(), a("div", d, [
|
|
44
|
-
o.leftText ? (s(), a("div", f, c(o.leftText), 1)) : i("", !0),
|
|
45
|
-
o.readonly ? (s(), a("span", p, c(l(e)(v.value)), 1)) : (s(), r(l(u), {
|
|
46
|
-
key: 2,
|
|
47
|
-
"model-value": v.value,
|
|
48
|
-
min: o.min,
|
|
49
|
-
max: o.max,
|
|
50
|
-
disabled: o.disabled,
|
|
51
|
-
"onUpdate:modelValue": y
|
|
52
|
-
}, null, 8, [
|
|
53
|
-
"model-value",
|
|
54
|
-
"min",
|
|
55
|
-
"max",
|
|
56
|
-
"disabled"
|
|
57
|
-
])),
|
|
58
|
-
o.rightText ? (s(), a("div", m, c(o.rightText), 1)) : i("", !0)
|
|
59
|
-
]));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
//#endregion
|
|
63
|
-
export { h as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-input-number[data-v-acdc4199]{align-items:center;display:flex}.k-form-input-number__side[data-v-acdc4199]{color:var(--k-color-text-regular);white-space:nowrap;font-size:12px}.k-form-input-number__side--left[data-v-acdc4199]{margin-right:5px}.k-form-input-number__side--right[data-v-acdc4199]{margin-left:5px}.k-form-input-number__readonly[data-v-acdc4199]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./Radio.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/Radio.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e0ff32b0"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toScalarValue as t } from "../utils/fieldValue.js";
|
|
2
|
-
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createTextVNode as o, defineComponent as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
3
|
-
import { ElRadio as p, ElRadioButton as m, ElRadioGroup as h } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/Radio.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var g = { class: "k-form-radio" }, _ = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-form-radio__readonly"
|
|
8
|
-
}, v = /*@__PURE__*/ s({
|
|
9
|
-
name: "KFormRadio",
|
|
10
|
-
__name: "Radio",
|
|
11
|
-
props: {
|
|
12
|
-
modelValue: {},
|
|
13
|
-
options: {},
|
|
14
|
-
readonly: { type: Boolean },
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
type: { default: "default" }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue"],
|
|
19
|
-
setup(s, { emit: v }) {
|
|
20
|
-
let y = s, b = v, x = r(() => t(y.modelValue)), S = r(() => (y.options ?? []).find((e) => e.value === x.value)?.label ?? e(x.value));
|
|
21
|
-
function C(e) {
|
|
22
|
-
b("update:modelValue", e);
|
|
23
|
-
}
|
|
24
|
-
return (e, r) => (c(), a("div", g, [s.readonly ? (c(), a("span", _, u(S.value), 1)) : (c(), i(d(h), {
|
|
25
|
-
key: 1,
|
|
26
|
-
"model-value": x.value,
|
|
27
|
-
disabled: s.disabled,
|
|
28
|
-
"onUpdate:modelValue": C
|
|
29
|
-
}, {
|
|
30
|
-
default: f(() => [(c(!0), a(n, null, l(s.options, (e) => (c(), a(n, { key: String(e.value) }, [s.type === "button" ? (c(), i(d(m), {
|
|
31
|
-
key: 0,
|
|
32
|
-
value: d(t)(e.value),
|
|
33
|
-
disabled: e.disabled
|
|
34
|
-
}, {
|
|
35
|
-
default: f(() => [o(u(e.label), 1)]),
|
|
36
|
-
_: 2
|
|
37
|
-
}, 1032, ["value", "disabled"])) : (c(), i(d(p), {
|
|
38
|
-
key: 1,
|
|
39
|
-
value: d(t)(e.value),
|
|
40
|
-
disabled: e.disabled
|
|
41
|
-
}, {
|
|
42
|
-
default: f(() => [o(u(e.label), 1)]),
|
|
43
|
-
_: 2
|
|
44
|
-
}, 1032, ["value", "disabled"]))], 64))), 128))]),
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["model-value", "disabled"]))]));
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { v as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-radio[data-v-e0ff32b0] .el-radio.is-bordered,.k-form-radio[data-v-e0ff32b0] .el-radio-button{margin-left:0}.k-form-radio__readonly[data-v-e0ff32b0]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./RadioInput.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/RadioInput.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-1543c319"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|