@ctzy-web-client/plugin-component-vue 1.0.28 → 1.0.30
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-option.mjs +2 -3
- package/es/data-form/data-form.mjs +0 -1
- package/es/data-form/form-components/bwa-rich-text.mjs +0 -1
- package/es/data-table/data-table.mjs +4 -2
- package/es/datatable-settings/datatable-settings.mjs +2 -2
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +1 -1
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +0 -1
- package/es/pct-filter-panel/pct-filter-panel.mjs +0 -1
- package/es/utils.css +1 -0
- package/lib/advance-select/advance-option.js +2 -3
- package/lib/data-form/data-form.js +0 -1
- package/lib/data-form/form-components/bwa-rich-text.js +0 -1
- package/lib/data-table/data-table.js +4 -2
- package/lib/datatable-settings/datatable-settings.js +2 -2
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +1 -1
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +0 -1
- package/lib/pct-filter-panel/pct-filter-panel.js +0 -1
- package/lib/utils.css +1 -0
- package/package.json +1 -1
- package/src/advance-select/advance-option.vue +1 -1
- package/src/data-form/data-form.vue +1 -1
- package/src/data-form/form-components/bwa-rich-text.vue +1 -1
- package/src/data-table/data-table.vue +7 -2
- package/src/datatable-settings/datatable-settings.vue +4 -2
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +1 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +1 -1
- package/src/pct-filter-panel/pct-filter-panel.vue +1 -1
- package/es/plugins.css +0 -1
- package/lib/plugins.css +0 -1
- /package/es/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs} +0 -0
- /package/lib/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js} +0 -0
|
@@ -4,7 +4,7 @@ import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
|
|
|
4
4
|
import { useEvent } from './events-helpers.mjs';
|
|
5
5
|
import { useAdvanceOption } from './use-advance-option.mjs';
|
|
6
6
|
import { pinyin } from 'pinyin-pro';
|
|
7
|
-
import './advance-option.
|
|
7
|
+
import './advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs';
|
|
8
8
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
9
9
|
|
|
10
10
|
// Inject __name helper
|
|
@@ -39,7 +39,6 @@ const _sfc_main = {
|
|
|
39
39
|
const show = ref(true);
|
|
40
40
|
const clickFlag = ref(true);
|
|
41
41
|
const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
|
|
42
|
-
console.log(showLetterAvatarStatus.value, "\u4E0B\u4E00\u7EA7");
|
|
43
42
|
const contentText = ref();
|
|
44
43
|
expose({ currentLabel });
|
|
45
44
|
const filterOptionClick = () => {
|
|
@@ -160,6 +159,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
159
|
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
161
160
|
], 2);
|
|
162
161
|
}
|
|
163
|
-
var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
162
|
+
var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
|
|
164
163
|
|
|
165
164
|
export { BwaAdvanceOption as default };
|
|
@@ -193,7 +193,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
193
193
|
if (evt.clipboardData && evt.clipboardData.files && evt.clipboardData.files.length) {
|
|
194
194
|
evt.preventDefault();
|
|
195
195
|
[].forEach.call(evt.clipboardData.files, async (file) => {
|
|
196
|
-
console.log(file);
|
|
197
196
|
if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
|
|
198
197
|
const filePathResult = await updateImage(file);
|
|
199
198
|
if (filePathResult.code != 0) {
|
|
@@ -147,7 +147,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
147
147
|
})
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
console.log(userListResult);
|
|
151
150
|
} finally {
|
|
152
151
|
processing.value = false;
|
|
153
152
|
}
|
|
@@ -167,10 +166,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
167
166
|
dataTable.load();
|
|
168
167
|
};
|
|
169
168
|
useEventDispatcher(dataTable, "load-successfully", (res) => {
|
|
169
|
+
var _a2, _b;
|
|
170
170
|
if (!elTable.value) {
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
unref(elTable).store.updateSelectionByRowKey
|
|
173
|
+
if ((_b = (_a2 = unref(elTable)) == null ? void 0 : _a2.store) == null ? void 0 : _b.updateSelectionByRowKey) {
|
|
174
|
+
unref(elTable).store.updateSelectionByRowKey();
|
|
175
|
+
}
|
|
174
176
|
if (res.code != 0) {
|
|
175
177
|
ElMessage.error(res.msg);
|
|
176
178
|
}
|
|
@@ -106,7 +106,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
106
106
|
const resetColumns = () => {
|
|
107
107
|
const _dataTable = props.dataTable;
|
|
108
108
|
_dataTable.resetColumnSort();
|
|
109
|
-
|
|
109
|
+
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
110
|
+
emit("column-visible-change", tableColumns);
|
|
110
111
|
};
|
|
111
112
|
const allSearchedColumns = computed(() => {
|
|
112
113
|
const _search = unref(search);
|
|
@@ -130,7 +131,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
130
131
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
131
132
|
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
132
133
|
emit("column-visible-change", tableColumns);
|
|
133
|
-
emit("sort-change", sort, displayColumns);
|
|
134
134
|
};
|
|
135
135
|
const scope = getCurrentScope();
|
|
136
136
|
const handleInitCompleted = async () => {
|
|
@@ -132,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
132
132
|
var _a2, _b;
|
|
133
133
|
return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
|
|
134
134
|
});
|
|
135
|
-
console.log(showLetterAvatarStatus.value, "\u6253\u5370\u4F20\u503C");
|
|
136
135
|
const handleClose = (val) => {
|
|
137
136
|
const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
|
|
138
137
|
modelValue.value = currentModelValue.filter(
|
package/es/utils.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-circle[data-v-4c0fde1d]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
|
|
@@ -8,7 +8,7 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
8
8
|
var eventsHelpers = require('./events-helpers.js');
|
|
9
9
|
var useAdvanceOption = require('./use-advance-option.js');
|
|
10
10
|
var pinyinPro = require('pinyin-pro');
|
|
11
|
-
require('./advance-option.
|
|
11
|
+
require('./advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js');
|
|
12
12
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
13
13
|
|
|
14
14
|
// Inject __name helper
|
|
@@ -43,7 +43,6 @@ const _sfc_main = {
|
|
|
43
43
|
const show = vue.ref(true);
|
|
44
44
|
const clickFlag = vue.ref(true);
|
|
45
45
|
const showLetterAvatarStatus = vue.computed(() => props.showLetterAvatar);
|
|
46
|
-
console.log(showLetterAvatarStatus.value, "\u4E0B\u4E00\u7EA7");
|
|
47
46
|
const contentText = vue.ref();
|
|
48
47
|
expose({ currentLabel });
|
|
49
48
|
const filterOptionClick = () => {
|
|
@@ -164,6 +163,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
163
|
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
165
164
|
], 2);
|
|
166
165
|
}
|
|
167
|
-
var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
166
|
+
var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
|
|
168
167
|
|
|
169
168
|
exports["default"] = BwaAdvanceOption;
|
|
@@ -127,7 +127,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
127
127
|
ElementPlus.ElMessage.info("\u4FDD\u5B58\u6210\u529F!");
|
|
128
128
|
}).catch((e) => ElementPlus.ElMessage.error(e.message));
|
|
129
129
|
}).catch((result) => {
|
|
130
|
-
console.log(result);
|
|
131
130
|
});
|
|
132
131
|
};
|
|
133
132
|
vue.onMounted(() => {
|
|
@@ -201,7 +201,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
201
201
|
if (evt.clipboardData && evt.clipboardData.files && evt.clipboardData.files.length) {
|
|
202
202
|
evt.preventDefault();
|
|
203
203
|
[].forEach.call(evt.clipboardData.files, async (file) => {
|
|
204
|
-
console.log(file);
|
|
205
204
|
if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
|
|
206
205
|
const filePathResult = await updateImage(file);
|
|
207
206
|
if (filePathResult.code != 0) {
|
|
@@ -151,7 +151,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
151
151
|
})
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
console.log(userListResult);
|
|
155
154
|
} finally {
|
|
156
155
|
processing.value = false;
|
|
157
156
|
}
|
|
@@ -171,10 +170,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
171
170
|
dataTable.load();
|
|
172
171
|
};
|
|
173
172
|
webBaseClientVue.useEventDispatcher(dataTable, "load-successfully", (res) => {
|
|
173
|
+
var _a2, _b;
|
|
174
174
|
if (!elTable.value) {
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
vue.unref(elTable).store.updateSelectionByRowKey
|
|
177
|
+
if ((_b = (_a2 = vue.unref(elTable)) == null ? void 0 : _a2.store) == null ? void 0 : _b.updateSelectionByRowKey) {
|
|
178
|
+
vue.unref(elTable).store.updateSelectionByRowKey();
|
|
179
|
+
}
|
|
178
180
|
if (res.code != 0) {
|
|
179
181
|
ElementPlus.ElMessage.error(res.msg);
|
|
180
182
|
}
|
|
@@ -110,7 +110,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
110
110
|
const resetColumns = () => {
|
|
111
111
|
const _dataTable = props.dataTable;
|
|
112
112
|
_dataTable.resetColumnSort();
|
|
113
|
-
|
|
113
|
+
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
114
|
+
emit("column-visible-change", tableColumns);
|
|
114
115
|
};
|
|
115
116
|
const allSearchedColumns = vue.computed(() => {
|
|
116
117
|
const _search = vue.unref(search);
|
|
@@ -134,7 +135,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
134
135
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
135
136
|
const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
|
|
136
137
|
emit("column-visible-change", tableColumns);
|
|
137
|
-
emit("sort-change", sort, displayColumns);
|
|
138
138
|
};
|
|
139
139
|
const scope = vue.getCurrentScope();
|
|
140
140
|
const handleInitCompleted = async () => {
|
|
@@ -136,7 +136,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
136
136
|
var _a2, _b;
|
|
137
137
|
return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
|
|
138
138
|
});
|
|
139
|
-
console.log(showLetterAvatarStatus.value, "\u6253\u5370\u4F20\u503C");
|
|
140
139
|
const handleClose = (val) => {
|
|
141
140
|
const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
|
|
142
141
|
modelValue.value = currentModelValue.filter(
|
package/lib/utils.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-circle[data-v-4c0fde1d]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
|
package/package.json
CHANGED
|
@@ -65,7 +65,7 @@ export default {
|
|
|
65
65
|
const clickFlag = ref(true)
|
|
66
66
|
const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
|
|
67
67
|
|
|
68
|
-
console.log(showLetterAvatarStatus.value,'下一级')
|
|
68
|
+
// console.log(showLetterAvatarStatus.value,'下一级')
|
|
69
69
|
const contentText = ref()
|
|
70
70
|
|
|
71
71
|
expose({ currentLabel });
|
|
@@ -277,7 +277,7 @@ onMounted(() => {
|
|
|
277
277
|
) {
|
|
278
278
|
evt.preventDefault();
|
|
279
279
|
[].forEach.call(evt.clipboardData.files, async (file) => {
|
|
280
|
-
console.log(file)
|
|
280
|
+
// console.log(file)
|
|
281
281
|
if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
|
|
282
282
|
const filePathResult = await updateImage(file);
|
|
283
283
|
|
|
@@ -297,7 +297,6 @@ useEventDispatcher(dataTable, 'load-successfully', async (res) => {
|
|
|
297
297
|
);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
console.log(userListResult);
|
|
301
300
|
} finally {
|
|
302
301
|
processing.value = false;
|
|
303
302
|
}
|
|
@@ -324,7 +323,13 @@ useEventDispatcher(dataTable, 'load-successfully', (res) => {
|
|
|
324
323
|
return;
|
|
325
324
|
}
|
|
326
325
|
|
|
327
|
-
unref(elTable)
|
|
326
|
+
if (unref(elTable)?.store?.updateSelectionByRowKey) {
|
|
327
|
+
unref(elTable).store.updateSelectionByRowKey()
|
|
328
|
+
}
|
|
329
|
+
// else {
|
|
330
|
+
// console.log('方法不存在,当前 store 结构:', unref(elTable)?.store)
|
|
331
|
+
// }
|
|
332
|
+
// unref(elTable).store.updateSelectionByRowKey();
|
|
328
333
|
|
|
329
334
|
if (res.code != 0) {
|
|
330
335
|
ElMessage.error(res.msg);
|
|
@@ -270,7 +270,9 @@ const resetColumns = () => {
|
|
|
270
270
|
const _dataTable = props.dataTable;
|
|
271
271
|
|
|
272
272
|
_dataTable.resetColumnSort();
|
|
273
|
-
|
|
273
|
+
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ]
|
|
274
|
+
emit('column-visible-change', tableColumns);
|
|
275
|
+
// emit('reset-columns');
|
|
274
276
|
};
|
|
275
277
|
|
|
276
278
|
const allSearchedColumns = computed(() => {
|
|
@@ -302,7 +304,7 @@ const handleSortChange = (sort) => {
|
|
|
302
304
|
props.dataTable.setDisplayColumns(displayColumns);
|
|
303
305
|
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ]
|
|
304
306
|
emit('column-visible-change', tableColumns);
|
|
305
|
-
emit('sort-change', sort, displayColumns);
|
|
307
|
+
// emit('sort-change', sort, displayColumns);
|
|
306
308
|
};
|
|
307
309
|
|
|
308
310
|
const scope = getCurrentScope();
|
|
@@ -222,7 +222,7 @@ const placeholderStr = computed(() => showTitle.value ? props.placeholder : colu
|
|
|
222
222
|
const labelPropStr = computed(() => column.value?.componentProps?.labelAttr || props.labelProp)
|
|
223
223
|
const valuePropStr = computed(() => column.value?.componentProps?.valueAttr || props.valueProp)
|
|
224
224
|
const showLetterAvatarStatus = computed(() => column.value?.componentProps?.showLetterAvatar || props.showLetterAvatar)
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
const handleClose = (val)=>{
|
|
227
227
|
|
|
228
228
|
// 优化后
|
package/es/plugins.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.letter-circle[data-v-daae7edd]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
|
package/lib/plugins.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.letter-circle[data-v-daae7edd]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
|
|
File without changes
|