It looks like a stye which requires a proper medication/treatment. This condition is very common in Shih Tzus, pomeranians and Lhasa apsos etc m. I would suggest you to speak to any vet online on Kuddle to discuss more in detail and for the correct treatment.
Cucumber slices don’t help to cure this.