I've been to several rv parks that have requirements that any dog tied (chain, rope, etc) up outside, the owner must be out there with them. No dogs left alone. Same thing inside the rv. Also, some parks don't allow those retractable leashes. I know....dumb rules, but nevertheless, rules are rules.
I'm not sure of "laws". I suspect that if a private rv park, it's up to the park owner to set rules. If State or Federal campground, they also will have "rules" (again, not sure if it is laws). Best to check in with the campground host or the person at the rv park that checks you in.
Ron