@qin-ui/antd-vue-pro 1.1.21 → 1.1.23
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/README.md +0 -7
- package/es/form/{index-ef98f1fd.js → index-1cdda7ac.js} +50 -445
- package/es/form/index.js +5 -13
- package/es/index.d.ts +33 -287
- package/es/index.js +6 -14
- package/es/style.css +5 -5
- package/es/table/index.js +13 -14
- package/package.json +1 -1
package/es/style.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.ant-form-item:has(> [hide-feedback='true']) {
|
|
2
2
|
margin-bottom: 0;
|
|
3
3
|
}
|
|
4
|
-
.field-component[data-v-
|
|
4
|
+
.field-component[data-v-37574a50]:not(.ant-switch) {
|
|
5
5
|
width: 100%;
|
|
6
6
|
min-width: 120px;
|
|
7
7
|
}
|
|
8
|
-
.pro-form[data-v-
|
|
8
|
+
.pro-form[data-v-0ed9c0b6] .ant-form-item {
|
|
9
9
|
margin: 0;
|
|
10
10
|
}
|
|
11
|
-
.expand-transition[data-v-
|
|
11
|
+
.expand-transition[data-v-0ed9c0b6] {
|
|
12
12
|
transition: all 0.25s;
|
|
13
13
|
}
|
|
14
14
|
.control-icon[data-v-4f46d39e] {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
padding: 24px 24px 16px;
|
|
34
34
|
background-color: #fff;
|
|
35
35
|
}
|
|
36
|
-
.pro-table[data-v-
|
|
36
|
+
.pro-table[data-v-1adefaaa] {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
min-width: 800px;
|
|
40
40
|
}
|
|
41
|
-
.pro-table[data-v-
|
|
41
|
+
.pro-table[data-v-1adefaaa] .ant-pagination .ant-pagination-total-text {
|
|
42
42
|
flex: 1;
|
|
43
43
|
}
|
package/es/table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode, defineComponent, ref, onMounted, computed, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode, mergeModels, useModel, watch, createElementVNode, createElementBlock, Fragment, renderList, withModifiers, renderSlot, useAttrs, useSlots, toValue, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Space, Button, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
3
|
import { useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
|
|
4
|
-
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-
|
|
4
|
+
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-1cdda7ac.js";
|
|
5
5
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
6
6
|
const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
|
|
7
7
|
function _objectSpread$2(target) {
|
|
@@ -170,10 +170,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
});
|
|
171
171
|
const layoutProps = computed(
|
|
172
172
|
() => props.layout === "grid" ? {
|
|
173
|
-
grid: {
|
|
173
|
+
grid: {
|
|
174
|
+
gutter: [columnGap, rowGap],
|
|
175
|
+
style: { flex: 1, marginRight: "12px" }
|
|
176
|
+
},
|
|
174
177
|
style: {
|
|
175
178
|
display: "flex",
|
|
176
|
-
gap: "24px",
|
|
177
179
|
overflow: "hidden",
|
|
178
180
|
height: `${expandStatus.value ? proFormHeight : collapseHeight}px`
|
|
179
181
|
}
|
|
@@ -201,10 +203,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
201
203
|
}),
|
|
202
204
|
createVNode(unref(Button), {
|
|
203
205
|
type: "primary",
|
|
206
|
+
"html-type": "submit",
|
|
204
207
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("search"))
|
|
205
208
|
}, {
|
|
206
209
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
207
|
-
createTextVNode("查询")
|
|
210
|
+
createTextVNode(" 查询 ")
|
|
208
211
|
])),
|
|
209
212
|
_: 1
|
|
210
213
|
}),
|
|
@@ -231,8 +234,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
231
234
|
};
|
|
232
235
|
}
|
|
233
236
|
});
|
|
234
|
-
const
|
|
235
|
-
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
237
|
+
const SearchForm_vue_vue_type_style_index_0_scoped_0ed9c0b6_lang = "";
|
|
238
|
+
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0ed9c0b6"]]);
|
|
236
239
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
237
240
|
__name: "Control",
|
|
238
241
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -512,9 +515,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
512
515
|
search();
|
|
513
516
|
}
|
|
514
517
|
};
|
|
515
|
-
const onPaginationChange = () => {
|
|
516
|
-
nextTick(() => search());
|
|
517
|
-
};
|
|
518
518
|
const mergeTableProps = computed(() => {
|
|
519
519
|
return {
|
|
520
520
|
...injectAttrs,
|
|
@@ -531,13 +531,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
531
531
|
showSizeChanger: true,
|
|
532
532
|
pageSizeOptions: ["10", "20", "30", "40", "50", "100"],
|
|
533
533
|
showQuickJumper: true,
|
|
534
|
-
...pagination == null ? void 0 : pagination.value
|
|
535
|
-
"onUpdate:current": onPaginationChange,
|
|
536
|
-
"onUpdate:pageSize": onPaginationChange
|
|
534
|
+
...pagination == null ? void 0 : pagination.value
|
|
537
535
|
},
|
|
538
536
|
onChange: table ? (...args) => {
|
|
539
537
|
var _a2;
|
|
540
538
|
setPagination(args[0]);
|
|
539
|
+
search();
|
|
541
540
|
(_a2 = attrs.onChange) == null ? void 0 : _a2.call(attrs, ...args);
|
|
542
541
|
} : attrs.onChange
|
|
543
542
|
};
|
|
@@ -634,8 +633,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
634
633
|
};
|
|
635
634
|
}
|
|
636
635
|
});
|
|
637
|
-
const
|
|
638
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
636
|
+
const Table_vue_vue_type_style_index_0_scoped_1adefaaa_lang = "";
|
|
637
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1adefaaa"]]);
|
|
639
638
|
const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
|
|
640
639
|
const useTable = ({
|
|
641
640
|
columns: initColumns = [],
|