This commit is contained in:
2025-12-11 11:23:02 +00:00
parent 52ffe81352
commit 278000bb36
6 changed files with 50 additions and 48 deletions

View File

@@ -36,13 +36,13 @@ export class TestComplexTypes extends DeesElement {
`;
@property({ type: Array })
public stringArray: string[] = ['apple', 'banana', 'cherry'];
accessor stringArray: string[] = ['apple', 'banana', 'cherry'];
@property({ type: Array })
public numberArray: number[] = [1, 2, 3, 4, 5];
accessor numberArray: number[] = [1, 2, 3, 4, 5];
@property({ attribute: false })
public complexData: IComplexData = {
accessor complexData: IComplexData = {
name: 'Default Name',
age: 0,
tags: [],
@@ -54,19 +54,19 @@ export class TestComplexTypes extends DeesElement {
};
@property({ type: Object })
public simpleObject = {
accessor simpleObject = {
key1: 'value1',
key2: 'value2',
key3: 123
};
@property({ attribute: false })
public functionProperty = () => {
accessor functionProperty = () => {
console.log('This is a function property');
};
@property({ type: Date })
public dateProperty = new Date();
accessor dateProperty = new Date();
public static styles = [
css`