water_xcx/components/pull-down-list/index.d.ts.map

1 line
1.0 KiB
Plaintext
Raw Normal View History

2025-04-15 15:44:51 +08:00
{"version":3,"sources":["../../example/components/pull-down-list/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,QAAS,CAAC","file":"index.d.ts","sourcesContent":["const itemHeight = 56 * 2;\n\nComponent({\n data: {\n childBoxHeight: 0,\n },\n externalClasses: ['t-class'],\n properties: {\n defaultOpen: {\n type: Boolean,\n value: false,\n },\n name: {\n type: String,\n value: '',\n },\n icon: {\n type: String,\n value: '',\n },\n childArr: {\n type: Array,\n value: [],\n observer(childArr: any[]) {\n this.setData({\n childBoxHeight: this.data.defaultOpen ? itemHeight * childArr.length : 0,\n });\n },\n },\n },\n methods: {\n switchHandle() {\n const { childArr, childBoxHeight } = this.data;\n this.setData({\n childBoxHeight: childBoxHeight > 0 ? 0 : childArr.length * itemHeight,\n });\n },\n tapChild(e: any) {\n this.triggerEvent('click', e.target.dataset);\n },\n },\n});\n"]}