bkui-vue 0.0.1-beta.125 → 0.0.1-beta.126

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.
Files changed (36) hide show
  1. package/dist/index.cjs.js +22 -22
  2. package/dist/index.esm.js +4 -3
  3. package/dist/index.umd.js +25 -25
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/breadcrumb/breadcrumb.css +43 -0
  7. package/lib/breadcrumb/breadcrumb.variable.css +43 -0
  8. package/lib/card/card.css +43 -0
  9. package/lib/card/card.variable.css +43 -0
  10. package/lib/container/container.css +43 -0
  11. package/lib/container/container.variable.css +43 -0
  12. package/lib/input/input.css +43 -0
  13. package/lib/input/input.variable.css +43 -0
  14. package/lib/loading/loading.css +43 -0
  15. package/lib/loading/loading.variable.css +43 -0
  16. package/lib/menu/menu.css +43 -0
  17. package/lib/menu/menu.variable.css +43 -0
  18. package/lib/progress/progress.css +43 -0
  19. package/lib/progress/progress.variable.css +43 -0
  20. package/lib/styles/mixins/mixins.css +43 -0
  21. package/lib/styles/mixins/mixins.less +1 -0
  22. package/lib/styles/mixins/mixins.variable.css +43 -0
  23. package/lib/switcher/switcher.css +43 -0
  24. package/lib/switcher/switcher.variable.css +43 -0
  25. package/lib/table/index.d.ts +16 -5
  26. package/lib/table/index.js +1 -1
  27. package/lib/table/plugins/settings.css +1 -0
  28. package/lib/table/plugins/settings.less +1 -0
  29. package/lib/table/plugins/settings.variable.css +1 -0
  30. package/lib/table/props.d.ts +3 -1
  31. package/lib/table/table.css +1 -0
  32. package/lib/table/table.d.ts +7 -2
  33. package/lib/table/table.variable.css +1 -0
  34. package/lib/upload/upload.css +43 -0
  35. package/lib/upload/upload.variable.css +43 -0
  36. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -15402,7 +15402,7 @@ const tableProps = {
15402
15402
  pagination: PropTypes.oneOfType([PropTypes.bool.def(false), PropTypes.object.def({})]).def(false),
15403
15403
  remotePagination: PropTypes.bool.def(false),
15404
15404
  emptyText: PropTypes.string.def("\u6682\u65E0\u6570\u636E"),
15405
- settings: PropTypes.any,
15405
+ settings: PropTypes.oneOfType([PropTypes.any, PropTypes.bool]).def(false),
15406
15406
  rowClass: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]).def({}),
15407
15407
  rowStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]).def({}),
15408
15408
  cellStyle: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]).def({}),
@@ -16249,7 +16249,7 @@ function _isSlot$1(s2) {
16249
16249
  var Settings = defineComponent({
16250
16250
  name: "Settings",
16251
16251
  props: {
16252
- settings: PropTypes.any,
16252
+ settings: PropTypes.oneOfType([PropTypes.any, PropTypes.bool]).def(false),
16253
16253
  columns: PropTypes.array.def([]),
16254
16254
  rowHeight: PropTypes.number.def(40)
16255
16255
  },
@@ -16334,6 +16334,7 @@ var Settings = defineComponent({
16334
16334
  "class": getItemClass(item),
16335
16335
  "onClick": () => handleSizeItemClick(item)
16336
16336
  }, [item.label]));
16337
+ const renderFields = computed(() => settings.fields || props.columns || []);
16337
16338
  return () => createVNode(BkPopover2, mergeProps({
16338
16339
  "trigger": "manual",
16339
16340
  "isShow": isShow.value,
@@ -16379,7 +16380,7 @@ var Settings = defineComponent({
16379
16380
  "class": "setting-body-fields",
16380
16381
  "modelValue": checkedFields.value,
16381
16382
  "onUpdate:modelValue": ($event) => checkedFields.value = $event
16382
- }, _isSlot$1(_slot2 = (settings.fields || props.columns || []).map((item, index) => {
16383
+ }, _isSlot$1(_slot2 = renderFields.value.map((item, index) => {
16383
16384
  let _slot;
16384
16385
  return createVNode("div", {
16385
16386
  "class": "field-item"