@qin-ui/antd-vue-pro 1.1.11 → 1.1.13

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/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-2a04ad4a.js";
3
- import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-2a04ad4a.js";
2
+ import { _ as _sfc_main } from "./form/index-c1a5e7f6.js";
3
+ import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-c1a5e7f6.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { useTable } from "./table/index.js";
6
6
  import _sfc_main$1 from "./component-provider/index.js";
package/es/style.css CHANGED
@@ -1,7 +1,7 @@
1
1
  .ant-form-item:has(> [hide-feedback='true']) {
2
2
  margin-bottom: 0;
3
3
  }
4
- .field-component[data-v-9a3bf1a0]:not(.ant-switch) {
4
+ .field-component[data-v-f87938bb]:not(.ant-switch) {
5
5
  width: 100%;
6
6
  min-width: 120px;
7
7
  }
@@ -22,10 +22,10 @@
22
22
  .search .expand-transition[data-v-917bc550] {
23
23
  transition: all 0.25s;
24
24
  }
25
- .control-icon[data-v-2776fca6] {
25
+ .control-icon[data-v-012257d9] {
26
26
  cursor: pointer;
27
27
  }
28
- .control-icon[data-v-2776fca6] :hover {
28
+ .control-icon[data-v-012257d9] :hover {
29
29
  color: #1677ff;
30
30
  }
31
31
  .search-container[data-v-c00ace37] {
@@ -44,11 +44,11 @@
44
44
  padding: 24px 24px 16px;
45
45
  background-color: #fff;
46
46
  }
47
- .pro-table[data-v-7e684411] {
47
+ .pro-table[data-v-4b9e440a] {
48
48
  display: flex;
49
49
  flex-direction: column;
50
50
  min-width: 800px;
51
51
  }
52
- .pro-table[data-v-7e684411] .ant-pagination .ant-pagination-total-text {
52
+ .pro-table[data-v-4b9e440a] .ant-pagination .ant-pagination-total-text {
53
53
  flex: 1;
54
54
  }
package/es/table/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { Button, Space, 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-2a04ad4a.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-c1a5e7f6.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) {
@@ -176,18 +176,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
176
176
  createVNode(unref(Button), {
177
177
  onClick: _cache[0] || (_cache[0] = ($event) => emit("reset"))
178
178
  }, {
179
- default: withCtx(() => [
179
+ default: withCtx(() => _cache[2] || (_cache[2] = [
180
180
  createTextVNode("重置")
181
- ]),
181
+ ])),
182
182
  _: 1
183
183
  }),
184
184
  createVNode(unref(Button), {
185
185
  type: "primary",
186
186
  onClick: _cache[1] || (_cache[1] = ($event) => emit("search"))
187
187
  }, {
188
- default: withCtx(() => [
188
+ default: withCtx(() => _cache[3] || (_cache[3] = [
189
189
  createTextVNode("查询")
190
- ]),
190
+ ])),
191
191
  _: 1
192
192
  }),
193
193
  showExpandToggle.value ? (openBlock(), createBlock(unref(Button), {
@@ -214,11 +214,12 @@ const SearchForm_vue_vue_type_style_index_0_scoped_917bc550_lang = "";
214
214
  const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-917bc550"]]);
215
215
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
216
216
  __name: "Control",
217
- props: mergeModels({
217
+ props: /* @__PURE__ */ mergeModels({
218
218
  columns: {},
219
219
  table: { default: void 0 }
220
220
  }, {
221
- "size": { default: "large" }
221
+ "size": { default: "large" },
222
+ "sizeModifiers": {}
222
223
  }),
223
224
  emits: ["update:size"],
224
225
  setup(__props) {
@@ -246,8 +247,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
246
247
  const checkColumnsVisible = ref(false);
247
248
  const checkedColumns = computed({
248
249
  get() {
249
- var _a;
250
- return ((_a = props.table) == null ? void 0 : _a.showColumnKeys.value) || [];
250
+ var _a, _b;
251
+ return ((_b = (_a = props.table) == null ? void 0 : _a.showColumnKeys) == null ? void 0 : _b.value) || [];
251
252
  },
252
253
  set(val) {
253
254
  var _a;
@@ -317,9 +318,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
317
318
  indeterminate: indeterminate.value,
318
319
  onChange: onCheckAllChange
319
320
  }, {
320
- default: withCtx(() => [
321
+ default: withCtx(() => _cache[2] || (_cache[2] = [
321
322
  createTextVNode(" 全选 ")
322
- ]),
323
+ ])),
323
324
  _: 1
324
325
  }, 8, ["checked", "indeterminate"])
325
326
  ])
@@ -367,8 +368,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
367
368
  };
368
369
  }
369
370
  });
370
- const Control_vue_vue_type_style_index_0_scoped_2776fca6_lang = "";
371
- const Control = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2776fca6"]]);
371
+ const Control_vue_vue_type_style_index_0_scoped_012257d9_lang = "";
372
+ const Control = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-012257d9"]]);
372
373
  const DefaultSearchContainer_vue_vue_type_style_index_0_scoped_c00ace37_lang = "";
373
374
  const _sfc_main$3 = {};
374
375
  const _hoisted_1$3 = { class: "search-container" };
@@ -460,9 +461,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
460
461
  search();
461
462
  });
462
463
  };
463
- const customSlotNames = ["search", "buttons", "table"];
464
464
  const slots = useSlots();
465
- const tableSlots = omit(slots, customSlotNames);
465
+ const tableSlots = omit(slots, ["search", "buttons", "table"]);
466
466
  const form = {
467
467
  formData: ((_a = props.table) == null ? void 0 : _a.searchParam) || {},
468
468
  fields: ((_b = props.table) == null ? void 0 : _b.searchFields) || [],
@@ -503,7 +503,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
503
503
  pagination: attrs.pagination ?? {
504
504
  showTotal: (total) => `共 ${total} 条`,
505
505
  showSizeChanger: true,
506
- pageSizeOptions: ["10", "20", "30", "40", "50", "100", "400"],
506
+ pageSizeOptions: ["10", "20", "30", "40", "50", "100"],
507
507
  showQuickJumper: true,
508
508
  ...pagination == null ? void 0 : pagination.value,
509
509
  "onUpdate:current": onPaginationChange,
@@ -604,8 +604,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
604
604
  };
605
605
  }
606
606
  });
607
- const Table_vue_vue_type_style_index_0_scoped_7e684411_lang = "";
608
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7e684411"]]);
607
+ const Table_vue_vue_type_style_index_0_scoped_4b9e440a_lang = "";
608
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4b9e440a"]]);
609
609
  const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
610
610
  const useTable = ({
611
611
  columns: initColumns = [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",
@@ -14,6 +14,9 @@
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/dufan3715/pro-components.git"
16
16
  },
17
+ "scripts": {
18
+ "build": "vue-tsc && vite build"
19
+ },
17
20
  "keywords": [
18
21
  "vue",
19
22
  "ant-design-vue",
@@ -35,8 +38,5 @@
35
38
  },
36
39
  "dependencies": {
37
40
  "@ant-design/icons-vue": "^7.0.1"
38
- },
39
- "scripts": {
40
- "build": "vue-tsc && vite build"
41
41
  }
42
- }
42
+ }
package/LICENSE DELETED
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023-present pro-components
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.