yc-pro-components 0.0.48 → 0.0.50

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 (45) hide show
  1. package/es/components/yc-config-provider/src/type.d.ts +2 -0
  2. package/es/components/yc-config-provider/src/type.mjs +2 -1
  3. package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +1 -1
  4. package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +34 -14
  5. package/es/components/yc-plus-page/src/index.vue.d.ts +60 -172
  6. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  7. package/es/components/yc-plus-page/src/index.vue2.mjs +21 -3
  8. package/es/components/yc-plus-page/src/use-local-header-filter.mjs +7 -1
  9. package/es/index.css +10 -10
  10. package/index.css +19 -13
  11. package/index.js +64 -19
  12. package/index.min.css +2 -2
  13. package/index.min.js +11 -11
  14. package/index.min.mjs +11 -11
  15. package/index.mjs +64 -19
  16. package/lib/components/yc-config-provider/src/type.d.ts +2 -0
  17. package/lib/components/yc-config-provider/src/type.js +2 -1
  18. package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +1 -1
  19. package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +32 -12
  20. package/lib/components/yc-plus-page/src/index.vue.d.ts +60 -172
  21. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  22. package/lib/components/yc-plus-page/src/index.vue2.js +20 -2
  23. package/lib/components/yc-plus-page/src/use-local-header-filter.js +7 -1
  24. package/lib/index.css +12 -12
  25. package/locale/en.js +1 -1
  26. package/locale/en.min.js +1 -1
  27. package/locale/en.min.mjs +1 -1
  28. package/locale/en.mjs +1 -1
  29. package/locale/ja.js +1 -1
  30. package/locale/ja.min.js +1 -1
  31. package/locale/ja.min.mjs +1 -1
  32. package/locale/ja.mjs +1 -1
  33. package/locale/ko.js +1 -1
  34. package/locale/ko.min.js +1 -1
  35. package/locale/ko.min.mjs +1 -1
  36. package/locale/ko.mjs +1 -1
  37. package/locale/zh-cn.js +1 -1
  38. package/locale/zh-cn.min.js +1 -1
  39. package/locale/zh-cn.min.mjs +1 -1
  40. package/locale/zh-cn.mjs +1 -1
  41. package/locale/zh-tw.js +1 -1
  42. package/locale/zh-tw.min.js +1 -1
  43. package/locale/zh-tw.min.mjs +1 -1
  44. package/locale/zh-tw.mjs +1 -1
  45. package/package.json +1 -1
@@ -60,6 +60,8 @@ export interface YcGlobalConfig {
60
60
  showSearch?: boolean;
61
61
  /** 字段管理图标 URL */
62
62
  fieldSettingIcon?: string;
63
+ /** 工具栏「字段管理」/列设置旁文案,默认「字段管理」 */
64
+ columnSettingsText?: string;
63
65
  };
64
66
  /** YcTabsWithFilter 默认配置 */
