cosey 0.10.12 → 0.10.14

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.
@@ -4,7 +4,12 @@ var stdin_default = getSimpleStyleHook("CoContainer", (token) => {
4
4
  const { componentCls } = token;
5
5
  return {
6
6
  [componentCls]: {
7
- padding: token.padding
7
+ padding: token.padding,
8
+ "@media(max-height: 800px)": {
9
+ "&": {
10
+ height: "auto !important"
11
+ }
12
+ }
8
13
  }
9
14
  };
10
15
  });
@@ -29,6 +29,7 @@ const getButtonStyle = (token) => {
29
29
  },
30
30
  "&-group": {
31
31
  display: "flex",
32
+ flexWrap: "wrap",
32
33
  gap: 2
33
34
  },
34
35
  "&-select": {
@@ -24,7 +24,38 @@ var stdin_default = getSimpleStyleHook("CoFormList", (token) => {
24
24
  marginInlineEnd: token.marginXXS
25
25
  },
26
26
  ".el-form-item__label": {
27
- display: "none"
27
+ display: "none",
28
+ "@media(max-width: 768px)": {
29
+ "&": {
30
+ display: "inline-flex"
31
+ }
32
+ }
33
+ },
34
+ [`${componentCls}-sort-item`]: {
35
+ "@media(max-width: 768px)": {
36
+ "&": {
37
+ width: "100%"
38
+ }
39
+ }
40
+ },
41
+ [`${componentCls}-space`]: {
42
+ display: "flex",
43
+ flexWrap: "wrap",
44
+ "&.is-head": {
45
+ "@media(max-width: 768px)": {
46
+ "&": {
47
+ display: "none"
48
+ }
49
+ }
50
+ },
51
+ "& > *": {
52
+ maxWidth: "100%",
53
+ "@media(max-width: 768px)": {
54
+ "&": {
55
+ width: "100%"
56
+ }
57
+ }
58
+ }
28
59
  }
29
60
  }
30
61
  };
@@ -280,10 +280,11 @@ var stdin_default = /* @__PURE__ */defineComponent({
280
280
  }) : createVNode("div", {
281
281
  "class": [hashId.value, prefixCls.value]
282
282
  }, [props.modelValue.length > 0 && createVNode(ElSpace, {
283
+ "class": [`${prefixCls.value}-space`, "is-head"],
283
284
  "style": {
284
285
  marginInlineStart: props.draggable ? token.value.marginLG + "px" : ""
285
286
  },
286
- "size": "large"
287
+ "size": [16, 16]
287
288
  }, _isSlot(_slot = columns.value.map(column => {
288
289
  return createVNode("div", {
289
290
  "class": [`${prefixCls.value}-title`, {
@@ -304,10 +305,12 @@ var stdin_default = /* @__PURE__ */defineComponent({
304
305
  }, _isSlot(_slot2 = props.modelValue.map((row, index) => {
305
306
  return createVNode(_DndSortItem, {
306
307
  "key": getKey(row),
307
- "index": index
308
+ "index": index,
309
+ "class": `${prefixCls.value}-sort-item`
308
310
  }, {
309
311
  default: () => [createVNode(ElSpace, {
310
- "size": "large"
312
+ "size": [16, 16],
313
+ "class": `${prefixCls.value}-space`
311
314
  }, {
312
315
  default: () => [slots.default?.({
313
316
  row,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, unref, computed, createVNode, mergeProps, nextTick } from 'vue';
2
2
  import { reactiveComputed } from '@vueuse/core';
3
- import { merge, get } from 'lodash-es';
3
+ import { merge, omit, get } from 'lodash-es';
4
4
  import { ElSelect, ElPagination, ElOption } from 'element-plus';
5
5
  import { remoteSelectEmits, remoteSelectSlots, remoteSelectProps } from './remote-select.api.js';
6
6
  import stdin_default$1 from './remote-select.style.js';
@@ -126,8 +126,11 @@ var stdin_default = defineComponent({
126
126
  } = useProps(props);
127
127
  const popperId = uniqid();
128
128
  const events = bulkBindEvents(remoteSelectEmits, emit);
129
+ const selectProps = computed(() => {
130
+ return omit(props, ["optionProps", "api", "pagination", "formProps", "transformParams", "keys", "immediate"]);
131
+ });
129
132
  return () => {
130
- return createVNode(ElSelect, mergeProps(attrs, props, events, {
133
+ return createVNode(ElSelect, mergeProps(attrs, selectProps.value, events, {
131
134
  "class": `${hashId.value} ${prefixCls.value}`,
132
135
  "popper-class": `${hashId.value} ${prefixCls.value}-popper ${popperId}`,
133
136
  "onVisible-change": onVisibleChange
package/config/i18n.js CHANGED
@@ -1,6 +1,11 @@
1
+ import dayjsZhCn from 'dayjs/locale/zh-cn';
2
+ import stdin_default from '../locale/lang/zh-cn.js';
3
+
1
4
  const defaultI18nConfig = {
2
5
  locale: "zh-cn",
3
- messages: []
6
+ messages: [
7
+ { value: "zh-cn", label: "\u7B80\u4F53\u4E2D\u6587", dayjs: dayjsZhCn, cosey: stdin_default, app: {} }
8
+ ]
4
9
  };
5
10
 
6
11
  export { defaultI18nConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.10.12",
3
+ "version": "0.10.14",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",