@das-fed/ui 6.4.0-dev.55.2 → 6.4.0-dev.55.20
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/esm-map.json +6 -1
- package/package.json +5 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +45 -45
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +123 -118
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +8 -4
- package/packages/business-components/currency-page/index.js +24 -16
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +239 -0
- package/packages/business-components/device-panel/index.js +16960 -16957
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
- package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
- 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/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +83 -78
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +27 -1
- package/packages/business-components/import-button/index.js +287 -278
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +481 -481
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +195 -192
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +90 -0
- package/packages/business-components/process-form/index.js +785 -755
- 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-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +268 -259
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +10 -1
- package/packages/business-components/process-search-form/index.js +475 -475
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +112 -112
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +30 -3
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +28 -27
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +160 -0
- package/packages/business-components/urgent-panel/index.js +1417 -1387
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +200 -196
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +233 -233
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.d.ts +9 -3
- package/packages/components/breadcrumb/index.js +48 -45
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
- package/packages/components/breadcrumb/src/type.d.ts +1 -0
- package/packages/components/breadcrumb/style.css +1 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +118 -72
- package/packages/components/calendar/index.js +262 -262
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +2 -1
- package/packages/components/cascader/index.d.ts +225 -7
- package/packages/components/cascader/index.js +56 -57
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +2 -2
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +2 -1
- package/packages/components/color-picker/index.js +86 -85
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +2 -1
- package/packages/components/custom-search-item/index.js +17 -19
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +21 -3
- package/packages/components/date-picker/index.d.ts +3 -3
- package/packages/components/date-picker/index.js +536 -526
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +12 -6
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +20 -10
- package/packages/components/dimple-layout/index.js +287 -283
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +2 -1
- package/packages/components/dropdown/index.js +14 -16
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +30 -3
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/form-item/index.js +829 -826
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/type.d.ts +2 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/form-item/theme/index.d.ts +3 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +60 -51
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +28 -28
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +12 -1
- package/packages/components/input-dialog-select/index.d.ts +1 -0
- package/packages/components/input-dialog-select/index.js +108 -101
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -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/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +3 -2
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +14 -0
- package/packages/components/map/index.js +1109 -841
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/src/get-sdk-config.d.ts +1 -1
- package/packages/components/map/src/hooks/use-baidu.d.ts +1 -11
- package/packages/components/map/src/hooks/use-gaode.d.ts +1 -11
- package/packages/components/map/src/hooks/use-google.d.ts +16 -0
- package/packages/components/map/src/hooks/use-map.d.ts +2 -0
- package/packages/components/map/src/type.d.ts +1 -1
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +140 -139
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.d.ts +3 -0
- package/packages/components/popover/index.js +28 -27
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +6 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +8 -4
- package/packages/components/rich-editor/index.js +3640 -3622
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/type.d.ts +3 -0
- package/packages/components/search/index.d.ts +9 -0
- package/packages/components/search/index.js +58 -42
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +15 -0
- package/packages/components/search/src/type.d.ts +2 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +650 -604
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +9 -9
- package/packages/components/select/index.js +318 -336
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +1 -0
- package/packages/components/select-input/index.js +68 -61
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +1 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
- package/packages/components/select-input/src/type.d.ts +3 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +8 -4
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +8 -4
- package/packages/components/special-range-picker-month/index.js +72 -72
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +6 -3
- package/packages/components/special-range-picker-year/index.js +99 -99
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +49 -5
- package/packages/components/table/index.d.ts +90 -9
- package/packages/components/table/index.js +4124 -3995
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +10 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +55 -5
- package/packages/components/table/src/type.d.ts +16 -3
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +63 -63
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +1 -1
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +18 -18
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +12 -0
- package/packages/components/tree/index.js +173 -171
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +13 -19
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +65 -65
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +15 -15
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/icons/exit/index.d.ts +1 -0
- package/packages/icons/exit/index.js +17 -0
- package/packages/icons/exit/index.js.gz +0 -0
- package/packages/icons/exit/index.vue.d.ts +16 -0
- package/packages/icons/global/index.d.ts +1 -0
- package/packages/icons/global/index.js +17 -0
- package/packages/icons/global/index.js.gz +0 -0
- package/packages/icons/global/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +4 -0
- package/packages/icons/index.js +4 -0
- package/packages/icons/password-lock2/index.d.ts +1 -0
- package/packages/icons/password-lock2/index.js +17 -0
- package/packages/icons/password-lock2/index.js.gz +0 -0
- package/packages/icons/password-lock2/index.vue.d.ts +16 -0
- package/packages/icons/system/index.d.ts +1 -0
- package/packages/icons/system/index.js +17 -0
- package/packages/icons/system/index.js.gz +0 -0
- package/packages/icons/system/index.vue.d.ts +16 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-form-item[data-v-
|
|
1
|
+
.das-ui-form-item[data-v-05f2cc5e]{display:flex;flex-direction:column}.das-ui-form-item.marin-right-0[data-v-05f2cc5e]{margin-right:0!important}.das-ui-form-item.top[data-v-05f2cc5e]{align-items:flex-start!important}.das-ui-form-item.top .das-ui-form-item-label[data-v-05f2cc5e]{margin-bottom:3px;margin-right:0!important}.das-ui-form-item.left[data-v-05f2cc5e]{flex-direction:row}.das-ui-form-item.left .das-ui-form-item-label[data-v-05f2cc5e]{text-align:left}.das-ui-form-item.right[data-v-05f2cc5e]{flex-direction:row}.das-ui-form-item.right .das-ui-form-item-label[data-v-05f2cc5e]{text-align:right}.das-ui-form-item.right .das-ui-form-item-label .label[data-v-05f2cc5e]{width:auto}.das-ui-form-item.flex-layout[data-v-05f2cc5e]{width:100%}.das-ui-form-item.flex-layout .das-ui-form-container[data-v-05f2cc5e]{flex:1}.das-ui-form-item .das-ui-form-item-label[data-v-05f2cc5e]{font-size:var(--das-ui-font-size-sm);height:18px;line-height:18px}.das-ui-form-item .das-ui-form-item-label .label[data-v-05f2cc5e]{width:fit-content;position:relative;max-width:100%;display:flex;color:var(--das-ui-form-label-normal)}.das-ui-form-item .das-ui-form-item-label .label .label-context[data-v-05f2cc5e]{width:100%}.das-ui-form-item .das-ui-form-item-label .label.required-mark[data-v-05f2cc5e]:after{content:"*";position:absolute;top:0;right:-8px;width:6px;height:18px;line-height:18px;text-align:left;color:var(--das-ui-form-error-label-color)}.das-ui-form-item .das-ui-form-item-label .label .help-icon[data-v-05f2cc5e]{position:absolute;right:-28px;top:1px}.das-ui-form-item .das-ui-form-item-label .label .help-icon.no-required[data-v-05f2cc5e]{right:-20px}.das-ui-form-item .das-ui-form-container[data-v-05f2cc5e]{display:flex;position:relative}.das-ui-form-item .das-ui-form-container .error-label[data-v-05f2cc5e]{position:absolute;height:22px;width:100%;font-size:12px;left:0;top:100%;line-height:18px;font-weight:400;letter-spacing:0;color:var(--das-ui-form-error-label-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.das-ui-form-item .das-ui-form-container .error-label--overlay[data-v-05f2cc5e]{position:absolute;width:100%;left:0;top:100%;background-color:var(--das-ui-input-number-overlay-error-bg-color);box-shadow:0 4px 10px #0003;border-radius:1px;padding:2px 8px;box-sizing:border-box;font-size:12px;z-index:99;color:var(--das-ui-form-error-label-color)}.das-form-item-overlay-error-label-content[data-v-05f2cc5e]{position:absolute;top:100%;left:0;width:var(--984e0f78)}.das-ui-form-item.flex-layout .das-ui-form-container .das-ui-input{width:100%}
|
|
Binary file
|
|
@@ -2,26 +2,32 @@ declare const _default: {
|
|
|
2
2
|
'das-ui-import-upload-key1': {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
'das-ui-import-upload-key2': {
|
|
7
8
|
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
'das-ui-import-upload-key3': {
|
|
11
13
|
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
'das-image-upload-text': {
|
|
15
18
|
'zh-CN': string;
|
|
16
19
|
en: string;
|
|
20
|
+
_appCode: string;
|
|
17
21
|
};
|
|
18
22
|
'das-image-upload-reupload': {
|
|
19
23
|
'zh-CN': string;
|
|
20
24
|
en: string;
|
|
25
|
+
_appCode: string;
|
|
21
26
|
};
|
|
22
27
|
'das-image-upload-fail': {
|
|
23
28
|
'zh-CN': string;
|
|
24
29
|
en: string;
|
|
30
|
+
_appCode: string;
|
|
25
31
|
};
|
|
26
32
|
};
|
|
27
33
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/image-upload/style.css';
|
|
2
2
|
import { withInstall as M } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { i18n as
|
|
4
|
-
import { getVar as
|
|
5
|
-
import { computed as
|
|
3
|
+
import { i18n as b, t as w, setI18nRule as U } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { getVar as k, setThemeRule as B } from "@das-fed/web/packages/theme/index";
|
|
5
|
+
import { computed as N, defineComponent as D, openBlock as j, createElementBlock as E, createCommentVNode as I, withDirectives as z, createVNode as v, unref as a, normalizeClass as F, withCtx as y, createElementVNode as h, toDisplayString as T, vShow as S, createTextVNode as R } from "vue";
|
|
6
6
|
import { UploadDragger as G, Upload as P } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/upload/style/css";
|
|
8
8
|
import { DasSpin as J } from "@das-fed/ui/packages/components/spin/index";
|
|
@@ -21,24 +21,24 @@ const q = () => ({ size2B: (o) => {
|
|
|
21
21
|
};
|
|
22
22
|
return { finalSize: t * g[p], sizeText: o };
|
|
23
23
|
} }), L = (e, o) => {
|
|
24
|
-
const t = W(e, "status"), { size2B: p } = q(), l = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], g = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], s =
|
|
24
|
+
const t = W(e, "status"), { size2B: p } = q(), l = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], g = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], s = N(() => {
|
|
25
25
|
var r;
|
|
26
26
|
if (e.acceptVideo || e.acceptAudio) {
|
|
27
27
|
let n = e.accept ? (r = e.accept) == null ? void 0 : r.split(",") : [];
|
|
28
28
|
return e.acceptVideo && (n = [...n, ...l]), e.acceptAudio && (n = [...n, ...g]), n.join(",");
|
|
29
29
|
} else
|
|
30
30
|
return e.accept;
|
|
31
|
-
}), C =
|
|
32
|
-
return { isAccept: s, uploadStatus: t, loading: C, errored:
|
|
33
|
-
var
|
|
31
|
+
}), C = N(() => t.value === "uploading"), _ = N(() => t.value === "error");
|
|
32
|
+
return { isAccept: s, uploadStatus: t, loading: C, errored: _, beforeupload: (r) => {
|
|
33
|
+
var x, $;
|
|
34
34
|
if (e.maxSize) {
|
|
35
35
|
const { finalSize: i, sizeText: u } = p(e.maxSize);
|
|
36
36
|
if (r.size > i) {
|
|
37
|
-
const
|
|
37
|
+
const d = !e.acceptAudio && !e.acceptVideo ? b("das-ui-import-upload-key3", u, "JPG、JPEG、PNG、GIF、SVG").value : b(
|
|
38
38
|
"das-ui-import-upload-key3",
|
|
39
39
|
u,
|
|
40
|
-
(
|
|
41
|
-
).value, m = e.errorMessage ||
|
|
40
|
+
(x = s.value) == null ? void 0 : x.toUpperCase().replaceAll(".", "").replaceAll(",", "、")
|
|
41
|
+
).value, m = e.errorMessage || d;
|
|
42
42
|
return V.warning(m), o("update:status", "normal"), t.value = "normal", !1;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -46,35 +46,35 @@ const q = () => ({ size2B: (o) => {
|
|
|
46
46
|
if (e.customCheck) {
|
|
47
47
|
const i = e.customCheck(r);
|
|
48
48
|
if (i instanceof Promise)
|
|
49
|
-
return new Promise(async (u,
|
|
49
|
+
return new Promise(async (u, d) => {
|
|
50
50
|
let m;
|
|
51
51
|
try {
|
|
52
52
|
m = await i.then();
|
|
53
53
|
} catch {
|
|
54
54
|
m = !1;
|
|
55
55
|
}
|
|
56
|
-
m ? n() :
|
|
56
|
+
m ? n() : d(!1);
|
|
57
57
|
});
|
|
58
58
|
if (!i)
|
|
59
59
|
return o("update:status", "normal"), t.value = "normal", !1;
|
|
60
60
|
} else if (s.value)
|
|
61
61
|
if (!e.acceptAudio && !e.acceptVideo) {
|
|
62
62
|
const i = s.value.split(",").map((u) => {
|
|
63
|
-
let
|
|
64
|
-
return
|
|
63
|
+
let d = u.trim().slice(1);
|
|
64
|
+
return d === "svg" && (d = "svg+xml"), `image/${d}`;
|
|
65
65
|
}) ?? [];
|
|
66
66
|
if (i.includes("image/jpg") && !i.includes("image/jpeg") && i.push("image/jpeg"), !i.includes(r.type)) {
|
|
67
|
-
const u = e.errorMessage ||
|
|
67
|
+
const u = e.errorMessage || b("das-ui-import-upload-key1", s.value.toUpperCase().replaceAll(".", "").replaceAll(",", "、")).value;
|
|
68
68
|
return V.warning(u), !1;
|
|
69
69
|
}
|
|
70
70
|
} else {
|
|
71
|
-
const i = s.value.split(",").map((
|
|
72
|
-
let f =
|
|
71
|
+
const i = s.value.split(",").map((c) => {
|
|
72
|
+
let f = c.trim().slice(1);
|
|
73
73
|
return f === "svg" && (f = "svg+xml"), `image/${f}`;
|
|
74
|
-
}) ?? [], u = l.map((
|
|
75
|
-
if (![...i, ...u, ...
|
|
76
|
-
const
|
|
77
|
-
return V.warning(
|
|
74
|
+
}) ?? [], u = l.map((c) => `video/${c.split(".")[1]}`) ?? [], d = g.map((c) => `audio/${c.split(".")[1]}`) ?? [], m = l.map((c) => `audio/${c.split(".")[1]}`) ?? [];
|
|
75
|
+
if (![...i, ...u, ...d, ...m].includes(r.type)) {
|
|
76
|
+
const c = e.errorMessage || b("das-ui-import-upload-key2", ($ = s.value) == null ? void 0 : $.toUpperCase()).value;
|
|
77
|
+
return V.warning(c), !1;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return n();
|
|
@@ -95,10 +95,10 @@ const q = () => ({ size2B: (o) => {
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["update:status", "image-upload"],
|
|
97
97
|
setup(e, { emit: o }) {
|
|
98
|
-
const t = e, p = o, { isAccept: l, uploadStatus: g, loading: s, errored: C, beforeupload:
|
|
99
|
-
return (
|
|
98
|
+
const t = e, p = o, { isAccept: l, uploadStatus: g, loading: s, errored: C, beforeupload: _ } = L(t, p);
|
|
99
|
+
return (A, r) => (j(), E("div", Q, [
|
|
100
100
|
I(" 图片上传组件 "),
|
|
101
|
-
|
|
101
|
+
z(v(a(J), {
|
|
102
102
|
class: F([{ "loading-border": a(s) }]),
|
|
103
103
|
type: "component",
|
|
104
104
|
spinning: a(s)
|
|
@@ -107,22 +107,22 @@ const q = () => ({ size2B: (o) => {
|
|
|
107
107
|
v(a(G), {
|
|
108
108
|
class: "das-ui-image-upload-dragger",
|
|
109
109
|
accept: a(l),
|
|
110
|
-
"max-count":
|
|
111
|
-
"before-upload": a(
|
|
110
|
+
"max-count": A.maxCount,
|
|
111
|
+
"before-upload": a(_)
|
|
112
112
|
}, {
|
|
113
|
-
itemRender: y(({ file: n, actions:
|
|
113
|
+
itemRender: y(({ file: n, actions: x }) => r[0] || (r[0] = [])),
|
|
114
114
|
default: y(() => [
|
|
115
|
-
|
|
115
|
+
z(h(
|
|
116
116
|
"div",
|
|
117
117
|
X,
|
|
118
118
|
[
|
|
119
119
|
v(a(K), {
|
|
120
|
-
iconColor: a(
|
|
120
|
+
iconColor: a(k)("--das-ui-color-secondary")
|
|
121
121
|
}, null, 8, ["iconColor"]),
|
|
122
122
|
h(
|
|
123
123
|
"div",
|
|
124
124
|
Y,
|
|
125
|
-
|
|
125
|
+
T(A.message || a(w)("das-image-upload-text")),
|
|
126
126
|
1
|
|
127
127
|
/* TEXT */
|
|
128
128
|
)
|
|
@@ -130,7 +130,7 @@ const q = () => ({ size2B: (o) => {
|
|
|
130
130
|
512
|
|
131
131
|
/* NEED_PATCH */
|
|
132
132
|
), [
|
|
133
|
-
[
|
|
133
|
+
[S, a(g) === "normal"]
|
|
134
134
|
])
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
@@ -140,32 +140,32 @@ const q = () => ({ size2B: (o) => {
|
|
|
140
140
|
_: 1
|
|
141
141
|
/* STABLE */
|
|
142
142
|
}, 8, ["class", "spinning"]), [
|
|
143
|
-
[
|
|
143
|
+
[S, !a(C)]
|
|
144
144
|
]),
|
|
145
145
|
I(" 错误状态 "),
|
|
146
|
-
|
|
146
|
+
z(h(
|
|
147
147
|
"div",
|
|
148
148
|
Z,
|
|
149
149
|
[
|
|
150
150
|
h("div", ee, [
|
|
151
151
|
v(a(O), {
|
|
152
|
-
iconColor: a(
|
|
152
|
+
iconColor: a(k)("--das-ui-color-danger"),
|
|
153
153
|
size: "small"
|
|
154
154
|
}, null, 8, ["iconColor"]),
|
|
155
155
|
h(
|
|
156
156
|
"div",
|
|
157
157
|
ae,
|
|
158
|
-
|
|
158
|
+
T(a(w)("das-image-upload-fail")),
|
|
159
159
|
1
|
|
160
160
|
/* TEXT */
|
|
161
161
|
)
|
|
162
162
|
]),
|
|
163
163
|
v(a(P), {
|
|
164
164
|
accept: a(l),
|
|
165
|
-
"before-upload": a(
|
|
166
|
-
"max-count":
|
|
165
|
+
"before-upload": a(_),
|
|
166
|
+
"max-count": A.maxCount
|
|
167
167
|
}, {
|
|
168
|
-
itemRender: y(({ file: n, actions:
|
|
168
|
+
itemRender: y(({ file: n, actions: x }) => r[1] || (r[1] = [])),
|
|
169
169
|
default: y(() => [
|
|
170
170
|
v(a(H), {
|
|
171
171
|
"btn-type": "primary-text",
|
|
@@ -173,7 +173,7 @@ const q = () => ({ size2B: (o) => {
|
|
|
173
173
|
}, {
|
|
174
174
|
default: y(() => [
|
|
175
175
|
R(
|
|
176
|
-
|
|
176
|
+
T(a(w)("das-image-upload-reupload")),
|
|
177
177
|
1
|
|
178
178
|
/* TEXT */
|
|
179
179
|
)
|
|
@@ -189,7 +189,7 @@ const q = () => ({ size2B: (o) => {
|
|
|
189
189
|
512
|
|
190
190
|
/* NEED_PATCH */
|
|
191
191
|
), [
|
|
192
|
-
[
|
|
192
|
+
[S, a(C)]
|
|
193
193
|
])
|
|
194
194
|
]));
|
|
195
195
|
}
|
|
@@ -199,25 +199,34 @@ const q = () => ({ size2B: (o) => {
|
|
|
199
199
|
t[p] = l;
|
|
200
200
|
return t;
|
|
201
201
|
}, re = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-5821ad3e"]]), le = {
|
|
202
|
-
"das-ui-import-upload-key1": {
|
|
203
|
-
|
|
202
|
+
"das-ui-import-upload-key1": {
|
|
203
|
+
"zh-CN": "上传的图片格式只能是$0",
|
|
204
|
+
en: "The uploaded picture format can only be $0",
|
|
205
|
+
_appCode: "framework"
|
|
206
|
+
},
|
|
207
|
+
"das-ui-import-upload-key2": {
|
|
208
|
+
"zh-CN": "上传的文件格式只能是$0",
|
|
209
|
+
en: "The uploaded file format can only be $0",
|
|
210
|
+
_appCode: "framework"
|
|
211
|
+
},
|
|
204
212
|
"das-ui-import-upload-key3": {
|
|
205
213
|
"zh-CN": "上传的图片大小不能超过$0的$1文件",
|
|
206
|
-
en: "The uploaded file format can only be $0"
|
|
214
|
+
en: "The uploaded file format can only be $0",
|
|
215
|
+
_appCode: "framework"
|
|
207
216
|
},
|
|
208
|
-
"das-image-upload-text": { "zh-CN": "上传图片", en: "Upload Image" },
|
|
209
|
-
"das-image-upload-reupload": { "zh-CN": "重新上传", en: "Re-upload" },
|
|
210
|
-
"das-image-upload-fail": { "zh-CN": "上传失败", en: "Upload Failed" }
|
|
217
|
+
"das-image-upload-text": { "zh-CN": "上传图片", en: "Upload Image", _appCode: "framework" },
|
|
218
|
+
"das-image-upload-reupload": { "zh-CN": "重新上传", en: "Re-upload", _appCode: "framework" },
|
|
219
|
+
"das-image-upload-fail": { "zh-CN": "上传失败", en: "Upload Failed", _appCode: "framework" }
|
|
211
220
|
}, ie = {
|
|
212
221
|
"--das-ui-image-upload-bgcolor": { light: "#FAFAFA" },
|
|
213
222
|
"--das-ui-image-upload-border-color": { light: "#E5E5E5" },
|
|
214
|
-
"--das-ui-image-upload-bgcolor-hover": { light:
|
|
223
|
+
"--das-ui-image-upload-bgcolor-hover": { light: k("--das-ui-color-primary-level1") },
|
|
215
224
|
"--das-ui-image-upload-border-color-hover": { light: "#5582F3" },
|
|
216
|
-
"--das-ui-image-upload-border-color-error": { light:
|
|
217
|
-
},
|
|
225
|
+
"--das-ui-image-upload-border-color-error": { light: k("--das-ui-color-danger-level2") }
|
|
226
|
+
}, Ae = M(re);
|
|
218
227
|
U(le);
|
|
219
228
|
B(ie);
|
|
220
229
|
export {
|
|
221
|
-
|
|
222
|
-
|
|
230
|
+
Ae as DasImageUpload,
|
|
231
|
+
Ae as default
|
|
223
232
|
};
|
|
Binary file
|
|
@@ -2,14 +2,17 @@ declare const _default: {
|
|
|
2
2
|
共: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
项: {
|
|
7
8
|
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
请输入: {
|
|
11
13
|
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input/style.css';
|
|
2
2
|
import { withInstall as ee } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { getVarValue as
|
|
4
|
-
import { defineComponent as oe, computed as s, ref as a, watch as B, nextTick as N, openBlock as i, createElementBlock as d, normalizeStyle as E, normalizeClass as D, createCommentVNode as n, createVNode as R, unref as F, withCtx as y, mergeProps as le, createSlots as ae, renderSlot as
|
|
3
|
+
import { getVarValue as V, setThemeRule as te } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { defineComponent as oe, computed as s, ref as a, watch as B, nextTick as N, openBlock as i, createElementBlock as d, normalizeStyle as E, normalizeClass as D, createCommentVNode as n, createVNode as R, unref as F, withCtx as y, mergeProps as le, createSlots as ae, renderSlot as k, toDisplayString as T, Fragment as re, createBlock as se, Teleport as ie, createElementVNode as z } from "vue";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
6
6
|
import { ElInput as ne } from "element-plus";
|
|
7
7
|
import { DasTooltip as ue } from "@das-fed/ui/packages/components/tooltip/index";
|
|
@@ -23,7 +23,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
23
23
|
class: "das-input-overlay-error-label-content"
|
|
24
24
|
}, xe = { class: "label" }, Be = {
|
|
25
25
|
inheritAttrs: !1
|
|
26
|
-
},
|
|
26
|
+
}, ke = /* @__PURE__ */ oe({
|
|
27
27
|
...Be,
|
|
28
28
|
__name: "index",
|
|
29
29
|
props: {
|
|
@@ -54,18 +54,18 @@ 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,
|
|
57
|
+
const o = l, L = s(() => o.placeholder || de("请输入")), P = s(() => `width:${ve(o.width)}`), O = s(() => {
|
|
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
60
|
}), $ = g, m = s({
|
|
61
61
|
get: () => o.modelValue,
|
|
62
62
|
set: (e) => $("update:modelValue", e)
|
|
63
|
-
}), U = a(o.isTitle), u = a(!1), W = a(), r = a(), S = a(!1), A = s(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), Z = s(() => o.isView || o.disabled), j = s(() => Z.value ? o.noSetDefaultVal ? "" : "-" :
|
|
63
|
+
}), U = a(o.isTitle), u = a(!1), W = a(), r = a(), S = a(!1), A = s(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), Z = s(() => o.isView || o.disabled), j = s(() => Z.value ? o.noSetDefaultVal ? "" : "-" : L.value ?? ""), w = a(!1), p = a(0), f = a(0), x = a({
|
|
64
64
|
x: 0,
|
|
65
65
|
y: 0
|
|
66
66
|
}), M = a(0), H = a({
|
|
67
67
|
"font-size": "12px",
|
|
68
|
-
"background-color":
|
|
68
|
+
"background-color": V("--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",
|
|
@@ -81,12 +81,12 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
81
81
|
"z-index": o.errorModelZIndex
|
|
82
82
|
})), G = a({
|
|
83
83
|
display: "block",
|
|
84
|
-
color:
|
|
84
|
+
color: V("--das-ui-input-error-color").value,
|
|
85
85
|
"white-space": "break-spaces"
|
|
86
86
|
}), J = () => {
|
|
87
|
-
var b,
|
|
88
|
-
const { top: e, left: t } = (b = r.value) == null ? void 0 : b.$el.getBoundingClientRect(), v = (
|
|
89
|
-
M.value = (
|
|
87
|
+
var b, C, I;
|
|
88
|
+
const { top: e, left: t } = (b = r.value) == null ? void 0 : b.$el.getBoundingClientRect(), v = (C = r.value) == null ? void 0 : C.$el.clientHeight;
|
|
89
|
+
M.value = (I = r.value) == null ? void 0 : I.$el.clientWidth, x.value.x = t, x.value.y = e + v;
|
|
90
90
|
};
|
|
91
91
|
B(
|
|
92
92
|
() => {
|
|
@@ -212,7 +212,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
212
212
|
name: "prepend",
|
|
213
213
|
fn: y(() => [
|
|
214
214
|
n(" 输入框前置内容 "),
|
|
215
|
-
|
|
215
|
+
k(e.$slots, "prepend", {}, void 0, !0)
|
|
216
216
|
]),
|
|
217
217
|
key: "0"
|
|
218
218
|
} : void 0,
|
|
@@ -220,21 +220,21 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
220
220
|
name: "append",
|
|
221
221
|
fn: y(() => [
|
|
222
222
|
n(" 输入框后置内容 "),
|
|
223
|
-
|
|
223
|
+
k(e.$slots, "append", {}, void 0, !0)
|
|
224
224
|
]),
|
|
225
225
|
key: "1"
|
|
226
226
|
} : void 0,
|
|
227
227
|
e.$slots.suffix ? {
|
|
228
228
|
name: "suffix",
|
|
229
229
|
fn: y(() => [
|
|
230
|
-
|
|
230
|
+
k(e.$slots, "suffix", {}, void 0, !0)
|
|
231
231
|
]),
|
|
232
232
|
key: "2"
|
|
233
233
|
} : void 0,
|
|
234
234
|
e.$slots.prefix ? {
|
|
235
235
|
name: "prefix",
|
|
236
236
|
fn: y(() => [
|
|
237
|
-
|
|
237
|
+
k(e.$slots, "prefix", {}, void 0, !0)
|
|
238
238
|
]),
|
|
239
239
|
key: "3"
|
|
240
240
|
} : void 0
|
|
@@ -247,7 +247,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
247
247
|
e.success ? (i(), d(
|
|
248
248
|
"span",
|
|
249
249
|
be,
|
|
250
|
-
|
|
250
|
+
T(e.successLabel),
|
|
251
251
|
1
|
|
252
252
|
/* TEXT */
|
|
253
253
|
)) : n("v-if", !0)
|
|
@@ -257,7 +257,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
257
257
|
key: 0,
|
|
258
258
|
class: D(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
|
|
259
259
|
title: e.isErrorTitle ? e.errorLabel : ""
|
|
260
|
-
},
|
|
260
|
+
}, T(e.errorLabel), 11, he)) : n("v-if", !0)
|
|
261
261
|
])) : n("v-if", !0),
|
|
262
262
|
e.error && e.errorLabel && S.value && e.errorMode === "overlay" ? (i(), d(
|
|
263
263
|
re,
|
|
@@ -278,7 +278,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
278
278
|
{
|
|
279
279
|
style: E(G.value)
|
|
280
280
|
},
|
|
281
|
-
|
|
281
|
+
T(e.errorLabel),
|
|
282
282
|
5
|
|
283
283
|
/* TEXT, STYLE */
|
|
284
284
|
)
|
|
@@ -290,7 +290,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
290
290
|
z(
|
|
291
291
|
"span",
|
|
292
292
|
xe,
|
|
293
|
-
|
|
293
|
+
T(e.errorLabel),
|
|
294
294
|
1
|
|
295
295
|
/* TEXT */
|
|
296
296
|
)
|
|
@@ -304,12 +304,12 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
304
304
|
/* CLASS, STYLE */
|
|
305
305
|
));
|
|
306
306
|
}
|
|
307
|
-
}),
|
|
307
|
+
}), Te = (l, h) => {
|
|
308
308
|
const g = l.__vccOpts || l;
|
|
309
|
-
for (const [o,
|
|
310
|
-
g[o] =
|
|
309
|
+
for (const [o, L] of h)
|
|
310
|
+
g[o] = L;
|
|
311
311
|
return g;
|
|
312
|
-
},
|
|
312
|
+
}, Le = /* @__PURE__ */ Te(ke, [["__scopeId", "data-v-9399e230"]]), Se = {
|
|
313
313
|
"--das-ui-input-default-text-color": "#212121",
|
|
314
314
|
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
315
315
|
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
@@ -327,14 +327,14 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
327
327
|
"--das-ui-input-success-color": "#1BA854",
|
|
328
328
|
"--das-ui-input-error-color": "#FB2323"
|
|
329
329
|
}, we = {
|
|
330
|
-
共: { "zh-CN": "共", en: "Total" },
|
|
331
|
-
项: { "zh-CN": "项", en: "Item" },
|
|
332
|
-
请输入: { "zh-CN": "请输入", en: "Please
|
|
330
|
+
共: { "zh-CN": "共", en: "Total", _appCode: "framework" },
|
|
331
|
+
项: { "zh-CN": "项", en: "Item", _appCode: "framework" },
|
|
332
|
+
请输入: { "zh-CN": "请输入", en: "Please Enter", _appCode: "framework" }
|
|
333
333
|
};
|
|
334
334
|
pe(we);
|
|
335
335
|
te(Se);
|
|
336
|
-
const
|
|
336
|
+
const Ve = ee(Le);
|
|
337
337
|
export {
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
Ve as DasInput,
|
|
339
|
+
Ve as default
|
|
340
340
|
};
|
|
Binary file
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: {
|
|
2
|
+
请选择: {
|
|
3
|
+
'zh-CN': string;
|
|
4
|
+
en: string;
|
|
5
|
+
_appCode: string;
|
|
6
|
+
};
|
|
7
|
+
'das-framework-input-dialog-select-total-items': {
|
|
8
|
+
'zh-CN': string;
|
|
9
|
+
en: string;
|
|
10
|
+
_appCode: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
2
13
|
export default _default;
|