@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6.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/package.json +5 -5
- package/packages/business-components/device-panel/index.js +37113 -36843
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +16 -6
- package/packages/business-components/import-button/index.js +147 -141
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
- package/packages/business-components/process-configuration/index.js +2 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
- package/packages/business-components/process-form/index.js +64 -63
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +539 -528
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +13 -4
- package/packages/components/autocomplete/index.js +135 -122
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
- package/packages/components/autocomplete/src/type.d.ts +4 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/cascader/index.js +41 -40
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +238 -237
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +9 -9
- package/packages/components/edit-table/index.js +2010 -1658
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/edit-table/src/type.d.ts +13 -0
- package/packages/components/edit-table/src/utils.d.ts +9 -5
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/input/index.js +103 -102
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +18 -18
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +63 -63
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -3
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/map/index.js +388 -385
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +680 -606
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +5 -0
- package/packages/components/search-form/index.js +44 -43
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +213 -213
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.d.ts +23 -3
- package/packages/components/select-list/index.js +599 -565
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +9 -1
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
- package/packages/components/select-list/src/type.d.ts +22 -4
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +3 -3
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +42 -42
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +0 -20
- package/packages/components/table/index.js +0 -4
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +660 -651
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +1 -62
- package/packages/components/tree/index.js +222 -222
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +1 -0
- package/packages/components/tree-select/index.js +374 -345
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
|
Binary file
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { Props } from '../type';
|
|
3
3
|
export declare const useValidator: (props: Props, tableConfig: Ref, tableData: Ref) => {
|
|
4
|
-
errorFieldList: Ref<
|
|
4
|
+
errorFieldList: Ref<{
|
|
5
|
+
$uuidKey: any;
|
|
6
|
+
fields: any;
|
|
7
|
+
}[], Record<"$uuidKey" | "fields", any>[] | {
|
|
8
|
+
$uuidKey: any;
|
|
9
|
+
fields: any;
|
|
10
|
+
}[]>;
|
|
5
11
|
errorModelZIndex: Ref<number, number>;
|
|
6
|
-
deactivateAll: () => void;
|
|
7
12
|
setRules: () => void;
|
|
8
13
|
setValidator: () => void;
|
|
9
14
|
validateSingleField: (row: any, rowIndex: number, prop: string, callback?: (valid: boolean) => void) => void;
|
|
10
15
|
handleError: (row: any, rowIndex: number, config: any) => Record<"error" | "message", any>;
|
|
11
16
|
removeErrorByRowKey: (id: string | string[] | number | number[]) => void;
|
|
12
|
-
validateByRowKey: (id: string | string[] | number | number[], callback?: (result:
|
|
17
|
+
validateByRowKey: (id: string | string[] | number | number[], callback?: (result: any) => void) => void;
|
|
13
18
|
validateAll: (callback?: (valid: boolean, errFiedList: any[]) => void) => void;
|
|
19
|
+
deactivateAll: () => void;
|
|
14
20
|
clearValidate: () => void;
|
|
15
21
|
changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
|
|
16
22
|
removeCellError: (row: any, prop?: string) => void;
|
|
@@ -2053,7 +2053,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
2053
2053
|
/** 校验全部 */
|
|
2054
2054
|
validateAll: (callback?: (valid: boolean, errFiedList: any[]) => void) => void;
|
|
2055
2055
|
/** 根据rowKey校验指定项,支持传入string|array */
|
|
2056
|
-
validateByRowKey: (id: string | string[] | number | number[], callback?: (result:
|
|
2056
|
+
validateByRowKey: (id: string | string[] | number | number[], callback?: (result: any) => void) => void;
|
|
2057
2057
|
/** 清除或者批量清除错误信息,支持传入string|array */
|
|
2058
2058
|
removeErrorByRowKey: (id: string | string[] | number | number[]) => void;
|
|
2059
2059
|
/** 清空全部校验信息 */
|
|
@@ -94,6 +94,7 @@ export type ListConfig = {
|
|
|
94
94
|
inputWidth?: string
|
|
95
95
|
|
|
96
96
|
|
|
97
|
+
|
|
97
98
|
|
|
98
99
|
keywordProp?: string
|
|
99
100
|
|
|
@@ -113,10 +114,22 @@ export type ListConfig = {
|
|
|
113
114
|
getGrandChildren?: (data?: any) => Promise<any>
|
|
114
115
|
|
|
115
116
|
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
116
120
|
openDialog?: (row: any, column: any, index: number) => void
|
|
117
121
|
|
|
118
122
|
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
119
126
|
select?: (val: any, row: any, column: any, index: number, option?: Record<any, any>) => void
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
cascaderNameProp?: string
|
|
120
133
|
}
|
|
121
134
|
|
|
122
135
|
export interface Props {
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { FormType } from './type';
|
|
2
|
+
/** 获取元素类型 */
|
|
3
|
+
export declare const getMode: (config: any, row: any, column: any, $index: number) => any;
|
|
2
4
|
/**
|
|
3
5
|
* 是否显示组件
|
|
4
6
|
* @param {Array} types - 需要显示的表单类型
|
|
5
7
|
* @returns {boolean} 是否显示
|
|
6
8
|
*/
|
|
7
9
|
export declare const isShow: (types: FormType[], type: FormType) => boolean;
|
|
10
|
+
export declare const getItemAttrs: (itemProps: any) => any;
|
|
11
|
+
export declare const useDefined: (val: any, row: any, column: any, index: number, defaultValue: any) => any;
|
|
12
|
+
export declare const getOptions: (config: any, row: any, column: any, $index: number) => any;
|
|
8
13
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param params
|
|
12
|
-
* @param defaultValue 默认值
|
|
14
|
+
*
|
|
15
|
+
* @param type
|
|
16
|
+
* @param params
|
|
13
17
|
* @returns
|
|
14
18
|
*/
|
|
15
|
-
export declare const
|
|
19
|
+
export declare const getViewText: (type: string, params: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell{padding:4.5px 0}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell{padding:0 4px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content{width:100%;height:30px;display:flex;align-items:center;justify-content:space-between}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .
|
|
1
|
+
@charset "UTF-8";.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell{padding:4.5px 0}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell{padding:0 4px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content{width:100%;height:30px;display:flex;align-items:center;justify-content:space-between}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center{overflow:hidden;height:100%;display:flex;align-items:center}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .center-box_y{height:100%;display:flex;flex-direction:column;justify-content:center}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .edit-table_text{height:30px;line-height:30px;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .edit-table_text-flex-box{width:100%;height:30px;display:flex;align-items:center;padding:0 8px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .edit-table_text-flex-box .item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .el-input .el-input__inner::placeholder,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .form-center .ant-select-selection-placeholder{font-size:12px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-radio,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-checkbox,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-switch,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-cascader .el-input__wrapper,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-date-picker .ant-picker,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-range-picker .ant-picker,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-tree-select .das-tree-select__selct-text-content,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-autocomplete .input-text-content{padding-left:8px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-radio .ant-radio-wrapper{margin-right:0}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.das-edit-table-column__cell .cell .form-content .das-ui-checkbox .label.label-min-width{min-width:unset;margin-left:0}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .placeholder{padding:0 8px}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .el-input .el-input__wrapper{box-shadow:none!important;border:none!important;background-color:transparent!important}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .el-input .el-input__inner::placeholder,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .ant-select-selection-placeholder{color:transparent}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .el-input-group__append{box-shadow:none!important;background:transparent!important}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .das-ui-select .ant-select .ant-select-arrow,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .das-ui-cascader .el-cascader .el-input__wrapper .el-input__suffix,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .das-ui-input-dialog-select .das-ui-input-dialog-select-content .das-ui-input-dialog-select-search,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .ant-picker .ant-picker-suffix{display:none!important}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .ant-select-selector,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .ant-picker,.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell.is-view .form-content .das-ui-input-dialog-select-content{border:none!important}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell:not(.is-view) .das-ui-input-dialog-select-content{background-color:#fff}.das-ui-table .das-ui-edit-table .el-table__body-wrapper .el-table__body .el-table__row .el-table__cell:not(.is-view) .das-ui-tree-select .das-tree-select__select-content{height:30px!important}
|
|
Binary file
|
|
@@ -1353,12 +1353,12 @@ const Uo = (e, t, r) => {
|
|
|
1353
1353
|
display: "block",
|
|
1354
1354
|
"text-align": "left",
|
|
1355
1355
|
color: Xe("--das-ui-form-error-label-color").value,
|
|
1356
|
-
"white-space": "break-spaces"
|
|
1357
|
-
|
|
1356
|
+
"white-space": "break-spaces"
|
|
1357
|
+
// 'word-break': 'break-all',
|
|
1358
1358
|
}), d = () => {
|
|
1359
1359
|
var A, c, g;
|
|
1360
1360
|
n.value = (A = t.value) == null ? void 0 : A.clientWidth;
|
|
1361
|
-
const { top:
|
|
1361
|
+
const { top: $ = 0, left: f = 0 } = ((c = t.value) == null ? void 0 : c.getBoundingClientRect()) ?? {}, E = (g = t.value) == null ? void 0 : g.clientHeight;
|
|
1362
1362
|
a.value.x = f, a.value.y = $ + E;
|
|
1363
1363
|
};
|
|
1364
1364
|
return {
|
|
Binary file
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { getVarValue as
|
|
4
|
-
import { defineComponent as
|
|
2
|
+
import { withInstall as te } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { getVarValue as N, setThemeRule as oe } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { defineComponent as le, computed as n, ref as a, watch as B, nextTick as D, openBlock as u, createElementBlock as f, normalizeStyle as E, normalizeClass as R, createCommentVNode as d, createVNode as F, unref as P, withCtx as y, mergeProps as ae, createSlots as re, renderSlot as T, toDisplayString as k, Fragment as se, createBlock as ie, Teleport as ne, createElementVNode as z } from "vue";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
6
|
-
import { ElInput as
|
|
7
|
-
import { DasTooltip as
|
|
8
|
-
import { t as
|
|
9
|
-
const
|
|
6
|
+
import { ElInput as ue } from "element-plus";
|
|
7
|
+
import { DasTooltip as de } from "@das-fed/ui/packages/components/tooltip/index";
|
|
8
|
+
import { t as pe, setI18nRule as fe } from "@das-fed/web/packages/i18n/index";
|
|
9
|
+
const ce = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], ve = (l) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(l), me = (l) => {
|
|
10
10
|
if (l)
|
|
11
|
-
return typeof l == "string" &&
|
|
12
|
-
},
|
|
11
|
+
return typeof l == "string" && ve(l) || typeof l == "string" && ce.includes(l) ? l : l + "px";
|
|
12
|
+
}, be = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "das-input-label-content"
|
|
15
|
-
},
|
|
15
|
+
}, ye = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "das-input-success-label"
|
|
18
|
-
},
|
|
18
|
+
}, he = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "das-input-label-content"
|
|
21
|
-
},
|
|
21
|
+
}, ge = ["title"], xe = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "das-input-overlay-error-label-content"
|
|
24
|
-
},
|
|
24
|
+
}, Be = { class: "label" }, Te = {
|
|
25
25
|
inheritAttrs: !1
|
|
26
|
-
}, ke = /* @__PURE__ */
|
|
27
|
-
...
|
|
26
|
+
}, ke = /* @__PURE__ */ le({
|
|
27
|
+
...Te,
|
|
28
28
|
__name: "index",
|
|
29
29
|
props: {
|
|
30
30
|
modelValue: { default: "" },
|
|
@@ -54,39 +54,39 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
54
54
|
},
|
|
55
55
|
emits: ["update:modelValue", "change"],
|
|
56
56
|
setup(l, { expose: h, emit: g }) {
|
|
57
|
-
const o = l, L =
|
|
57
|
+
const o = l, L = n(() => o.placeholder || pe("请输入")), O = n(() => `width:${me(o.width)}`), U = n(() => {
|
|
58
58
|
const e = Number(o.maxLength) ? Number(o.maxLength) : !1, t = Number(o.maxlength) ? Number(o.maxlength) : !1;
|
|
59
59
|
return e || t && t || !1;
|
|
60
|
-
}), $ = g,
|
|
60
|
+
}), $ = g, b = n({
|
|
61
61
|
get: () => o.modelValue,
|
|
62
62
|
set: (e) => $("update:modelValue", e)
|
|
63
|
-
}),
|
|
63
|
+
}), A = a(o.isTitle), p = a(!1), W = a(), r = a(), S = a(!1), Z = n(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), j = n(() => o.isView || o.disabled), H = n(() => j.value ? o.noSetDefaultVal ? "" : "-" : L.value ?? ""), w = a(!1), c = a(0), v = a(0), x = a({
|
|
64
64
|
x: 0,
|
|
65
65
|
y: 0
|
|
66
|
-
}), M = a(0),
|
|
66
|
+
}), M = a(0), q = a({
|
|
67
67
|
"font-size": "12px",
|
|
68
|
-
"background-color":
|
|
68
|
+
"background-color": N("--das-ui-input-number-overlay-error-bg-color").value,
|
|
69
69
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
70
70
|
"border-radius": "1px",
|
|
71
71
|
padding: "2px 8px",
|
|
72
|
-
|
|
72
|
+
// 'word-break': 'break-all',
|
|
73
73
|
"box-sizing": "border-box"
|
|
74
|
-
}),
|
|
75
|
-
...
|
|
74
|
+
}), G = n(() => ({
|
|
75
|
+
...q.value,
|
|
76
76
|
width: M.value + "px",
|
|
77
77
|
position: "fixed",
|
|
78
78
|
visibility: "visible",
|
|
79
79
|
top: x.value.y + "px",
|
|
80
80
|
left: x.value.x + "px",
|
|
81
81
|
"z-index": o.errorModelZIndex
|
|
82
|
-
})),
|
|
82
|
+
})), J = a({
|
|
83
83
|
display: "block",
|
|
84
|
-
color:
|
|
84
|
+
color: N("--das-ui-input-error-color").value,
|
|
85
85
|
"white-space": "break-spaces"
|
|
86
|
-
}),
|
|
87
|
-
var
|
|
88
|
-
const { top: e, left: t } = (
|
|
89
|
-
M.value = (
|
|
86
|
+
}), K = () => {
|
|
87
|
+
var i, C, I, V;
|
|
88
|
+
const { top: e = 0, left: t = 0 } = ((C = (i = r.value) == null ? void 0 : i.$el) == null ? void 0 : C.getBoundingClientRect()) ?? {}, s = (I = r.value) == null ? void 0 : I.$el.clientHeight;
|
|
89
|
+
M.value = (V = r.value) == null ? void 0 : V.$el.clientWidth, x.value.x = t, x.value.y = e + s;
|
|
90
90
|
};
|
|
91
91
|
B(
|
|
92
92
|
() => {
|
|
@@ -94,21 +94,21 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
94
94
|
return (e = r.value) == null ? void 0 : e.textarea;
|
|
95
95
|
},
|
|
96
96
|
(e) => {
|
|
97
|
-
|
|
97
|
+
D(() => {
|
|
98
98
|
var t;
|
|
99
99
|
e && (e != null && e.nextSibling) && ((t = e.nextSibling) != null && t.style) && (e.nextSibling.style.display = "none");
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
-
const
|
|
103
|
+
const Q = (e) => {
|
|
104
104
|
let t = e + "";
|
|
105
|
-
o.type !== "textarea" && o.filterSpace && (t = t.trim()),
|
|
106
|
-
},
|
|
105
|
+
o.type !== "textarea" && o.filterSpace && (t = t.trim()), b.value = t, $("change", t);
|
|
106
|
+
}, X = () => {
|
|
107
107
|
var t;
|
|
108
108
|
o.borderType === "bottom" && (w.value = !0);
|
|
109
109
|
const e = (t = r.value) == null ? void 0 : t.textarea;
|
|
110
110
|
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "block");
|
|
111
|
-
},
|
|
111
|
+
}, Y = () => {
|
|
112
112
|
var t;
|
|
113
113
|
o.borderType === "bottom" && (w.value = !1);
|
|
114
114
|
const e = (t = r.value) == null ? void 0 : t.textarea;
|
|
@@ -118,21 +118,22 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
118
118
|
() => r.value,
|
|
119
119
|
(e) => {
|
|
120
120
|
setTimeout(() => {
|
|
121
|
+
var s, i;
|
|
121
122
|
const t = e;
|
|
122
|
-
t && (
|
|
123
|
+
t && (c.value = ((s = t == null ? void 0 : t.ref) == null ? void 0 : s.offsetWidth) ?? 0, v.value = ((i = t == null ? void 0 : t.ref) == null ? void 0 : i.scrollWidth) ?? 0);
|
|
123
124
|
}, 200);
|
|
124
125
|
}
|
|
125
126
|
), B(
|
|
126
|
-
() =>
|
|
127
|
+
() => b.value,
|
|
127
128
|
(e) => {
|
|
128
|
-
|
|
129
|
-
var t,
|
|
130
|
-
(t = r.value) != null && t.ref && (
|
|
129
|
+
D(() => {
|
|
130
|
+
var t, s, i;
|
|
131
|
+
(t = r.value) != null && t.ref && (c.value = (s = r.value) == null ? void 0 : s.ref.offsetWidth, v.value = (i = r.value) == null ? void 0 : i.ref.scrollWidth, (c.value === v.value || v.value - c.value < 5) && (p.value = !1));
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
);
|
|
134
|
-
const
|
|
135
|
-
|
|
135
|
+
const m = a(), _ = () => {
|
|
136
|
+
c.value === v.value || v.value - c.value < 5 ? p.value = !1 : (p.value = !0, m.value && clearTimeout(m.value)), S.value = !0, K();
|
|
136
137
|
};
|
|
137
138
|
B(
|
|
138
139
|
() => {
|
|
@@ -141,26 +142,26 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
141
142
|
},
|
|
142
143
|
(e) => {
|
|
143
144
|
e && (e.addEventListener("mouseenter", function() {
|
|
144
|
-
|
|
145
|
+
p.value = !0, m.value && clearTimeout(m.value);
|
|
145
146
|
}), e.addEventListener("mouseleave", function() {
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
m.value = setTimeout(() => {
|
|
148
|
+
p.value = !1;
|
|
148
149
|
}, 200);
|
|
149
150
|
}));
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
const ee = () => {
|
|
154
|
+
m.value = setTimeout(() => {
|
|
155
|
+
p.value = !1;
|
|
155
156
|
}, 200), S.value = !1;
|
|
156
157
|
};
|
|
157
158
|
return h({
|
|
158
159
|
$refInput: r
|
|
159
|
-
}), (e, t) => (
|
|
160
|
+
}), (e, t) => (u(), f(
|
|
160
161
|
"div",
|
|
161
162
|
{
|
|
162
|
-
style: E(
|
|
163
|
-
class:
|
|
163
|
+
style: E(O.value),
|
|
164
|
+
class: R([
|
|
164
165
|
"das-ui-input",
|
|
165
166
|
{ "only-border-bottom": e.borderType === "bottom" },
|
|
166
167
|
{ "das-input-normal-size": e.size === "default" },
|
|
@@ -168,25 +169,25 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
168
169
|
])
|
|
169
170
|
},
|
|
170
171
|
[
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
d(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
173
|
+
F(P(de), {
|
|
173
174
|
ref_key: "inputTooltipRef",
|
|
174
175
|
ref: W,
|
|
175
176
|
effect: "light",
|
|
176
177
|
manual: !0,
|
|
177
|
-
visible:
|
|
178
|
-
disabled: !
|
|
179
|
-
content:
|
|
178
|
+
visible: p.value,
|
|
179
|
+
disabled: !A.value,
|
|
180
|
+
content: b.value,
|
|
180
181
|
placement: "top"
|
|
181
182
|
}, {
|
|
182
183
|
default: y(() => [
|
|
183
|
-
|
|
184
|
+
F(P(ue), ae({
|
|
184
185
|
ref_key: "$refInput",
|
|
185
186
|
ref: r
|
|
186
187
|
}, e.$attrs, {
|
|
187
|
-
modelValue:
|
|
188
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
189
|
-
placeholder:
|
|
188
|
+
modelValue: b.value,
|
|
189
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => b.value = s),
|
|
190
|
+
placeholder: H.value,
|
|
190
191
|
disabled: e.disabled,
|
|
191
192
|
readonly: e.isView,
|
|
192
193
|
type: o.type,
|
|
@@ -197,44 +198,44 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
197
198
|
{ "input-focus-color": w.value }
|
|
198
199
|
],
|
|
199
200
|
autosize: o.autosize,
|
|
200
|
-
showWordLimit:
|
|
201
|
-
maxlength:
|
|
202
|
-
onChange:
|
|
203
|
-
onFocus:
|
|
204
|
-
onBlur:
|
|
205
|
-
onMouseenter:
|
|
206
|
-
onMouseleave:
|
|
207
|
-
}),
|
|
201
|
+
showWordLimit: Z.value,
|
|
202
|
+
maxlength: U.value,
|
|
203
|
+
onChange: Q,
|
|
204
|
+
onFocus: X,
|
|
205
|
+
onBlur: Y,
|
|
206
|
+
onMouseenter: _,
|
|
207
|
+
onMouseleave: ee
|
|
208
|
+
}), re({
|
|
208
209
|
_: 2
|
|
209
210
|
/* DYNAMIC */
|
|
210
211
|
}, [
|
|
211
212
|
e.$slots.prepend ? {
|
|
212
213
|
name: "prepend",
|
|
213
214
|
fn: y(() => [
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
d(" 输入框前置内容 "),
|
|
216
|
+
T(e.$slots, "prepend", {}, void 0, !0)
|
|
216
217
|
]),
|
|
217
218
|
key: "0"
|
|
218
219
|
} : void 0,
|
|
219
220
|
e.$slots.append ? {
|
|
220
221
|
name: "append",
|
|
221
222
|
fn: y(() => [
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
d(" 输入框后置内容 "),
|
|
224
|
+
T(e.$slots, "append", {}, void 0, !0)
|
|
224
225
|
]),
|
|
225
226
|
key: "1"
|
|
226
227
|
} : void 0,
|
|
227
228
|
e.$slots.suffix ? {
|
|
228
229
|
name: "suffix",
|
|
229
230
|
fn: y(() => [
|
|
230
|
-
|
|
231
|
+
T(e.$slots, "suffix", {}, void 0, !0)
|
|
231
232
|
]),
|
|
232
233
|
key: "2"
|
|
233
234
|
} : void 0,
|
|
234
235
|
e.$slots.prefix ? {
|
|
235
236
|
name: "prefix",
|
|
236
237
|
fn: y(() => [
|
|
237
|
-
|
|
238
|
+
T(e.$slots, "prefix", {}, void 0, !0)
|
|
238
239
|
]),
|
|
239
240
|
key: "3"
|
|
240
241
|
} : void 0
|
|
@@ -243,42 +244,42 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
243
244
|
_: 3
|
|
244
245
|
/* FORWARDED */
|
|
245
246
|
}, 8, ["visible", "disabled", "content"]),
|
|
246
|
-
e.success && e.successLabel ? (
|
|
247
|
-
e.success ? (
|
|
247
|
+
e.success && e.successLabel ? (u(), f("div", be, [
|
|
248
|
+
e.success ? (u(), f(
|
|
248
249
|
"span",
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
ye,
|
|
251
|
+
k(e.successLabel),
|
|
251
252
|
1
|
|
252
253
|
/* TEXT */
|
|
253
|
-
)) :
|
|
254
|
-
])) :
|
|
255
|
-
e.error && e.errorLabel && e.errorMode === "default" ? (
|
|
256
|
-
e.error ? (
|
|
254
|
+
)) : d("v-if", !0)
|
|
255
|
+
])) : d("v-if", !0),
|
|
256
|
+
e.error && e.errorLabel && e.errorMode === "default" ? (u(), f("div", he, [
|
|
257
|
+
e.error ? (u(), f("span", {
|
|
257
258
|
key: 0,
|
|
258
|
-
class:
|
|
259
|
+
class: R(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
|
|
259
260
|
title: e.isErrorTitle ? e.errorLabel : ""
|
|
260
|
-
},
|
|
261
|
-
])) :
|
|
262
|
-
e.error && e.errorLabel && S.value && e.errorMode === "overlay" ? (
|
|
263
|
-
|
|
261
|
+
}, k(e.errorLabel), 11, ge)) : d("v-if", !0)
|
|
262
|
+
])) : d("v-if", !0),
|
|
263
|
+
e.error && e.errorLabel && S.value && e.errorMode === "overlay" ? (u(), f(
|
|
264
|
+
se,
|
|
264
265
|
{ key: 2 },
|
|
265
266
|
[
|
|
266
|
-
e.teleported ? (
|
|
267
|
+
e.teleported ? (u(), ie(ne, {
|
|
267
268
|
key: 0,
|
|
268
269
|
to: "body"
|
|
269
270
|
}, [
|
|
270
271
|
z(
|
|
271
272
|
"div",
|
|
272
273
|
{
|
|
273
|
-
style: E(
|
|
274
|
+
style: E(G.value)
|
|
274
275
|
},
|
|
275
276
|
[
|
|
276
277
|
z(
|
|
277
278
|
"span",
|
|
278
279
|
{
|
|
279
|
-
style: E(
|
|
280
|
+
style: E(J.value)
|
|
280
281
|
},
|
|
281
|
-
|
|
282
|
+
k(e.errorLabel),
|
|
282
283
|
5
|
|
283
284
|
/* TEXT, STYLE */
|
|
284
285
|
)
|
|
@@ -286,11 +287,11 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
286
287
|
4
|
|
287
288
|
/* STYLE */
|
|
288
289
|
)
|
|
289
|
-
])) : (
|
|
290
|
+
])) : (u(), f("div", xe, [
|
|
290
291
|
z(
|
|
291
292
|
"span",
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
Be,
|
|
294
|
+
k(e.errorLabel),
|
|
294
295
|
1
|
|
295
296
|
/* TEXT */
|
|
296
297
|
)
|
|
@@ -298,18 +299,18 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
298
299
|
],
|
|
299
300
|
64
|
|
300
301
|
/* STABLE_FRAGMENT */
|
|
301
|
-
)) :
|
|
302
|
+
)) : d("v-if", !0)
|
|
302
303
|
],
|
|
303
304
|
6
|
|
304
305
|
/* CLASS, STYLE */
|
|
305
306
|
));
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
+
}), Le = (l, h) => {
|
|
308
309
|
const g = l.__vccOpts || l;
|
|
309
310
|
for (const [o, L] of h)
|
|
310
311
|
g[o] = L;
|
|
311
312
|
return g;
|
|
312
|
-
},
|
|
313
|
+
}, Se = /* @__PURE__ */ Le(ke, [["__scopeId", "data-v-70e8c421"]]), we = {
|
|
313
314
|
"--das-ui-input-default-text-color": "#212121",
|
|
314
315
|
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
315
316
|
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
@@ -326,15 +327,15 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
326
327
|
"--das-ui-input-only-bottom-view-border-color": "#E5E5E5",
|
|
327
328
|
"--das-ui-input-success-color": "#1BA854",
|
|
328
329
|
"--das-ui-input-error-color": "#FB2323"
|
|
329
|
-
},
|
|
330
|
+
}, Ee = {
|
|
330
331
|
共: { "zh-CN": "共", en: "Total", _appCode: "framework" },
|
|
331
332
|
项: { "zh-CN": "项", en: "Item", _appCode: "framework" },
|
|
332
333
|
请输入: { "zh-CN": "请输入", en: "Please Enter", _appCode: "framework" }
|
|
333
334
|
};
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
const
|
|
335
|
+
fe(Ee);
|
|
336
|
+
oe(we);
|
|
337
|
+
const Ne = te(Se);
|
|
337
338
|
export {
|
|
338
|
-
|
|
339
|
-
|
|
339
|
+
Ne as DasInput,
|
|
340
|
+
Ne as default
|
|
340
341
|
};
|
|
Binary file
|