yc-design-vue 1.1.5 → 1.1.7

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.
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Drawer.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-23a10cf6"]]);
4
+ const _Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d6a4765c"]]);
5
5
  export {
6
6
  _Drawer as default
7
7
  };
@@ -73,7 +73,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
73
  maskClosable,
74
74
  escToClose,
75
75
  drawerStyle: _drawerStyle,
76
- renderToBody
76
+ renderToBody,
77
+ popupContainer: _popupContainer
77
78
  } = toRefs(props);
78
79
  const { onBeforeOk, onBeforeCancel } = props;
79
80
  const { zIndex, popupContainer } = getGlobalConfig(props);
@@ -112,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
113
  `yc-drawer-placement-${unref(placement)}`,
113
114
  _ctx.$attrs.class,
114
115
  {
115
- "yc-drawer-position-absolute": unref(popupContainer) || !unref(renderToBody)
116
+ "yc-drawer-position-absolute": unref(_popupContainer) || !unref(renderToBody)
116
117
  }
117
118
  ]),
118
119
  style: normalizeStyle({
@@ -66,6 +66,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  return openBlock(), createBlock(_Drawer, mergeProps(props, {
67
67
  visible: visible.value,
68
68
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
69
+ style: {
70
+ position: "fixed"
71
+ },
69
72
  onOk: _cache[1] || (_cache[1] = ($event) => {
70
73
  var _a;
71
74
  return (_a = _ctx.onOk) == null ? void 0 : _a.call(_ctx);
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ImagePreview.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c202e7b9"]]);
4
+ const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-35243e9c"]]);
5
5
  export {
6
6
  ImagePreview as default
7
7
  };
@@ -1,7 +1,6 @@
1
1
  import { defineComponent, toRefs, ref, createBlock, openBlock, Teleport, unref, createElementBlock, createCommentVNode, normalizeStyle, normalizeClass, createVNode, Transition, withCtx, withDirectives, createElementVNode, vShow, withModifiers, renderSlot, createSlots } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
- import { isUndefined } from "../_shared/utils/is.js";
5
4
  import "../_shared/utils/time.js";
6
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
6
  import useControlValue from "../_shared/utils/control.js";
@@ -136,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
135
  "yc-image-preview",
137
136
  _ctx.$attrs.class,
138
137
  {
139
- "yc-image-preview-absolute": !unref(isUndefined)(unref(_popupContainer))
138
+ "yc-image-preview-absolute": unref(_popupContainer)
140
139
  }
141
140
  ]),
142
141
  style: normalizeStyle({
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f89e836b"]]);
4
+ const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-22ef8b32"]]);
5
5
  export {
6
6
  _Modal as default
7
7
  };
@@ -84,7 +84,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
84
  modalStyle: _modalStyle,
85
85
  fullscreen,
86
86
  draggable,
87
- renderToBody
87
+ renderToBody,
88
+ popupContainer: _popupContainer
88
89
  } = toRefs(props);
89
90
  const { onBeforeOk, onBeforeCancel } = props;
90
91
  const { popupContainer, zIndex } = getGlobalConfig(props);
@@ -133,7 +134,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
134
  _ctx.$attrs.class,
134
135
  {
135
136
  "yc-modal-simple": _ctx.simple,
136
- "yc-modal-position-absolute": unref(popupContainer) || !unref(renderToBody)
137
+ "yc-modal-position-absolute": unref(_popupContainer) || !unref(renderToBody)
137
138
  }
138
139
  ]),
139
140
  style: normalizeStyle({
@@ -93,6 +93,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  [`yc-service-modal-${_ctx.type}`]: !!_ctx.type
94
94
  }
95
95
  ],
96
+ style: {
97
+ position: "fixed"
98
+ },
96
99
  onOk: _cache[1] || (_cache[1] = ($event) => {
97
100
  var _a;
98
101
  return (_a = _ctx.onOk) == null ? void 0 : _a.call(_ctx);
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Trigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93ea11ef"]]);
4
+ const _Trigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-744f9169"]]);
5
5
  export {
6
6
  _Trigger as default
7
7
  };
@@ -1,7 +1,6 @@
1
1
  import { defineComponent, useSlots, toRefs, ref, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, unref, withModifiers, Teleport, createVNode, Transition, withCtx, withDirectives, createCommentVNode, normalizeStyle, normalizeClass, createElementVNode, renderSlot, vShow } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
- import { isUndefined } from "../_shared/utils/is.js";
5
4
  import "../_shared/utils/time.js";
6
5
  import { findFirstLegitChild } from "../_shared/utils/vue-utils.js";
7
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
@@ -144,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
143
  `yc-trigger-position-${unref(position)}`,
145
144
  {
146
145
  "yc-trigger-transform-origin": _ctx.needTransformOrigin,
147
- "yc-trigger-absolute": !unref(isUndefined)(unref(_popupContainer))
146
+ "yc-trigger-absolute": unref(_popupContainer)
148
147
  },
149
148
  _ctx.$attrs.class
150
149
  ]),
@@ -5,8 +5,8 @@ import { getDomText, sleep } from "../_shared/utils/dom.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
9
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
8
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
9
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
10
10
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
11
11
  import useControlValue from "../_shared/utils/control.js";
12
12
  import Input from "../Input/index.js";
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconCopy.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconCopy",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconCopy",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconCopy.vue.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconEdit.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconEdit",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconEdit",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconEdit.vue.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };