hamzus-ui 0.0.166 → 0.0.168
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/package.json
CHANGED
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
for (let i = 0; i < actualValue[tableId].columns.length; i++) {
|
|
81
81
|
const element = actualValue[tableId].columns[i];
|
|
82
82
|
if (element.name === columnName) {
|
|
83
|
-
console.log("----");
|
|
84
|
-
console.log("column" + columnName);
|
|
85
|
-
console.log("position" + position);
|
|
86
|
-
console.log("new value" + newValue);
|
|
87
|
-
console.log(actualValue[tableId].columns[i]);
|
|
83
|
+
// console.log("----");
|
|
84
|
+
// console.log("column" + columnName);
|
|
85
|
+
// console.log("position" + position);
|
|
86
|
+
// console.log("new value" + newValue);
|
|
87
|
+
// console.log(actualValue[tableId].columns[i]);
|
|
88
88
|
|
|
89
89
|
if (newValue === null || newValue === undefined || newValue === '') {
|
|
90
90
|
actualValue[tableId].columns[i].filter = newValue;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import ScrollArea from '../ScrollArea/ScrollArea.svelte';
|
|
3
3
|
import Button from '../Button/Button.svelte';
|
|
4
4
|
import * as DropdownMenu from '../DropdownMenu';
|
|
5
|
+
import { onMount } from 'svelte';
|
|
5
6
|
|
|
6
7
|
export let name = '';
|
|
7
8
|
export let label = '';
|
|
@@ -15,6 +16,12 @@
|
|
|
15
16
|
|
|
16
17
|
const yearList = getYearList();
|
|
17
18
|
|
|
19
|
+
onMount(()=>{
|
|
20
|
+
if (value === "") return
|
|
21
|
+
|
|
22
|
+
handleSelectYear(value)
|
|
23
|
+
})
|
|
24
|
+
|
|
18
25
|
function getYearList(startYear = 1997) {
|
|
19
26
|
const currentYear = new Date().getFullYear();
|
|
20
27
|
return Array.from({ length: currentYear - startYear + 1 }, (_, i) => currentYear - i);
|