@dao-style/core 0.2.3 → 0.2.4
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropType, defineComponent } from 'vue';
|
|
2
2
|
export declare type TagType = string | Element['tagName'] | ReturnType<typeof defineComponent>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const textButtonType: readonly ["default", "action", "link", "custom"];
|
|
4
4
|
declare type ThePropType = {
|
|
5
|
-
type: typeof
|
|
5
|
+
type: typeof textButtonType[number];
|
|
6
6
|
icon?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: {
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
};
|
|
6
6
|
prop: {
|
|
7
7
|
type: import("vue").PropType<{
|
|
8
|
-
type: "link" | "default" | "action";
|
|
8
|
+
type: "link" | "default" | "custom" | "action";
|
|
9
9
|
icon?: string | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
default: () => {
|
|
@@ -20,13 +20,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
} & {
|
|
21
21
|
tag: string;
|
|
22
22
|
prop: {
|
|
23
|
-
type: "link" | "default" | "action";
|
|
23
|
+
type: "link" | "default" | "custom" | "action";
|
|
24
24
|
icon?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
} & {}>, {
|
|
27
27
|
tag: string;
|
|
28
28
|
prop: {
|
|
29
|
-
type: "link" | "default" | "action";
|
|
29
|
+
type: "link" | "default" | "custom" | "action";
|
|
30
30
|
icon?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
package/dist/dao-style.es.js
CHANGED
|
@@ -6926,10 +6926,11 @@ const _sfc_main$a = defineComponent({
|
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
};
|
|
6929
|
-
watch([() => props.data,
|
|
6930
|
-
immediate: true
|
|
6929
|
+
watch([() => props.data, selectedRowsModel], handleSelectedRows, {
|
|
6930
|
+
immediate: true,
|
|
6931
|
+
deep: true
|
|
6931
6932
|
});
|
|
6932
|
-
watch([
|
|
6933
|
+
watch([selectedRowsSet, selectableRows], () => {
|
|
6933
6934
|
let have = 0;
|
|
6934
6935
|
let notHave = 0;
|
|
6935
6936
|
for (let i = 0; i < props.data.length; i += 1) {
|
|
@@ -6956,7 +6957,8 @@ const _sfc_main$a = defineComponent({
|
|
|
6956
6957
|
selectedRowsModel.value.splice(0, selectedRowsModel.value.length, ...Array.from(selectedRowsSet));
|
|
6957
6958
|
}, {
|
|
6958
6959
|
deep: true,
|
|
6959
|
-
immediate: true
|
|
6960
|
+
immediate: true,
|
|
6961
|
+
flush: "post"
|
|
6960
6962
|
});
|
|
6961
6963
|
const expandedRows = reactive(new WeakSet());
|
|
6962
6964
|
const columnRefs = reactive({});
|
|
@@ -8141,7 +8143,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8141
8143
|
]);
|
|
8142
8144
|
}
|
|
8143
8145
|
var toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
|
|
8144
|
-
const
|
|
8146
|
+
const textButtonType = ["default", "action", "link", "custom"];
|
|
8145
8147
|
var TextButtonProps = {
|
|
8146
8148
|
tag: {
|
|
8147
8149
|
type: [Object, String],
|
|
@@ -8165,7 +8167,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
8165
8167
|
const prop = toRef(props, "prop");
|
|
8166
8168
|
const computedType = computed(() => {
|
|
8167
8169
|
var _a2;
|
|
8168
|
-
return ((_a2 = prop.value) == null ? void 0 : _a2.type) &&
|
|
8170
|
+
return ((_a2 = prop.value) == null ? void 0 : _a2.type) && textButtonType.includes(prop.value.type) ? prop.value.type : "custom";
|
|
8169
8171
|
});
|
|
8170
8172
|
const componentComputed = computed(() => ({
|
|
8171
8173
|
class: [
|