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.
- package/es/components/yc-config-provider/src/type.d.ts +2 -0
- package/es/components/yc-config-provider/src/type.mjs +2 -1
- package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +34 -14
- package/es/components/yc-plus-page/src/index.vue.d.ts +60 -172
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +21 -3
- package/es/components/yc-plus-page/src/use-local-header-filter.mjs +7 -1
- package/es/index.css +10 -10
- package/index.css +19 -13
- package/index.js +64 -19
- package/index.min.css +2 -2
- package/index.min.js +11 -11
- package/index.min.mjs +11 -11
- package/index.mjs +64 -19
- package/lib/components/yc-config-provider/src/type.d.ts +2 -0
- package/lib/components/yc-config-provider/src/type.js +2 -1
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +1 -1
- package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +32 -12
- package/lib/components/yc-plus-page/src/index.vue.d.ts +60 -172
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +20 -2
- package/lib/components/yc-plus-page/src/use-local-header-filter.js +7 -1
- package/lib/index.css +12 -12
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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,
|
|
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", {
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
size:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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(() => [
|