@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.24
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/advance-select/advance-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -161
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +214 -160
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
package/lib/menu/menu.js
CHANGED
|
@@ -7,58 +7,75 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var menuItem = require('./menu-item.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
emits: ["select"],
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: 'menu',
|
|
12
|
+
props: {
|
|
13
|
+
currentMenuID: String,
|
|
14
|
+
menus: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => [],
|
|
17
|
+
},
|
|
18
|
+
collapsed: { type: Boolean, default: false },
|
|
19
|
+
},
|
|
20
|
+
emits: ['select'],
|
|
23
21
|
setup(__props, { emit }) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
22
|
+
|
|
23
|
+
const props = __props;
|
|
24
|
+
|
|
25
|
+
defineOptions({
|
|
26
|
+
name: 'BwaMenu',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
const ns = webBaseClientVue.useNamespace('menu');
|
|
34
|
+
|
|
35
|
+
const getMenuById = (id) => {
|
|
36
|
+
const menus = props.menus || [];
|
|
37
|
+
|
|
38
|
+
let list = [...menus];
|
|
39
|
+
for (let i = 0; i < list.length; i++) {
|
|
40
|
+
const item = list[i];
|
|
41
|
+
|
|
42
|
+
if (item.id === id) {
|
|
43
|
+
return item;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
list = list.concat(item.children || []);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const handleSelect = (id) => {
|
|
53
|
+
emit('select', getMenuById(id));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
const _component_ElMenu = vue.resolveComponent("ElMenu");
|
|
58
|
+
|
|
59
|
+
return (vue.openBlock(), vue.createBlock(_component_ElMenu, {
|
|
60
|
+
"default-active": __props.currentMenuID,
|
|
61
|
+
class: vue.normalizeClass([vue.unref(ns).b(), __props.collapsed ? vue.unref(ns).m('collapsed') : '']),
|
|
62
|
+
collapse: __props.collapsed,
|
|
63
|
+
onSelect: handleSelect
|
|
64
|
+
}, {
|
|
65
|
+
default: vue.withCtx(() => [
|
|
66
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (item) => {
|
|
67
|
+
return (vue.openBlock(), vue.createBlock(menuItem["default"], {
|
|
68
|
+
key: item.id,
|
|
69
|
+
item: item
|
|
70
|
+
}, null, 8 /* PROPS */, ["item"]))
|
|
71
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
72
|
+
]),
|
|
73
|
+
_: 1 /* STABLE */
|
|
74
|
+
}, 8 /* PROPS */, ["default-active", "class", "collapse"]))
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
};
|
|
79
|
+
var Menu = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"menu.vue"]]);
|
|
63
80
|
|
|
64
81
|
exports["default"] = Menu;
|
package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function styleInject(css, ref) {
|
|
6
|
+
if ( ref === void 0 ) ref = {};
|
|
7
|
+
var insertAt = ref.insertAt;
|
|
8
|
+
|
|
9
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
10
|
+
|
|
11
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
12
|
+
var style = document.createElement('style');
|
|
13
|
+
style.type = 'text/css';
|
|
14
|
+
|
|
15
|
+
if (insertAt === 'top') {
|
|
16
|
+
if (head.firstChild) {
|
|
17
|
+
head.insertBefore(style, head.firstChild);
|
|
18
|
+
} else {
|
|
19
|
+
head.appendChild(style);
|
|
20
|
+
}
|
|
21
|
+
} else {
|
|
22
|
+
head.appendChild(style);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (style.styleSheet) {
|
|
26
|
+
style.styleSheet.cssText = css;
|
|
27
|
+
} else {
|
|
28
|
+
style.appendChild(document.createTextNode(css));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports["default"] = styleInject;
|
package/lib/panel/panel.js
CHANGED
|
@@ -6,54 +6,67 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
},
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: 'panel',
|
|
11
|
+
props: {
|
|
12
|
+
name: {
|
|
13
|
+
type: String,
|
|
14
|
+
},
|
|
15
|
+
label: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: '',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
22
20
|
setup(__props) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
|
|
22
|
+
defineOptions({
|
|
23
|
+
name: 'BwaPanel',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const ns = webBaseClientVue.useNamespace('panel');
|
|
29
|
+
|
|
30
|
+
const slots = vue.useSlots();
|
|
31
|
+
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
34
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
35
|
+
}, [
|
|
36
|
+
(vue.unref(slots).header)
|
|
37
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
31
38
|
key: 0,
|
|
32
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
39
|
+
class: vue.normalizeClass(vue.unref(ns).e('header'))
|
|
33
40
|
}, [
|
|
34
41
|
vue.renderSlot(_ctx.$slots, "header")
|
|
35
|
-
], 2
|
|
36
|
-
|
|
42
|
+
], 2 /* CLASS */))
|
|
43
|
+
: vue.createCommentVNode("v-if", true),
|
|
44
|
+
(vue.unref(slots).tools)
|
|
45
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
37
46
|
key: 1,
|
|
38
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
47
|
+
class: vue.normalizeClass(vue.unref(ns).e('tools'))
|
|
39
48
|
}, [
|
|
40
49
|
vue.renderSlot(_ctx.$slots, "tools")
|
|
41
|
-
], 2
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
], 2 /* CLASS */))
|
|
51
|
+
: vue.createCommentVNode("v-if", true),
|
|
52
|
+
vue.createElementVNode("div", {
|
|
53
|
+
class: vue.normalizeClass(vue.unref(ns).e('body'))
|
|
54
|
+
}, [
|
|
55
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
56
|
+
], 2 /* CLASS */),
|
|
57
|
+
(vue.unref(slots).footer)
|
|
58
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
48
59
|
key: 2,
|
|
49
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
60
|
+
class: vue.normalizeClass(vue.unref(ns).e('footer'))
|
|
50
61
|
}, [
|
|
51
62
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
52
|
-
], 2
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
63
|
+
], 2 /* CLASS */))
|
|
64
|
+
: vue.createCommentVNode("v-if", true)
|
|
65
|
+
], 2 /* CLASS */))
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
};
|
|
70
|
+
var Panel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"panel.vue"]]);
|
|
58
71
|
|
|
59
72
|
exports["default"] = Panel;
|
|
@@ -7,69 +7,80 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var index = require('../../hooks/use-data/index.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
default: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["update:modelValue"],
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: 'pct-Input-condition',
|
|
12
|
+
props: {
|
|
13
|
+
...index.dataProps,
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: null,
|
|
16
|
+
},
|
|
17
|
+
placeholder: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '请输入',
|
|
20
|
+
},
|
|
21
|
+
prefixIcon: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: 'Search',
|
|
24
|
+
},
|
|
25
|
+
showIcon: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false,
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ['update:modelValue'],
|
|
35
31
|
setup(__props, { emit }) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
32
|
+
|
|
33
|
+
const props = __props;
|
|
34
|
+
|
|
35
|
+
const ns = webBaseClientVue.useNamespace('pct-input');
|
|
36
|
+
|
|
37
|
+
defineOptions({
|
|
38
|
+
name: 'BwaPctInputCondition',
|
|
39
|
+
__conditionTitle__: '输入框',
|
|
40
|
+
__conditionDefault__: () => [],
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
46
|
+
const column = vue.computed(() => filterPanelItem?.column ?? null);
|
|
47
|
+
|
|
48
|
+
const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
|
|
49
|
+
|
|
50
|
+
const attrs = vue.useAttrs();
|
|
51
|
+
const showTitle = vue.computed(() => attrs.showTitle);
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
const modelValue = vue.computed({
|
|
55
|
+
get: () => props.modelValue,
|
|
56
|
+
set: (v) => emit('update:modelValue', v),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
61
|
+
|
|
62
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
63
|
+
class: vue.normalizeClass(vue.unref(ns).e('inputCon'))
|
|
64
|
+
}, [
|
|
65
|
+
(vue.unref(showTitle))
|
|
66
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
57
67
|
key: 0,
|
|
58
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
59
|
-
}, vue.toDisplayString(vue.unref(column).title), 3
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
class: vue.normalizeClass(vue.unref(ns).e('title'))
|
|
69
|
+
}, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
|
|
70
|
+
: vue.createCommentVNode("v-if", true),
|
|
71
|
+
vue.createVNode(_component_el_input, {
|
|
72
|
+
"prefix-icon": __props.showIcon ? __props.prefixIcon : '',
|
|
73
|
+
clearable: "",
|
|
74
|
+
class: vue.normalizeClass(vue.unref(ns).e('search')),
|
|
75
|
+
placeholder: vue.unref(placeholderStr),
|
|
76
|
+
modelValue: vue.unref(modelValue),
|
|
77
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(modelValue) ? (modelValue).value = $event : null))
|
|
78
|
+
}, null, 8 /* PROPS */, ["prefix-icon", "class", "placeholder", "modelValue"])
|
|
79
|
+
], 2 /* CLASS */))
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
};
|
|
84
|
+
var PctInputCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-Input-condition.vue"]]);
|
|
74
85
|
|
|
75
86
|
exports["default"] = PctInputCondition;
|
|
@@ -6,73 +6,82 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
default: false
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:modelValue"],
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: 'pct-date-range-condition',
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: null,
|
|
14
|
+
},
|
|
15
|
+
valueFormat: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'YYYY-MM-DD',
|
|
18
|
+
},
|
|
19
|
+
showTitle: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ['update:modelValue'],
|
|
29
25
|
setup(__props, { emit }) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
|
|
27
|
+
const props = __props;
|
|
28
|
+
|
|
29
|
+
const ns = webBaseClientVue.useNamespace('pct-daterange');
|
|
30
|
+
defineOptions({
|
|
31
|
+
name: 'BwaPctDateRangeCondition',
|
|
32
|
+
__conditionTitle__: '日期选择',
|
|
33
|
+
__conditionDefault__: () => ({ start: '', end: '' }),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey);
|
|
41
|
+
const column = vue.computed(() => filterPanelItem?.column ?? null);
|
|
42
|
+
|
|
43
|
+
const value = vue.computed({
|
|
44
|
+
get: () => {
|
|
45
|
+
if (props.modelValue && props.modelValue.start && props.modelValue.end) {
|
|
46
|
+
return [props.modelValue.start, props.modelValue.end];
|
|
47
|
+
}
|
|
48
|
+
return [];
|
|
49
|
+
},
|
|
50
|
+
set: (v) => {
|
|
51
|
+
if (v && v.length === 2) {
|
|
52
|
+
emit('update:modelValue', { start: v[0], end: v[1] });
|
|
53
|
+
} else {
|
|
54
|
+
emit('update:modelValue', { start: '', end: '' });
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
61
|
+
|
|
62
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
63
|
+
class: vue.normalizeClass(vue.unref(ns).e('cont'))
|
|
64
|
+
}, [
|
|
65
|
+
(vue.unref(column) && __props.showTitle)
|
|
66
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
59
67
|
key: 0,
|
|
60
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
61
|
-
}, vue.toDisplayString(vue.unref(column).title), 3
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
class: vue.normalizeClass(vue.unref(ns).e('label'))
|
|
69
|
+
}, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
|
|
70
|
+
: vue.createCommentVNode("v-if", true),
|
|
71
|
+
vue.createVNode(_component_el_date_picker, {
|
|
72
|
+
modelValue: vue.unref(value),
|
|
73
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(value) ? (value).value = $event : null)),
|
|
74
|
+
type: "daterange",
|
|
75
|
+
"range-separator": "至",
|
|
76
|
+
"start-placeholder": "开始日期",
|
|
77
|
+
"end-placeholder": "结束日期",
|
|
78
|
+
"value-format": __props.valueFormat
|
|
79
|
+
}, null, 8 /* PROPS */, ["modelValue", "value-format"])
|
|
80
|
+
], 2 /* CLASS */))
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
};
|
|
85
|
+
var PctDateRangeCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-date-range-condition.vue"]]);
|
|
77
86
|
|
|
78
87
|
exports["default"] = PctDateRangeCondition;
|