I ended up needing minor surgery soon after having each of my kids, and with one it was due to my gall bladder. Doctors tend to give advice more about eliminating the risk of being sued than about what's best for the baby. But once it's out of your system well enough for you to be conscious and hold the baby to breast, you can really breastfeed the baby. Women breastfeed soon after difficult births that involve various drugs in them.
Percocet is a very strong drug and labeld as L3 ( http://www.kellymom.com/health/meds/pain-meds.html ). I had Viocdin afterward, which is also labeled L3, but really I only needed it mainly one day, and IMO the value of preserving the breastfeeding relationship is a bigger health issue than a short period of time with the meds. They didn't even make my baby drowsy.
I had to arrange things a bit differently physically to keep the baby in a comfortable spot after gall bladder surgery but it wasn't too difficult.
The important thing to remember is that you are not nearly as delicate as far as this thing goes when breasteeding as when pregnant. You can handle much more and it has much less effect on your baby. Don't take more of the prescription pain meds than you have to, and start using OTC stuff as soon as possible, and you and the baby should be fine.
If you give her bottles for a few days it could very well cause trouble both with your supply and with her sucking style. She might have a hard time going back to the breast after that. I would not do that and I personally would and did just breastfeed right after surgery and go on with normal breastfeeding right away. Each baby had I think just one bottle while I was physically in surgery, and each baby breastfed right away when I was in recovery, and both were fine and are very very fine now. (One is just turning 10 and one is just turning 3.)
Doctors are so afraid of being sued that they make it sound like everything is reason to switch to formula or stop breastfeeding. But maintaining your breastfeeding relationship and making sure you don't have supply problems is a much bigger issue than the small amount of drugs over a very short period of time that your baby will get. She won't get enough to like overdose or anything - it's a question of whether she could get enough to make her feel drowsy, and if you took those kinds of meds long term it could cause an addiction for her just like it could for you. But babies go into surgery and get pain meds too. Just don't take them longer than you have to, and relax!