yc-pro-components 0.0.25 → 0.0.27

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 (64) hide show
  1. package/es/components/form-item/src/form-item.mjs +2 -1
  2. package/es/components/table/src/table-title-bar.vue2.mjs +1 -0
  3. package/es/components/yc-dialog/src/index.vue2.mjs +1 -1
  4. package/es/components/yc-drawer/src/index.vue.mjs +1 -1
  5. package/es/components/yc-drawer/src/index.vue2.mjs +1 -1
  6. package/es/components/yc-plus-page/src/index.vue.d.ts +53 -211
  7. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  8. package/es/components/yc-plus-page/src/index.vue2.mjs +4 -2
  9. package/es/components/yc-plus-tree/src/index.vue.d.ts +5 -0
  10. package/es/components/yc-plus-tree/src/index.vue.mjs +1 -1
  11. package/es/components/yc-plus-tree/src/index.vue2.mjs +14 -6
  12. package/es/index.css +3 -3
  13. package/index.css +54 -54
  14. package/index.js +26 -14
  15. package/index.min.css +3 -3
  16. package/index.min.js +7 -7
  17. package/index.min.mjs +7 -7
  18. package/index.mjs +26 -14
  19. package/lib/components/form-item/src/form-item.js +2 -1
  20. package/lib/components/table/src/table-title-bar.vue2.js +1 -0
  21. package/lib/components/yc-dialog/src/index.vue2.js +1 -1
  22. package/lib/components/yc-drawer/src/index.vue.js +1 -1
  23. package/lib/components/yc-drawer/src/index.vue2.js +1 -1
  24. package/lib/components/yc-plus-page/src/index.vue.d.ts +53 -211
  25. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  26. package/lib/components/yc-plus-page/src/index.vue2.js +4 -2
  27. package/lib/components/yc-plus-tree/src/index.vue.d.ts +5 -0
  28. package/lib/components/yc-plus-tree/src/index.vue.js +1 -1
  29. package/lib/components/yc-plus-tree/src/index.vue2.js +13 -5
  30. package/lib/index.css +3 -3
  31. package/locale/en.js +1 -1
  32. package/locale/en.min.js +1 -1
  33. package/locale/en.min.mjs +1 -1
  34. package/locale/en.mjs +1 -1
  35. package/locale/ja.js +1 -1
  36. package/locale/ja.min.js +1 -1
  37. package/locale/ja.min.mjs +1 -1
  38. package/locale/ja.mjs +1 -1
  39. package/locale/ko.js +1 -1
  40. package/locale/ko.min.js +1 -1
  41. package/locale/ko.min.mjs +1 -1
  42. package/locale/ko.mjs +1 -1
  43. package/locale/zh-cn.js +1 -1
  44. package/locale/zh-cn.min.js +1 -1
  45. package/locale/zh-cn.min.mjs +1 -1
  46. package/locale/zh-cn.mjs +1 -1
  47. package/locale/zh-tw.js +1 -1
  48. package/locale/zh-tw.min.js +1 -1
  49. package/locale/zh-tw.min.mjs +1 -1
  50. package/locale/zh-tw.mjs +1 -1
  51. package/package.json +1 -1
  52. package/theme-chalk/index.css +1 -1
  53. package/theme-chalk/plus-dialog.css +1 -1
  54. package/theme-chalk/plus-display-item.css +1 -1
  55. package/theme-chalk/plus-table.css +1 -1
  56. package/theme-chalk/plus-yc-dialog.css +1 -1
  57. package/theme-chalk/plus-yc-drawer.css +1 -1
  58. package/theme-chalk/plus-yc-plus-tree.css +1 -1
  59. package/theme-chalk/src/dialog.scss +45 -0
  60. package/theme-chalk/src/display-item.scss +1 -0
  61. package/theme-chalk/src/table.scss +10 -0
  62. package/theme-chalk/src/yc-dialog.scss +50 -0
  63. package/theme-chalk/src/yc-drawer.scss +1 -1
  64. package/theme-chalk/src/yc-plus-tree.scss +1 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.25 */
1
+ /*! yc-pro-components v0.0.27 */
2
2
  import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } from 'vue';
3
3
  import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop } from 'element-plus';
4
4
 
@@ -15825,7 +15825,8 @@ const FieldComponentMap = {
15825
15825
  },
