cosey 0.10.11 → 0.10.12

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.
@@ -23,7 +23,12 @@ const getFormItemStyle = (token) => {
23
23
  alignSelf: "center"
24
24
  },
25
25
  [`${formItemCls}-content`]: {
26
- maxWidth: "100%"
26
+ maxWidth: "100%",
27
+ "@media(max-width: 768px)": {
28
+ "&": {
29
+ width: "100% !important"
30
+ }
31
+ }
27
32
  },
28
33
  [`${formItemCls}-extra`]: {
29
34
  marginBlockStart: token.marginXXS,
@@ -3,7 +3,9 @@ import { formDialogEmits, formDialogSlots, formDialogProps, elFormDialogExposeKe
3
3
  import '../form/index.js';
4
4
  import { useFormDialogWidth } from './useFormDialogWidth.js';
5
5
  import { ElDialog } from 'element-plus';
6
+ import stdin_default$1 from './form-dialog.style.js';
6
7
  import { useBubbleTemplate } from '../form/useBubbleTemplate.js';
8
+ import { useComponentConfig } from '../config-provider/config-provider.api.js';
7
9
 
8
10
  var stdin_default = defineComponent({
9
11
  name: "CoFormDialog",
@@ -15,6 +17,12 @@ var stdin_default = defineComponent({
15
17
  slots,
16
18
  expose: _expose
17
19
  }) {
20
+ const {
21
+ prefixCls
22
+ } = useComponentConfig("form-dialog", props);
23
+ const {
24
+ hashId
25
+ } = stdin_default$1(prefixCls);
18
26
  const {
19
27
  visible,
20
28
  handleOpen,
@@ -34,6 +42,7 @@ var stdin_default = defineComponent({
34
42
  return createVNode(ElDialog, mergeProps({
35
43
  "ref": elPopupRef
36
44
  }, props, {
45
+ "class": [hashId.value, prefixCls.value],
37
46
  "modelValue": visible.value,
38
47
  "onUpdate:modelValue": $event => visible.value = $event,
39
48
  "style": {
@@ -0,0 +1,4 @@
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../theme/theme-context").ThemeManager) => {
2
+ hashId: import("vue").Ref<string, string>;
3
+ };
4
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
2
+
3
+ var stdin_default = getSimpleStyleHook("CoFormDialog", (token) => {
4
+ const { componentCls } = token;
5
+ return {
6
+ [componentCls]: {
7
+ "@media(max-width: 768px)": {
8
+ "&": {
9
+ width: "100%"
10
+ }
11
+ }
12
+ }
13
+ };
14
+ });
15
+
16
+ export { stdin_default as default };
@@ -21,7 +21,7 @@ var stdin_default = defineComponent({
21
21
  const {
22
22
  hashId
23
23
  } = stdin_default$1(prefixCls);
24
- const spaceProps = reactiveOmit(props, ["title", "borderStyle", "position", "collapsible", "collapsed"]);
24
+ const spaceProps = reactiveOmit(props, ["title", "tooltip", "borderStyle", "position", "collapsible", "collapsed"]);
25
25
  const innerCollapsed = ref(false);
26
26
  const isBordered = computed(() => !!props.title);
27
27
  watch(() => props.collapsed, () => {
@@ -66,10 +66,7 @@ var stdin_default = defineComponent({
66
66
  "size": "md"
67
67
  }, null)
68
68
  })])]), withDirectives(createVNode(resolveComponent("el-space"), mergeProps(spaceProps, {
69
- "style": {
70
- display: "flex",
71
- minWidth: 0
72
- }
69
+ "class": `${prefixCls.value}-space`
73
70
  }), {
74
71
  default: () => [slots.default?.({})]
75
72
  }), [[vShow, !innerCollapsed.value]])]);
@@ -40,6 +40,17 @@ var stdin_default = getSimpleStyleHook("CoFormGroup", (token) => {
40
40
  marginInlineStart: token.marginXXS,
41
41
  cursor: "pointer",
42
42
  alignSelf: "center"
43
+ },
44
+ [`${componentCls}-space`]: {
45
+ display: "flex",
46
+ "& > *": {
47
+ maxWidth: "100%",
48
+ "@media(max-width: 768px)": {
49
+ "&": {
50
+ width: "100%"
51
+ }
52
+ }
53
+ }
43
54
  }
44
55
  }
45
56
  };
@@ -10,6 +10,11 @@ var stdin_default = getSimpleStyleHook("CoStackDialog", (token) => {
10
10
  width: "80%",
11
11
  height: "calc(100vh - 15vh)",
12
12
  transition: token.motionDurationSlow,
13
+ "@media(max-width: 768px)": {
14
+ "&": {
15
+ width: "100%"
16
+ }
17
+ },
13
18
  [`${componentCls}-header`]: {
14
19
  flex: "none"
15
20
  },
@@ -120,7 +120,8 @@ var stdin_default = defineComponent({
120
120
  "class": `${prefixCls.value}-remove`,
121
121
  "onClick": () => emit("remove")
122
122
  }, [createVNode(stdin_default$1, {
123
- "name": "co:close-large"
123
+ "name": "co:close-large",
124
+ "size": "md"
124
125
  }, null)])]);
125
126
  };
126
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.10.11",
3
+ "version": "0.10.12",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",