@das-fed/ui 1.1.4 → 6.3.0-beta.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/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +15 -9
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +429 -215
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +105 -77
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +52 -42
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, warn, computed, getCurrentInstance as getCurrentInstance$1, watch as watch$1, unref as unref$1, inject, ref as ref$1, isRef, onMounted as onMounted$1, shallowRef, onBeforeUnmount, onBeforeMount, provide, renderSlot, mergeProps, toRef, onUnmounted, useAttrs as useAttrs$1, useSlots, nextTick as nextTick$1, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, cloneVNode, Text, Comment, Teleport, Transition, readonly, onDeactivated, reactive, watchEffect, renderList, withKeys, createTextVNode } from 'vue';
|
|
2
2
|
import { withInstall as withInstall$1 } from '@das-fed/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { DasDropdown, DasDropdownMenu, DasIcon, DasInput } from '@das-fed/ui';
|
|
4
4
|
import { useModelValue } from '@das-fed/utils/vue';
|
|
5
5
|
import { unref, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, nextTick, watch, ref } from 'vue-demi';
|
|
6
6
|
import { setThemeRule } from '@das-fed/web';
|
|
@@ -278,11 +278,13 @@ const getClientXY = (event) => {
|
|
|
278
278
|
};
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* @vue/shared v3.4.
|
|
281
|
+
* @vue/shared v3.4.27
|
|
282
282
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
283
283
|
* @license MIT
|
|
284
284
|
**/
|
|
285
285
|
|
|
286
|
+
|
|
287
|
+
|
|
286
288
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
287
289
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
288
290
|
const NOOP = () => {
|
|
@@ -2236,7 +2238,7 @@ const buildLocaleContext = (locale) => {
|
|
|
2236
2238
|
};
|
|
2237
2239
|
const localeContextKey = Symbol("localeContextKey");
|
|
2238
2240
|
const useLocale = (localeOverrides) => {
|
|
2239
|
-
const locale =
|
|
2241
|
+
const locale = inject(localeContextKey, ref$1());
|
|
2240
2242
|
return buildLocaleContext(computed(() => locale.value || English));
|
|
2241
2243
|
};
|
|
2242
2244
|
|
|
@@ -2257,14 +2259,14 @@ const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
|
2257
2259
|
};
|
|
2258
2260
|
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
2259
2261
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
2260
|
-
const derivedNamespace =
|
|
2262
|
+
const derivedNamespace = (getCurrentInstance$1() ? inject(namespaceContextKey, ref$1(defaultNamespace)) : ref$1(defaultNamespace));
|
|
2261
2263
|
const namespace = computed(() => {
|
|
2262
2264
|
return unref$1(derivedNamespace) || defaultNamespace;
|
|
2263
2265
|
});
|
|
2264
2266
|
return namespace;
|
|
2265
2267
|
};
|
|
2266
2268
|
const useNamespace = (block, namespaceOverrides) => {
|
|
2267
|
-
const namespace = useGetDerivedNamespace(
|
|
2269
|
+
const namespace = useGetDerivedNamespace();
|
|
2268
2270
|
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
|
2269
2271
|
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
|
2270
2272
|
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
|
@@ -2706,7 +2708,7 @@ const zIndex = ref$1(0);
|
|
|
2706
2708
|
const defaultInitialZIndex = 2e3;
|
|
2707
2709
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
2708
2710
|
const useZIndex = (zIndexOverrides) => {
|
|
2709
|
-
const zIndexInjection =
|
|
2711
|
+
const zIndexInjection = (getCurrentInstance$1() ? inject(zIndexContextKey, void 0) : void 0);
|
|
2710
2712
|
const initialZIndex = computed(() => {
|
|
2711
2713
|
const zIndexFromInjection = unref$1(zIndexInjection);
|
|
2712
2714
|
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
@@ -2835,7 +2837,7 @@ const provideGlobalConfig = (config, app, global = false) => {
|
|
|
2835
2837
|
var _a;
|
|
2836
2838
|
const inSetup = !!getCurrentInstance$1();
|
|
2837
2839
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
2838
|
-
const provideFn = (_a =
|
|
2840
|
+
const provideFn = (_a = void 0 ) != null ? _a : inSetup ? provide : void 0;
|
|
2839
2841
|
if (!provideFn) {
|
|
2840
2842
|
debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
2841
2843
|
return;
|
|
@@ -4315,10 +4317,10 @@ const _sfc_main$c = defineComponent({
|
|
|
4315
4317
|
};
|
|
4316
4318
|
}
|
|
4317
4319
|
});
|
|
4318
|
-
function _sfc_render$
|
|
4320
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4319
4321
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
4320
4322
|
}
|
|
4321
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$
|
|
4323
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$4], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
4322
4324
|
|
|
4323
4325
|
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
4324
4326
|
const popperCoreConfigProps = buildProps({
|
|
@@ -6984,7 +6986,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
6984
6986
|
};
|
|
6985
6987
|
}
|
|
6986
6988
|
});
|
|
6987
|
-
function _sfc_render$
|
|
6989
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6988
6990
|
return openBlock(), createElementBlock("div", {
|
|
6989
6991
|
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
6990
6992
|
}, [
|
|
@@ -7003,7 +7005,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7003
7005
|
}, null, 6)
|
|
7004
7006
|
], 2);
|
|
7005
7007
|
}
|
|
7006
|
-
var HueSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$
|
|
7008
|
+
var HueSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);
|
|
7007
7009
|
|
|
7008
7010
|
const colorPickerProps = buildProps({
|
|
7009
7011
|
modelValue: String,
|
|
@@ -7371,7 +7373,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
7371
7373
|
}
|
|
7372
7374
|
});
|
|
7373
7375
|
const _hoisted_1$3 = ["onClick"];
|
|
7374
|
-
function _sfc_render$
|
|
7376
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7375
7377
|
return openBlock(), createElementBlock("div", {
|
|
7376
7378
|
class: normalizeClass(_ctx.ns.b())
|
|
7377
7379
|
}, [
|
|
@@ -7396,7 +7398,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7396
7398
|
], 2)
|
|
7397
7399
|
], 2);
|
|
7398
7400
|
}
|
|
7399
|
-
var Predefine = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$
|
|
7401
|
+
var Predefine = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$2], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);
|
|
7400
7402
|
|
|
7401
7403
|
const _sfc_main$2 = defineComponent({
|
|
7402
7404
|
name: "ElSlPanel",
|
|
@@ -7472,7 +7474,7 @@ const _hoisted_1$2 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
|
7472
7474
|
const _hoisted_2$2 = [
|
|
7473
7475
|
_hoisted_1$2
|
|
7474
7476
|
];
|
|
7475
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7477
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7476
7478
|
return openBlock(), createElementBlock("div", {
|
|
7477
7479
|
class: normalizeClass(_ctx.ns.b()),
|
|
7478
7480
|
style: normalizeStyle({
|
|
@@ -7494,7 +7496,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7494
7496
|
}, _hoisted_2$2, 6)
|
|
7495
7497
|
], 6);
|
|
7496
7498
|
}
|
|
7497
|
-
var SvPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);
|
|
7499
|
+
var SvPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);
|
|
7498
7500
|
|
|
7499
7501
|
const _hoisted_1$1 = ["onKeydown"];
|
|
7500
7502
|
const _hoisted_2$1 = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"];
|
|
@@ -8024,12 +8026,6 @@ var zhCn = {
|
|
|
8024
8026
|
}
|
|
8025
8027
|
};
|
|
8026
8028
|
|
|
8027
|
-
const _hoisted_1 = {
|
|
8028
|
-
class: "das-ui-color-picker",
|
|
8029
|
-
style: { "width": "100%" }
|
|
8030
|
-
};
|
|
8031
|
-
const _hoisted_2 = { class: "color-predefine-content" };
|
|
8032
|
-
const _hoisted_3 = ["onClick"];
|
|
8033
8029
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8034
8030
|
__name: "Index",
|
|
8035
8031
|
props: {
|
|
@@ -8042,132 +8038,50 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8042
8038
|
placement: "bottom-end"
|
|
8043
8039
|
}) },
|
|
8044
8040
|
disabled: { type: Boolean, required: true, default: false },
|
|
8045
|
-
isView: { type: Boolean, required: true, default: false }
|
|
8041
|
+
isView: { type: Boolean, required: true, default: false },
|
|
8042
|
+
borderType: { type: String, required: false, default: "bottom" },
|
|
8043
|
+
placeholder: { type: String, required: false, default: "\u8BF7\u8F93\u5165" },
|
|
8044
|
+
noSetDefaultVal: { type: Boolean, required: false, default: false }
|
|
8046
8045
|
},
|
|
8047
8046
|
emits: ["update:modelValue", "change", "dasInput"],
|
|
8048
|
-
setup(__props, { emit: __emit }) {
|
|
8047
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8048
|
+
__expose();
|
|
8049
8049
|
const props = __props;
|
|
8050
8050
|
const emit = __emit;
|
|
8051
8051
|
const { innerValue, inputChangeHandler, inputInputHandler, colorOption, colorPickerValue } = useColorPicker(props, emit);
|
|
8052
8052
|
const predefineDrown = ref$1();
|
|
8053
|
+
const activePredefineDrown = ref$1(false);
|
|
8053
8054
|
const activeHandle = (item) => {
|
|
8054
8055
|
emit("change", item);
|
|
8055
8056
|
innerValue.value = item;
|
|
8056
8057
|
predefineDrown.value?.getElRef()?.handleClose();
|
|
8058
|
+
activePredefineDrown.value = false;
|
|
8057
8059
|
};
|
|
8058
8060
|
const predefineHandle = () => {
|
|
8059
|
-
if (colorOption.value.mode == "default")
|
|
8060
|
-
return;
|
|
8061
|
+
if (colorOption.value.mode == "default") return;
|
|
8061
8062
|
predefineDrown.value?.getElRef()?.handleOpen();
|
|
8063
|
+
activePredefineDrown.value = true;
|
|
8062
8064
|
};
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
createVNode(unref$1(DasInput), mergeProps({
|
|
8066
|
-
class: ["das-color-picker-input", [
|
|
8067
|
-
`das-color-picker-${unref$1(colorOption).size}`,
|
|
8068
|
-
{ "das-empty-color": !unref$1(innerValue) },
|
|
8069
|
-
{ "das-predefine-cell": unref$1(colorOption).mode == "predefine" && (!unref$1(colorOption).isView || !props.isView) },
|
|
8070
|
-
{ "das-predefine-view-cell": unref$1(colorOption).mode == "predefine" && (unref$1(colorOption).isView || props.isView) },
|
|
8071
|
-
{ "das-both-view-cell": unref$1(colorOption).isView || props.isView }
|
|
8072
|
-
]],
|
|
8073
|
-
modelValue: unref$1(innerValue),
|
|
8074
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(innerValue) ? innerValue.value = $event : null)
|
|
8075
|
-
}, _ctx.$attrs, {
|
|
8076
|
-
isView: unref$1(colorOption).mode == "predefine" ? true : unref$1(colorOption).isView || props.isView,
|
|
8077
|
-
disabled: unref$1(colorOption).disabled || props.disabled,
|
|
8078
|
-
append: "",
|
|
8079
|
-
onClick: predefineHandle,
|
|
8080
|
-
onInput: unref$1(inputInputHandler)
|
|
8081
|
-
}), {
|
|
8082
|
-
append: withCtx(() => [
|
|
8083
|
-
unref$1(colorOption).mode == "default" ? (openBlock(), createBlock(unref$1(ElConfigProvider), {
|
|
8084
|
-
key: 0,
|
|
8085
|
-
locale: unref$1(zhCn)
|
|
8086
|
-
}, {
|
|
8087
|
-
default: withCtx(() => [
|
|
8088
|
-
createVNode(unref$1(ElColorPicker), {
|
|
8089
|
-
locale: unref$1(zhCn),
|
|
8090
|
-
placement: unref$1(colorOption).placement,
|
|
8091
|
-
onChange: unref$1(inputChangeHandler),
|
|
8092
|
-
modelValue: unref$1(colorPickerValue),
|
|
8093
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(colorPickerValue) ? colorPickerValue.value = $event : null),
|
|
8094
|
-
size: unref$1(colorOption).size,
|
|
8095
|
-
"show-alpha": unref$1(colorOption).showAlpha,
|
|
8096
|
-
"color-format": unref$1(colorOption).colorFormat,
|
|
8097
|
-
"popper-class": `das-color-picker-popper ${unref$1(colorOption).popperClass}`,
|
|
8098
|
-
predefine: unref$1(colorOption).predefine,
|
|
8099
|
-
disabled: unref$1(colorOption).disabled || props.disabled || unref$1(colorOption).isView || props.isView
|
|
8100
|
-
}, null, 8, ["locale", "placement", "onChange", "modelValue", "size", "show-alpha", "color-format", "popper-class", "predefine", "disabled"])
|
|
8101
|
-
]),
|
|
8102
|
-
_: 1
|
|
8103
|
-
/* STABLE */
|
|
8104
|
-
}, 8, ["locale"])) : createCommentVNode("v-if", true),
|
|
8105
|
-
unref$1(colorOption).mode == "predefine" ? (openBlock(), createBlock(unref$1(DasDropdown), {
|
|
8106
|
-
key: 1,
|
|
8107
|
-
disabled: unref$1(colorOption).disabled || props.disabled || unref$1(colorOption).isView || props.isView,
|
|
8108
|
-
ref_key: "predefineDrown",
|
|
8109
|
-
ref: predefineDrown,
|
|
8110
|
-
trigger: "click",
|
|
8111
|
-
placement: "bottom-end",
|
|
8112
|
-
selfPopperClass: "color-predefine-dropdown",
|
|
8113
|
-
"hide-on-click": false
|
|
8114
|
-
}, {
|
|
8115
|
-
content: withCtx(() => [
|
|
8116
|
-
createElementVNode(
|
|
8117
|
-
"span",
|
|
8118
|
-
{
|
|
8119
|
-
class: normalizeClass([
|
|
8120
|
-
"color-predefine-icon",
|
|
8121
|
-
unref$1(colorOption).size,
|
|
8122
|
-
unref$1(innerValue) && unref$1(innerValue) != "-",
|
|
8123
|
-
{ "view-prefine-icon": unref$1(colorOption).disabled || props.disabled || unref$1(colorOption).isView || props.isView }
|
|
8124
|
-
]),
|
|
8125
|
-
style: normalizeStyle("background-color:" + unref$1(innerValue))
|
|
8126
|
-
},
|
|
8127
|
-
[
|
|
8128
|
-
createVNode(unref$1(DasIcon), {
|
|
8129
|
-
icon: unref$1(innerValue) && unref$1(innerValue) != "-" ? "fold" : "close2",
|
|
8130
|
-
size: "mini",
|
|
8131
|
-
iconColor: unref$1(innerValue) && unref$1(innerValue) != "-" ? "#fff" : "#909399"
|
|
8132
|
-
}, null, 8, ["icon", "iconColor"])
|
|
8133
|
-
],
|
|
8134
|
-
6
|
|
8135
|
-
/* CLASS, STYLE */
|
|
8136
|
-
)
|
|
8137
|
-
]),
|
|
8138
|
-
default: withCtx(() => [
|
|
8139
|
-
createVNode(unref$1(DasDropdownMenu), null, {
|
|
8140
|
-
default: withCtx(() => [
|
|
8141
|
-
createElementVNode("div", _hoisted_2, [
|
|
8142
|
-
(openBlock(true), createElementBlock(
|
|
8143
|
-
Fragment,
|
|
8144
|
-
null,
|
|
8145
|
-
renderList(unref$1(colorOption).predefine, (item, index) => {
|
|
8146
|
-
return openBlock(), createElementBlock("div", {
|
|
8147
|
-
class: normalizeClass(["color-predefine-span", { active: unref$1(innerValue) == item }]),
|
|
8148
|
-
key: index,
|
|
8149
|
-
style: normalizeStyle("background-color:" + item),
|
|
8150
|
-
onClick: ($event) => activeHandle(item)
|
|
8151
|
-
}, null, 14, _hoisted_3);
|
|
8152
|
-
}),
|
|
8153
|
-
128
|
|
8154
|
-
/* KEYED_FRAGMENT */
|
|
8155
|
-
))
|
|
8156
|
-
])
|
|
8157
|
-
]),
|
|
8158
|
-
_: 1
|
|
8159
|
-
/* STABLE */
|
|
8160
|
-
})
|
|
8161
|
-
]),
|
|
8162
|
-
_: 1
|
|
8163
|
-
/* STABLE */
|
|
8164
|
-
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
8165
|
-
]),
|
|
8166
|
-
_: 1
|
|
8167
|
-
/* STABLE */
|
|
8168
|
-
}, 16, ["class", "modelValue", "isView", "disabled", "onInput"])
|
|
8169
|
-
]);
|
|
8065
|
+
const handleVisibleChange = (visible) => {
|
|
8066
|
+
activePredefineDrown.value = visible;
|
|
8170
8067
|
};
|
|
8068
|
+
const __returned__ = { props, emit, innerValue, inputChangeHandler, inputInputHandler, colorOption, colorPickerValue, predefineDrown, activePredefineDrown, activeHandle, predefineHandle, handleVisibleChange, get DasDropdown() {
|
|
8069
|
+
return DasDropdown;
|
|
8070
|
+
}, get DasDropdownMenu() {
|
|
8071
|
+
return DasDropdownMenu;
|
|
8072
|
+
}, get DasIcon() {
|
|
8073
|
+
return DasIcon;
|
|
8074
|
+
}, get DasInput() {
|
|
8075
|
+
return DasInput;
|
|
8076
|
+
}, get ElColorPicker() {
|
|
8077
|
+
return ElColorPicker;
|
|
8078
|
+
}, get ElConfigProvider() {
|
|
8079
|
+
return ElConfigProvider;
|
|
8080
|
+
}, get zhCn() {
|
|
8081
|
+
return zhCn;
|
|
8082
|
+
} };
|
|
8083
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
8084
|
+
return __returned__;
|
|
8171
8085
|
}
|
|
8172
8086
|
});
|
|
8173
8087
|
|
|
@@ -8179,7 +8093,136 @@ var _export_sfc = (sfc, props) => {
|
|
|
8179
8093
|
return target;
|
|
8180
8094
|
};
|
|
8181
8095
|
|
|
8182
|
-
|
|
8096
|
+
const _hoisted_1 = {
|
|
8097
|
+
class: "das-ui-color-picker",
|
|
8098
|
+
style: { "width": "100%" }
|
|
8099
|
+
};
|
|
8100
|
+
const _hoisted_2 = { class: "color-predefine-content" };
|
|
8101
|
+
const _hoisted_3 = ["onClick"];
|
|
8102
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8103
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8104
|
+
createVNode($setup["DasInput"], mergeProps({
|
|
8105
|
+
class: ["das-color-picker-input", [
|
|
8106
|
+
`das-color-picker-${$setup.colorOption.size}`,
|
|
8107
|
+
{ "das-empty-color": !$setup.innerValue },
|
|
8108
|
+
{ "das-predefine-cell": $setup.colorOption.mode == "predefine" && (!$setup.colorOption.isView || !$setup.props.isView) },
|
|
8109
|
+
{ "das-predefine-view-cell": $setup.colorOption.mode == "predefine" && ($setup.colorOption.isView || $setup.props.isView) },
|
|
8110
|
+
{ "das-both-view-cell": $setup.colorOption.isView || $setup.props.isView },
|
|
8111
|
+
{ "focus-predefine-view-cell": $setup.colorOption.mode == "predefine" && $setup.activePredefineDrown }
|
|
8112
|
+
]],
|
|
8113
|
+
modelValue: $setup.innerValue,
|
|
8114
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.innerValue = $event)
|
|
8115
|
+
}, _ctx.$attrs, {
|
|
8116
|
+
isView: $setup.colorOption.mode == "predefine" ? true : $setup.colorOption.isView || $setup.props.isView,
|
|
8117
|
+
disabled: $setup.colorOption.disabled || $setup.props.disabled,
|
|
8118
|
+
append: "",
|
|
8119
|
+
onClick: $setup.predefineHandle,
|
|
8120
|
+
onInput: $setup.inputInputHandler,
|
|
8121
|
+
borderType: $setup.props.borderType,
|
|
8122
|
+
noSetDefaultVal: $setup.colorOption.mode == "predefine" && !$setup.colorOption.isView && !$setup.props.isView && !$setup.colorOption.disabled && !$setup.props.disabled || $setup.props.noSetDefaultVal && ($setup.colorOption.isView || $setup.props.isView) && !$setup.innerValue
|
|
8123
|
+
}), {
|
|
8124
|
+
append: withCtx(() => [
|
|
8125
|
+
$setup.colorOption.mode == "default" ? (openBlock(), createBlock($setup["ElConfigProvider"], {
|
|
8126
|
+
key: 0,
|
|
8127
|
+
locale: $setup.zhCn
|
|
8128
|
+
}, {
|
|
8129
|
+
default: withCtx(() => [
|
|
8130
|
+
!$setup.colorOption.isView && !$setup.props.isView || !!$setup.innerValue ? (openBlock(), createBlock($setup["ElColorPicker"], {
|
|
8131
|
+
key: 0,
|
|
8132
|
+
locale: $setup.zhCn,
|
|
8133
|
+
placement: $setup.colorOption.placement,
|
|
8134
|
+
onChange: $setup.inputChangeHandler,
|
|
8135
|
+
modelValue: $setup.colorPickerValue,
|
|
8136
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.colorPickerValue = $event),
|
|
8137
|
+
size: $setup.colorOption.size,
|
|
8138
|
+
"show-alpha": $setup.colorOption.showAlpha,
|
|
8139
|
+
"color-format": $setup.colorOption.colorFormat,
|
|
8140
|
+
"popper-class": `das-color-picker-popper ${$setup.colorOption.popperClass}`,
|
|
8141
|
+
predefine: $setup.colorOption.predefine,
|
|
8142
|
+
disabled: $setup.colorOption.disabled || $setup.props.disabled || $setup.colorOption.isView || $setup.props.isView
|
|
8143
|
+
}, null, 8, ["locale", "placement", "onChange", "modelValue", "size", "show-alpha", "color-format", "popper-class", "predefine", "disabled"])) : createCommentVNode("v-if", true)
|
|
8144
|
+
]),
|
|
8145
|
+
_: 1
|
|
8146
|
+
/* STABLE */
|
|
8147
|
+
}, 8, ["locale"])) : createCommentVNode("v-if", true),
|
|
8148
|
+
$setup.colorOption.mode == "predefine" ? (openBlock(), createBlock($setup["DasDropdown"], {
|
|
8149
|
+
key: 1,
|
|
8150
|
+
disabled: $setup.colorOption.disabled || $setup.props.disabled || $setup.colorOption.isView || $setup.props.isView,
|
|
8151
|
+
ref: "predefineDrown",
|
|
8152
|
+
trigger: "click",
|
|
8153
|
+
placement: "bottom-end",
|
|
8154
|
+
selfPopperClass: "color-predefine-dropdown",
|
|
8155
|
+
"hide-on-click": false,
|
|
8156
|
+
onVisibleChange: $setup.handleVisibleChange
|
|
8157
|
+
}, {
|
|
8158
|
+
content: withCtx(() => [
|
|
8159
|
+
createElementVNode(
|
|
8160
|
+
"span",
|
|
8161
|
+
{
|
|
8162
|
+
class: normalizeClass([
|
|
8163
|
+
"color-predefine-icon",
|
|
8164
|
+
$setup.colorOption.size,
|
|
8165
|
+
$setup.innerValue && $setup.innerValue != "-",
|
|
8166
|
+
{ "view-prefine-icon": $setup.colorOption.disabled || $setup.props.disabled || $setup.colorOption.isView || $setup.props.isView }
|
|
8167
|
+
]),
|
|
8168
|
+
style: normalizeStyle("background-color:" + $setup.innerValue)
|
|
8169
|
+
},
|
|
8170
|
+
[
|
|
8171
|
+
createVNode($setup["DasIcon"], {
|
|
8172
|
+
icon: $setup.innerValue && $setup.innerValue != "-" ? "fold" : "close2",
|
|
8173
|
+
customSize: "6px",
|
|
8174
|
+
iconColor: $setup.innerValue && $setup.innerValue != "-" ? "#fff" : "#909399"
|
|
8175
|
+
}, null, 8, ["icon", "iconColor"])
|
|
8176
|
+
],
|
|
8177
|
+
6
|
|
8178
|
+
/* CLASS, STYLE */
|
|
8179
|
+
)
|
|
8180
|
+
]),
|
|
8181
|
+
default: withCtx(() => [
|
|
8182
|
+
createVNode($setup["DasDropdownMenu"], null, {
|
|
8183
|
+
default: withCtx(() => [
|
|
8184
|
+
createElementVNode("div", _hoisted_2, [
|
|
8185
|
+
(openBlock(true), createElementBlock(
|
|
8186
|
+
Fragment,
|
|
8187
|
+
null,
|
|
8188
|
+
renderList($setup.colorOption.predefine, (item, index) => {
|
|
8189
|
+
return openBlock(), createElementBlock("div", {
|
|
8190
|
+
class: normalizeClass(["color-predefine-span", { active: $setup.innerValue == item }]),
|
|
8191
|
+
key: index,
|
|
8192
|
+
style: normalizeStyle("background-color:" + item),
|
|
8193
|
+
onClick: ($event) => $setup.activeHandle(item)
|
|
8194
|
+
}, null, 14, _hoisted_3);
|
|
8195
|
+
}),
|
|
8196
|
+
128
|
|
8197
|
+
/* KEYED_FRAGMENT */
|
|
8198
|
+
))
|
|
8199
|
+
])
|
|
8200
|
+
]),
|
|
8201
|
+
_: 1
|
|
8202
|
+
/* STABLE */
|
|
8203
|
+
})
|
|
8204
|
+
]),
|
|
8205
|
+
_: 1
|
|
8206
|
+
/* STABLE */
|
|
8207
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
8208
|
+
]),
|
|
8209
|
+
_: 1
|
|
8210
|
+
/* STABLE */
|
|
8211
|
+
}, 16, ["class", "modelValue", "isView", "disabled", "onInput", "borderType", "noSetDefaultVal"]),
|
|
8212
|
+
$setup.colorOption.mode == "predefine" && !$setup.colorOption.isView && !$setup.props.isView && !$setup.colorOption.disabled && !$setup.props.disabled && !$setup.innerValue ? (openBlock(), createElementBlock(
|
|
8213
|
+
"span",
|
|
8214
|
+
{
|
|
8215
|
+
key: 0,
|
|
8216
|
+
class: normalizeClass(["predefine-placeholder", { "padding-l": $setup.props.borderType == "bordered" }]),
|
|
8217
|
+
onClick: $setup.predefineHandle
|
|
8218
|
+
},
|
|
8219
|
+
"\u8BF7\u9009\u62E9",
|
|
8220
|
+
2
|
|
8221
|
+
/* CLASS */
|
|
8222
|
+
)) : createCommentVNode("v-if", true)
|
|
8223
|
+
]);
|
|
8224
|
+
}
|
|
8225
|
+
var colorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-45a3dd3a"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/color-picker/src/Index.vue"]]);
|
|
8183
8226
|
|
|
8184
8227
|
var theme = {
|
|
8185
8228
|
"--demo-alert-bg": {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, watchEffect, watch, openBlock, createElementBlock, createElementVNode, normalizeStyle, toDisplayString, createVNode,
|
|
1
|
+
import { defineComponent, ref, watchEffect, watch, openBlock, createElementBlock, createElementVNode, normalizeStyle, toDisplayString, createVNode, mergeProps, normalizeClass, renderSlot } from 'vue';
|
|
2
2
|
import { withInstall } from '@das-fed/utils';
|
|
3
3
|
import { DasRadio } from '@das-fed/ui';
|
|
4
4
|
import { setThemeRule } from '@das-fed/web';
|
|
5
5
|
|
|
6
|
-
const _hoisted_1 = { class: "das-ui-custom-search-item" };
|
|
7
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "Index",
|
|
9
8
|
props: {
|
|
@@ -21,7 +20,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
20
|
labelPosition: { type: String, required: false }
|
|
22
21
|
},
|
|
23
22
|
emits: ["change", "update:modelValue"],
|
|
24
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
24
|
+
__expose();
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
27
|
const searchvalue = ref();
|
|
@@ -48,39 +48,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
return width;
|
|
49
49
|
};
|
|
50
50
|
const labelWidth = ref(calculateLabelWidth(props.labelLength, props.labelPosition));
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class: "label",
|
|
57
|
-
style: normalizeStyle({ width: labelWidth.value })
|
|
58
|
-
},
|
|
59
|
-
toDisplayString(_ctx.label) + "\uFF1A",
|
|
60
|
-
5
|
|
61
|
-
/* TEXT, STYLE */
|
|
62
|
-
),
|
|
63
|
-
createVNode(unref(DasRadio), mergeProps({
|
|
64
|
-
modelValue: searchvalue.value,
|
|
65
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchvalue.value = $event),
|
|
66
|
-
optionType: "filterSquare",
|
|
67
|
-
radioType: "group",
|
|
68
|
-
options: _ctx.options,
|
|
69
|
-
defaultProps: _ctx.defaultProps,
|
|
70
|
-
onChange: changeHandler
|
|
71
|
-
}, _ctx.$attrs), null, 16, ["modelValue", "options", "defaultProps"]),
|
|
72
|
-
createElementVNode(
|
|
73
|
-
"span",
|
|
74
|
-
{
|
|
75
|
-
class: normalizeClass(["custom-label", { active: _ctx.customerActive }])
|
|
76
|
-
},
|
|
77
|
-
"\u81EA\u5B9A\u4E49",
|
|
78
|
-
2
|
|
79
|
-
/* CLASS */
|
|
80
|
-
),
|
|
81
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
82
|
-
]);
|
|
83
|
-
};
|
|
51
|
+
const __returned__ = { props, emit, searchvalue, changeHandler, calculateLabelWidth, labelWidth, get DasRadio() {
|
|
52
|
+
return DasRadio;
|
|
53
|
+
} };
|
|
54
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
55
|
+
return __returned__;
|
|
84
56
|
}
|
|
85
57
|
});
|
|
86
58
|
|
|
@@ -92,7 +64,41 @@ var _export_sfc = (sfc, props) => {
|
|
|
92
64
|
return target;
|
|
93
65
|
};
|
|
94
66
|
|
|
95
|
-
|
|
67
|
+
const _hoisted_1 = { class: "das-ui-custom-search-item" };
|
|
68
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
70
|
+
createElementVNode(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
class: "label",
|
|
74
|
+
style: normalizeStyle({ width: $setup.labelWidth })
|
|
75
|
+
},
|
|
76
|
+
toDisplayString($props.label) + "\uFF1A",
|
|
77
|
+
5
|
|
78
|
+
/* TEXT, STYLE */
|
|
79
|
+
),
|
|
80
|
+
createVNode($setup["DasRadio"], mergeProps({
|
|
81
|
+
modelValue: $setup.searchvalue,
|
|
82
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.searchvalue = $event),
|
|
83
|
+
optionType: "filterSquare",
|
|
84
|
+
radioType: "group",
|
|
85
|
+
options: $props.options,
|
|
86
|
+
defaultProps: $props.defaultProps,
|
|
87
|
+
onChange: $setup.changeHandler
|
|
88
|
+
}, _ctx.$attrs), null, 16, ["modelValue", "options", "defaultProps"]),
|
|
89
|
+
createElementVNode(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
class: normalizeClass(["custom-label", { active: $props.customerActive }])
|
|
93
|
+
},
|
|
94
|
+
"\u81EA\u5B9A\u4E49",
|
|
95
|
+
2
|
|
96
|
+
/* CLASS */
|
|
97
|
+
),
|
|
98
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
99
|
+
]);
|
|
100
|
+
}
|
|
101
|
+
var customSearchItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6750db6a"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/custom-search-item/src/Index.vue"]]);
|
|
96
102
|
|
|
97
103
|
var theme = {
|
|
98
104
|
"--demo-alert-bg": {
|