15826
15826
  "input-number": {
15827
15827
  component: ElInputNumber,
15828
- props: { placeholder: "plus.field.pleaseEnter" }
15828
+ // align: 'left' 设置输入文本靠左对齐 (Element Plus 2.10.5+)
15829
+ props: { placeholder: "plus.field.pleaseEnter", align: "left" }
15829
15830
  },
15830
15831
  radio: {
15831
15832
  component: ElRadioGroup,
@@ -18506,6 +18507,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18506
18507
  key: 2,
18507
18508
  placement: "bottom",
18508
18509
  width: columnSettingPopoverWidth.value,
18510
+ offset: 8,
18509
18511
  trigger: "click",
18510
18512
  title: unref(t)("plus.table.columnSettings")
18511
18513
  }, {
@@ -31630,7 +31632,9 @@ var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main$e,
31630
31632
  const DEFAULT_PAGE_SIZE = 20;
31631
31633
  var _sfc_main$d = /* @__PURE__ */ defineComponent({
31632
31634
  ...{
31633
- name: "YcPlusPage"
31635
+ name: "YcPlusPage",
31636
+ inheritAttrs: false
31637
+ // 禁止自动继承属性到根元素,手动透传到 PlusPage
31634
31638
  },
31635
31639
  __name: "index",
31636
31640
  props: {
@@ -31977,7 +31981,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
31977
31981
  createVNode(unref(PlusPage), mergeProps({
31978
31982
  ref_key: "plusPageRef",
31979
31983
  ref: plusPageRef
31980
- }, props, {
31984
+ }, { ...props, ..._ctx.$attrs }, {
31981
31985
  columns: enhancedColumns.value,
31982
31986
  "is-card": _ctx.isCard,
31983
31987
  request: wrappedRequest.value,
@@ -32030,7 +32034,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
32030
32034
  }
32031
32035
  });
32032
32036
 
32033
- var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e1fa68a8"], ["__file", "index.vue"]]);
32037
+ var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-37211b74"], ["__file", "index.vue"]]);
32034
32038
 
32035
32039
  const YcPlusPage = YcPlusPageComponent;
32036
32040
  const YcTableHeaderFilterCell = YcTableHeaderFilterCellComponent;
@@ -57535,7 +57539,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
57535
57539
  searchLoadMore: { type: Function, default: void 0 },
57536
57540
  searchPageSize: { default: 20 },
57537
57541
  onSearchChange: { type: Function, default: void 0 },
57538
- padding: { default: 16 }
57542
+ padding: { default: 16 },
57543
+ searchInputClass: { default: void 0 }
57539
57544
  },
57540
57545
  emits: ["node-click", "action-click", "check", "add-node", "update-node", "update:expandedKeys", "node-expand", "node-collapse", "drag-start", "drag-end", "drag-update", "node-reorder"],
57541
57546
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -57558,6 +57563,13 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
57558
57563
  const treeHeight = ref(400);
57559
57564
  const { getCdnUrl } = useYcCdnUrl();
57560
57565
  const treeMoreIconUrl = getCdnUrl("images", "tree_more.svg");
57566
+ const searchInputClasses = computed(() => {
57567
+ const classes = ["search-input"];
57568
+ if (props.searchInputClass) {
57569
+ classes.push(props.searchInputClass);
57570
+ }
57571
+ return classes.join(" ");
57572
+ });
57561
57573
  const updateTreeHeight = () => {
57562
57574
  if (treeContainerRef.value) {
57563
57575
  const height = treeContainerRef.value.clientHeight;
@@ -58152,8 +58164,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
58152
58164
  placeholder: _ctx.placeholder,
58153
58165
  "prefix-icon": "Search",
58154
58166
  clearable: "",
58155
- class: "search-input"
58156
- }, null, 8, ["modelValue", "placeholder"])) : (openBlock(), createElementBlock(
58167
+ class: normalizeClass(searchInputClasses.value)
58168
+ }, null, 8, ["modelValue", "placeholder", "class"])) : (openBlock(), createElementBlock(
58157
58169
  Fragment,
58158
58170
  { key: 1 },
58159
58171
  [
@@ -58170,8 +58182,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
58170
58182
  placeholder: _ctx.placeholder,
58171
58183
  clearable: "",
58172
58184
  filterable: "",
58173
- class: "search-input"
58174
- }, null, 8, ["modelValue", "load-more", "page-size", "placeholder"])
58185
+ class: normalizeClass(searchInputClasses.value)
58186
+ }, null, 8, ["modelValue", "load-more", "page-size", "placeholder", "class"])
58175
58187
  ],