65
67
  tabsWithFilter?: {
@@ -12,7 +12,8 @@ const DEFAULT_YC_CONFIG = {
12
12
  t: (key) => key,
13
13
  components: {
14
14
  plusPage: {
15
- showSearch: true
15
+ showSearch: true,
16
+ columnSettingsText: "\u5B57\u6BB5\u7BA1\u7406"
16
17
  },
17
18
  tabsWithFilter: {
18
19
  filterText: "\u7B5B\u9009"
@@ -1,6 +1,6 @@
1
1
  import _sfc_main from './header-filter-cell.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e0442d8a"], ["__file", "header-filter-cell.vue"]]);
4
+ var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3330af37"], ["__file", "header-filter-cell.vue"]]);
5
5
 
6
6
  export { YcTableHeaderFilterCellComponent as default };
@@ -1,6 +1,6 @@
1
- import { defineComponent, computed, reactive, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createCommentVNode, createElementVNode, normalizeClass, createBlock, resolveDynamicComponent, Fragment, unref, withCtx, toDisplayString, createTextVNode, mergeProps, createVNode, renderList, normalizeStyle, h } from 'vue';
1
+ import { defineComponent, computed, reactive, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createCommentVNode, createElementVNode, normalizeClass, createBlock, resolveDynamicComponent, Fragment, unref, withCtx, toDisplayString, createTextVNode, mergeProps, createVNode, normalizeStyle, renderList, h } from 'vue';
2
2
  import { ElTooltip, ElIcon, ElPopover, ElButton, ElTimePicker, ElTimeSelect, ElDatePicker, ElInput } from 'element-plus';
3
- import { QuestionFilled } from '@element-plus/icons-vue';
3
+ import { QuestionFilled, CaretTop, CaretBottom } from '@element-plus/icons-vue';
4
4
  import { NO_VALUE_OPERATORS } from './constants.mjs';
5
5
  import { getTooltip } from '../../utils/index.mjs';
6
6
  import YcSvgIcon from '../../yc-svg-icon/src/index.vue.mjs';
@@ -50,7 +50,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  const emit = __emit;
51
51
  const { getCdnUrl } = useYcCdnUrl();
52
52
  const filterIconUrl = computed(() => getCdnUrl("images", "table_filter_icon.svg"));
53
- const sortIconUrl = computed(() => getCdnUrl("images", "table_sort_icon.svg"));
54
53
  const state = reactive({
55
54
  selectedOp: "=",
56
55
  inputVal: ""
@@ -194,6 +193,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
194
193
  modelValue: state.inputVal,
195
194
  "onUpdate:modelValue": (v) => state.inputVal = v,
196
195
  placeholder: "",
196
+ maxlength: 50,
197
197
  style: "margin-top: 4px; width: 100%"
198
198
  });
199
199
  };
@@ -221,7 +221,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
221
221
  createElementVNode(
222
222
  "span",
223
223
  {
224
- class: normalizeClass(["yc-header-filter-cell__label", { "yc-header-filter-cell__label--ellipsis": shouldShowEllipsis.value }]),
224
+ class: normalizeClass(["yc-header-filter-cell__label", {
225
+ "yc-header-filter-cell__label--ellipsis": shouldShowEllipsis.value,
226
+ "yc-header-filter-cell__label--active": isAscActive.value || isDescActive.value || isActive.value
227
+ }]),
225
228
  style: {
226
229
  userSelect: "none",
227
230
  cursor: "pointer"
@@ -320,19 +323,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
320
323
  class: "yc-header-filter-cell__sort",
321
324
  style: {
322
325
  display: "inline-flex",
326
+ flexDirection: "column",
323
327
  alignItems: "center",
324
- cursor: "pointer"
328
+ cursor: "pointer",
329
+ lineHeight: 1
325
330
  },
326
331
  onClick: withModifiers(cycleSort, ["stop"])
327
332
  }, [
328
- createVNode(unref(YcSvgIcon), {
329
- src: sortIconUrl.value,
330
- size: 14,
331
- class: normalizeClass({
332
- "yc-header-filter-cell__sort-icon--asc": isAscActive.value,
333
- "yc-header-filter-cell__sort-icon--desc": isDescActive.value
334
- })
335
- }, null, 8, ["src", "class"])
333
+ createCommentVNode(" \u5347\u5E8F\u7BAD\u5934\uFF1A\u6FC0\u6D3B\u65F6\u9AD8\u4EAE "),
334
+ createVNode(unref(ElIcon), {
335
+ size: 10,
336
+ style: normalizeStyle({ color: isAscActive.value ? "var(--el-color-primary)" : "var(--el-text-color-placeholder)", marginBottom: "-4px" })
337
+ }, {
338
+ default: withCtx(() => [
339
+ createVNode(unref(CaretTop))
340
+ ]),
341
+ _: 1
342
+ /* STABLE */
343
+ }, 8, ["style"]),
344
+ createCommentVNode(" \u964D\u5E8F\u7BAD\u5934\uFF1A\u6FC0\u6D3B\u65F6\u9AD8\u4EAE "),
345
+ createVNode(unref(ElIcon), {
346
+ size: 10,
347
+ style: normalizeStyle({ color: isDescActive.value ? "var(--el-color-primary)" : "var(--el-text-color-placeholder)" })
348
+ }, {
349
+ default: withCtx(() => [
350
+ createVNode(unref(CaretBottom))
351
+ ]),
352
+ _: 1
353
+ /* STABLE */
354
+ }, 8, ["style"])
336
355
  ]),
337
356
  createCommentVNode(" \u7B5B\u9009\u56FE\u6807\u548C\u5F39\u7A97 "),
338
357
  !_ctx.disableFilter ? (openBlock(), createBlock(unref(ElPopover), {
@@ -350,8 +369,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
350
369
  createVNode(unref(YcSvgIcon), {
351
370
  src: filterIconUrl.value,
352
371
  size: 14,
372
+ color: isActive.value ? "var(--el-color-primary)" : "currentColor",
353
373
  class: normalizeClass({ "yc-header-filter-cell__filter-icon--active": isActive.value })
354
- }, null, 8, ["src", "class"])
374
+ }, null, 8, ["src", "color", "class"])
355
375
  ])
356
376
  ]),
357
377
  default: withCtx(() => [