@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
|
@@ -197,11 +197,13 @@ __spreadValues({
|
|
|
197
197
|
}, _TransitionPresets);
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
* @vue/shared v3.4.
|
|
200
|
+
* @vue/shared v3.4.27
|
|
201
201
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
202
202
|
* @license MIT
|
|
203
203
|
**/
|
|
204
204
|
|
|
205
|
+
|
|
206
|
+
|
|
205
207
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
206
208
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
207
209
|
const NOOP = () => {
|
|
@@ -425,14 +427,14 @@ const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
|
425
427
|
};
|
|
426
428
|
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
427
429
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
428
|
-
const derivedNamespace =
|
|
430
|
+
const derivedNamespace = (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
|
|
429
431
|
const namespace = computed(() => {
|
|
430
432
|
return unref$1(derivedNamespace) || defaultNamespace;
|
|
431
433
|
});
|
|
432
434
|
return namespace;
|
|
433
435
|
};
|
|
434
436
|
const useNamespace = (block, namespaceOverrides) => {
|
|
435
|
-
const namespace = useGetDerivedNamespace(
|
|
437
|
+
const namespace = useGetDerivedNamespace();
|
|
436
438
|
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
|
437
439
|
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
|
438
440
|
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
|
@@ -866,7 +868,7 @@ const zIndex = ref(0);
|
|
|
866
868
|
const defaultInitialZIndex = 2e3;
|
|
867
869
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
868
870
|
const useZIndex = (zIndexOverrides) => {
|
|
869
|
-
const zIndexInjection =
|
|
871
|
+
const zIndexInjection = (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
|
|
870
872
|
const initialZIndex = computed(() => {
|
|
871
873
|
const zIndexFromInjection = unref$1(zIndexInjection);
|
|
872
874
|
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
@@ -1562,10 +1564,10 @@ const _sfc_main$8 = defineComponent({
|
|
|
1562
1564
|
};
|
|
1563
1565
|
}
|
|
1564
1566
|
});
|
|
1565
|
-
function _sfc_render$
|
|
1567
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1566
1568
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
1567
1569
|
}
|
|
1568
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$
|
|
1570
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
1569
1571
|
|
|
1570
1572
|
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
1571
1573
|
const popperCoreConfigProps = buildProps({
|
|
@@ -2525,19 +2527,19 @@ const ClickOutside = {
|
|
|
2525
2527
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2526
2528
|
inheritAttrs: false
|
|
2527
2529
|
});
|
|
2528
|
-
function _sfc_render$
|
|
2530
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2529
2531
|
return renderSlot(_ctx.$slots, "default");
|
|
2530
2532
|
}
|
|
2531
|
-
var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$
|
|
2533
|
+
var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$2], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
|
|
2532
2534
|
|
|
2533
2535
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2534
2536
|
name: "ElCollectionItem",
|
|
2535
2537
|
inheritAttrs: false
|
|
2536
2538
|
});
|
|
2537
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2539
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2538
2540
|
return renderSlot(_ctx.$slots, "default");
|
|
2539
2541
|
}
|
|
2540
|
-
var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
2542
|
+
var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
2541
2543
|
|
|
2542
2544
|
const COLLECTION_ITEM_SIGN = `data-el-collection-item`;
|
|
2543
2545
|
const createCollectionWithScope = (name) => {
|
|
@@ -2868,16 +2870,6 @@ const ElPopover = withInstall(Popover$1, {
|
|
|
2868
2870
|
directive: ElPopoverDirective
|
|
2869
2871
|
});
|
|
2870
2872
|
|
|
2871
|
-
const _hoisted_1 = { class: "das-ui-popover-container" };
|
|
2872
|
-
const _hoisted_2 = {
|
|
2873
|
-
key: 0,
|
|
2874
|
-
class: "das-ui-popover-title"
|
|
2875
|
-
};
|
|
2876
|
-
const _hoisted_3 = { class: "das-ui-popover-content" };
|
|
2877
|
-
const _hoisted_4 = {
|
|
2878
|
-
key: 0,
|
|
2879
|
-
class: "btn-groups"
|
|
2880
|
-
};
|
|
2881
2873
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2882
2874
|
__name: "Index",
|
|
2883
2875
|
props: {
|
|
@@ -2895,83 +2887,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2895
2887
|
const $popoverRef = ref(null);
|
|
2896
2888
|
const customClassName = computed(() => {
|
|
2897
2889
|
let className = "das-ui-popover-over-container";
|
|
2898
|
-
if (props.popperClass)
|
|
2899
|
-
className = `${className} ${props.popperClass}`;
|
|
2890
|
+
if (props.popperClass) className = `${className} ${props.popperClass}`;
|
|
2900
2891
|
return className;
|
|
2901
2892
|
});
|
|
2902
2893
|
const clickOutside = () => {
|
|
2903
|
-
|
|
2904
|
-
|
|
2894
|
+
console.log("tttttttttt");
|
|
2895
|
+
if (attrs.visible !== void 0) emits("clickOutside");
|
|
2905
2896
|
};
|
|
2906
2897
|
__expose({ $popoverRef });
|
|
2907
|
-
|
|
2908
|
-
return
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
]),
|
|
2919
|
-
default: withCtx(() => [
|
|
2920
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2921
|
-
_ctx.title ? (openBlock(), createElementBlock(
|
|
2922
|
-
"div",
|
|
2923
|
-
_hoisted_2,
|
|
2924
|
-
toDisplayString(_ctx.title),
|
|
2925
|
-
1
|
|
2926
|
-
/* TEXT */
|
|
2927
|
-
)) : createCommentVNode("v-if", true),
|
|
2928
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2929
|
-
createElementVNode("div", _hoisted_3, [
|
|
2930
|
-
createTextVNode(
|
|
2931
|
-
toDisplayString(_ctx.content) + " ",
|
|
2932
|
-
1
|
|
2933
|
-
/* TEXT */
|
|
2934
|
-
),
|
|
2935
|
-
_ctx.showBtns ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
2936
|
-
createVNode(unref$1(DasButton), {
|
|
2937
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emits("cancel"))
|
|
2938
|
-
}, {
|
|
2939
|
-
default: withCtx(() => [
|
|
2940
|
-
createTextVNode(
|
|
2941
|
-
toDisplayString(unref$1(i18n$1)("das-ui-popover-cancel").value),
|
|
2942
|
-
1
|
|
2943
|
-
/* TEXT */
|
|
2944
|
-
)
|
|
2945
|
-
]),
|
|
2946
|
-
_: 1
|
|
2947
|
-
/* STABLE */
|
|
2948
|
-
}),
|
|
2949
|
-
createVNode(unref$1(DasButton), {
|
|
2950
|
-
btnType: "primary",
|
|
2951
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emits("confirm")),
|
|
2952
|
-
style: { "margin-left": "12px" }
|
|
2953
|
-
}, {
|
|
2954
|
-
default: withCtx(() => [
|
|
2955
|
-
createTextVNode(
|
|
2956
|
-
toDisplayString(unref$1(i18n$1)("das-ui-popover-confirm").value),
|
|
2957
|
-
1
|
|
2958
|
-
/* TEXT */
|
|
2959
|
-
)
|
|
2960
|
-
]),
|
|
2961
|
-
_: 1
|
|
2962
|
-
/* STABLE */
|
|
2963
|
-
})
|
|
2964
|
-
])) : createCommentVNode("v-if", true)
|
|
2965
|
-
])
|
|
2966
|
-
])
|
|
2967
|
-
])), [
|
|
2968
|
-
[unref$1(ClickOutside), clickOutside]
|
|
2969
|
-
])
|
|
2970
|
-
]),
|
|
2971
|
-
_: 3
|
|
2972
|
-
/* FORWARDED */
|
|
2973
|
-
}, 16, ["placement", "popper-class"]);
|
|
2974
|
-
};
|
|
2898
|
+
const __returned__ = { props, emits, attrs, $popoverRef, customClassName, clickOutside, get vClickOutside() {
|
|
2899
|
+
return ClickOutside;
|
|
2900
|
+
}, get ElPopover() {
|
|
2901
|
+
return ElPopover;
|
|
2902
|
+
}, get DasButton() {
|
|
2903
|
+
return DasButton;
|
|
2904
|
+
}, get i18n() {
|
|
2905
|
+
return i18n$1;
|
|
2906
|
+
} };
|
|
2907
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2908
|
+
return __returned__;
|
|
2975
2909
|
}
|
|
2976
2910
|
});
|
|
2977
2911
|
|
|
@@ -2983,7 +2917,84 @@ var _export_sfc = (sfc, props) => {
|
|
|
2983
2917
|
return target;
|
|
2984
2918
|
};
|
|
2985
2919
|
|
|
2986
|
-
|
|
2920
|
+
const _hoisted_1 = { class: "das-ui-popover-container" };
|
|
2921
|
+
const _hoisted_2 = {
|
|
2922
|
+
key: 0,
|
|
2923
|
+
class: "das-ui-popover-title"
|
|
2924
|
+
};
|
|
2925
|
+
const _hoisted_3 = { class: "das-ui-popover-content" };
|
|
2926
|
+
const _hoisted_4 = {
|
|
2927
|
+
key: 0,
|
|
2928
|
+
class: "btn-groups"
|
|
2929
|
+
};
|
|
2930
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2931
|
+
return openBlock(), createBlock($setup["ElPopover"], mergeProps({
|
|
2932
|
+
ref: "$popoverRef",
|
|
2933
|
+
class: "das-ui-popover",
|
|
2934
|
+
placement: $props.placement,
|
|
2935
|
+
width: "240px",
|
|
2936
|
+
"popper-class": $setup.customClassName
|
|
2937
|
+
}, _ctx.$attrs), {
|
|
2938
|
+
reference: withCtx(() => [
|
|
2939
|
+
renderSlot(_ctx.$slots, "reference")
|
|
2940
|
+
]),
|
|
2941
|
+
default: withCtx(() => [
|
|
2942
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2943
|
+
$props.title ? (openBlock(), createElementBlock(
|
|
2944
|
+
"div",
|
|
2945
|
+
_hoisted_2,
|
|
2946
|
+
toDisplayString($props.title),
|
|
2947
|
+
1
|
|
2948
|
+
/* TEXT */
|
|
2949
|
+
)) : createCommentVNode("v-if", true),
|
|
2950
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2951
|
+
createElementVNode("div", _hoisted_3, [
|
|
2952
|
+
createTextVNode(
|
|
2953
|
+
toDisplayString($props.content) + " ",
|
|
2954
|
+
1
|
|
2955
|
+
/* TEXT */
|
|
2956
|
+
),
|
|
2957
|
+
$props.showBtns ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
2958
|
+
createVNode($setup["DasButton"], {
|
|
2959
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emits("cancel"))
|
|
2960
|
+
}, {
|
|
2961
|
+
default: withCtx(() => [
|
|
2962
|
+
createTextVNode(
|
|
2963
|
+
toDisplayString($setup.i18n("das-ui-popover-cancel").value),
|
|
2964
|
+
1
|
|
2965
|
+
/* TEXT */
|
|
2966
|
+
)
|
|
2967
|
+
]),
|
|
2968
|
+
_: 1
|
|
2969
|
+
/* STABLE */
|
|
2970
|
+
}),
|
|
2971
|
+
createVNode($setup["DasButton"], {
|
|
2972
|
+
btnType: "primary",
|
|
2973
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $setup.emits("confirm")),
|
|
2974
|
+
style: { "margin-left": "12px" }
|
|
2975
|
+
}, {
|
|
2976
|
+
default: withCtx(() => [
|
|
2977
|
+
createTextVNode(
|
|
2978
|
+
toDisplayString($setup.i18n("das-ui-popover-confirm").value),
|
|
2979
|
+
1
|
|
2980
|
+
/* TEXT */
|
|
2981
|
+
)
|
|
2982
|
+
]),
|
|
2983
|
+
_: 1
|
|
2984
|
+
/* STABLE */
|
|
2985
|
+
})
|
|
2986
|
+
])) : createCommentVNode("v-if", true)
|
|
2987
|
+
])
|
|
2988
|
+
])
|
|
2989
|
+
])), [
|
|
2990
|
+
[$setup["vClickOutside"], $setup.clickOutside]
|
|
2991
|
+
])
|
|
2992
|
+
]),
|
|
2993
|
+
_: 3
|
|
2994
|
+
/* FORWARDED */
|
|
2995
|
+
}, 16, ["placement", "popper-class"]);
|
|
2996
|
+
}
|
|
2997
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/popover/src/Index.vue"]]);
|
|
2987
2998
|
|
|
2988
2999
|
var i18n = {
|
|
2989
3000
|
"das-ui-popover-confirm": { "zh-CN": "\u786E\u5B9A", en: "Confirm" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-mask[data-v-23106b0e]{background:rgba(33,33,33,.5);height:100vh;left:0;position:fixed;top:0;width:100vw}.das-ui-mask[data-v-23106b0e] .mask-content[data-v-23106b0e]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.das-ui-mask[data-v-23106b0e] .close-icon[data-v-23106b0e]{cursor:pointer;position:absolute;right:40px;top:40px}.fade-enter-active[data-v-23106b0e],.fade-leave-active[data-v-23106b0e]{transition:opacity .1s}.fade-enter[data-v-23106b0e],.fade-leave-to[data-v-23106b0e]{opacity:0}
|
|
1
|
+
.das-ui-popup-mask[data-v-23106b0e]{background:rgba(33,33,33,.5);height:100vh;left:0;position:fixed;top:0;width:100vw}.das-ui-popup-mask[data-v-23106b0e] .mask-content[data-v-23106b0e]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.das-ui-popup-mask[data-v-23106b0e] .close-icon[data-v-23106b0e]{cursor:pointer;position:absolute;right:40px;top:40px}.fade-enter-active[data-v-23106b0e],.fade-leave-active[data-v-23106b0e]{transition:opacity .1s}.fade-enter[data-v-23106b0e],.fade-leave-to[data-v-23106b0e]{opacity:0}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, onMounted, onUnmounted, openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeClass, normalizeStyle, withModifiers, createElementVNode, renderSlot, createCommentVNode
|
|
1
|
+
import { defineComponent, mergeModels, ref, computed, useModel, watch, nextTick, onMounted, onUnmounted, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, normalizeClass, normalizeStyle, withModifiers, createElementVNode, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import { withInstall } from '@das-fed/utils';
|
|
3
3
|
import { useZIndex } from '@das-fed/utils/hooks/popup-manager/use-zindex';
|
|
4
4
|
import { hasClass, getStyle, addClass, removeClass } from '@das-fed/utils/style';
|
|
5
5
|
import { DasIcon } from '@das-fed/ui';
|
|
6
6
|
|
|
7
|
-
const _hoisted_1 = { class: "mask-content" };
|
|
8
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
8
|
__name: "Index",
|
|
10
|
-
props: {
|
|
9
|
+
props: /* @__PURE__ */ mergeModels({
|
|
11
10
|
visible: { type: Boolean, required: false, default: false },
|
|
12
11
|
maskClass: { type: String, required: false },
|
|
13
12
|
appendToBody: { type: Boolean, required: false, default: false },
|
|
@@ -15,29 +14,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
14
|
showClose: { type: Boolean, required: false, default: true },
|
|
16
15
|
closeOnClickModal: { type: Boolean, required: false, default: false },
|
|
17
16
|
closeOnPressEscape: { type: Boolean, required: false, default: true }
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
}, {
|
|
18
|
+
"visible": { type: Boolean, default: false },
|
|
19
|
+
"visibleModifiers": {}
|
|
20
|
+
}),
|
|
21
|
+
emits: /* @__PURE__ */ mergeModels(["update:visible", "visible-change"], ["update:visible"]),
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
__expose();
|
|
21
24
|
const props = __props;
|
|
22
25
|
const emit = __emit;
|
|
23
26
|
const popupMaskRef = ref();
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
if (props.maskClass)
|
|
27
|
-
|
|
28
|
-
return name;
|
|
29
|
-
});
|
|
30
|
-
const innerVisible = computed({
|
|
31
|
-
get: () => props.visible,
|
|
32
|
-
set: (val) => emit("update:visible", val)
|
|
27
|
+
const popupClassName = computed(() => {
|
|
28
|
+
let className = "das-ui-popup-mask";
|
|
29
|
+
if (props.maskClass) className = `${className} ${props.maskClass}`;
|
|
30
|
+
return className;
|
|
33
31
|
});
|
|
32
|
+
const innerVisible = useModel(__props, "visible");
|
|
34
33
|
const zIndex = ref(2e3);
|
|
35
34
|
const withoutHiddenClass = ref(false);
|
|
36
35
|
const bodyPaddingRight = ref("0");
|
|
37
36
|
const computedBodyPaddingRight = ref(0);
|
|
38
37
|
const setBodyStyle = () => {
|
|
39
|
-
if (!props.lockScroll)
|
|
40
|
-
return;
|
|
38
|
+
if (!props.lockScroll) return;
|
|
41
39
|
withoutHiddenClass.value = !hasClass(document.body, "overflow-hide");
|
|
42
40
|
if (withoutHiddenClass.value) {
|
|
43
41
|
bodyPaddingRight.value = document.body.style.paddingRight;
|
|
@@ -64,13 +62,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
62
|
if (newVal) {
|
|
65
63
|
zIndex.value = useZIndex().nextZIndex();
|
|
66
64
|
nextTick(() => {
|
|
67
|
-
if (props.appendToBody)
|
|
68
|
-
document.body.appendChild(popupMaskRef.value);
|
|
69
65
|
setBodyStyle();
|
|
70
66
|
});
|
|
71
67
|
} else {
|
|
72
68
|
restoreBodyStyle();
|
|
73
69
|
}
|
|
70
|
+
emit("update:visible", newVal);
|
|
74
71
|
emit("visible-change", newVal);
|
|
75
72
|
}
|
|
76
73
|
);
|
|
@@ -78,10 +75,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
75
|
innerVisible.value = false;
|
|
79
76
|
restoreBodyStyle();
|
|
80
77
|
};
|
|
78
|
+
const clickModal = () => {
|
|
79
|
+
if (props.closeOnClickModal) onClose();
|
|
80
|
+
};
|
|
81
81
|
const quickClose = (event) => {
|
|
82
82
|
if (event.key === "Escape") {
|
|
83
|
-
if (props.closeOnPressEscape)
|
|
84
|
-
onClose();
|
|
83
|
+
if (props.closeOnPressEscape) onClose();
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
86
|
onMounted(() => {
|
|
@@ -90,56 +89,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
89
|
onUnmounted(() => {
|
|
91
90
|
window.removeEventListener("keydown", quickClose);
|
|
92
91
|
});
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
ref: popupMaskRef,
|
|
99
|
-
name: "fade"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
innerVisible.value ? (openBlock(), createElementBlock(
|
|
104
|
-
"div",
|
|
105
|
-
{
|
|
106
|
-
key: 0,
|
|
107
|
-
class: normalizeClass(className.value),
|
|
108
|
-
style: normalizeStyle({ "z-index": zIndex.value }),
|
|
109
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
110
|
-
() => {
|
|
111
|
-
if (props.closeOnClickModal)
|
|
112
|
-
onClose();
|
|
113
|
-
},
|
|
114
|
-
["self"]
|
|
115
|
-
))
|
|
116
|
-
},
|
|
117
|
-
[
|
|
118
|
-
createElementVNode("div", _hoisted_1, [
|
|
119
|
-
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {
|
|
120
|
-
key: 0,
|
|
121
|
-
visible: innerVisible.value
|
|
122
|
-
}, void 0, true) : createCommentVNode("v-if", true)
|
|
123
|
-
]),
|
|
124
|
-
_ctx.showClose ? (openBlock(), createBlock(unref(DasIcon), {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: "close-icon",
|
|
127
|
-
iconColor: "#ffffff",
|
|
128
|
-
icon: "close2",
|
|
129
|
-
onClick: onClose
|
|
130
|
-
})) : createCommentVNode("v-if", true)
|
|
131
|
-
],
|
|
132
|
-
6
|
|
133
|
-
/* CLASS, STYLE */
|
|
134
|
-
)) : createCommentVNode("v-if", true)
|
|
135
|
-
]),
|
|
136
|
-
_: 3
|
|
137
|
-
/* FORWARDED */
|
|
138
|
-
},
|
|
139
|
-
512
|
|
140
|
-
/* NEED_PATCH */
|
|
141
|
-
);
|
|
142
|
-
};
|
|
92
|
+
const __returned__ = { props, emit, popupMaskRef, popupClassName, innerVisible, zIndex, withoutHiddenClass, bodyPaddingRight, computedBodyPaddingRight, setBodyStyle, restoreBodyStyle, onClose, clickModal, quickClose, get DasIcon() {
|
|
93
|
+
return DasIcon;
|
|
94
|
+
} };
|
|
95
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
96
|
+
return __returned__;
|
|
143
97
|
}
|
|
144
98
|
});
|
|
145
99
|
|
|
@@ -151,7 +105,58 @@ var _export_sfc = (sfc, props) => {
|
|
|
151
105
|
return target;
|
|
152
106
|
};
|
|
153
107
|
|
|
154
|
-
|
|
108
|
+
const _hoisted_1 = { class: "mask-content" };
|
|
109
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
110
|
+
return openBlock(), createBlock(Teleport, {
|
|
111
|
+
to: "body",
|
|
112
|
+
disabled: !$props.appendToBody
|
|
113
|
+
}, [
|
|
114
|
+
createVNode(
|
|
115
|
+
Transition,
|
|
116
|
+
{
|
|
117
|
+
ref: "popupMaskRef",
|
|
118
|
+
name: "fade"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
$setup.innerVisible ? (openBlock(), createElementBlock(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
key: 0,
|
|
126
|
+
class: normalizeClass($setup.popupClassName),
|
|
127
|
+
style: normalizeStyle({ "z-index": $setup.zIndex }),
|
|
128
|
+
onClick: withModifiers($setup.clickModal, ["self"])
|
|
129
|
+
},
|
|
130
|
+
[
|
|
131
|
+
createElementVNode("div", _hoisted_1, [
|
|
132
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : createCommentVNode("v-if", true)
|
|
133
|
+
]),
|
|
134
|
+
$props.showClose ? (openBlock(), createElementBlock("div", {
|
|
135
|
+
key: 0,
|
|
136
|
+
class: "close-icon",
|
|
137
|
+
onClick: withModifiers($setup.onClose, ["stop"])
|
|
138
|
+
}, [
|
|
139
|
+
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
140
|
+
createVNode($setup["DasIcon"], {
|
|
141
|
+
iconColor: "#ffffff",
|
|
142
|
+
icon: "close2"
|
|
143
|
+
})
|
|
144
|
+
], true)
|
|
145
|
+
])) : createCommentVNode("v-if", true)
|
|
146
|
+
],
|
|
147
|
+
6
|
|
148
|
+
/* CLASS, STYLE */
|
|
149
|
+
)) : createCommentVNode("v-if", true)
|
|
150
|
+
]),
|
|
151
|
+
_: 3
|
|
152
|
+
/* FORWARDED */
|
|
153
|
+
},
|
|
154
|
+
512
|
|
155
|
+
/* NEED_PATCH */
|
|
156
|
+
)
|
|
157
|
+
], 8, ["disabled"]);
|
|
158
|
+
}
|
|
159
|
+
var popupMask = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23106b0e"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/popup-mask/src/Index.vue"]]);
|
|
155
160
|
|
|
156
161
|
const DasPopupMaskRef = () => ref(null);
|
|
157
162
|
const DasPopupMask = withInstall(popupMask);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '@das-fed/utils';
|
|
2
2
|
import { getLang, t, setI18nRule } from '@das-fed/web';
|
|
3
|
-
import { defineComponent, openBlock, createElementBlock,
|
|
3
|
+
import { defineComponent, openBlock, createElementBlock, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
4
4
|
import { DasButton } from '@das-fed/ui';
|
|
5
5
|
import { getPersonalInfo, getToken } from '@das-fed/utils/common-info';
|
|
6
6
|
import { pureImageSrc } from '@das-fed/utils/pure-image-src';
|
|
@@ -16,8 +16,7 @@ const usePreview = (props) => {
|
|
|
16
16
|
let fileUrl = props.fileUrl;
|
|
17
17
|
const lang = getLang().value;
|
|
18
18
|
const token = getToken();
|
|
19
|
-
if (!fileUrl.startsWith("http"))
|
|
20
|
-
fileUrl = `${currentHost}${pureImageSrc(fileUrl)}`;
|
|
19
|
+
if (!fileUrl.startsWith("http")) fileUrl = `${currentHost}${pureImageSrc(fileUrl)}`;
|
|
21
20
|
const finalUrl = `${previewHost}${officePreviewPath}?access_token=${token}&lang=${lang}&fileUrl=${fileUrl}`;
|
|
22
21
|
window.open(finalUrl);
|
|
23
22
|
};
|
|
@@ -38,30 +37,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
37
|
const props = __props;
|
|
39
38
|
const { preview } = usePreview(props);
|
|
40
39
|
__expose({ preview });
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
createVNode(unref(DasButton), {
|
|
49
|
-
"btn-type": "primary-text",
|
|
50
|
-
size: "large"
|
|
51
|
-
}, {
|
|
52
|
-
default: withCtx(() => [
|
|
53
|
-
createTextVNode(
|
|
54
|
-
toDisplayString(unref(t)("das-preview-text")),
|
|
55
|
-
1
|
|
56
|
-
/* TEXT */
|
|
57
|
-
)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
/* STABLE */
|
|
61
|
-
})
|
|
62
|
-
], true)
|
|
63
|
-
]);
|
|
64
|
-
};
|
|
40
|
+
const __returned__ = { props, preview, get DasButton() {
|
|
41
|
+
return DasButton;
|
|
42
|
+
}, get t() {
|
|
43
|
+
return t;
|
|
44
|
+
} };
|
|
45
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
46
|
+
return __returned__;
|
|
65
47
|
}
|
|
66
48
|
});
|
|
67
49
|
|
|
@@ -73,7 +55,30 @@ var _export_sfc = (sfc, props) => {
|
|
|
73
55
|
return target;
|
|
74
56
|
};
|
|
75
57
|
|
|
76
|
-
|
|
58
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
+
return openBlock(), createElementBlock("div", {
|
|
60
|
+
class: "das-preview-container",
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $setup.preview && $setup.preview(...args))
|
|
62
|
+
}, [
|
|
63
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
64
|
+
createVNode($setup["DasButton"], {
|
|
65
|
+
"btn-type": "primary-text",
|
|
66
|
+
size: "large"
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
createTextVNode(
|
|
70
|
+
toDisplayString($setup.t("das-preview-text")),
|
|
71
|
+
1
|
|
72
|
+
/* TEXT */
|
|
73
|
+
)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
/* STABLE */
|
|
77
|
+
})
|
|
78
|
+
], true)
|
|
79
|
+
]);
|
|
80
|
+
}
|
|
81
|
+
var Preview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1f687603"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/components/preview/src/Index.vue"]]);
|
|
77
82
|
|
|
78
83
|
var i18n = {
|
|
79
84
|
"das-preview-text": { "zh-CN": "\u9884\u89C8", en: "preview" }
|