58176
58188
  2112
58177
58189
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -58374,7 +58386,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
58374
58386
  }
58375
58387
  });
58376
58388
 
58377
- var YcPlusTreeComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-55e0e5d7"], ["__file", "index.vue"]]);
58389
+ var YcPlusTreeComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-61e7209b"], ["__file", "index.vue"]]);
58378
58390
 
58379
58391
  const YcPlusTree = l(YcPlusTreeComponent);
58380
58392
  const RePlusTree = YcPlusTree;
@@ -58395,7 +58407,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
58395
58407
  width: {},
58396
58408
  size: {},
58397
58409
  maxHeight: { type: [String, Number, Boolean], default: "720px" },
58398
- showHeaderBorder: { type: Boolean, default: false }
58410
+ showHeaderBorder: { type: Boolean, default: true }
58399
58411
  },
58400
58412
  setup(__props) {
58401
58413
  const props = __props;
@@ -58509,7 +58521,7 @@ const closeAllDrawer = () => {
58509
58521
  drawerStore.value = [];
58510
58522
  };
58511
58523
 
58512
- const _withScopeId$1 = (n) => (pushScopeId("data-v-f8ad9f74"), n = n(), popScopeId(), n);
58524
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-e05479bb"), n = n(), popScopeId(), n);
58513
58525
  const _hoisted_1$4 = { class: "custom-drawer-header" };
58514
58526
  const _hoisted_2$4 = { class: "header-content" };
58515
58527
  const _hoisted_3$4 = ["id"];
@@ -58733,7 +58745,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
58733
58745
  }
58734
58746
  });
58735
58747
 
58736
- var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-f8ad9f74"], ["__file", "index.vue"]]);
58748
+ var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e05479bb"], ["__file", "index.vue"]]);
58737
58749
 
58738
58750
  const YcDrawer = YcDrawerComponent;
58739
58751
  const ReDrawer = YcDrawerComponent;
@@ -44,7 +44,8 @@ const FieldComponentMap = {
44
44
  },
45
45
  "input-number": {
46
46
  component: elementPlus.ElInputNumber,
47
- props: { placeholder: "plus.field.pleaseEnter" }
47
+ // align: 'left' 设置输入文本靠左对齐 (Element Plus 2.10.5+)
48
+ props: { placeholder: "plus.field.pleaseEnter", align: "left" }
48
49
  },
49
50
  radio: {
50
51
  component: elementPlus.ElRadioGroup,
@@ -299,6 +299,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
299
299
  key: 2,
300
300
  placement: "bottom",
301
301
  width: columnSettingPopoverWidth.value,
302
+ offset: 8,
302
303
  trigger: "click",
303
304
  title: vue.unref(t)("plus.table.columnSettings")
304
305
  }, {
@@ -15,7 +15,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
15
  width: {},
16
16
  size: {},
17
17
  maxHeight: { type: [String, Number, Boolean], default: "720px" },
18
- showHeaderBorder: { type: Boolean, default: false }
18
+ showHeaderBorder: { type: Boolean, default: true }
19
19
  },
20
20
  setup(__props) {
21
21
  const props = __props;
@@ -5,6 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var YcDrawerComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f8ad9f74"], ["__file", "index.vue"]]);
8
+ var YcDrawerComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-e05479bb"], ["__file", "index.vue"]]);
9
9
 
10
10
  exports.default = YcDrawerComponent;
@@ -7,7 +7,7 @@ var lodashEs = require('lodash-es');
7
7
  var ElementPlusIconsVue = require('@element-plus/icons-vue');
8
8
  var store = require('../store.js');
9
9
 
10
- const _withScopeId = (n) => (vue.pushScopeId("data-v-f8ad9f74"), n = n(), vue.popScopeId(), n);
10
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-e05479bb"), n = n(), vue.popScopeId(), n);
11
11
  const _hoisted_1 = { class: "custom-drawer-header" };
12
12
  const _hoisted_2 = { class: "header-content" };
13
13
  const _hoisted_3 = ["id"];