yc-design-vue 1.1.7 → 1.1.8

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.
@@ -17,7 +17,7 @@ declare const Affix: {
17
17
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
18
18
  wrapperRef: HTMLDivElement;
19
19
  affixRef: HTMLDivElement;
20
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
20
+ }, any, import('vue').ComponentProvideOptions, {
21
21
  P: {};
22
22
  B: {};
23
23
  D: {};
@@ -6,7 +6,7 @@ declare function __VLS_template(): {
6
6
  wrapperRef: HTMLDivElement;
7
7
  affixRef: HTMLDivElement;
8
8
  };
9
- rootEl: HTMLDivElement;
9
+ rootEl: any;
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<AffixProps, {
@@ -23,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<AffixProps, {
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
24
  wrapperRef: HTMLDivElement;
25
25
  affixRef: HTMLDivElement;
26
- }, HTMLDivElement>;
26
+ }, any>;
27
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
28
  export default _default;
29
29
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -8,7 +8,8 @@ import "../Empty/index.js";
8
8
  /* empty css */
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  ...{
11
- name: "Affix"
11
+ name: "Affix",
12
+ inheritAttrs: false
12
13
  },
13
14
  __name: "index",
14
15
  props: {
@@ -90,9 +91,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
91
  class: normalizeClass([
91
92
  {
92
93
  "yc-affix": isFixed.value
93
- }
94
+ },
95
+ _ctx.$attrs.class
94
96
  ]),
95
- style: normalizeStyle(style.value),
97
+ style: normalizeStyle({
98
+ ...style.value,
99
+ ..._ctx.$attrs.style || {}
100
+ }),
96
101
  ref_key: "affixRef",
97
102
  ref: affixRef
98
103
  }, [
@@ -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-d6a4765c"]]);
4
+ const _Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4dc0e29"]]);
5
5
  export {
6
6
  _Drawer as default
7
7
  };
@@ -80,8 +80,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  const { zIndex, popupContainer } = getGlobalConfig(props);
81
81
  const drawerStyle = computed(() => {
82
82
  return {
83
- height: placement.value == "left" || placement.value == "right" ? "100%" : valueToPx(height.value),
84
- width: placement.value == "left" || placement.value == "right" ? valueToPx(width.value) : `100%`,
83
+ height: placement.value == "left" || placement.value == "right" ? "" : valueToPx(height.value),
84
+ width: placement.value == "left" || placement.value == "right" ? valueToPx(width.value) : "",
85
85
  // 传入样式
86
86
  ..._drawerStyle.value
87
87
  };
@@ -1,7 +1,6 @@
1
1
  import { DrawerServiceProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DrawerServiceProps> & Readonly<{}>, {
3
3
  unmountOnClose: boolean;
4
- popupContainer: import('..').PopupContainer;
5
4
  renderToBody: boolean;
6
5
  width: number | string;
7
6
  height: number | string;
@@ -27,7 +27,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  unmountOnClose: { type: Boolean, default: false },
28
28
  width: { default: 250 },
29
29
  height: { default: 250 },
30
- popupContainer: { default: "yc-overlay-drawer" },
31
30
  drawerStyle: { default: () => {
32
31
  return {};
33
32
  } },
@@ -69,6 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
68
  style: {
70
69
  position: "fixed"
71
70
  },
71
+ "popup-container": ".yc-overlay-drawer",
72
72
  onOk: _cache[1] || (_cache[1] = ($event) => {
73
73
  var _a;
74
74
  return (_a = _ctx.onOk) == null ? void 0 : _a.call(_ctx);
@@ -43,7 +43,7 @@ export interface DrawerEmits {
43
43
  (e: 'before-close'): void;
44
44
  (e: 'close'): void;
45
45
  }
46
- export type DrawerConfig = Omit<DrawerProps, 'visible' | 'defaultVisible'> & {
46
+ export type DrawerConfig = Omit<DrawerProps, 'visible' | 'defaultVisible' | 'popupContainer'> & {
47
47
  content?: RenderContent;
48
48
  title?: RenderContent;
49
49
  onOk?: () => void | Promise<void>;
@@ -2,7 +2,6 @@ import { ModalServiceProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ModalServiceProps> & Readonly<{}>, {
3
3
  top: number;
4
4
  unmountOnClose: boolean;
5
- popupContainer: import('..').PopupContainer;
6
5
  renderToBody: boolean;
7
6
  width: number | string;
8
7
  content: import('../_shared/type').RenderContent;
@@ -37,7 +37,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  } },
38
38
  footer: { type: Boolean, default: true },
39
39
  renderToBody: { type: Boolean, default: true },
40
- popupContainer: { default: ".yc-overlay-modal" },
41
40
  maskStyle: { default: () => {
42
41
  return {};
43
42
  } },
@@ -87,6 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
86
  return openBlock(), createBlock(_Modal, mergeProps(props, {
88
87
  visible: visible.value,
89
88
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
89
+ "popup-container": ".yc-overlay-modal",
90
90
  "modal-class": [
91
91
  "yc-service-modal",
92
92
  {
@@ -53,7 +53,7 @@ export interface ModalSlots {
53
53
  footer?: () => VNode[];
54
54
  title?: () => VNode[];
55
55
  }
56
- export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible'> & {
56
+ export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible' | 'popupContainer'> & {
57
57
  title?: RenderContent;
58
58
  content?: RenderContent;
59
59
  type?: ModalType;
@@ -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.vue.js";
9
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
8
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
9
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.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,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.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconCopy.vue.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: "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.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconEdit.vue.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
  };